PDA

View Full Version : ai not making ship designs


spoon
November 14th, 2003, 08:32 PM
I'm trying to track down why the ai isn't designing ships for a mod I'm working on. I notice that if I greatly increase the tonnage for, say, the escort, the ai won't make designs for it anymore. For example, I have this entry in VehicleSize.txt:

Name := Escort
Short Name := Escort
Description :=
Code := ES
Primary Bitmap Name := Escort
Alternate Bitmap Name := Escort
Vehicle Type := Ship
Tonnage := 2000
Cost Minerals := 1000
Cost Organics := 500
Cost Radioactives := 0
Engines Per Move := 1
Number of Tech Req := 1
Tech Area Req 1 := Ship Construction
Tech Level Req 1 := 1
Number of Abilities := 0
Requirement Must Have Bridge := True
Requirement Can Have Aux Con := True
Requirement Min Life Support := 0
Requirement Min Crew Quarters := 0
Requirement Uses Engines := True
Requirement Max Engines := 6
Requirement Pct Fighter Bays := 0
Requirement Pct Colony Mods := 0
Requirement Pct Cargo := 0

Now, if I change the Tonnage entry back to 150, then the ai makes the design as normal. At 2000, it doesn't make any designs. I'm using the abbidon for this, and I have these settings in abbidon_ai_designcreation.txt:

Name := Monkeys
Design Type := Attack Ship
Vehicle Type := Ship
Default Strategy := Optimal Firing Range
Size Minimum Tonnage := 10
Size Maximum Tonnage := 5000
Num Must Have At Least 1 Ability := 1
Must Have Ability 1 := Weapon
Minimum Speed := 4
Desired Speed := 6
Majority Weapon Family Pick 1 := 34
Majority Weapon Family Pick 2 := 1
Majority Weapon Family Pick 3 := 25
Majority Weapon Family Pick 4 := 0
Majority Weapon Family Pick 5 := 0
Secondary Weapon Family Pick 1 := 35
Secondary Weapon Family Pick 2 := 0
Secondary Weapon Family Pick 3 := 0
Secondary Weapon Family Pick 4 := 0
Secondary Weapon Family Pick 5 := 0
Shields Spaces Per One := 0
Armor Spaces Per One := 0
Majority Comp Spaces Per One := 10000
Majority Comp Ability := Weapon
Secondary Comp Spaces Per One := 10000
Secondary Comp Ability := Weapon
Num Misc Abilities := 0

Again, if the tonnage of the Escort is set back to 150, all is fine. Change it to 2000, and I get no designs. (that bit about monkeys in the Name field was to check to make sure I could change DefaultDesingTypes.txt -- which didn't cause any troubles...)

Any ideas what might be causing this?

[ November 14, 2003, 18:33: Message edited by: spoon ]

Rollo
November 14th, 2003, 10:36 PM
check the 'Max Ship Size Tonnage From Start 1 Amount' in ..._AI_Settings.txt file

spoon
November 14th, 2003, 10:48 PM
You rule, thanks!

spoon
November 14th, 2003, 11:06 PM
Curious, though, why would you want "Max Ship Size Tonnage ..." set to anything but 0?

[ November 14, 2003, 21:07: Message edited by: spoon ]

oleg
November 15th, 2003, 01:41 AM
Originally posted by spoon:
Curious, though, why would you want "Max Ship Size Tonnage ..." set to anything but 0? <font size="2" face="sans-serif, arial, verdana">It is usefull in max-out games - AI will build largest ships available from the start and get stuck if it is set to 0.

Rollo
November 15th, 2003, 01:41 AM
It can be a useful setting for full tech starts. So the AI builds a few smaller ships before it starts building DN, Basehips and stuff like that. Good not to overload the queues with expensive ships for initial scouting and colonization.

oleg
November 15th, 2003, 01:42 AM
I beat you to a millisecond http://forum.shrapnelgames.com/images/icons/tongue.gif http://forum.shrapnelgames.com/images/icons/icon7.gif

Rollo
November 15th, 2003, 01:42 AM
LOL, curse you Oleg http://forum.shrapnelgames.com/images/icons/icon10.gif

Rollo
November 15th, 2003, 01:43 AM
aaaargh, he did it again....