.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 October 13th, 2002, 04:37 PM

trooper trooper is offline
First Lieutenant
 
Join Date: Sep 2002
Location: Cannes, France
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
trooper is on a distinguished road
Default Advanced IA race moddings tricks (long)

I'm just trying to create an fearly good IA.
And I'm stuck on many points, perhaps you can help, if you're a modding specialist.
(NB : I'm just modfying race files, not general config files, to have a fully compatible race).

about AI_designcreation.txt (it's the main mystery for me !)

1) Are all "spaces per one" based on the same scale ?

Shields Spaces Per One := 250
Armor Spaces Per One := 1200
Majority Comp Spaces Per One := 1200
Majority Comp Ability := Weapon
Secondary Comp Spaces Per One := 0
Secondary Comp Ability :=
Num Misc Abilities := 11
Misc Ability 1 Name := Point-Defense
Misc Ability 1 Spaces Per One := 400
Misc Ability 2 Name := Cloak Level
Misc Ability 2 Spaces Per One := 10000
Misc Ability 3 Name := Quantum Reactor
Misc Ability 3 Spaces Per One := 10000
Misc Ability 4 Name := Combat To Hit Defense Plus
Misc Ability 4 Spaces Per One := 10000
Misc Ability 5 Name := Combat To Hit Offense Plus
Misc Ability 5 Spaces Per One := 10000
Misc Ability 6 Name := Multiplex Tracking
Misc Ability 6 Spaces Per One := 10000

10000 spaces for a multiplex tracking seems a lot, when only 1200 spaces is left for weapons...
Or did I misunderstand the whole thing and 10000 is eight times less then 1200 ?

2) Can I create two types of fighters ? (seeking fighters and direct fire fighters).
Seems that there must be only one design per design type (the older are obsolete).

3) I couldn't manage to build a carrier with cargo space and missile with that design :

Name := Carrier
Design Type := Carrier
Vehicle Type := Ship
Default Strategy := Don't Get Hurt
Size Minimum Tonnage := 10
Size Maximum Tonnage := 5000
Num Must Have At Least 1 Ability := 1
Must Have Ability 1 := Launch/Recover Fighters
Minimum Speed := 3
Desired Speed := 6
Majority Weapon Family Pick 1 := 2
Majority Weapon Family Pick 2 := 0
Majority Weapon Family Pick 3 := 0
Majority Weapon Family Pick 4 := 0
Majority Weapon Family Pick 5 := 0
Secondary Weapon Family Pick 1 := 2
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 := 50
Armor Spaces Per One := 200
Majority Comp Spaces Per One := 400
Majority Comp Ability := Launch/Recover Fighters
Secondary Comp Spaces Per One := 200
Secondary Comp Ability := Weapon
Num Misc Abilities := 8
Misc Ability 1 Name := Quantum Reactor
Misc Ability 1 Spaces Per One := 10000
Misc Ability 2 Name := Cloak Level
Misc Ability 2 Spaces Per One := 8000
Misc Ability 3 Name := Point-Defense
Misc Ability 3 Spaces Per One := 800
Misc Ability 4 Name := Shield Regeneration
Misc Ability 4 Spaces Per One := 300
Misc Ability 5 Name := Combat To Hit Defense Plus
Misc Ability 5 Spaces Per One := 8000
Misc Ability 6 Name := Emergency Resupply
Misc Ability 6 Spaces Per One := 800
Misc Ability 7 Name := Supply Storage
Misc Ability 7 Spaces Per One := 1000
Misc Ability 8 Name := Cargo Storage
Misc Ability 8 Spaces Per One := 300

4) Strategy : can I prenvent my IA to send isolated ships agains ennemy planets and fleets ?
How can I force it to perform only group attacks ? (always more ships in my fleet then the ennemy, gnark, gnark...)

5) Strategy bis : can non-armed ships (colony, transport) flee from ennemy ships, instead of trying to attack them ?

that all for now, thanks...
Reply With Quote
  #2  
Old October 13th, 2002, 06:17 PM

trooper trooper is offline
First Lieutenant
 
Join Date: Sep 2002
Location: Cannes, France
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
trooper is on a distinguished road
Default Re: Advanced IA race moddings tricks (long)

and I forgot this :

6) my custom race AI is used to open dozen of intelligence projects at a time ! any way to prevent that ?

7) AI states in construction config files :

When are they active ? Are they global or local to a planet or a system ?

Exploration : before any new planet is colonized ?

Infrastructure : peace time, no potential ennmemy ?

Prepare for Attack : difference with below ?

Attack : preparing a planet attack (how many turns before ?)

Secure Holdings After Attack : how many turns after an attack ?

Incursion : ???

Prepare for Defense : ennemy fleet in the neighbourhood ?

Defend (Short Term) : ?

Defend (Long Term) : ??

Not Connected : ???

(lot of interrogation marks, sorry !!!)
Reply With Quote
  #3  
Old October 13th, 2002, 07:08 PM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: Advanced IA race moddings tricks (long)

"10000 spaces for a multiplex tracking seems a lot, when only 1200 spaces is left for weapons...
Or did I misunderstand the whole thing and 10000 is eight times less then 1200"

With spaces per one, LOWER number means more components. With those numbers you'd get many more weapons than multiplex.

Take the ship size, and divide by the spaces per one value, then round up. That's the number of components the AI will try to put on that ship.

Phoenix-D
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
  #4  
Old October 13th, 2002, 10:32 PM

trooper trooper is offline
First Lieutenant
 
Join Date: Sep 2002
Location: Cannes, France
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
trooper is on a distinguished road
Default Re: Advanced IA race moddings tricks (long)



Ahhhhhhhhh... that's a interessant point ! I think I've got to go back to my designvehicule files...
Reply With Quote
  #5  
Old October 14th, 2002, 05:35 PM
oleg's Avatar

oleg oleg is offline
Lieutenant General
 
Join Date: Jan 2001
Location: Oxford, UK
Posts: 2,592
Thanks: 0
Thanked 0 Times in 0 Posts
oleg is on a distinguished road
Default Re: Advanced IA race moddings tricks (long)

Quote:
Originally posted by trooper:
I'm just trying to create an fearly good IA.
And I'm stuck on many points, perhaps you can help, if you're a modding specialist.
(NB : I'm just modfying race files, not general config files, to have a fully compatible race).

about AI_designcreation.txt (it's the main mystery for me !)

1) Are all "spaces per one" based on the same scale ?

......

2) Can I create two types of fighters ? (seeking fighters and direct fire fighters).
Seems that there must be only one design per design type (the older are obsolete).

3) I couldn't manage to build a carrier with cargo space and missile with that design :

4) Strategy : can I prenvent my IA to send isolated ships agains ennemy planets and fleets ?
How can I force it to perform only group attacks ? (always more ships in my fleet then the ennemy, gnark, gnark...)

5) Strategy bis : can non-armed ships (colony, transport) flee from ennemy ships, instead of trying to attack them ?

that all for now, thanks...
Phoenix-D already answered 1) - it works completely different than you think
"spaces per one = 250" means AI will put one component per 250k of ship tonnage. For example two on cruiser hull. Very large numbers for some components, like multiplex or combat senseors gurantee there won't be redundancy even for largest ships.

2) Yes, you can but only if you use SEIV Gold - make two designes with different names, say "interceptor" and "bomber". In construction_vehicles.txt file replace calls for "fighter" by "interceptor" and/or "bomber", up to you taste. Just remember that "must have" is cumulative for all designs of one type (here "fighter")

3) Must have ability = launch/recover fighters will automaticaly fill 50% of carrier hull with fighter bays. If you want space left for other components, make "majority component = lau./rec/fighters" space per one = some big number (it will add only one extra FB). make "secondary component = weapon" , put some reasonable number in "space per one" and assign CSM/PM numbers for "choices".

4) It is regulated in "AI_settings". Consult some TDM races, like Rage, Pyrochette, EA and others.

5)Strategy "do not get hurt" will do just that.
__________________
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets. - Voltaire
Reply With Quote
  #6  
Old October 14th, 2002, 07:24 PM

Atraikius Atraikius is offline
Second Lieutenant
 
Join Date: Mar 2001
Location: Elk River, MN, USA
Posts: 472
Thanks: 0
Thanked 0 Times in 0 Posts
Atraikius is on a distinguished road
Default Re: Advanced IA race moddings tricks (long)

Quote:
3) Must have ability = launch/recover fighters will automaticaly fill 50% of carrier hull with fighter bays. If you want space left for other components, make "majority component = lau./rec/fighters" space per one = some big number (it will add only one extra FB). make "secondary component = weapon" , put some reasonable number in "space per one" and assign CSM/PM numbers for "choices".
No - the Num Must Have At Least 1 Ability := 1, and the Must Have Ability 1 := Launch/Recover Fighters instruct the AI that the ship has 1 ability it must have and that the ability is Launch/Recover Fighters. That will place a total of 1 Fighter bay on the ship. What instructs the AI on what type of hull to use is the Majority Component ability - Cargo will select a transport and add cargo bays until the 50% requirement is met, Launch/Recover Fighters will result in a carrier, and Colonize types will result in a colony ship. For example, if you wish to construct a carrier using a battle cruiser hull try:

Name := Battle Cruiser Carrier
Design Type := Carrier
Vehicle Type := Ship
Default Strategy := Maximum Weapons Range
Size Minimum Tonnage := 550
Size Maximum Tonnage := 650
Num Must Have At Least 1 Ability := 8
Must Have Ability 1 := Launch/Recover Fighters
Must Have Ability 2 := Launch/Recover Fighters
Must Have Ability 3 := Launch/Recover Fighters
Must Have Ability 4 := Launch/Recover Fighters
Must Have Ability 5 := Launch/Recover Fighters
Must Have Ability 6 := Cargo Storage
Must Have Ability 7 := Cargo Storage
Must Have Ability 8 := Cargo Storage
Minimum Speed := 3
Desired Speed := 6
Majority Weapon Family Pick 1 := 2
Majority Weapon Family Pick 2 := 0
Majority Weapon Family Pick 3 := 0
Majority Weapon Family Pick 4 := 0
Majority Weapon Family Pick 5 := 0
Secondary Weapon Family Pick 1 := 1
Secondary Weapon Family Pick 2 := 25
Secondary Weapon Family Pick 3 := 0
Secondary Weapon Family Pick 4 := 0
Secondary Weapon Family Pick 5 := 0
Shields Spaces Per One := 10000
Armor Spaces Per One := 0
Majority Comp Spaces Per One := 300
Majority Comp Ability := Weapon
Secondary Comp Spaces Per One := 600
Secondary Comp Ability := Weapon
Num Misc Abilities := 5
Misc Ability 1 Name := Quantum Reactor
Misc Ability 1 Spaces Per One := 10000
Misc Ability 2 Name := Cloak Level
Misc Ability 2 Spaces Per One := 8000
Misc Ability 3 Name := Point-Defense
Misc Ability 3 Spaces Per One := 300
Misc Ability 4 Name := Combat To Hit Defense Plus
Misc Ability 4 Spaces Per One := 10000
Misc Ability 5 Name := Combat To Hit Offense Plus
Misc Ability 5 Spaces Per One := 10000

For the Carrier listed in 3)
- Majority Weapon Family Pick 1 does not need a weapon listed as the majority ability is Launch/Recover Fighters.
- Shield Spaces per 1 set at 50 instructs the AI to try to place 16 Shields on a Light Carrier, 20 on a Carrier, and 24 on a Heavy Carrier - there will be no room left for a weapon or any large misc items. The carrier designed will have the minimum number of carrier bays (+1 for the Must have), and then fill up with shields.
- The line for armor will work like the one for shields - you would be better off using a value of zero on this line, and adding an extra misc ability at the end calling for the ability armor.
- The Majority and Secondary abilities are going to call for an additional 2 fighter bays beyond what is already there and 4 missiles on a light carrier.(neet little trick with the majority ability is using zero, as it is fequently already called for in the Must have area, and in this case is used for to fill 50% of the ship - with a value of zero, no more will be added while going through the design, but if any additional space is left at the end, the majority ability will be added to fill up the remaining space)
- By the time that the AI gets to adding cargo, there will be no space left for it. The simplest way to ensure that cargo bays are placed ont he design is to increase the number of 'Must Haves' to 3, and add two more 'must have' lines each calling for cargo storage.

Try looking at the DesignCreation files for the Orks, Zorians, and my Version of the Krill for examples of what you are attempting.

2) - As said, if you are using Gold, give each a different name with the design type Fighter. The 'Must Have' does NOT apply to all designs of the same type, only the specific design it is listed in. However, you will need to make sure that you change the ConstructVehicle file to call out the names you use instead of just calling for Fighter - otherwise it will only build the latest of the designs.

7) - It is rather complicated on how the AI states fit in, the best thing to do is to simply use the TDM race that fits what you are ,looking for the closest as an example to work from, and adust the file from there.

4) & 5) - Best thing to do is to look at the files in several of the TDM races (good idea to do over-all if your trying to create an AI) - For more creative ideas on how to make the AI do more odd things I would recommend looking at the AI's by MB, Rollo, and myself (no shameless plug intended) - Those AI's tend to take advantage of, use, and manipulate the AI's little quirks the most.
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 05:52 PM.


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