Quickly testing card changes.
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
2 posts
• Page 1 of 1
Quickly testing card changes.
by 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.
by 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.
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.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests