21 March 2012 @ 12:14 am
 
Does anyone know how to strip everything so that only the name of the decks are left below? I'd like some randomizers based on color, but manually typing the decks wouldn't be very smart for future updating. I was thinking maybe I could make use of cards3.



OTL There has to be a smarter way of doing this.
 
 
( Post a new comment )
[identity profile] piraskel.livejournal.com on March 21st, 2012 07:49 am (UTC)
Hullo, Lucathia.

I wrote a simple script when I was working on the TCG manager for extracting cards from a list of <img src>, so I just modified it a bit (http://tress.cardardor.com/Deck%20Names%20Generator.php) for you. Just copy and paste in that stuff you have.

It's very easy to modify the input and output (I just picked comma-delimited as a starting point) as you would like it, so just let me know! If you want the actual pages for yourself to modify/look at, I can send those your way as well :)

Edited 2012-03-21 07:51 am (UTC)
lucathia[personal profile] lucathia on March 21st, 2012 11:19 pm (UTC)
Ooooh, thank you so much! This will make things go very quickly!
[identity profile] moon-wolfwriter.livejournal.com on March 21st, 2012 06:12 pm (UTC)
It looks like what Tress provided would work for stripping code for the decks that we already have.

As for future updates, since I've been the one working on cards3 I know it wouldn't be that difficult to provide you with the new decks sorted by color so you can just add them into the right randomizers. The easiest way I've found to do card3 is one color at a time going down the new deck list looking first for "red" decks and adding them to the main list then copying the deck names into the code for the image list in another file the start at the top for "orange" and so forth so so as not toe be scrolling up and down the massive card3 file.Then once I have all that done I'd use an alphabetizer to add the new decks into each of the image sections. It wouldn't be that difficult, while copying the names into the code for the image section of each color to also make a file just of deck names. In fact that's what I do each month to get the list I post up for switch it up. Here's an example of what I ended up with for March (http://www.mediafire.com/?dl0hhpuh61549ng) It's just missing the special decks, but since there are usually so few of those they can be added in easily.

Or if you need the decks in a certain manner I also end up with this (http://www.mediafire.com/?f1ks9xuw1wjgjz3) before I use the alphabetizer to add them in which you can use the script tress provided to list them as needed so you don't have to redo the entire list every month.
lucathia[personal profile] lucathia on March 22nd, 2012 08:51 pm (UTC)
I haven't decided yet if I should continue updating these Color randomizers indefinitely. I might try it out for April, but if it takes too long to keep up to date, then I'll only update it when we have special events... I plan on using these for the follow up for the Tobi-han event!

Would be great if you can provide a list of new decks sorted by color with each release! Which way is easier, your first link, or your second one? I can work with both.

I was wondering if I should have the special decks in these color randomizers or not. Right now, I've tossed them in there, but that means we actually have special decks appearing in two different randomizers, so that means there's actually a higher percentage of acquiring a special card since it appears in two places!

[identity profile] moon-wolfwriter.livejournal.com on March 23rd, 2012 04:43 am (UTC)
Oh that's what you're using it for. ^__^

Well I can definitely provide you with a sorted list of new decks for the April release so you can see how updating the randomizers is. And honestly I already end up making both lists for myself while coding card3 so posting it up for you to use as well is no problem. Though the second would probably be easier for me to give to you since I know for sure that's always color sorted.

I don't think having the special cards in two randomizers would be that much of a problem just because character decks out number special decks nearly 20 to 1 so it's still not that likely to get them.

Oh... if you don't mind me using using the them for a regular game looking at the color randomizers just gave me an idea for a kinda special round of Coloring Book that I could do next round. (open donations with what ever color card/crayon you donate that's the color of the cards you get as a reward)
lucathia[personal profile] lucathia on April 5th, 2012 07:24 am (UTC)
Forgot to say, feel free to use the randomizers. XD;;