X4: Foundations
0 of 0

File information

Last updated

Original upload

Created by

TheAssailer

Uploaded by

TheAssailer

Virus scan

Safe to use

About this mod

Using this mod allows you to assign ships for repair duty. Each hull point repaired will cost you 10 credit, while 20 for NPCs.

Permissions and credits
Changelogs
Donations
Using this mod allows you to assign ships for repair duty.

Hail the selected player owned ship (preferably a fast ship!) and tell the pilot to 'Start Repair Service', or using the detailed map information menus manually select default order and the sector to operate in. Once the script is running, you will also be able to change the home sector here.

The pilot will look for the closest damaged player ship in the sector, or it will look for friendly ships in repair need.

It's important to mention it will only repair ships with at least 20% charged shield.
Having shields up a little usually means that ship has been out of combat for some time (successfully fled from battle), so it's safe to approach.

The visited ship will get their engine/weapon/shield modules inspected after main hull was repaired. Those repairs will be listed under the 'List of repairs' section. Module repairs are trickier and they will cost 3x the usual hull repairs.

The repair cost is based on management and engineering skills. When both skills are at minimal levels repairs will cost 6 credit/hull on both your and other faction's ships. When skills are at max (5 stars both) this will drop repair cost to 1 credit/hull for you, while it earns 21 credits/hull on repairs done on other faction's ships.

Repair is done immediately on arrival to damaged ship to avoid endless chasing around. Delay after repairs however is based on engineering skill. 5 to 35 seconds. High engineering skill mean less waiting around.

There is a delay between visiting ships and it is controlled by the piloting skills. 1 to 16 seconds.

Pilots will earn experience on successful repairs, major xp for piloting and engineering, while minor xp on management and morale.

To stop the repair mode, hail the pilot again and select 'Stop Repair Service', or using map change the default order to something else. Giving FlyTo commands will pause this script, so make sure no leftover 'waiting' is pending on temporary order list.

Changes:
1.01 - moved command texts to T files to support other languages.
1.02 - removed unused highway parameter from move_to command. added boost option the same time.
1.03 - in case target moves away, the repair ship will try to chase it for some time before marking it 'unreachable'
1.04 - added interrupt handlers
1.05 - repair service will take orders from friendly NPC and charge them double cost. Repair cost can be edited in mobilerepairservice.xml file line 14: $credit_per_hull. Thanks TheEarl for the NPC idea!
1.06 - added Russian translations. Thanks Alexalsp!
1.07 - fixed on START the pilot will set new home sector. Thanks RudolphleBreton for reporting!
1.08 - added German translations. Thanks X2return! Changed the way credits are calculated.
1.09 - added proper default ship order. Removed name tagging. For existing users, you will need to revisit your repairers and hail them to start repair mode again.
1.11 - added submodule repair checks after main hull is fixed.
1.12 - added skill based repair actions
1.13 - engineer pilots will earn experience (minor management, normal engineering and piloting skills)
1.14/15 - translations, text coloring. Thanks Alexalsp!
1.18 - version 3.0 compatibility changes and fixed home sector tracking.
1.20 - added sector selector to ship order menu.
1.23 - added self repair. suggested by @wanderer from EGO forums.
1.24 - added missing icon. no more question marks!


Install instructions:
Create a folder called "extensions" in your game installation folder. This is where all mods will be copied later on
each in their own folder to separate them.

The extracted mod files should look something like this:
C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\mrs\content.xml
C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\mrs\md\mrsa.xml
C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\mrs\md\mrsat.xml
C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\mrs\aiscripts\mobilerepairservice.xml
C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\mrs\t\0001.xml
C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\mrs\t\0001-L007.xml
C:\Program Files (x86)\Steam\steamapps\common\X4 Foundations\extensions\mrs\t\0001-L049.xml