Testing the combat system
by Incantus
Moderator: CCGHQ Admins
Re: Testing the combat system
by Incantus » 14 Jun 2008, 20:29
What kind of chicanery did it require. One thing to note about the CardEditor is that it automatically syncs the cards to disk everytime you switch to a new card (or click on the sync button). There is no save option since it automatically saves. Also, I recommend adding new cards to a new .db file, not the cards.db file, which I often update as I add new cards or update broken ones. Just place the new file in the data subdirectory and Incantus will be able to load it (make sure it ends in .db)MageKing17 wrote:After some chicanery, I finally got a version of cards.db with the modifications, and the card worked perfectly (A non-flying creature was unable to block my Armored Ascension-enchanted creature), so I think I've got the feel for the editor now.
That capability is not implemented yet.MageKing17 wrote:Now all I need is to figure out how to require a certain color of mana be spent on X...
Re: Testing the combat system
by MageKing17 » 14 Jun 2008, 21:00
The "chicanery" was just discovering that fact.incantus1 wrote:What kind of chicanery did it require. One thing to note about the CardEditor is that it automatically syncs the cards to disk everytime you switch to a new card (or click on the sync button). There is no save option since it automatically saves.
I didn't know it would automatically read all .db files, but I saved a backup of the original cards.db anyway. I'll put my work into a separate .db file from now on (which simplifies things, anyway).incantus1 wrote:Also, I recommend adding new cards to a new .db file, not the cards.db file, which I often update as I add new cards or update broken ones. Just place the new file in the data subdirectory and Incantus will be able to load it (make sure it ends in .db)
Oh well. Not like I'm dealing with a lot of dual-color decks in these little tests.incantus1 wrote:That capability is not implemented yet.
-
MageKing17 - Programmer
- Posts: 473
- Joined: 12 Jun 2008, 20:40
- Has thanked: 5 times
- Been thanked: 9 times
Re: Testing the combat system
by The Scientist » 16 Jun 2008, 06:32
perhaps we should use the #incantus again on IRC (efnet)? I might be able to help out sometimes.
Last edited by The Scientist on 16 Jun 2008, 18:06, edited 2 times in total.
- The Scientist
- Posts: 94
- Joined: 05 Jun 2008, 07:39
- Has thanked: 0 time
- Been thanked: 0 time
Re: Testing the combat system
by cort » 16 Jun 2008, 07:07
If i use Mind Rot and the opponent has only one card in his hand then nothing happens, otherwise it works fine. In my opinion if the opponent has two cards or less in his hand they should be discarded automatically.
Also when i have no cards in my hand it still shows that i have 1 card (1st picture), all tough it disappears if the last card i play is a land card (2nd picture.
It also appears that if i reduce the opponents life to exactly 0, after i get the message that i won, the game crashes. It probably explains this and this.
If the life counter is <0 then everything is ok. Well, almost everything. The red strip that appears in combat the phase remains from last game (3rd picture).
Also when i have no cards in my hand it still shows that i have 1 card (1st picture), all tough it disappears if the last card i play is a land card (2nd picture.
It also appears that if i reduce the opponents life to exactly 0, after i get the message that i won, the game crashes. It probably explains this and this.
If the life counter is <0 then everything is ok. Well, almost everything. The red strip that appears in combat the phase remains from last game (3rd picture).
The Iceman Cometh
-
cort - Posts: 10
- Joined: 06 Jun 2008, 19:16
- Has thanked: 0 time
- Been thanked: 0 time
Re: Testing the combat system
by Incantus » 16 Jun 2008, 17:21
OK, I fixed the problem with Mind Rot (and discard effects in general), and the UI bugs with showing an empty hand. However, I still can't seem to reproduce the crashes at the end of the game.
http://www.mediafire.com/?twj1jtzmigt
http://www.mediafire.com/?twj1jtzmigt
Re: Testing the combat system
by MageKing17 » 16 Jun 2008, 20:36
-
MageKing17 - Programmer
- Posts: 473
- Joined: 12 Jun 2008, 20:40
- Has thanked: 5 times
- Been thanked: 9 times
Re: Testing the combat system
by Incantus » 16 Jun 2008, 21:53
Yeah, i've tried that multiple times. I never seem to get a crash.MageKing17 wrote:Just use something like Blaze when you've got a sufficient amount of mana to perform an amount of damage equal to the remaining life. If it doesn't crash... something's different with your computer.
Nope. That's the one major flaw in my current design. It's really hard to do effects that refer to previous events (what i refer to as memory effects). I'm still trying to figure out a clean way of doing them that generalizes well (so i don't have to hard code each one).MageKing17 wrote:Any idea how a card like Tetravus might be made? Can you keep track of what created a token?
Re: Testing the combat system
by Marek14 » 17 Jun 2008, 08:42
One solution would be to allow creating dummy objects. These would sit in the game, they might even be visible to player, but nothing in-game would count them for any purpose.
This could take care of things like delayed triggers.
For Tetravus, however, the situation is a bit more complicated. Tetravus, the way it's written, can sacrifice any Tetravite the permanent has previously created. And there are scenarios when a permanent creates a Tetravite without knowing that it will need to remember later who created it. They are pretty convoluted, but might involve, for example (if we pass on Artificial Evolution Shenanigans):
I have Death-Mask Duplicant, Soul Foundry, Mizzum Transreliquat and Tetravus. I copy Death-Mask Duplicant with Mizzium, removing Chameleon Colossus from my graveyard. Then I copy Soul Foundry, which allows me to make a copy of Colossus. Then I permanently copy Tetravus, and at the beginning of my next upkeep, I should be able to sacrifice the copied Colossus (as it has all creature types, including Tetravite).
So, the only solution I see right now is to make tokens always record which object in the game created them.
This could take care of things like delayed triggers.
For Tetravus, however, the situation is a bit more complicated. Tetravus, the way it's written, can sacrifice any Tetravite the permanent has previously created. And there are scenarios when a permanent creates a Tetravite without knowing that it will need to remember later who created it. They are pretty convoluted, but might involve, for example (if we pass on Artificial Evolution Shenanigans):
I have Death-Mask Duplicant, Soul Foundry, Mizzum Transreliquat and Tetravus. I copy Death-Mask Duplicant with Mizzium, removing Chameleon Colossus from my graveyard. Then I copy Soul Foundry, which allows me to make a copy of Colossus. Then I permanently copy Tetravus, and at the beginning of my next upkeep, I should be able to sacrifice the copied Colossus (as it has all creature types, including Tetravite).
So, the only solution I see right now is to make tokens always record which object in the game created them.
Re: Testing the combat system
by MageKing17 » 18 Jun 2008, 12:21
Which wouldn't be terribly difficult, if each individual card had an internal ID number and you added an entry to the token data object (assuming the engine even works like that) pointing to that ID. It'd come in handy for more than just wacky things like Tetravus, and convoluted scenarios like you just posted.Marek14 wrote:So, the only solution I see right now is to make tokens always record which object in the game created them.
-
MageKing17 - Programmer
- Posts: 473
- Joined: 12 Jun 2008, 20:40
- Has thanked: 5 times
- Been thanked: 9 times
Re: Testing the combat system
by cort » 18 Aug 2008, 06:47
Could it be possible to make it such that you can't see the opponents hand during your turn?
And maybe when you finish your turn the screen goes dark with some kind of message like "opponent: press any key to start your turn" or something similar.
This way two players could play on the same computer without seeing each others hands.
And maybe when you finish your turn the screen goes dark with some kind of message like "opponent: press any key to start your turn" or something similar.
This way two players could play on the same computer without seeing each others hands.
The Iceman Cometh
-
cort - Posts: 10
- Joined: 06 Jun 2008, 19:16
- Has thanked: 0 time
- Been thanked: 0 time
Re: Testing the combat system
by Incantus » 18 Aug 2008, 13:09
Hi Cort,
That is possible. The problem is that you would have to switch seats every time priority was passed, which would get old pretty quickly.
Incantus
That is possible. The problem is that you would have to switch seats every time priority was passed, which would get old pretty quickly.
Incantus
41 posts
• Page 3 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 23 guests