Posted: Sat Sep 05, 2015 10:18 am Post subject:
Game Crash when AI uses Custom Country
Subject description: Game can't seem to handle AI using a custom country
So I added a "China" country to the Soviet side. The flag is fine, the loading screen is fine, all the custom units/buildings are fine, everything works fine when I play as China. But, in Skirmish, when I want the AI to play as China, this crashes the game.
I can't find anything in the documentation to suggest why this is. QUICK_EDIT
All references to Flame troopers/tanks are the custom units. I also added China to the list of owners on most soviet units, and also to the list of countries & the Nod side. QUICK_EDIT
Not sure if this would influence crashes or not, but I noticed your "File.Taunt" flag is set up wrong. It's supposed to be done like this:
File.Taunt=Taunts\tauam%02i.wav QUICK_EDIT
Start the game with the -LOG argument and check the debug.log file whether the country can build power plants, barracks and so on. _________________ QUICK_EDIT
Now the game is crashing on me because of AI triggers.
Welcome to AI modding.
Although I think this is a different topic to discuss, I'm not sure how that would crash the game.
IIRC vanilla YR has very little country specific triggers, which are even based on ID, not index.
Could it be that the Chinese AI does not have access to generic Soviet units? Eg. again trying to build something it can't? _________________
Now the game is crashing on me because of AI triggers.
Welcome to AI modding.
Although I think this is a different topic to discuss, I'm not sure how that would crash the game.
IIRC vanilla YR has very little country specific triggers, which are even based on ID, not index.
Could it be that the Chinese AI does not have access to generic Soviet units? Eg. again trying to build something it can't?
Nah, all I did was copy/paste the 3 tesla troop squad trigger and replace the references to the telsa trooper teamtype with custom flame troopers. Crashes. QUICK_EDIT
Did you change the Side/Country on the trigger too? And any other references to buildings or units that your new country can't build? _________________ MIdAS - Turning wages into beer since 2002 QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum