It is currently 10 Sep 2025, 07:54
   
Text Size

Quickly testing card changes.

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

Quickly testing card changes.

Postby ToonBoon » 22 Feb 2015, 11:55

I was looking at contributing to this project as a means of getting familiar with a new IDE and adding git to my computering toolkit. While I'm slowly learning the ropes on that and refreshing my java knowledge I was wondering how you guys 'test' new code for cards? Do you build the entire project and fire up a test game to see if you can reproduce a scenario where you draw the card and have the case be relevant to your debugging?
ToonBoon
 
Posts: 12
Joined: 18 May 2012, 22:27
Has thanked: 0 time
Been thanked: 0 time

Re: Quickly testing card changes.

Postby LevelX » 22 Feb 2015, 13:40

Normally I do the following:
1) I build Mage Framework and/or Mage Sets (depending where I changed classes).
2) I start the server in test mode.
3) Start the client and connect to the server (check force DB update if you implemented new cards).
4) Click "Quick Start" button to start a match against the AI.
5) Edit "Mage Server/config/init.txt" to add the cards to hand / battlefield / library I want to test.
6) Click the cheat button (left of the command zone button).
Then I change the init.txt file as often as I need to add more cards to the game using the cheat button.

There are some information in the WIKI:
https://github.com/magefree/mage/wiki/D ... ting-Tools

Feel free to ask if something is still not clear.
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 2 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 2 guests

Login Form