Shipyard Query

I want my 15 rapid-fire quantum torpedo launchers Uber-Defiant now! - Get help from modders. Share your work. Discuss modifications.
posted on January 14th, 2014, 10:05 pm
I've had an idea for KA2, and I was wondering if a more experienced modder (particularly when it comes to FleetOps functions) than I might be able to advise if it were possible.

I was inspired by a recent discussion in a thread about script ideas. Basically put, at the moment if a player captures another players shipyard, it's essentially useless except as a repair yard.

My idea is this;

Is it possible to program the ODF for each standard shipyard to build every vessel usually built by standard shipyards, and "filter" them out by race? I'll try an explain. If this were stock A2, for example, the Federation standard shipyard could build any ship that the Federation, Klingon, Romulan, Cardassian or Borg standard shipyard could build. However, through ODF trickery (thinking something akin to old "Hybrid tech" ) if a Federation player owns it, they can build only Federation ships, if a Klingon player owns it, they can build only Klingon ships etc.

This way, if I captured a Klingon shipyard as the Hydrans or something, I could build my ships there. Make it useful for a change to capture a forward yard like that. Ditto the Advanced/Imperial etc shipyards. If I somehow captured a Klingon Imperial Shipyard as a Federation player (thinking of stock A2), I couldn't build Negh'Vars but I could build Sovereigns etc.
posted on January 14th, 2014, 10:13 pm
Sure, just add all the appropriate ships to the yard and add "buildableByOwnerRaceOnly=1" to the odfs of all the ships.
posted on January 14th, 2014, 11:32 pm
Alrighty, so, following example

buildItem0 = "fescort"
buildItem1 = "ffrigate"
buildItem2 = "fdestroy"
buildItem3 = "kescort"
buildItem4 = "kfrigate"
buildItem5 = "kdestroy"
buildItem6 = "rescort"
buildItem7= "rfrigate"
buildItem8= "rdestroy"

Is that correct? or do I need to list them as follows;

buildItem0 = "fescort"
buildItem1 = "ffrigate"
buildItem2 = "fdestroy"
buildItem0 = "kescort"
buildItem1 = "kfrigate"
buildItem2 = "kdestroy"
buildItem0 = "rescort"
buildItem1= "rfrigate"
buildItem2= "rdestroy"
posted on January 14th, 2014, 11:55 pm
The first one.
posted on January 20th, 2014, 9:20 pm
Ah, hmm, unfortunately it still shows the other ships, just greyed out. I was hoping it would completely remove them from the yard unless they are buildable. I also seem to have hit a limit. It only shows up to buildItem31 (so, the 32nd item) my yard currently has up to buildItem63

Is there any way to accomplish the above? So that if a Federation player uses the yard, he only sees Federation ships, if a Klingon player uses the yard, he only sees Klingon ships etc.
posted on January 20th, 2014, 9:46 pm
The buildItemXAvailability command values allow you to manipulate visibility: http://guide.fleetops.net/guide/modding ... ailability
posted on January 20th, 2014, 10:10 pm
Thanks! That does the trick. I realise I might have some odd looking situations, since I only ensured each yard was big enough to build it's own races vessels, but, thats a small price to pay for actually having a useful shipyard once captured :)
Reply

Who is online

Users browsing this forum: No registered users and 4 guests