Making AI Use My Corvette Vehicle Class with New Tech Too |
Hi all ive been modding the data files and adding them to a new mod folder for a new Class of ship (Corvette) that requires a new tech 'Very Ligh Hull Construction' which I modded to come before the first ship tech 'Light Hull Construction'. Well everything works fine for the Human player; and I can research through the New Tech onto the older tech; and design and make Corvette ships how I wanted. Its great.
I also modded the following AI files and added them to the data file in order to hopefully get the AI to use the Corvette ships too:(Script_AI_GlobalConstants_VehicleSizes.txt / Script_AI_GlobalConstants_Tech.txt / Script_AI_GlobalResearch.txt / Script_AI_GlobalSettings.txt / Script_AI_Research.txt) Also they shouldnt have no choice; because they can only build Colony Ships and Corvette ships until they research through 'Very Light Hull Construction. However when i start the game up to test it by making the whole universe visible at all times; the AI only constructs; Space Stations, Sattelites, Mines, Weapon Platforms and Colony Ships. They do not however construct the new corvette ships and they seem stuck on the new ship technology.
I definately put in all the information about the new ship class and technologies; in the same way the default ones are into the text files. Maybe having these in the Data folder is the wrong place? Or maybe I have to make them into scripts and put them there? However even the default versions of 3 of 5 of these scripts dont parse with the Compiler :/ . Im at a loss the AI is just stuck.
Re: Making AI Use My Corvette Vehicle Class with New Tech Too
The AI uses my 180KT Corvette Ships just fine; making ship designs as well as it normall makes frigate designs. However it doesnt wanna use my Escort Class 130KT or my Settler Ship 270KT. I only made it require 3 engines to run too the Escort.
The AI always builds the lowest ship in it's list in GlobalSettings that it can. This is why it doesn't field mixed fleets of ships, but instead churns out only dreadnaughts in the late game.
"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
Download my mod here: GidMod




. Ive checked the mods around and none actually add new unit types (There was 1 mod that did add new types but the AI didnt use them).
Re: Making AI Use My Corvette Vehicle Class with New Tech Too
It doesn't sound like you are compiling the files correctly. The SE wiki has a brief section that includes which scripts should be compiled etc:
http://wiki.spaceempires.net/index.php/AI_and_Script_Editing_%28SEV%29
Also, Script_AI_GlobalResearch.txt is only used during player setup. You'll want to edit Script_AI_Research, which covers the AI's turn to turn research.
Space Empires Depot | SE:V Balance Mod