It is currently 26 Apr 2024, 21:44
   
Text Size

Random crash when turn ends.

Moderator: CCGHQ Admins

Random crash when turn ends.

Postby 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.
BETenner
 
Posts: 36
Joined: 07 Mar 2013, 14:20
Has thanked: 7 times
Been thanked: 4 times

Re: Random crash when turn ends.

Postby 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.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Random crash when turn ends.

Postby 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?
BETenner
 
Posts: 36
Joined: 07 Mar 2013, 14:20
Has thanked: 7 times
Been thanked: 4 times

Re: Random crash when turn ends.

Postby thefiremind » 16 Oct 2013, 17:59

BETenner wrote:I didn't assign any AI related keyword to my cards, so if I added the AI, maybe can solve this problem?
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.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Random crash when turn ends.

Postby 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.
BETenner
 
Posts: 36
Joined: 07 Mar 2013, 14:20
Has thanked: 7 times
Been thanked: 4 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 37 guests


Who is online

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

Login Form