[MOD] Recycle Ships and Stations

The place to discuss scripting and game modifications for X4: Foundations.

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

Post Reply
iforgotmysocks
Posts: 1190
Joined: Fri, 8. Nov 13, 23:35
x4

[MOD] Recycle Ships and Stations

Post by iforgotmysocks » Sun, 29. Dec 19, 18:18

Last updated or tested for game versions: 2.6; 3.0

Version 0.31 is a small update that allows you to sell ships to npc factions for disassembly either by using the new passive order or by talking to the manager/shiptrader. Recources gained are added to the storage and reused to build more ships.

Supports the optional Extended Conversation Menu, which allows all mods using it to join their starting conversations in a browsable section, so technically infinite mods can be added by only taking up 1 conversation slot for any npc. Not required. (Feel free to add support for your own mods)

Nexus link: https://www.nexusmods.com/x4foundations/mods/72

Recycle Ships

You're able to disassemble ships at ur own shipyards and wharfs now, or sell them to npc shipyards for disassembly, meaning they will reuse the gained resources at their yard/wharf! The shipyard/warf will gain 75% of the original shipresources back including all components and equipment the ship is equipped with. (Full list of things included below)
You also have an increasing chance to gain blueprints for all disassembled ships or equipment (only at ur own yards/wharfs!), which increases with every recycled component or equipment piece.

The option is available when talking to a yards/wharfs manager or ship trader. The menu also contains options to print more information about currently disassembling ships or ongoing research and it's current chance into the logbook. Informationlists requested by the player are logged to TIPS, while details about disassembled ships are logged to UPKEEP upon disassembly. To sell a ship for disassembly either dock the ship and talk to the station manager/ship trader or use the new passive order to sell ships from a distance.

The amount of ships that can be disassembled at a time is limited by the visible docking slots a station has for each class and the time it takes to complete the process. (S/M/L/XL require 10/30/60/120 minutes, respectively)
Chances to gain a blueprint upon shipdisassembly start low and increase with each component. The detailed percentage increase is being shown in the logbook details, a few examples woule be: missiles 1%, mines 2%, turrets 4%, s ships 5%, engines 7%, l ships 10%...

All of a ship's items turned into their original resources include: 
- shiphull (also ships added by mods, as long as they have a ware providing a blueprint - meaning u could get blueprints of probably unique ships?)
- components like weapons, turrets, engines, shields
- units like cargo-, defence-, orecollector drones
- deployables like mines, satellites, resourceprobes
- ammunition like missiles and flares
- shipcargo (note, the cargo will only be added if it containes wares the station needs)
* If a base resource is listed in the disassemble notification with the amount 0, then the station's cargo for that resource is full and it couldn't be added.

Recycle Stations

Allows the player to recycle or sell his own unwanted stations for 50%-75% of their value in credits by talking to the manager OVER THE COMM and selecting "Get rid of this station". Selling stations can get you up to 25% bonus on top of the base 50% for just recycling, depending on how good ur relation towards the chosen faction is. 
Selling stations to factions can also be a great way to support a faction in need, if you don't want to interfere with force.

To talk to your manager via comm check the station information, navigate to the crew tab and rightclick the manager to select "Comm".
People destroying a station they're currently docked at will still die (who am i to take away free choice :p ), but now they can do it with more pretty visuals as stations now explode with style before disappearing. 
A logbook entry shows the transaction under "upkeep".


Installation: 
Download the file, extract the recycleshipsorstations folder and move it to your extensions folder.
In case you don't have one yet, simply create it at the base directory of X4, so for a steam user it would be: Steam\steamapps\common\X4 Foundations\extensions

Deinstallation: 
Simply remove the folder, no current savegame issues.
Last edited by iforgotmysocks on Mon, 20. Jan 20, 22:56, edited 3 times in total.

iforgotmysocks
Posts: 1190
Joined: Fri, 8. Nov 13, 23:35
x4

Re: [MOD] Recycle Ships or Stations

Post by iforgotmysocks » Mon, 13. Jan 20, 22:44

Updated to v0.3, which allows to disassemble ur ships at your own shipyards or wharfs for resources and an increasing chance for blueprints the more you recycle.

User avatar
alexalsp
Posts: 1043
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [MOD] Recycle Ships or Stations

Post by alexalsp » Tue, 14. Jan 20, 01:01

When to wait for multilingual support ???????

:gruebel:

iforgotmysocks
Posts: 1190
Joined: Fri, 8. Nov 13, 23:35
x4

Re: [MOD] Recycle Ships or Stations

Post by iforgotmysocks » Tue, 14. Jan 20, 18:49

alexalsp wrote:
Tue, 14. Jan 20, 01:01
When to wait for multilingual support ???????

:gruebel:
I may add it with the next update, that will allow players to sell ships to npc shipyards/wharfs which are then dismanteled and turned into resources for the npc faction shipyard while the player can still make use of the blueprint system.
If localization will make it in will depend on how much time i have. The mod doesn't contain alot of text and should be rather self expanatory, even for people who don't know much english.
Last edited by iforgotmysocks on Tue, 14. Jan 20, 19:11, edited 1 time in total.

User avatar
alexalsp
Posts: 1043
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [MOD] Recycle Ships and Stations

Post by alexalsp » Tue, 14. Jan 20, 19:03

OK. Thanks. it will be convenient for those who do not know him at all ... :wink: :P

iforgotmysocks
Posts: 1190
Joined: Fri, 8. Nov 13, 23:35
x4

Re: [MOD] Recycle Ships and Stations

Post by iforgotmysocks » Mon, 20. Jan 20, 22:54

Version 0.31 is a small update that allows you to sell ships to npc factions for disassembly either by using the new passive order or by talking to the manager/shiptrader. Recources gained are added to the storage and reused to build more ships.

Localization will have to follow later, didn't have time yet, sorry. :/

User avatar
alexalsp
Posts: 1043
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [MOD] Recycle Ships and Stations

Post by alexalsp » Wed, 22. Jan 20, 12:36

Localization will have to follow later, didn't have time yet, sorry. :/
We understand, believe, hope and wait :D

JanB1
Posts: 2
Joined: Fri, 3. Apr 20, 10:52

Re: [MOD] Recycle Ships and Stations

Post by JanB1 » Fri, 3. Apr 20, 11:00

Hey, thanks for making this mod, really great idea!

I have searched around a little, and your mod is the one that's coming closest to some kind of ship salvation system. I don't want to appear rude in any way, but is this a possible future system that you could implement with your mod? The possibility of salvaging ships or stations after some battle?

There was a quick brainstorming by one guy to this topic over here:
viewtopic.php?p=4874128

iforgotmysocks
Posts: 1190
Joined: Fri, 8. Nov 13, 23:35
x4

Re: [MOD] Recycle Ships and Stations

Post by iforgotmysocks » Mon, 6. Apr 20, 18:39

Been there, done that partially for X-Rebirth already. ^^ I don't have the time currently.
I have 2-3 other mods on my waiting list that need to be written and my job being quite demanding lately doesn't help.
Would be definitely something i'd wanna do, but it won't happen anytime soon, sorry.

JanB1
Posts: 2
Joined: Fri, 3. Apr 20, 10:52

Re: [MOD] Recycle Ships and Stations

Post by JanB1 » Thu, 9. Apr 20, 10:23

Aaah, good to know.

Yeah, your mod-portfolio is amazing! I downloaded your sector satellites and the "Learn All The Things" mod, they were a real life saver for me! Loved them!

All good, no problem. Real life first!

Post Reply

Return to “X4: Foundations - Scripts and Modding”