Logo Platform
logo amplifiers simplified

Any way to mod in a custom ship upgrade action?

Reply
Copied to clipboard!
7 years ago
Dec 20, 2017, 3:23:21 AM

So, what I'd like to do is add an ability to upgrade a ship where you can choose which ship design (of the same hull type) to upgrade to, as in this idea: Allow ships to be upgraded to any design of the same hull type. I looked at EntityActions[Fleet].xml and upgrade is not listed (I guess since it is a ship action, not a fleet action). Is there any concievable way this could be done?


If, say, I would have to jury rig some solution (like by creating a custom "quest" that gives you a choice of ship designs to use): is it possible to replace a given ship that is already built with a different ship in response to a button press?


While we are at it: is there any way to mod the Vodyani Ark hull to allow a new ship design using the Ark hull (to have more than one Ark design at a time)?

0Send private message
7 years ago
Dec 20, 2017, 11:14:30 AM

Hey eruanion!


Unfortunately I think what you want to do is impossible:

the upgrade action is not present in XML (its cost can be modified, but nothing else), and it's not possible to add the "code" behaviour or the required GUI (buttons, preview, stuff like that?) with a mod.

A quest could be an interesting alternative, but it would be very complicated and would require to destroy the ships and re-create them with the correct ship design afterwards, since there is no action which allows to replace a ship's design or upgrade it.

0Send private message
7 years ago
Dec 20, 2017, 11:24:10 AM

I believe you can create new ShipDesignDefinitions for the vodyani ark, and unlock them for the player through the "UnlockedAbstractShipDesigns" in the FactionAffinity.

You'd still start with only one Ark (aka Mothership in the XML), but you could then build one or more arks with each different ShipDesignDefinition you've added.


IIRC, we had this implemented at some point of the Vodyani development, but it was too tedious to upgrade every Ark's design when a new module was unlocked, so we chose to limit the game to only one Ark design per player instead.



An alternative is to overwrite the HullDefinition "HullLarge00Vampirilis", and remove this prerequisite:

<PathPrerequisite Flags="Edition">false</PathPrerequisite>

Hull/Role Prerequisites with the Flag "Edition" prevents the hull/role from appearing in the droplists in the ship design editor.
So if you remove these prerequisites, the players can create new ship designs based on these hulls/roles.

Updated 7 years ago.
0Send private message
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message