Page 1 of 1

Trying to test a new card

PostPosted: 04 Feb 2015, 21:51
by BrutalFear
So I finished writing a new card "Hellhole Rats" and rebuilt the Root project. I set the server to test mode and modified the cheat file to add Hellhole Rats to my hand. I then made a deck containing this card, ran the server, ran the client, and set the decks to the newly created deck. I then get a message saying "Server Error, Card not found". After that I checked in the deck editor and sure enough the card is in there. I even tried deleting all of the card db files before rebuilding and rerunning the server and the client with the same problem. Anyone have any ideas what is going on?

Re: Trying to test a new card

PostPosted: 04 Feb 2015, 22:32
by LevelX
So I finished writing a new card "Hellhole Rats" and rebuilt the Root project. /quote]
If you add /modify only a card you only need to build "Mage Sets".

I set the server to test mode and modified the cheat file to add Hellhole Rats to my hand. I then made a deck containing this card, ran the server, ran the client, and set the decks to the newly created deck.
I normally use always the same very simple tet deck and add teh cards I want to test only to the Mage.Server\config\init.txt. So normally there is no need to build a deck to test a implemented card (maybe you only did it now because it's the first time you are testing this way).

I then get a message saying "Server Error, Card not found". After that I checked in the deck editor and sure enough the card is in there. I even tried deleting all of the card db files before rebuilding and rerunning the server and the client with the same problem. Anyone have any ideas what is going on?
1) You did stop all server processes and restarted the server after the rebuild of the Mage Sets Project?
I had it sometimes that I did not stop the old server process and oversee that the new started server was canceled because of the used port of the already running server.

2) Or the card can have a bug, but that you should see looking to the server log.
The server log shows also that the server added a new card to the db. And maybe the card shown in the client is from an older version of the card without big.


You need to delete the db files of server and client if you want to check if a changed card rule text is shown correctly in the tooltip. Because tooltips of deck editor are taken from the db text.

And don't forget (not your problem in this case because the client db has the new card) to check the option "Force card db update" while connecting the client to the server. Only then a new card of the server is transfered to the client db and can be seen in the deck editor.