PDA

View Full Version : Making Deck Entry Easier


NightLoki
08-23-2010, 02:40 PM
I humbly suggest that you guys take steps to make Deck Entry easier. As-is it's a giant pain to put in a full 75. Having the option to put in a set number from the search screen would be great (Add 4 or Add 1) as well as putting more into the bulk import. Bulk Import works really well so far and I like it, but I would like it if, instead of 1x, 2x, 3x, etc. it was just # CARD, with just the space in-between. For those of us on here who use Magic Workstation or Apprentice (I think Apprentice uses this format) it makes uploading a whole lot easier. Well, hopefully I gave you guys some ideas at least.

Seth
08-23-2010, 03:22 PM
Bulk Import works really well so far and I like it, but I would like it if, instead of 1x, 2x, 3x, etc. it was just # CARD, with just the space in-between.

And make your regular expression that parses the lines a bit stronger. Currently it must be #x[space]card. It's so easy to have it recognize the 'x' or not and multiple spaces and or tabs.

something like this should do it (I didin't test it, just from the top of my mind so sorry if it doesn't work)

^([1-9]+[0-9]*)x?\s*(.*)$

flags: im

Should work in php.

NightLoki
08-24-2010, 08:07 AM
thanks to my small amount of research on regex, I actually know what that means...mostly.

Ian
08-24-2010, 10:16 AM
Hi Guys

Thanks for the input! We were working on a process where you could just upload MWS .mwDeck files, but had to put this on hold.

Agree we need to update the stored procedure/regex to be a bit more robust, we'll have a look at it, possibly next! Need to sort out this rating shenanagins first. I use the bulk importer on the WoW site fairly often and have noticed a few niggles in it as well :p

This could take a while to implement, as Gary has just moved house and I've just had a baby! So that's why were a bit AWOL atm, but don't worry, we are still reading the forums, pretty much daily :)

Cheer guys, thanks for sticking at the current system!

Ian

Ian
09-01-2010, 02:18 PM
Seth: That regex works a charm btw - oh and the sites are in .NET not php :) but it still works fine.

Was working on the bulk importer last night, it's amazing how much I've learnt since it was written, made 9999 lines of code into about 15 :p

Ian

NightLoki
09-01-2010, 04:58 PM
Is it up yet?

Ian
09-01-2010, 06:09 PM
Not yet - still some more tweaking to be done :)

Soon....!

Ian

NightLoki
09-01-2010, 06:17 PM
Sweet, thanks for all the hard work!

Ian
09-03-2010, 04:47 PM
Hello

I;ve updated the bulk importer, so you should now be able to use 1x CardName, or 1 CardName, or even paste from a mwsDeck file.

There MAY be some issues with punctuation, but let me know!

Oh, and it's miles faster to actually compute that the old one :-)

Cheers

Ian

NightLoki
09-03-2010, 05:17 PM
Gonna go put in like three decks now, thanks!

NightLoki
09-03-2010, 05:21 PM
That was fantastic, cut, paste, and done! Great job Ian!

Ian
09-03-2010, 05:22 PM
Brilliant :)

Gary
09-03-2010, 05:35 PM
Much, much nicer than the old one, well done! :)

Seth
09-06-2010, 02:57 PM
Seth: That regex works a charm btw - oh and the sites are in .NET not php :) but it still works fine.

Was working on the bulk importer last night, it's amazing how much I've learnt since it was written, made 9999 lines of code into about 15 :p

Ian

I'm a .NET developer myself, I just thought the site was php because the forum seems to be php based (or so the page extensions would suggest).

Anyway, you're welcome :)