[Request] Delete Station

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

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

derfuchs
Posts: 4
Joined: Fri, 4. May 18, 00:05
xr

[Request] Delete Station

Post by derfuchs »

it would be awesome to have something to delete unwanted stations with ,
my property list is full of useless stations from build-quests
User avatar
Baconnaise
Posts: 766
Joined: Sat, 23. Nov 13, 15:50
x4

Re: [Request] Delete Station

Post by Baconnaise »

This might not work. A quick and dirty work around would be to edit the save. Look for owner="player" or search for the stations using their macro name if you know it. Change that to another faction and voila. Careful though since in Rebirth you had to edit multiple parts of a station and change their owner to get it working. Tedious if you don't know the macro names. You'll also have to make sure to change ownership of the manager and crew if any etc.
iforgotmysocks
Posts: 1244
Joined: Fri, 8. Nov 13, 22:35
x4

Re: [Request] Delete Station

Post by iforgotmysocks »

I got some time tonight, might aswell write a recycle station mod if it's possible in X4. (Which would be really weird if it wouldn't.)
jmattspartacus2
Posts: 73
Joined: Wed, 5. Dec 18, 07:04

Re: [Request] Delete Station

Post by jmattspartacus2 »

Until GUI modding gets fixed by devs, that's probably out, there's a player shipyard mod waiting on the same issue
iforgotmysocks
Posts: 1244
Joined: Fri, 8. Nov 13, 22:35
x4

Re: [Request] Delete Station

Post by iforgotmysocks »

jmattspartacus2 wrote: Sat, 8. Dec 18, 12:26 Until GUI modding gets fixed by devs, that's probably out, there's a player shipyard mod waiting on the same issue
My mod is almost done, just gotta test it... waiting for my station to be build. xD
Maybe i should just spawn one.

I get the station destroyed, the player receives half the value as recycling reward back, but ofc it borks the building menu. Gonna have to see how i can avoid that from happening.
iforgotmysocks
Posts: 1244
Joined: Fri, 8. Nov 13, 22:35
x4

Re: [Request] Delete Station

Post by iforgotmysocks »

Lemril
Posts: 344
Joined: Sat, 17. Sep 05, 11:46
x4

Re: [Request] Delete Station

Post by Lemril »

I did try a little bit on my side to resolve this issue.
I seem to have a solution (save editing). I dont garanty side effect but I didnt see any problem.

to make it easier, remove all modules but a dock (you can teka back the ressources :--D)

Edit the save, find your station (you should give a name peculiar to find it easily). somethink like that:
<component class="station" macro="station_gen_factory_base_01_macro" connection="space" name="A_supprimer" code="EWM-825" owner="player" knownto="player" id="[0x8ffa3c]">

delete all in :
<construction>
<sequence>
<entry id="[0x112a]" index="1" macro="dockarea_arg_m_station_01_lowtech_macro">
...
</entry>
</sequence>
</construction>

delete all in
<connection connection="modules">
<component class="dockarea" macro="dockarea_arg_m_station_01_lowtech_macro" connection="space" construction="[0x112a]" id="[0x1555e]">
...
</component>
</connection>

the load, go to the plot and delete it (the x at the enbd of the line).
verify that all seem ok, in particularity the mission accepted (all or nothing it seem).

Return to “X4: Foundations - Scripts and Modding”