Limiting Component |
can someone pls post the formula for limiting any ship to only one reactor type component. Reactors is the component group and one example is Pinch Fusion Reactor
Re: Limiting Component
Having trouble... ive added teh tags toall reactor components and tehy appear as abilities with the description i put but there is no limit when placing them and the design can still be fielded with 1000 reactors when it should only hold 2.
Name := Halcyon Light Cruiser
Short Name := Light Cruiser
Description := A Medium-Large sized ship capable of mounting a substantial array of combat oriented systems.
Code := LC
Vehicle Type := Ship
Maximum Level := 10
Tonnage Space Formula := 550 + (([%Level%] - 1) * 25)
Tonnage Structure Formula := 950 + (([%Level%] - 1) * 25)
Cost Minerals Formula := 4000 + (([%Level%] - 1) * 25)
Cost Organics Formula := 1000 + (([%Level%] - 1) * 25)
Cost Radioactives Formula := 1000 + (([%Level%] - 1) * 25)
Engines Per Move := 1
Maximum Model Size := 26.0
Vehicle TopDown Picture Index := 3
Vehicle Portrait Primary := [%EmpireName%]_Portrait_LightCruiser.bmp
Vehicle Portrait Alternate := [%EmpireName%]_Portrait_LightCruiser.bmp
Vehicle Portrait Default := [%EmpireName%]_Portrait_LightCruiser.bmp
Vehicle Large Portrait Primary := [%EmpireName%]_LargePortrait_LightCruiser.jpg
Vehicle Large Portrait Alternate := [%EmpireName%]_LargePortrait_LightCruiser.jpg
Vehicle Large Portrait Default := [%EmpireName%]_LargePortrait_LightCruiser.jpg
Vehicle Inv Portrait Primary := [%EmpireName%]_InvPortrait_LightCruiser.jpg
Vehicle Inv Portrait Alternate := [%EmpireName%]_InvPortrait_LightCruiser.jpg
Vehicle Inv Portrait Default := [%EmpireName%]_InvPortrait_LightCruiser.jpg
Vehicle Inv Configuration Layout Primary := [%EmpireName%] Light Cruiser Layout
Vehicle Inv Configuration Layout Alternate := [%EmpireName%] Light Cruiser Layout
Vehicle Inv Configuration Layout Default := [%EmpireName%] Light Cruiser Layout
Vehicle XFile Class Name Primary := [%EmpireName%] Light Cruiser
Vehicle XFile Class Name Alternate := [%EmpireName%] Light Cruiser
Vehicle XFile Class Name Default := [%EmpireName%] Light Cruiser
Vehicle Texture Start X := 0.50
Vehicle Texture Start Y := 0.50
Vehicle Texture End X := 0.75
Vehicle Texture End Y := 0.75
Space Combat Maximum Speed Per Movement Point := 0.001
Space Combat Turn Rate Base := 0.0008
Space Combat Turn Rate Decrease Per kT := 0.0000005
Space Combat Turn Rate Minimum := 0.00030
Space Combat Acceleration Rate Base := 0.00008
Space Combat Acceleration Rate Decrease Per kT := 0.000000034
Space Combat Acceleration Rate Minimum := 0.00004
Space Combat Deceleration Rate Base := 0.00008
Space Combat Deceleration Rate Decrease Per kT := 0.000000034
Space Combat Deceleration Rate Minimum := 0.00004
Space Combat Banks When Changing Height := TRUE
Ground Combat Maximum Speed Per Movement Point := 0.0
Ground Combat Turn Rate Base := 0.0
Ground Combat Turn Rate Decrease Per kT := 0.0
Ground Combat Turn Rate Minimum := 0.0
Ground Combat Acceleration Rate Base := 0.0
Ground Combat Acceleration Rate Decrease Per kT := 0.0
Ground Combat Acceleration Rate Minimum := 0.0
Ground Combat Deceleration Rate Base := 0.0
Ground Combat Deceleration Rate Decrease Per kT := 0.0
Ground Combat Deceleration Rate Minimum := 0.0
Ground Combat Banks When Changing Height := TRUE
Number Of Abilities := 1
Ability 1 Type := Combat To Hit Defense
Ability 1 Description := Nimbleness makes ship [%Amount1%]% harder to hit in combat.
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := 20 + ([%Level%] - 1)
Ability 1 Amount 2 Formula := 7
Number Of Requirements := 6
Requirements Evaluation Availability := 1
Requirements Evaluation Allows Placement := 2, 3, 4, 5, 6
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 24 in UNSC Navy.
Requirement 1 Formula := Get_Empire_Tech_Level("UNSC Navy") >= (15 + ([%Level%] - 1))
Requirement 2 Description := This vehicle must have 1 Bridge.
Requirement 2 Formula := (Get_Design_Ability_Component_Count("Control Center") = 1) or (Get_Design_Ability_Component_Count("Master Computer") >= 1)
Requirement 3 Description := This vehicle must have at least Life Support for 100 crew members.
Requirement 3 Formula := (Get_Design_Ability_Total("Life Support", 1) >= 100) or (Get_Design_Ability_Component_Count("Master Computer") >= 1)
Requirement 4 Description := This vehicle must have at least Crew Quarters for 100 crew members.
Requirement 4 Formula := (Get_Design_Ability_Total("Crew Quarters", 1) >= 100) or (Get_Design_Ability_Component_Count("Master Computer") >= 1)
Requirement 5 Description := This vehicle can only have a maximum of 16 movement.
Requirement 5 Formula := Get_Design_Ability_Component_Count("Movement Standard")
Re: Limiting Component
The hull requirements seem to be in order. What does your reactor's ability section look like?
Re: Limiting Component
Name := Plasma Reactor MK I
Description := A basic Covenant Reactor.
Picture Number := 19
Maximum Level := 5
Tonnage Space Taken Formula := 20
Tonnage Structure Formula := 20 + (([%Level%] - 1) * 10)
Cost Minerals Formula := 1000 + (([%Level%] - 1) * 10)
Cost Organics Formula := 0
Cost Radioactives Formula := 1000 + (([%Level%] - 1) * 10)
Supply Amount Used Formula := 0
Ordnance Amount Used Formula := 0
Can Be Placed On Vehicle Types := Ship, Base, Satellite, Drone, Weapon Platform
Can Be Placed In Ship Sections := Inner Hull
Component Type List := Technological
General Group := Reactors
Custom Group := 1
Number Of Requirements := 1
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in Covenant Reactors.
Requirement 1 Formula := Get_Empire_Tech_Level("Covenant Reactors") >= (1 + ([%Level%] - 1))
Number Of Abilities := 4
Ability 1 Type := Supply Generation
Ability 1 Description := Generates [%Amount1%] supplies per turn.
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := 100 + (([%Level%] - 1) * 10)
Ability 1 Amount 2 Formula := 0
Ability 2 Type := Supply Storage
Ability 2 Description := Provides storage for [%Amount1%] units of supply.
Ability 2 Scope := Space Object
Ability 2 Range Formula := 0
Ability 2 Amount 1 Formula := 15050 + (([%Level%] - 1) * 100)
Ability 2 Amount 2 Formula := 0
Ability 3 Type := Emergency Resupply
Ability 3 Description := Reactor can be overcharged for a one time boost in supplies.
Ability 3 Scope := Space Object
Ability 3 Range Formula := 0
Ability 3 Amount 1 Formula := 500 + ([%Level%] * 500)
Ability 3 Amount 2 Formula := 0
Ability 4 Type := AI Tag 02
Ability 4 Description := Is a reactor system.
Ability 4 Scope := Space Object
Ability 4 Range Formula := 0
Ability 4 Amount 1 Formula := 0
Ability 4 Amount 2 Formula := 0
Weapon Type := None
Re: Limiting Component
I dunno... Everything seems to work ok in my test mod. I used the component count instead of the percentage function, and it still works with my LCX not a warship mod:
http://files.spaceempires.net/user/2/LCX_Not_Warship_Count.rar
Re: Limiting Component
what version as it on? i havent had time to patch this one in a while for various reasons, but its safe to say that patching takes a long time for me.
Re: Limiting Component
I haven't seen it not work since the first time I made such a mod, back around 1.0x in 9/06. I haven't explicitly tested this in every single version of SE5, though. My latest test is in 1.71. It should work in the last patch just as well.
Re: Limiting Component
it appears that this works for teh covie shield (Tag 03) but NOT for the reactors (Tag 02)
The only difference is that the restriction for the shields is on both the vehicle size AND the bridge component
Re: Limiting Component
Why would you place a reactor restriction on the bridge component?
Re: Limiting Component
no idea whatsoever but apparently it works! I figured "hey well, a ships got to have a bridge, so why not stick it there too!"




Re: Limiting Component
This thread contains all the info you need:
http://www.shrapnelcommunity.com/threads/showflat.php?Cat=&Board=UBB23&Number=447917
Note that since the latest versions, you can place these sorts of requirements onto components themselves; it no longer has to be done on every ship hull.
SpaceEmpires.net | Space Empires Wiki