MArcomage

Free multiplayer on-line fantasy card game

Please log in

theultramage on 19:48, 24. Dec, 2014
Yeah... it's a consequence of the original design, which did not take card updates into account. So when one does happen, we just replace the properties/code/image of the card and hope for the best. You can also notice that when viewing old replays, sometimes the game state after playing a card does not agree with what the played card said should happen - that is one of the consequences.

I did sit down and think a few times about how card versioning would be done, but couldn't think of a way that wouldn't be a performance disaster or a maintenance nightmare.

Probably the easiest way to do it would be: everytime a change to a card needs to be done, first create a duplicate of the old card (and card image) and give it a new ID. Then replace the card in all decks (players, AI presets, default starter decks) and mark it as unavailable in deck editor. This would turn cards.xml into an append-only container, and would do the job, but sounds really disturbing to me, compared to the inaccurate but simple thing we use now.
Djinn on 20:18, 24. Dec, 2014
Yeah; sounds like it would take a lot of changes to things that other parts of the code assumed wouldn't be changed. I kinda expected that when I mentioned it, but I also don't remember there being any forewarning about that for those who don't read the forums.
theultramage on 21:49, 24. Dec, 2014
Well, the messy solution I mentioned above would require no code changes - but would add a hefty runtime and maintenance burden. So yeah.

By the way, if you experience any card-related problems, sorry about that. Mojko did a lot of changes and is not here today to fix problems. I've hotfixed two issues so far and now there's a third one I might not be able to fix right now (the Charge and Enduring keyword effects will do nothing).

EDIT: I tried and guessed what the fix should be, but I don't know if the fix is correct. Oh well, I'll find out tomorrow.
Mojko on 10:50, 25. Dec, 2014
All reported issues should be fixed now. Please report if something unexpected happens.
Fithz Hood on 17:11, 8. Jan, 2015
I just want to say that I like the new cards, I placed every one of them in most of my decks.

Storm temple is good but is too much similar to White shrine. Wouldn't it be nice to make it Aria?