![]() |
[AI coding] - some basic questions
Hello,
I got interested in modifying AI scripts. Any guide somewhere to look at? Maybe a tutorial? Can't seem to find anything. Few questions: 1. How do I debug AI scripts? 2. Can I write some values to the file? 3. How do I set homeworld Space Yard on emergency build at the first turn? |
Re: [AI coding] - some basic questions
There is a bit of info on the Wiki, but it isn't too in-depth at this point. Adding more things as you figure them out would be very helpful, though. http://forum.shrapnelgames.com/images/smilies/wink.gif
In the Docs folder, there is a function reference file that lists all of the functions and language parameters. Its not a tutorial of any sort, but useful nonetheless. To debug, I think you can use the DebugSettings.txt file to spit out some script debug logs: Generate Game Debug Log := FALSE Generate Engine Debug Log := FALSE ... Debug Section Script Evaluation Detailed := FALSE Debug Section Script Evaluation Simple := FALSE Debug Section Script Evaluation Debug Print Only := FALSE |
Re: [AI coding] - some basic questions
Thanks Fyron, I will look at these.
Meanwhile I was searching through the files for something related to emergency building, but could find nothing. The word 'emergency' is only in the files 'Settings.txt', HelpText.txt, MainStrings.txt and Components.txt. Does not seem that there is a method to tell AI to use emergency build. http://forum.shrapnelgames.com/images/smilies/frown.gif |
Re: [AI coding] - some basic questions
Just a note, you have to restart the program to get the settings.txt to be read.
|
Re: [AI coding] - some basic questions
How do I comment multiple lines in AI script files?
Is there smth like in C++ /* ... code ... */ ? |
All times are GMT -4. The time now is 08:50 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.