.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 September 11th, 2004, 04:27 PM

magnate magnate is offline
Sergeant
 
Join Date: Mar 2004
Location: London, UK
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
magnate is on a distinguished road
Default Any research mods?

Hi All,

I've played a few games now, and experimented with editing the data files (Settings.txt and TechArea.txt). I can set all the starting tech levels to 0, start a game with 100k resources (exactly enough to buy Applied Research I) and have exactly the game I want - no facilities pre-built on the homeworld.

Trouble is, the AI is too stupid to spend its 100k RPs on Research I (I presume it spends them on ship construction and stuff instead), so it never gets off the ground.

If I start with Research I already I have to live with 15 pre-built research centres on my homeworld, but that's ok. Even then though, the AI won't tear down any facilities to build anything sensible like a spaceport or a shipyard.

So, are there any mods out there that scale back the starting position, and rework the AI to deal with it? I'd be very grateful for any pointers, before I start trying to sort it out myself ....

CC
__________________
There will be poor always, pathetically struggling - look at the good things you've got ...
-- from "Jesus Christ Superstar"
Reply With Quote
  #2  
Old September 11th, 2004, 04:43 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: Any research mods?

Check out the SEIV Modding 101 Tutorial for a good introduction to modding SE4. It does not explicitly cover AI modding, but it covers the data files.

You can use the mod you have made now. Edit the AI Research files for each AI. They are located in the Pictures\Races folders. There is also the default research file in the AI folder, which is used by races without AI files and by neutral races. I recommend that you do not modify the stock data or AI files. Instead, create a mod folder, such as MyMod. Duplicate the stock game file structure in there, for the folders that contain files that you modify. You only need the modified files in the mod folder, except for the Data folder, which you need most of the files. Just make a mod folder and copy the Data folder (including the folder) into it. Create a Pictures folder, then a Races folder inside it. Create folder for each of the races in the stock game, 20 in total. Copy the AI files you will be modding into the mod folder, and modify them.

As for getting the AI to research Applied Research first, you will want to add something like this as the first entry in each AI_Research file:

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 := 1
Tech Area Min Percent := 100

This will cause the AI to select Applied Research as it's first tech project.

However... it is not a good idea to not have the AI start with a SY facility. As you have noticed, they do not scrap facilities. If they fill up their homeworld with research centers, they will never be able to build a space yard, thus never any ships or bases.

Further, if the AI does not start with a space port, it might never build one if it fills the homeworld with research centers. You might want to make them research the technology needed for spaceports first, before Applied Research. A planet filled with research centers is useless if they have no space port.

With no homeworld mineral miners, it might be a good idea to change the base empire resource production levels in Settings.txt. These settings determine how many resources an empire produces if it has no production of a particular resource, whether from facilities or components:

Minimum Empire Minerals Generation := 200
Minimum Empire Organics Generation := 200
Minimum Empire Radioactives Generation := 200

If the empire generates 1 mineral on it's own (eg: from a facility), the minimum minerals generation value is not applied and the empire gains 1 mineral per turn instead of 200.

Setting the minimum generation values to 2000 instead of 200 will allow the AI to make enough resources to build SYs, space ports, and research centers, as well as a few colony ships, before it researches any resource technologies.
__________________
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 September 12th, 2004, 02:58 PM

magnate magnate is offline
Sergeant
 
Join Date: Mar 2004
Location: London, UK
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
magnate is on a distinguished road
Default Re: Any research mods?

Thanks muchly for the reply - I will check out the tutorial. From your message it looks non-trivial but I'll give it a go. I guess the ideal solution would be to get the AI to build a shipyard, a spaceport, then research centres and mining. Would it think to research resupply on its own? That's another crippling setback if not.

Anyway, I'll have a look into it and get back to you. Thanks again,

CC
__________________
There will be poor always, pathetically struggling - look at the good things you've got ...
-- from "Jesus Christ Superstar"
Reply With Quote
  #4  
Old September 12th, 2004, 03:02 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: Any research mods?

The AI does not think about what to research. It blindly follows the appropriate AI_Research file, researching technologies in the order they appear in the file. You have to program it to research the appropriate technologies. It is quite trivial to add a tech area or three to the beginning of each file, just rather tedious...
__________________
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
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 01:57 PM.


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