Commit Graph

5 Commits

Author SHA1 Message Date
jendave
33776bef16 finally got the deck migration running - when you start forge, if there's a all-decks2 file, you're asked if you want to import it. this version has all the decks already imported, and the all-decks2 property commented out, so you're not asked again. 2011-08-06 02:46:10 +00:00
jendave
a48a6f43bb A lot of fixes in cards.txt and the CardFactories, removed all warnings. 2011-08-06 02:45:22 +00:00
jendave
8bd5c4a2c4 new deck format working now!
decks are in the res/decks folder, every deck is a file, booster decks are directories with 8 deck files in them. currently, if you run the new version, the decks folder is created automatically, but old decks are neither migrated nor overwritten. i'll commit an import program soon

major changes include
-Deck doesn't store the three boolean fields any more, but computes them
-DeckIO is now an interface, with OldDeckIO and NewDeckIO as its implementations. OldDeckIO will probably still be used for the deck migration tool.
2011-08-06 02:44:55 +00:00
jendave
386669b84e Huge update to forge's structure:
everything from the default package moved to package forge. the default package contains classes Deck and QuestData_State to keep compatibility with old files that store serialized objects of these classes

if you find other classes that are stored in the res directory through serialization, create a class for it in the default package or tell me.

about QuestData_State: i'm getting a NullPointerException when trying to create/resume quest. Maybe the quest files on SVN are simply out of date. otherwise, that seems hard. easy fix would of course be to replace null by a new Map
2011-08-06 02:43:59 +00:00
jendave
e0224bd465 2011-08-06 02:37:41 +00:00