Mobile Repair Service

If you liked this item, please rate it up on Steam Workshop page.

Author: Assailer

Last revision: 15 Jun, 2022 at 17:13 UTC

File size: 22.53 KB

On Steam Workshop

Description:

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’ (find it under ‘more’ submenu), 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.

It is now possible to select another ship to follow (like fleet support). This ship must be M/L/XL size class.

Version 6.x compatible.

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!
1.25 – moved chat option behind submenu ‘more’
1.26 – added option to set work area by following another ship. Thanks Delliahwild!
1.27 – removed check to require a pilot on the followed ship. Thanks Delilahwild for reporting!
1.28 – added possibility to ignore specific factions. Thanks Truthowl and Holyvision for the idea!
1.30 – after all repairs are done the nearest friendly station is visited for safety. Thanks Jgz for the idea!
1.31 – added checks for turret repairs as well. Thanks JMRCaesar for reporting this bug!
1.34 – added options to ignore target’s shield levels (in case you want to risk your mechanic might get into battle), and option to ONLY repair player ships (this gives priority in a war zone).
1.35 – compatibility fix for 4.10. Thanks Snork for the warning!
1.36 – compatibility fix for 5.0

Assailer’s X4 mods:

Secret Stash
Fly-by Lockbox
Fly-by Looting
Mobile Repair Service
Capital Ship Loot Magnet
Inventory Collector
Sector Explorer