Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Random crash when turn ends.
Moderator: CCGHQ Admins
Random crash when turn ends.
by BETenner » 16 Oct 2013, 04:59
I often got random crash on turn ends.
I get some of my custom cards on the battlefield, their effects work fine.
But when I end my turn, sometimes the game freeze, sometimes the game crash, and sometimes it goes well...
What possibly cause this?
PS: My cards don't have end turn effects.
I get some of my custom cards on the battlefield, their effects work fine.
But when I end my turn, sometimes the game freeze, sometimes the game crash, and sometimes it goes well...
What possibly cause this?
PS: My cards don't have end turn effects.
Re: Random crash when turn ends.
by thefiremind » 16 Oct 2013, 08:54
That's hard to say... there must be at least one card that makes the game crash when the AI evaluates it, which doesn't mean that the AI needs to play it in order to crash the game: it could be a card you (not the AI) have put onto the battlefield, or a card that the AI has in hand. The latter hypothesis seems the best to me: the AI often waits ends of turns in order to play instant-speed spells and abilities.
Make a test deck with only half of the deck that gives you this problem, and use it, or make the AI use it. If the problem persists, halve it again and test it again. If not, take the other half and test that one.
Make a test deck with only half of the deck that gives you this problem, and use it, or make the AI use it. If the problem persists, halve it again and test it again. If not, take the other half and test that one.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: Random crash when turn ends.
by BETenner » 16 Oct 2013, 17:21
I didn't assign any AI related keyword to my cards, so if I added the AI, maybe can solve this problem?
Re: Random crash when turn ends.
by thefiremind » 16 Oct 2013, 17:59
I don't think so, but you'll prevent the AI from taking time to think in every step of every turn, which is quite annoying.BETenner wrote:I didn't assign any AI related keyword to my cards, so if I added the AI, maybe can solve this problem?
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: Random crash when turn ends.
by BETenner » 18 Oct 2013, 06:45
I found the reason, it seems some kind of mod conflict, after removing all other mods there's no crash again.
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 23 guests