Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Programming Talk



Custom deck CTDs on load screen when assigned to AI player
Moderator: CCGHQ Admins
Custom deck CTDs on load screen when assigned to AI player
by MisterBenn » 09 Aug 2012, 22:10
I'm in the final stages of testing my new deck, I have tested the cards one by one and have played a number of custom games, campaign matches and also some 2HG and FFA. All looks wonderfully reliable so far but I have a single issue still to resolve. When I set the deck to be used by an AI opponent I get a silent CTD on the load screen before the match begins. The game log file remains empty so no help there. I am reusing the Garruk planeswalker AI personality and graphic assets so everything should be in place there, and I have not seen this issue with the decks I have fooled around with before.
I am going in with some trial and error to double check everything, in the meantime has anyone encountered this before or does anyone have any specific ideas to point me in good direction?
I am going in with some trial and error to double check everything, in the meantime has anyone encountered this before or does anyone have any specific ideas to point me in good direction?
- MisterBenn
- Posts: 97
- Joined: 19 Mar 2011, 16:19
- Has thanked: 24 times
- Been thanked: 11 times
Re: Custom deck CTDs on load screen when assigned to AI play
by thefiremind » 09 Aug 2012, 22:22
Yes, someone has encountered this before:
viewtopic.php?f=63&t=7784
but I don't know what to suggest to both of you... it's not a problem of AI evaluation of the card because in that case you could still enter the duel and it would crash later. Crashing on the load screen usually means an error in the XML structure, but this should make the game crash regardless of who's using the deck, so I'm out of ideas. I have alexandreonly's WAD so I can try to see if I recognize something wrong, but as you can guess, it's difficult when you don't even know where to start.
EDIT: The only wrong things I found in alexandreonly's WAD (outside the cards' code which I didn't check because I'm pretty sure it can't be the source of the problem) are some repeated ID's in decks and land pools. Check that you didn't use an existing ID for something.
viewtopic.php?f=63&t=7784
but I don't know what to suggest to both of you... it's not a problem of AI evaluation of the card because in that case you could still enter the duel and it would crash later. Crashing on the load screen usually means an error in the XML structure, but this should make the game crash regardless of who's using the deck, so I'm out of ideas. I have alexandreonly's WAD so I can try to see if I recognize something wrong, but as you can guess, it's difficult when you don't even know where to start.
EDIT: The only wrong things I found in alexandreonly's WAD (outside the cards' code which I didn't check because I'm pretty sure it can't be the source of the problem) are some repeated ID's in decks and land pools. Check that you didn't use an existing ID for something.
< 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: 722 times
Re: Custom deck CTDs on load screen when assigned to AI play
by MisterBenn » 09 Aug 2012, 23:23
... and just like that my problem is fixed! I just realised that I took a copy of the land pool file from another deck, and that it contains a deck ID which was therefore duplicated. One quick change and the first load is successful! I'll play a bunch more rounds but it crashed 100% of the time previously so I think it will be good now.
Thanks so much, it's not the first time you've gone out of your way to help and been immediately correct!!! DOTP seems like quite a niche activity but it's awesome that there are some good people at the centre of it.
Thanks so much, it's not the first time you've gone out of your way to help and been immediately correct!!! DOTP seems like quite a niche activity but it's awesome that there are some good people at the centre of it.
- MisterBenn
- Posts: 97
- Joined: 19 Mar 2011, 16:19
- Has thanked: 24 times
- Been thanked: 11 times
Re: Custom deck CTDs on load screen when assigned to AI play
by thefiremind » 09 Aug 2012, 23:44
Always glad to be helpful. 
Now that I think about it, kevlahnota probably already discovered that the land pool file is somehow connected to the AI, in fact in his custom land grouping tutorial he wrote "D13_TITANRAMP_LAND_POOL.XML (for the AI land pool)".

Now that I think about it, kevlahnota probably already discovered that the land pool file is somehow connected to the AI, in fact in his custom land grouping tutorial he wrote "D13_TITANRAMP_LAND_POOL.XML (for the AI land pool)".
< 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: 722 times
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests