Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 7:24 pm
All times are UTC + 0
Game Crash when AI uses Custom Country
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
VladKA
Civilian


Joined: 24 Aug 2015

PostPosted: 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
Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message
Allied General
General


Joined: 19 Mar 2004
Location: United Kingdom

PostPosted: Sat Sep 05, 2015 10:32 am    Post subject: Reply with quote  Mark this post and the followings unread

Unfortunately I can't mind read.

How about posting the error message before it crashes or your ini files in a zip / rar or whatever.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Facebook Profile URL Twitter Channel URL
VladKA
Civilian


Joined: 24 Aug 2015

PostPosted: Sat Sep 05, 2015 10:59 am    Post subject: Reply with quote  Mark this post and the followings unread

Allied General wrote:
Unfortunately I can't mind read.

How about posting the error message before it crashes or your ini files in a zip / rar or whatever.


Unfortunately the error message closes right away, so I'm unable to read it, but here is the entry in rulesmd.ini

Code:
[China]
UIName=NAME:CHINA
Name=China
Suffix=Soviet
Prefix=B
Color=DarkRed
Multiplay=yes
Side=Nod
SmartAI=yes
ParaDrop.Types=E2,FTROOP
ParaDrop.Num=4,3
AI.PowerPlants=NAPOWR
File.Flag=chinaflg.shp
File.LoadScreen=ls800china.shp
File.LoadScreenPAL=mpyscrn.pal
File.Taunt=tauam01.wav
LoadScreenText.Name=LSCR:CHINA
LoadScreenText.SpecialName=LSCR:FLAMETANK
LoadScreenText.Brief=LSCR:CHINABRIEF
MenuText.Status=MENUTEXT:CHINA
RandomSelectionWeight=1


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.

Back to top
View user's profile Send private message
gameaddict11707
Grenadier


Joined: 15 Jul 2011

PostPosted: Sat Sep 05, 2015 10:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

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

Back to top
View user's profile Send private message
AlexB
Commander


Joined: 31 May 2010
Location: Germany

PostPosted: Sun Sep 06, 2015 10:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

Start the game with the -LOG argument and check the debug.log file whether the country can build power plants, barracks and so on.

_________________

Back to top
View user's profile Send private message
VladKA
Civilian


Joined: 24 Aug 2015

PostPosted: Mon Sep 07, 2015 8:03 am    Post subject: Reply with quote  Mark this post and the followings unread

Okay, I fixed it. When making China owner of soviet stuff I'd missed out the Tesla Reactor, so the AI was trying to build something it couldn't, derp.

Now the game is crashing on me because of AI triggers.

Back to top
View user's profile Send private message
RP
Commander


Joined: 12 Jul 2012
Location: Mapping God Heaven

PostPosted: Mon Sep 07, 2015 8:13 am    Post subject: Reply with quote  Mark this post and the followings unread

VladKA wrote:
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?

_________________


Mental Omega 3.0 Mission creator - Creator of FinalOmega: APYR 3.0 Map Editor

/ppm/'s stupidity

Back to top
View user's profile Send private message
VladKA
Civilian


Joined: 24 Aug 2015

PostPosted: Mon Sep 07, 2015 2:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

RP wrote:
VladKA wrote:
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.

Back to top
View user's profile Send private message
MRMIdAS
Energy Commando


Joined: 17 Jul 2008

PostPosted: Thu Sep 10, 2015 1:11 am    Post subject: Reply with quote  Mark this post and the followings unread

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

Back to top
View user's profile Send private message
Zero Fanker
Civilian


Joined: 16 Jul 2015
Location: China - unofficial secret research centre

PostPosted: Thu Sep 10, 2015 4:45 am    Post subject: Reply with quote  Mark this post and the followings unread

Maybe you just forget to add China to the owner list of NACNST

_________________
Take it easy , i am not on purpose

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1727s ][ Queries: 11 (0.0091s) ][ Debug on ]