.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old July 15th, 2003, 06:22 AM
Chronon's Avatar

Chronon Chronon is offline
Sergeant
 
Join Date: Sep 2002
Location: Connecticut, USA
Posts: 252
Thanks: 0
Thanked 0 Times in 0 Posts
Chronon is on a distinguished road
Default AI Modding: I have no clue, please help!

I'm sure this has been asked a million times before, so thanks for your patience, but I could use a little help with modding an AI for my Verduran race style.

I am having a problem getting PDC on the Destroyer. It just won't put any on board. Here's my small ship text (I'm using the TDM Modpack):

Name := Attack Ship
Design Type := Attack Ship
Vehicle Type := Ship
Default Strategy := Maximum Weapons Range
Size Minimum Tonnage := 10
Size Maximum Tonnage := 300
Num Must Have At Least 1 Ability := 1
Must Have Ability 1 := Weapon
Minimum Speed := 4
Desired Speed := 6
Majority Weapon Family Pick 1 := 28
Majority Weapon Family Pick 2 := 2
Majority Weapon Family Pick 3 := 0
Majority Weapon Family Pick 4 := 0
Majority Weapon Family Pick 5 := 0
Secondary Weapon Family Pick 1 := 0
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 := 150
Majority Comp Ability := Weapon
Secondary Comp Spaces Per One := 0
Secondary Comp Ability :=
Num Misc Abilities := 6
Misc Ability 1 Name := Armor Regeneration
Misc Ability 1 Spaces Per One := 120
Misc Ability 2 Name := Supply Storage
Misc Ability 2 Spaces Per One := 10000
Misc Ability 3 Name := Combat To Hit Defense Plus
Misc Ability 3 Spaces Per One := 10000
Misc Ability 4 Name := Self-Destruct
Misc Ability 4 Spaces Per One := 10000
Misc Ability 5 Name := Extra Movement Generation
Misc Ability 5 Spaces Per One := 10000
Misc Ability 6 Name := Point-Defense
Misc Ability 6 Spaces Per One := 200

What should I change to make it work?

PS. I don't think I understand what the "spaces per one" number means. I understand that 10000 will get you exactly one component of that type. But I don't understand how the other numbers work. If someone could explain this in more detail, I would really appreciate it. Thanks for your help!

PPS. FYI, This is an organic race.

[ July 15, 2003, 05:24: Message edited by: Chronon ]
Reply With Quote
  #2  
Old July 15th, 2003, 06:57 AM

TNZ TNZ is offline
Sergeant
 
Join Date: Jul 2003
Location: New Zealand
Posts: 252
Thanks: 0
Thanked 0 Times in 0 Posts
TNZ is on a distinguished road
Default Re: AI Modding: I have no clue, please help!

Is PDC a Point-Defense Cannon?
Reply With Quote
  #3  
Old July 15th, 2003, 09:12 AM

TNZ TNZ is offline
Sergeant
 
Join Date: Jul 2003
Location: New Zealand
Posts: 252
Thanks: 0
Thanked 0 Times in 0 Posts
TNZ is on a distinguished road
Default Re: AI Modding: I have no clue, please help!

Seems the AI works its way down adding components until it finishes or it runs out of room.

[ July 16, 2003, 05:29: Message edited by: TNZ ]
Reply With Quote
  #4  
Old July 15th, 2003, 09:58 AM

Taera Taera is offline
Colonel
 
Join Date: Jul 2001
Location: Calgary, AB, Canada
Posts: 1,743
Thanks: 0
Thanked 0 Times in 0 Posts
Taera is on a distinguished road
Default Re: AI Modding: I have no clue, please help!

point defense is misc ability. Here's a line from my AI:
Num Misc Abilities := 7
Misc Ability 1 Name := Armor Regeneration
Misc Ability 1 Spaces Per One := 300
Misc Ability 2 Name := Point-Defense
Misc Ability 2 Spaces Per One := 200 (....)
__________________
Let the game begin!
Green bug from outa space!
Reply With Quote
  #5  
Old July 15th, 2003, 10:01 AM

Taera Taera is offline
Colonel
 
Join Date: Jul 2001
Location: Calgary, AB, Canada
Posts: 1,743
Thanks: 0
Thanked 0 Times in 0 Posts
Taera is on a distinguished road
Default Re: AI Modding: I have no clue, please help!

and realy, the Spaces Per One, what does it mean?
__________________
Let the game begin!
Green bug from outa space!
Reply With Quote
  #6  
Old July 15th, 2003, 10:45 AM
Q's Avatar

Q Q is offline
Colonel
 
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
Q is on a distinguished road
Default Re: AI Modding: I have no clue, please help!

It defines how many components of this type are added according to the ship size. In you example of a destroyer (300kT):

Misc Ability 6 Name := Point-Defense
Misc Ability 6 Spaces Per One := 200

would mean that 2 PDC will be added (300 : 200 = 1.5) because it is always rounded up to the next integer.

Therefore your line:

Misc Ability 1 Name := Armor Regeneration
Misc Ability 1 Spaces Per One := 120

will give you 3 organic armors in your destroyer (300 : 120 = 2.5, rounded up to 3).

Because your PDC are at the end of the list I think there is simple not enough space on the ship to include one. I usually add organic armor at the end of the list to fill up the space.

Hope that helps.

[ July 15, 2003, 09:46: Message edited by: Q ]
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:29 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.