.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
World Supremacy- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old March 5th, 2004, 12:14 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default MODDING Help Needed

I need help in understanding how the Race_AI_DesignCreation file works.

Specifically how this entry works.

(example)
Misc Ability 1 Name := Extra Movement Generation
Misc Ability 1 Spaces Per One := 10000
Misc Ability 2 Name := Cloak Level
Misc Ability 2 Spaces Per One := 10000
Misc Ability 3 Name := Armor Regeneration
Misc Ability 3 Spaces Per One := 100

How do the bolded entries work exactly? How does the value (say 10000) effect how, how many, the AI will add of this component?

Fyron gave me an example, if the abilities value is 1000 then a ship would have to be 1000kt to have this ability added. This does not make sense to me as the AI adds these abilities to much smaller ships.

I suspect, and I could be horribly wrong, that the AI will add just ONE of these components if the value is equal to the ship size, however, if the ship size is larger than value then the AI will add another.
(Value = 1000, ship Kt = 500 - AI adds one component 0 to 1000 = 1 component)
(Value = 1000, ship Kt = 2000 - AI add two components. 0 to 2000 = 2)

Or two to one.

Now say the values are much lower.

Value = 50, Ship Kt = 500. how many of these components will the AI add? Ten?

Basically I just need the Value portion (in bold) explained to me clearly. Thanks.

[ March 05, 2004, 00:17: Message edited by: Atrocities ]
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #2  
Old March 5th, 2004, 12:26 AM
Krsqk's Avatar

Krsqk Krsqk is offline
Lieutenant Colonel
 
Join Date: Jul 2001
Location: Orlando, FL
Posts: 1,259
Thanks: 0
Thanked 0 Times in 0 Posts
Krsqk is on a distinguished road
Default Re: MODDING Help Needed

The formula is:

HS/SPO

where HS = the hull size under consideration, SPO = the Spaces Per One entry. Any fractions are rounded UP to the next whole number.
__________________
The Unpronounceable Krsqk

"Well, sir, at the moment my left processor doesn't know what my right is doing." - Freefall
Reply With Quote
  #3  
Old March 5th, 2004, 12:31 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: MODDING Help Needed

Would it be safe to say that it works like this:

A 2 to 1 ratio (Ship Size KT to Abilities value) Ship Size / Value / Number of Components Added To Design
100 kt / 100 / 0
200 kt / 100 / 1
300 kt / 100 / 1
400 kt / 100 / 2
800 kt / 100 / 4
200 kt / 400 / 0
300 kt / 400 / 0
400 kt / 400 / 0
800 kt / 400 / 1
1200 kt/ 400 / 3

If the value is set to 10000 then the Ai will only ad 1 component with this ability to the design correct?
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #4  
Old March 5th, 2004, 12:43 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: MODDING Help Needed

Quote:
Originally posted by Krsqk:
The formula is:

HS/SPO

where HS = the hull size under consideration, SPO = the Spaces Per One entry. Any fractions are rounded UP to the next whole number.
so if I figure this correctly

Hull size 100 / entry value of 10000 = 0.01 RU to 1.0?
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #5  
Old March 5th, 2004, 01:24 AM
Rollo's Avatar

Rollo Rollo is offline
Brigadier General
 
Join Date: Jul 2001
Location: Kiel, Germany
Posts: 1,896
Thanks: 0
Thanked 0 Times in 0 Posts
Rollo is on a distinguished road
Default Re: MODDING Help Needed

Quote:
Originally posted by Krsqk:
The formula is:

HS/SPO

where HS = the hull size under consideration, SPO = the Spaces Per One entry. Any fractions are rounded UP to the next whole number.
That is not correct. Any fractions are always rounded down, but a minimum of one component will be added.
SPO=10000 is commonly used to add one component to a design (note: if the hull is bigger or equal 20000, two components will be added).

Atrocities, your examples would work like this:
code:
hull size  spaces per one  num of components
100 kt 100 1
200 kt 100 2
300 kt 100 3
400 kt 100 4
800 kt 100 8
200 kt 400 1
300 kt 400 1
400 kt 400 1
800 kt 400 2
1200 kt 400 3

__________________
SE4
Devnull Mod Gold:
Version 1.80
Dungeon Odyssey:
Hack and Slash
Version 0.53e
Reply With Quote
  #6  
Old March 5th, 2004, 02:14 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: MODDING Help Needed

Quote:
Fyron gave me an example, if the abilities value is 1000 then a ship would have to be 1000kt to have this ability added. This does not make sense to me as the AI adds these abilities to much smaller ships.
You forgot the other half of that paragraph, which stated that the AI will always add at least one component with each ability called for (that does not have a spaces per one of 0) if it is able to.
__________________
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
  #7  
Old March 5th, 2004, 02:17 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: MODDING Help Needed

Thanks guys, I do really appreciate the info.
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
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 10:13 AM.


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