[MOD] Scaldis Rebalance - modifies Cargo bay type and size

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

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

User avatar
Lander1979
Posts: 1017
Joined: Mon, 4. Aug 14, 05:18
x4

[MOD] Scaldis Rebalance - modifies Cargo bay type and size

Post by Lander1979 »

This Mini-Mod rebalances the size of the cargo bay on the Scaldis to a 280,000m3 Universal Cargo hold. The mod is tiny and very simple. It should work with all versions of X-Rebirth.

Developed with the cooperation of UniTrader, much thanks.

http://www.mediafire.com/download/bye4b ... balance.7z

File Contents should be unzipped and placed in the \Extentions subfolder, and then enabled in the games main menu.

File Contents of Scaldis_Rebalance.7z ;

\Scaldis_Rebalance\assets\units\size_xl\Macros\units_size_xl_cargo_hauler_3_macro.xml

File Contents of \units_size_xl_cargo_hauler_3_macro.xml ;

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> <diff>
<replace 
sel='//connection[@ref="connection_storage02"]/macro/@ref'
>storage_ship_xl_universal_02_macro</replace>
<remove 
sel='//connection[@ref="connection_storage03"]'/>
<remove 
sel='//connection[@ref="connection_storage04"]'/>
<remove 
sel='//connection[@ref="connection_storage05"]'/>
</diff>
Note:
The mod will only affect newly built and newly spawned ships, ships that already exist in a game will remain unaffected.

Removal:
Remove the "Scaldis Rebalance" directory from the extensions folder and then edit the save file and remove the following line of code:

Code: Select all

 <patch extension="Scaldis Rebalance" version="1" name="Scaldis Rebalance"/>
As with the installation, once removed the existing in-game ships will remain unaffected, only newly built and spawned ships will change.
Last edited by Lander1979 on Tue, 17. Feb 15, 05:00, edited 3 times in total.
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Post by balogt »

I redid the scalis as well to add 8 plasma/8plasma beam and 8 hti/ma turrets and 5 cap shields. makes it capable of taking on a titurel with about a 50/50 chance. if anyone wants it I can zip it up. email me <Email address removed> ill send it. I would post it if I knew how.


{It's not wise to put an Email address in a public forum. - Terre}
User avatar
Lander1979
Posts: 1017
Joined: Mon, 4. Aug 14, 05:18
x4

Post by Lander1979 »

balogt's Scaldis ; http://www.mediafire.com/download/bubn1 ... scaldis.7z

I think these files need some work so that they function as a mod in the extensions folder. Thanks for sharing it balogt.
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

Nice one Lander, thanks.

I suggested it for the mod collation thread:
http://forum.egosoft.com/viewtopic.php? ... 20#4495220
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Post by balogt »

I just copy them over the origionals in the default directory. hence no mod directory structure. most of my little changes like that its easier to just over write default files.(with multiple back up instillations)
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

@balogt
it may be easier for you, but in the long run you will produce compatibility issues with that and the Users may lose the overview about what is an original Game File and what was modded (and where it belonged to)
also i think whole file replacements should be for the big changes, and small ones should preferably diff their stuff, not the other way around

if you prefer to replace whole files (BAD method) there are two better methods than putting it directly into the Game Root (all using the Extensions system):
-> put the Files into a subst_01.cat/dat (works like Modding in X3 with numbered Cats/Dats)
-> use this template diff file to replace the whole File:

Code: Select all

<?xml version="1.0"?>
<diff>
  <replace sel="/*">
  <!-- copy Original File here and make your changes -->
  </replace>
</diff>
also you can change the File Pointer in the index files with a diff like that:

Code: Select all

<?xml version="1.0"?>
<diff>
  <replace  sel="//entry[@name='MACRONAME']/@value">Extensions/YourExtension/path/to/your.xml</replace>
</diff>
but i discourage this one since it may break the little compatibility which remained with the 2 previous approaches
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Return to “X Rebirth - Scripts and Modding”