.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 March 15th, 2003, 10:34 AM
Hrothgar's Avatar

Hrothgar Hrothgar is offline
Corporal
 
Join Date: Feb 2000
Location: Beaver Falls, PA
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Hrothgar is on a distinguished road
Default AI files

I've found info on how to modify everything in SEIV, except the AI files. Probably because they're so simple any moron ought to be able to do it; however, THIS moron is having trouble.

I really would like to hear anything anyone cares to post about the topic, but, specifically, I've run into one problem that I thought even I could figure out on my own--fat chance! I'm trying to make a race, and I wanted to change the default Fleet formation, both so that the AI would use something more effective than "Arrow" [is there anyhing that isn't?], and so that, when I'm playing the race, I wouldn't always have to change the fleet formation/strategy everytime I made a new fleet.

I found the lines in the AI_Fleet file that establish what the default formation and strategy will be, and changed them, but, my race still defaults to "Arrow" and "Optimal Weapons Range." It does so when I'm playing them, and, when I let the AI run them in order to test how they're doing, I'll still see them in Arrow formation whenever there's combat between them and me.

Anyone have any ideas about what I might be doing wrong, or any suggestions about other things involoved in making AI files?

Thanks.
Reply With Quote
  #2  
Old March 15th, 2003, 11:20 AM
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: AI files

Did you set the empire file up to "use AI style from selected race", or use one of the default AI types?
__________________
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 March 15th, 2003, 03:02 PM
DavidG's Avatar

DavidG DavidG is offline
Lieutenant Colonel
 
Join Date: Jan 2002
Location: Dundas, Ontario, Canada
Posts: 1,498
Thanks: 0
Thanked 0 Times in 0 Posts
DavidG is on a distinguished road
Default Re: AI files

Quote:
Originally posted by Hrothgar:
I've found info on how to modify everything in SEIV, except the AI files. Probably because they're so simple any moron ought to be able to do it; however, THIS moron is having trouble.
I suspect the real reason is not that they are simple but that they are comlex. (unless I'm a moron too )
__________________
SE4Modder ver 1.76
or for just the EXESE4Modder EXE Ver 1.76
SE4 Mod List
Reply With Quote
  #4  
Old March 15th, 2003, 03:54 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: AI files

Modding AI is the most difficult task in SE. The best way is to study the files ofthe best TDM races and learn by trials and errors

How to you load your race ? If you generated .emp file before changing fleet.txt file, AI will not use it. Come information is stored with empires. AFAIK it includes settings.txt, strategies.txt, fleets.txt and anger.txt files. Other files are read by AI at the beginning of each turn. If this is the case, scrap .emp file and generate a fresh one. For this purpose start new game with large number of random empires and you playing some other race. In game pulldown check "races" and see if the race in question was chosen. Switch it to your control and save empire. This way it will record modified files.

If this is not the source of the problem, there must be some error in your fleets and/or strategies files.
__________________
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
  #5  
Old March 16th, 2003, 05:34 PM
Hrothgar's Avatar

Hrothgar Hrothgar is offline
Corporal
 
Join Date: Feb 2000
Location: Beaver Falls, PA
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Hrothgar is on a distinguished road
Default Re: AI files

Thanks a lot, gentlemen. I will check both of your suggestions, but I'm almost certain that I altered the AI files after I had already created the emp file. I'll have to fix that.

Thanks again. I appreciate your help.
Reply With Quote
  #6  
Old June 4th, 2003, 06:23 PM
Hrothgar's Avatar

Hrothgar Hrothgar is offline
Corporal
 
Join Date: Feb 2000
Location: Beaver Falls, PA
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Hrothgar is on a distinguished road
Default Re: AI files

I've finally gotten things straightened out [thanks for your help, Imperator Fyron, DavidG, and Oleg], except for one thing--I made a new Research.txt file for my race, but it's not working properly. As far as I've been able to determine, research projects are chosen by the AI in the order I desire, but research points are not divided as I thought they would be. My impression was that, if you indicated 50% as the Tech Area Minimum Percent, that another project could also be added to the research queue AND be researched simultaneously. However, when I check the research queue while the game is in progress with my race under computer control, although two projects will appear on the queue, only the first gets any research points--until it's down to its Last turn, at which point excess research points will flow over to the next research project. Perhaps this is what's supposed to happen, in which case I guess my race is working properly, but, like I said, I thought that assigning 50 as the Minimum percent would allow two projects to each receive half of the current research points. Here's a couple lines from my Research File, in which, if there's an error, I'd really appreciate suggestions:

================================================== =====================================
*BEGIN*
================================================== =====================================

AI State := Exploration, Infrastructure, Prepare for Attack, Attack, Secure Holdings After Attack, Incursion, Prepare for Defense, Defend (Short Term), Defend (Long Term)
Tech Area Name := Applied Research
Tech Area Level := 2
Tech Area Min Percent := 50

AI State := Exploration, Infrastructure, Prepare for Attack, Attack, Secure Holdings After Attack, Incursion, Prepare for Defense, Defend (Short Term), Defend (Long Term)
Tech Area Name := Ship Construction
Tech Area Level := 2
Tech Area Min Percent := 50

If there are no errors, and it's just impossible to get the AI to divide research points among different projects, then I guess I'll have to live with things as they are.

Thanks.
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 01:49 AM.


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