Now down to business...
I've added a few units (from other mods) into my own private mod and I've added some into the AI and they work perfectly...however...
There are a few that seem to cause the AI to just stop working.
For example..I'm adding in the Chaos Khorne Terminator models. They work fine ingame if played by me and all is well, but if I add in to the AI and then start a game with AI Chaos vs AI Chaos (using Thud's autoexec) on a 2player map...the first AI player runs and starts building fine, but the 2nd player doesn't appear to even start. No new troops and Slave doesn't build anything.
I've switched on the trace-mode in the utility AI file but it shows nothing for that player as if the AI doesn't even start. I've also checked the Warnings file and it shows nothing unusual (as far as I can see). Oh...and I'm using DoS v3.00, my pc is b1tchingly quick...and I get no CTD's.
I'll try to give as much info as possible...as to where/what I'm adding...
I'm adding these in the correct areas...but I'll collate the entries into each Icode window.
Can you tell me if I've left anything out or if you have any ideas what might be happening?
MANY MANY THANKS in advance!
The Haze ---- (Stuff I'm adding in follows)
File: chaosunits.ai
UnitStrengths.chaos_squad_khorne_terminators = 105 { name = "Khorne Terminators", sbp_name = "chaos_squad_khorne_terminator", ebp_name = "chaos_khorne_terminator", class = UnitStatsAI.UC_HeavyInfantryHigh, rating = 8, potential = { { name = "space_marine_storm_bolter", effectiveness = GenerateUnitEffectiveness(5.9,5.7,5.5,5.7,5.6,5.3,2.9,1.8,4.8,1.8,3.1,4.1,2.7,2.9), range = UnitStatsAI.RT_Ranged, }, { name = "chaos_multi_melta", effectiveness = GenerateUnitEffectiveness(5.9,5.7,5.5,5.7,5.6,5.7,5.9,4.8,5.8,1.8,3.1,5.1,5.7,4.9), range = UnitStatsAI.RT_ShortRanged, }, { name = "chaos_assault_cannon", effectiveness = GenerateUnitEffectiveness(6.4,5.9,5.9,5.9,5.9,5.3,2.9,1.8,4.8,1.8,3.1,4.1,2.7,2.9), range = UnitStatsAI.RT_Ranged, }, } },
File: chaosbuildbasestrategy.ai
(under the bit about returning squad-cap)
elseif (sSquadName == "chaos_squad_khorne_terminator") then return 3, 0
File: chaosstrategyinfo.ai
(a couple of entries...the first in the build strategies and the 2nd in the Squad Limits)
{ 3, 240, 100, 0, 1, "Unit", "chaos_squad_khorne_terminator" }, chaos_squad_chaos_terminator = 1,
Edited by TheHaze, 03 December 2008 - 09:13 AM.