Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 3 users and 141 guests online.

Online users

  • MisterBenn
  • TakAhLah
  • inertiatic

Languages

  • English English
  • French French

Browse archives

« Septembre 2008  
Lu Ma Me Je Ve Sa Di
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Home » news » forums » Space Empires V » Space Empires V General

AI adaptation

Submitted by konrad on Mon, 2006-12-04 17:14. Space Empires V General

I've made some changes to how the tech tree
to reflect the game style I want to play.

as follows

1) dupled the cost of colony types (to make it harder to colonize multip[le planet types)

2) moved the Open Warp point component to
Stellar manipulation L5 (not 53) and moved
close warp point from level 30 to 10.
I prefer to start the game with no warp points, but have reasonably early access to
them.

is the research AI capable of handling these sorts of changes or will the computer controlled empires do silly things like research Settellar manipulation to level 35 anyway.

‹ Graviton hellbore Ship upgrade with a bunch of numbers. ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
maran's picture

1, What did you alter to

Submitted by maran on Mon, 2006-12-04 19:03.

1, What did you alter to double the colony types? The Script_AI_Colonytype.txt? or just the strings in the Script_AI_construction.txt? The Get_Ground_Constructions_Percentages bit?

That is what controls how the AI classifies colonies. Myself and Kwok have been doing work on it, he's got some great code in the source code for his balance mod. Take a look at it Smiling

2, From my limited experience with the AI's tech tree. Its the last thing I am looking at, so I am just getting started with it. But I am fairly certain that the AI research's things based on an 'age' like system, it will research to the tech levels set then move on to the next 'age' and do the tech levels set there.

So you moving different rewards or technologies around the tech levels will not affect its choice of what to research, it simply won't get the reward it should do when it gets there.

-EDIT
I should add you can alter this in the Script_AI_Research.txt files, its what I am working on now anyway.

---

Designing an advanced, diplomatic AI + shipset
Consult the great SEV Wiki

» login or register to post comments
Mod Designer

I altered the base cost of

Submitted by konrad on Mon, 2006-12-04 19:51.

I altered the base cost of the technology in

TechAreas.TXT to set the cost of colonies (globally)

I alter the requirements of the component in
Components.txt to make the Warp Point opener and Closers
appear earlier.

I read on this forum that the AI has been coded to have
different research priorities in a no warp point game,
any idea how the configuration files determin this ?

» login or register to post comments

Script file for No Warp Point

Submitted by raynor on Mon, 2006-12-04 20:02.

Take a look in the following directory:

Utilities\ScriptParser\Se5EmpireScripts

Look at the file Script_AI_Research.txt

Search for 'AI_STATE_NOT_CONNECTED'

if (Sys_Get_AI_State(sys_long_Player_ID) = AI_STATE_NOT_CONNECTED) then
call Add_Tech_Area("Rock Planet Colonization", 1)
call Add_Tech_Area("Ice Planet Colonization", 1)
call Add_Tech_Area("Gas Giant Colonization", 1)
call Add_Tech_Area("Planetary Engineering", 2)
call Add_Tech_Area("Astrophysics", 2)
call Add_Tech_Area("Stellar Manipulation", 35)
call Add_Tech_Area("Planet Utilization", 100)
endif

» login or register to post comments
maran's picture

Damm I was formulating that

Submitted by maran on Mon, 2006-12-04 20:20.

Damm I was formulating that answer! Oh well here it is anyway...

I see what you mean, well yes tech area's will work as you intend, it will slow down research to reach that tech level.

It will have varying effects on AI's depending on how they set their research goals, could stall some where as others might not notice if they don't go for it early.

As to your second question I did a bit of poking around and In Script_AI_Research.txt it uses one of the AI states to determine what it will do next, for any modders this is a great way to set a lot of things:

// Add_Research_Items

if (Sys_Get_AI_State(sys_long_Player_ID) = AI_STATE_NOT_CONNECTED) then

call Add_Tech_Area("Astrophysics", 2)
call Add_Tech_Area("Stellar Manipulation", 35)
call Add_Tech_Area("Planet Utilization", 100)

The AI_State_Not_Connected means that the AI has no access to colonisable planets, for whatever reason and isn't attacking, defending or building infrastructure. (Can't remember the exact order but its irrelevant to the point)

This code seems to force the AI to set its desired level of stellar Manipulation really high, I am pretty certain the above has all thats needed for warp points to be created correct? If not its probably in the other things it force sets.

Now this will research this technology but whether the AI builds it or not is a whole other matter, set up in the Script_AI_designcreation.txt, Script_AI_globalsetting.txt files and possibly the construction files.

Incidentally I actually could improve my AI code slightly looking at it. I can do this by adding this not connected state, to increase the build priority of a warp point opening ship, when the AI needs it.

---

Designing an advanced, diplomatic AI + shipset
Consult the great SEV Wiki

» login or register to post comments
Captain Kwok's picture
Mod Designer

Shh...

Submitted by Captain Kwok on Mon, 2006-12-04 23:21.

Don't tell anyone the AI can't use any of the stellar manipulation techs...

-----

Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Mod Designer

The AI dose use warp

Submitted by konrad on Tue, 2006-12-05 00:36.

The AI dose use warp Openers

How Do I know:

I tried a standard game with No Warp Points.

After many turns (while I was still floundering about
looking for warp openers the hard way) I noticed that
some that combat was occuring during some other players
turns So I can only surmize that at least one of the
other races did have warp openers and where begining to
explore the galaxy.

» login or register to post comments
Captain Kwok's picture
Mod Designer

Not likely...

Submitted by Captain Kwok on Tue, 2006-12-05 00:41.

Well from the scripts there is nothing that tells the AI where or how to use any of the SM techs - they're currently blank functions. It's possible a rebellion event or something arose...

-----

Space Empires Depot | SE:V Balance Mod

» login or register to post comments
maran's picture

Pretty easy to check, just

Submitted by maran on Tue, 2006-12-05 04:17.

Pretty easy to check, just go to the menu select players and enter the master password. Unselect the player in question and take a peek if anyone has any connections or any orders to create warp points. This may hurt it from a gameplay point of view but at least it will tell you if its worth playing in.

---

Designing an advanced, diplomatic AI + shipset
Consult the great SEV Wiki

» login or register to post comments

lol

Submitted by DimmurWyrd on Wed, 2006-12-06 22:48.

I know that in no warp point games in SE:IV that there was a ship gets warped to another system special that was putting AI ships into my systems but that otherwise the AI would never use warp point openers (it would use star destroyers and planet killers though just very very rarely.)

not that it matters much for SE:V except that I think that is why combat can occur even with no warp points and without the AI opening any.

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Creating pictures/images for shipyards/mods
  • Troop invasion repeating all over again
  • Babylon 5 Wars SEV Mod Update
  • Is Space Empires the most complex 4x game ever?
  • Can't Open Mesh Files

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • New PBEM Game
  • Alliances.
  • Ship not showing in combat sim
  • How to play Online
  • Space Empires V Editor 1.0.0
(c) Strategy First, Inc. All rights reserved.