It is currently 14 May 2025, 06:12
   
Text Size

Trying to test a new card

Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins

Trying to test a new card

Postby BrutalFear » 04 Feb 2015, 21:51

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?
Attachments
Screen Shot 2015-02-04 at 4.38.55 PM.png
Screen Shot 2015-02-04 at 4.40.08 PM.png
BrutalFear
 
Posts: 3
Joined: 03 Feb 2015, 07:07
Has thanked: 1 time
Been thanked: 0 time

Re: Trying to test a new card

Postby LevelX » 04 Feb 2015, 22:32

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.
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times


Return to Developers Talk

Who is online

Users browsing this forum: No registered users and 4 guests


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 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 4 guests

Login Form