This site is in archival mode. A replacement is being developed. In the meantime, please use the PBW2 Forums for community discussions. The replacement software for this site will use a unified account system with PBW2, and any newly created threads will carry over.
Welcome to Spaceempires.net
Login or Register

Search
Modules
· Content
· Downloads
· Forums
· Game Info
· Image Gallery
· Links
· Shipyards
· Topics
· Staff

User Info
· Welcome, Anonymous
Membership:
· New: Astorre
· New Today: 0
· New Yesterday: 0
· Overall: 3155

People Online:
· Visitors: 188
· Members: 0
· Total: 188

  

Spaceempires.net :: How does the AI determine which component/facility to build? :: View topic
Forum FAQ :: Search :: Memberlist :: Usergroups :: Profile :: Log in to check your private messages :: Log in


How does the AI determine which component/facility to build?

 
Post new topic   Reply to topic    Spaceempires.net Forum Index -> SEIV AI Modding FAQ
View previous topic :: View next topic  
Author Message
Fyron
Galactic Guru


Joined: Aug 04, 2003
Location: CA, USA

PostPosted: Sat Feb 12, 2005 6:33 am    Post subject: How does the AI determine which component/facility to build? Reply with quote

How does the AI determine which component/facility to build?

The AI adds components and facilites by ability. It uses the component/facility that it views as the "most advanced" one available. The algorithms differ based on the type of ability, either a valued ability (such as Combat to Hit Offense Plus) or a valueless ability (such as Ship Bridge). Note that "AI Tag ##" abilities are treated as valueless abilities by the AI. For the sake of simplicity, all further references will be to components, but the exact same rules apply for facilities.

- Adding a valued ability:

Example abilities: Combat To Hit Plus, Resource Generation - Radioactives, Cargo Storage

For abilities with a value, the "most advanced" one is the component with the highest ability value, regardless of tech requirements. If there is a tie, position in the file determines which will be used. Tech requirements, family numbers and roman rumerals are not considered.

Note that weapons are considered valueless abilities and are added based on Weapon Family numbers.

- Adding a valueless ability:

Example abilities: Spaceport, Ship Bridge, AI Tag 01

In this case, "most advanced" means that it requires the largest total number of levels of tech reqs.

Position in the file is only a factor if there is a tie in number of tech reqs and total number of tech levels required. In such a case, the last one in the file is considered the "most advanced".

Example 1:

Name := Comp W
Number of Tech Req := 1
Tech Area Req 1 := Tech A
Tech Level Req 1 := 3

Name := Comp X
Number of Tech Req := 2
Tech Area Req 1 := Tech A
Tech Level Req 1 := 1
Tech Area Req 2 := Tech B
Tech Level Req 2 := 2

There is a tie in total tech levels required. Comp X is "more advanced" because it is last in the file.

Example 2:

Name := Comp Y
Number of Tech Req := 2
Tech Area Req 1 := Tech A
Tech Level Req 1 := 3
Tech Area Req 2 := Tech B
Tech Level Req 2 := 1

Name := Comp Z
Number of Tech Req := 2
Tech Area Req 1 := Tech A
Tech Level Req 1 := 1
Tech Area Req 2 := Tech B
Tech Level Req 2 := 1

Comp Y requires 4 total levels. Comp Z requires 2 total levels. Comp Y is the considered to be the "most advanced."


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Spaceempires.net Forum Index -> SEIV AI Modding FAQ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
All logos and trademarks used on this site, all comments and stories posted for reading, all files hosted for download,
and all art work hosted for viewing are property of their respective owners; all the rest copyright 2003-2010 Nolan Kelly.
Syndicate news: SpaceEmpires.net News RSS Feed - Syndicate forums: SpaceEmpires.net Forums RSS Feed
Page Generation: 0.16 Seconds