[Mayhem II] Mothership Mod

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
sepa
Posts: 153
Joined: Mon, 23. May 05, 22:48
x4

[Mayhem II] Mothership Mod

Post by sepa » Sun, 16. Feb 20, 23:06

Hi guys,

I've hacked Mayhem a little bit and came out with a 'Mothership' mod.

It allows you to have the following on any M7+ class ship that has Carrier Command Software:
- Hangar with upgrade and repair functionality,
- Recycle functionality,
- Production functionality (missiles, shields, lasers, fighter ships).

You can only produce ships that you have previously recycled on a given Mothership.
You can access the Mothership menu in ship console, under 'Special commands'.

ATM there is an early testing version, and another one for SWLU (to be found on SWLU Discord).

Download link:
https://cdn.discordapp.com/attachments/ ... od_v0.1.7z

Credits for this mod go to Joubarbe, as it's really his code that I've just repurposed.

Feedback welcome.
Last edited by sepa on Mon, 17. Feb 20, 02:00, edited 7 times in total.
Shit happens, ppl die. Usually when I'm around.

sepa
Posts: 153
Joined: Mon, 23. May 05, 22:48
x4

Re: Mothership Mod - for SWLU and Mayhem

Post by sepa » Sun, 16. Feb 20, 23:15

*****************************
* Mothership Mod for Mayhem *
*****************************

Version 0.1

Back up your save files in Documents\Egosoft\X3AP before trying this mod.
And keep in mind that I am not responsible for any damage, broken marriages, floods and earthquakes etc that might be caused by this mod.

=========================================================================================================================
Credits.
=========================================================================================================================

This little mod is based on Mayhem by Joubarbe - it re-purposes Joubarbe's code to work on a 'Big Ship' class.
It would not be possible to achieve it without Joubarbe's code - so buy him a coffee (https://www.buymeacoffee.com/Joubarbe) if you enjoy this mod.
Hacking all of this together - Sepa.
There is a version of this mod for SWLU, too, if you are interested look in SWLU Discord.

=========================================================================================================================
What it does.
=========================================================================================================================

It allows you to have the following on any M7+ class ship that has Carrier Command Software:
- Hangar with upgrade and repair functionality,
- Recycle functionality,
- Production functionality (missiles, shields, lasers, fighter ships).
- Barracks (limited)

You can only produce ships that you have previously recycled on a given Mothership - it is NOT linked to Research atm.

You can access the Mothership menu in ship console, under 'Special commands'.

=========================================================================================================================
Installation.
=========================================================================================================================

Unzip to your game directory, i.e.:
C:\Games\X3 Terran Conflict

It should not complain about any overwrites unless you are upgrading the mod.

=========================================================================================================================
Future plans.
=========================================================================================================================

Lots of ideas atm, mostly:
- make it so each functionality (hangar, recycle, each production) is installed separately as a ware (something large like 500 cargo space)
- make efficiency dependant on number of modules in cargo bay (more modules - faster production)
- make repair and recycle work over time
- make production and repair work with partial resources (and stop when out of resources)
- link back to Research, but keep the ability to produce ships recycled on a Mothership

- custom start of some fun kind
- balance the time needed to produce ships and 'manpower' available on different ships (now based on max marines count)
- disable the mod if carrier has only external docks, also disable recycle of anything docked there
- make 'ships in production' take hangar space and behave a bit like being 'repaired'
- make it impossible to produce if there is no internal hangar space
- make it possible to select the color of your new ships

=========================================================================================================================
Known issues
=========================================================================================================================

- If you recycle an externally docked ship then it does not disappear from the model until something else docks there.

=========================================================================================================================
Change log
=========================================================================================================================

16/02/2020 Version 0.1
- Initial testing release.
Shit happens, ppl die. Usually when I'm around.

User avatar
Joubarbe
Posts: 4376
Joined: Tue, 31. Oct 06, 13:11
xr

Re: [Mayhem II] Mothership Mod

Post by Joubarbe » Mon, 17. Feb 20, 10:04

About the known issue, you could probably use a global script that uses "put into environment" with [SECTOR] as target before destroying the ship ("destruct show no explosion').

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”