Space Yard and Temporal Space Yard |
Submitted by Lastdreamer on Sat, 2007-10-13 04:08.
SE:V MODs
The new Get_Planet_Ability_Facility_Count and Get_Queue_Ability_Facility_Count refer to Facility Group line or the XFile class name?
I'm thinking about limit to ONE type of space yard (one space yard and one temporal space yard) per planet, but either space yard had the same Facility Group...
Re: Space Yard and Temporal Space Yard
Submitted by Fyron on Sat, 2007-10-13 13:02.
They refer to the facility names (not xfile or group) and ability names, just like the equivalent component functions.
Re: Space Yard and Temporal Space Yard
Submitted by Galvorte on Sat, 2007-10-13 13:59.
and I think Star Wars had at least one planet that supported a massive shipyard.
Several of them, actually -- but in space/orbit. Not sure that there's anywhere in SW that has planet based shipyards, it's pretty much all space based. Which I'd really like to mod into SEV, but I want planets to still be able to make units and such faster than orbitals, and maybe ships at a very slow rate.
If I run an empire and someone says I can't build a second Space Yard on a planet because there is already one there... they're fired (preferably out of a missile launcher, strappeed to a missile) and labled as an enemy of the state for attempting to hinder the growth and development of the empire.
Easy, just build space stations with space yards on them. I have multiple planets with 10+ orbital space yards, and while the rate per shipyard for construction only goes up to 3k a turn, so you can't build big ships very quickly, you can build lots of ships at once this way. And I think the orbitals are cheaper than the ground-based.



Re: Space Yard and Temporal Space Yard
Facility Group line by the looks of it.
So, if I understand correctly, you want to allow one of each to be built on a planet, instead of the usual limit of just one 'Space Yard' in general per planet?
Looking through version history, for v1.51, I found these
17. Added - Formula function "get_planet_ability_facility_count".
18. Added - Formula function "get_planet_specific_facility_count".
for v1.52, I found these.
2. Added - Formula function "get_queue_ability_facility_count".
3. Added - Formula function "get_queue_specific_facility_count".
This means it is possible to change them from limiting a facility group (Space Yard) to limiting a specific facility type (Space Yard Facility, Temporal Space Yard Facility.
If I understand correctly, you want to be able to build one of each on a planet, and not be restricted to one or the other?
If so, I think I know what to do.
Can more experienced modders comfirm if the following would work?
For Space Yard, changeing
Requirement 2 Formula := (Get_Planet_Ability_Facility_Count("Space Yard") = 0) and (Get_Queue_Ability_Facility_Count("Space Yard") = 0)
to
For Temporal Space Yard
Change the following
Requirement 2 Formula := (Get_Planet_Ability_Facility_Count("Space Yard") = 0) and (Get_Queue_Ability_Facility_Count("Space Yard") = 0)
to
Would that do the trick to allow 1 of each to be built on the same planet?
On a side note, I just deleted those two lines after I patched the game, I don't like imagnary boundries that don't really exist and was GLAD to be rid of that stupid restriction.
In some settings (such as Warhammer 40k), there do exist planets that are devoted almost entirely to production, and I think Star Wars had at least one planet that supported a massive shipyard.
If I run an empire and someone says I can't build a second Space Yard on a planet because there is already one there... they're fired (preferably out of a missile launcher, strappeed to a missile) and labled as an enemy of the state for attempting to hinder the growth and development of the empire.