[WIP] Shipyard and Player Shipyard - Ship recycling

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

jth
Posts: 296
Joined: Tue, 3. Jan 06, 23:31
x3

[WIP] Shipyard and Player Shipyard - Ship recycling

Post by jth »

Hi

BlackRain and myself have been collaborating for the last couple of months on a ship recycling mod for BlackRain's Player Shipyard mod.

Its getting close to release so we thought we would announce that it was imminent.

This mod adds the ability to Recycle a ship. It changes the ShipTrader menu option Sell a ship to Sell or recycle a ship

This should allow you to operate in Pirate mode and use the recycled wares to build your own ships.

It will also integrate the NPC shipyards better into the local economy as the wares from ship recycling will be used by NPC shipyards rather than the sold ship just sailing off and never being seen again.

The mod patches Egosoft's ShipTrader.xml file to add the extra option and back end code.

Features
Allows recycling of L and XL ships in Player Shipyards and NPC Shipyards
Uses one of the Egosoft GUI menus to select the ship to be recycled
Checks a number of pre-requisites to make sure that recycling can proceed and notifies player if there are any problems before proceeding. This includes there being enough food and energy, recycling ship will fit into the individual ShipTrader's ship cradle, enough construction drones present and that the recycling ship is in the same zone as the player (needed if you want the weapons and shields back).
Recycles hull wares taking into account the state of the hull at the time
Recycles operational Weapons and Shields
If the Shipyard is NPC owned then the player is paid for the ship in the same way as the current Sell a ship
Consumes energy and food rations to carry out recycling
Moves ship into appropriate ship cradle and chops the hull up piece by piece
Evacuates crew via boarding pod to the Shipyard
Maintains individual ShipTrader locking so that an individual ship trader can only do one thing at a time
Aborts recycle if ship is destroyed before it gets into dock just like the other ShipTrader operations.
Logs ship recycling in player log book
Logs a lot of information to debug.log so that the recycling process can be checked and diagnosed

To Do
Small ShipTraders
Recycling of installed drones
Recycling of useful cargo including drone wares
Fly some construction drones around during chop up phase
Check if station is full and send crew elsewhere

Regards

jth
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

With 3 out, I am eager with anticipation - thanks guys :)
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

We are thoroughly testing this and it is coming along very well. Look forward to it soon.

Return to “X Rebirth - Scripts and Modding”