AI edit in mod |
Im working on a mod and need to change the AIs research and building ways.
Ive found those files at
C:\Program\Strategy First\Malfador Machinations\Space Empires V\Utilities\ScriptParser\SE5EmpireScripts
and so and ive realized i need t use that scrip program but my question is how do i add such changed to the mod, do i just copy the entire folder like with data, pictures etc?
Re: AI edit in mod
The Script_AI_blahblah files are read by the Empire_Main scripts upon compilation. If you change Script_AI_Research, you have to recompile all the empire scripts to get your changes implemented.
Re: AI edit in mod
Script_AI_Research is not read directly by the game. It is included in Empirename_Main_Script when you compile that script.
Once you've changed the Script_AI_Research file, you need to recompile the scripts, otherwise the game won't know you've changed anything. Fire up the ScriptParser.exe program, click the Makefile button and select All Races Makefile.txt. This will recompile all the AI scripts to include your changes. Once you've done that, you'll find a bunch of files with a .csf extension in the SE5EmpireScripts folder. Move those into the appropriate Emipres\xxx folder (where 'xxx' is the empire name). Now the game will read your changes.





Re: AI edit in mod
When you recompile the scripts you'll find the .csf files in that folder. Just copy those into the \Empires\xxx folder (where xxx is the name of the specific empire).