.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 12th, 2004, 01:00 PM

brianeyci brianeyci is offline
Sergeant
 
Join Date: Jul 2004
Location: Toronto, Canada
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
brianeyci is on a distinguished road
Default Newbie AI Writing Thread

Please keep this thread clean so I/others can use it later for reference.

1. Where are some good resources to find about writing AI in SE:IV? I looked in the Modding 101 Tutorial and couldn't find it. As well I searched on spaceempires.net and couldn't find it. Searched for AI on the shrapnel forums search, and too many hits came up.

Topic One : AI_Fleets.txt
=========================

Fleets Num Divisions - I intepret this as the number of types of fleets the AI has. I do not see a need to make more than two types of fleets, one single ship fleet, and one max unit fleet.

Fleets Div 1 Max Amount of Ships - For the max unit fleet, max. For the single ship fleet, one.

Fleets Div 1 Max Amount of Planets - Planets can go into fleets?

Fleets Div 1 Num Fleets - For the single unit fleet, max units. For the max unit fleet, perhaps two or three. I do not want the computer making a whole ton of warfleets, perhaps two or three fleets at most. Concentrated firepower. For the single ship fleet - colonizers.

Fleets Percentage of Ships For Fleets - 100%, to take advantage of fleet training.

Fleets Dont Use For Num Turns - 0, so that the AI puts ships into fleets right away.

Fleets Default Formation - Wall

Fleets Default Strategy - Optimal Firing Range

Percentage of Fleets to use for defense - For now, 50%. What does this setting actually accomplish? I was thinking of setting it to 0%, so the AI is incredibly agressive. What would happen if I set this to 0%? Would the AI no longer be able to take advantage of fleet training facilities? How does this interact with the percentage of ships in fleets setting, will colonizers be hanging around "defending" planets if I set the percentage of ships in fleets to 100%?

Thanks,
Brian
Reply With Quote
  #2  
Old October 12th, 2004, 01:48 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Newbie AI Writing Thread

These are the only AI modding resources I am aware of (all by Atrocities):

http://www.astmod.com/BasicModdingTutorial_1.txt
http://www.astmod.com/BasicModdingTutorial2.txt
http://www.astmod.com/DesignCreation_CheatSheet.txt
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #3  
Old October 12th, 2004, 02:02 PM
Aiken's Avatar

Aiken Aiken is offline
Major
 
Join Date: Jan 2004
Location: Taganrog, Russia
Posts: 1,087
Thanks: 0
Thanked 0 Times in 0 Posts
Aiken is on a distinguished road
Default Re: Newbie AI Writing Thread

Fleets Num Divisions := X
Defines the rules for amount of fleets to change through the game.

Example:
Code:
 Fleets Div 1 Max Amount of Ships                                             := 20
Fleets Div 1 Max Amount of Planets := 0
Fleets Div 1 Num Fleets := 2


Starting item. If total amount of ships in empire <= 20 then AI will form 2 fleets per empire. If amount of ships > 20 then go to Fleets Div 2 item.
Code:
 Fleets Div 2 Max Amount of Ships                                             := 60
Fleets Div 2 Max Amount of Planets := 0
Fleets Div 2 Num Fleets := 3


So, if 20<amount of ship<=60 AI will form 3 fleets per empire. Etc.

Last item usually looks like this:
Code:
 Fleets Div X Max Amount of Ships                                             := 100000
Fleets Div X Max Amount of Planets := 0
Fleets Div X Num Fleets := 10


Maximum amount of fleets for your AI will be 10, because total amount of ships will be always below 100000.

You can make make fleet amount dependant of total number of planets in your empire with Fleets Div N Max Amount of Planets := xyz, but then you can't refer to amount of ships item (must use Fleets Div X Max Amount of Ships := 0)

Quote:
Fleets Percentage of Ships For Fleets - 100%, to take advantage of fleet training.

Fleets Dont Use For Num Turns - 0, so that the AI puts ships into fleets right away.
AI doesn't care about training.

Oh, and colonizers have nothing to do with fleets, they don't join them.
Reply With Quote
  #4  
Old October 12th, 2004, 02:05 PM
Ragnarok-X's Avatar

Ragnarok-X Ragnarok-X is offline
Major General
 
Join Date: Jan 2004
Location: Germany / Bielefeld
Posts: 2,035
Thanks: 33
Thanked 18 Times in 12 Posts
Ragnarok-X is an unknown quantity at this point
Default Re: Newbie AI Writing Thread

Well i think this quite important:

When writing "designcreation" files, you must follow a certain order. Put the advanced ships at the top, and low-tech ships at the bottom, the AI will always build the ships at the top, so given you put advanced ships at the bottom of the file, the AI may design them (for example battleships), but it actually will never build them, because it thinks that the "escort" the top is more advanced.

My 2 cent, which took me a LONG time to figure out.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 06:44 PM.


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