Autocomplete and AI |
Wich file and where take care of the autocomplete stuff? if its not regular txt file what needs to be used?
and also for the AI i assume its the design txt file there that do the trick for their designing. My question is once you got everything done with the AI how are you sure it is working in a fast way?

Re: Autocomplete and AI
It's the same file. Auto-complete is just the AI's design algorithm for the selected design type.
-----

Re: Autocomplete and AI
The only files you ever compile are the [Empire Name]_Main_Script and [Empire Name]_Setup_Script files. The Script_AI_[xxx] files and any changes you make to them are included when you compile the Main and/or Script. The individual Empire .csf compiled scripts are then placed in their respective Empires folder, ie Jraenar_Main_Script.csf in the Jraner folder etc.
-----

Re: Autocomplete and AI
The player's autocomplete function uses the default AI script in the Default folder.
-----

Re: Autocomplete and AI
Did you can the name the reactor with spaces in the components file, ie "Anti - Matter Reactor"? If so, that would produce a string mismatch with what you have in the script and the function would return false.
-----
Re: Autocomplete and AI
That is true only if you make a custom race. Stock races use their own AI, they auto-complete using their racial preferances, it doesn't matter if they are under AI or player control..

Re: Autocomplete and AI
It's in Script_AI_GlobalSettings.txt. There's a function that controls what additional components should be added.
-----

Re: Autocomplete and AI
Those lines need to be in the AI_Add_Extra_Comps function in Script_AI_GlobalSettings.txt.
-----

Re: Autocomplete and AI
You can also implicitly add this component in the Design Creation function. Look at the Add_Required_Components_To_Design function - basically cut and paste the "Basic Sensors" entry and swap the name to your reactor. Make sure it's going in the proper hull section - ie inner in inner slot etc.
-----




thanks again pal, assuming you got nothing against bieng it XD
Re: Autocomplete and AI
AI ship design is done mostly through Script_AI_DesignCreation.txt. If all you are doing is changing existing designs, then this is the only file you need to edit. Once you've made your changes, you need to recompile the AI scripts.
The best way to find out if it is working is to use the 'VIEWALLDESIGNS' cheat and check out the enemy designs.