.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   MODDING Help Needed (http://forum.shrapnelgames.com/showthread.php?t=11519)

Atrocities March 5th, 2004 12:14 AM

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 ]

Krsqk March 5th, 2004 12:26 AM

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.

Atrocities March 5th, 2004 12:31 AM

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?

Atrocities March 5th, 2004 12:43 AM

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.

<font size="2" face="sans-serif, arial, verdana">so if I figure this correctly

Hull size 100 / entry value of 10000 = 0.01 RU to 1.0?

Rollo March 5th, 2004 01:24 AM

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.

<font size="2" face="sans-serif, arial, verdana">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:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">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</pre><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">

Fyron March 5th, 2004 02:14 AM

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.
<font size="2" face="sans-serif, arial, verdana">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. http://forum.shrapnelgames.com/images/icons/tongue.gif

Atrocities March 5th, 2004 02:17 AM

Re: MODDING Help Needed
 
Thanks guys, I do really appreciate the info.


All times are GMT -4. The time now is 09:41 AM.

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