It is currently 14 May 2025, 02:21
   
Text Size

card set and rarity

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

card set and rarity

Postby mtgrares » 19 Aug 2010, 18:32

I didn't know how to specify a card's set and rarity, so I just didn't. I knew that cards could exist in different sets and have different rarities for each set. Obviously once I added sealed deck and drafting to Forge, there was a question of rarity so I came up with common.txt, uncommon.txt, and rare.txt. But this doesn't allow a user to easily change between sets.

So a card's rarity and set is still "up in the air".
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: card set and rarity

Postby Rob Cashwalker » 20 Aug 2010, 14:32

Don't worry I've got a crack-team of monk-- err developers working on this very question.....

I just undid my changes for draft booster packs. Maintaining "normal" rarity isn't too tough, and there's an "app for that" or rather, a "script for that". But draft, especially the way juzamjedi has been doing it is more personal, and plowing through 3900 cards in cards.txt to add another line for each card is not something I want him or anyone else to waste time on. So I reverted to using the draft/rarity.txt file for that part only.
Somewhere shortly down the line, I'll come up with a simpler, single-file format that will come along with a list screen to "import" your preferred (saved between sessions) card pool and rarity. (or choose the default card pool (all) using the SVar:Rarity)

In a similar fashion, I think the easiest way to implement sets will be with a file-per-set. Each card will have a one-line entry noting the rarity and possibly a picture from that set. New Booster Pack generators would be written to take the set code or name as a parameter, and pull the rarity from the associated file.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: card set and rarity

Postby juzamjedi » 20 Aug 2010, 17:59

I've read the couple of forum topics on this and it seems like a fine solution. Thanks Rob for listening to my concern.
juzamjedi
Tester
 
Posts: 575
Joined: 13 Nov 2008, 08:35
Has thanked: 6 times
Been thanked: 8 times

Re: card set and rarity

Postby mtgrares » 20 Aug 2010, 18:03

Rob, sounds good. I figured eventually somebody would have a good idea.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: card set and rarity

Postby Chris H. » 20 Aug 2010, 18:23

juzamjedi wrote:I've read the couple of forum topics on this and it seems like a fine solution. Thanks Rob for listening to my concern.
`
Download both the forge 08-20 and the forge fix r1802 archive files and I believe that you will be able to continue with the draft mode.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 11 guests


Who is online

In total there are 11 users online :: 0 registered, 0 hidden and 11 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 11 guests

Login Form