Source code - https://github.com/Heniker/Starsector-Mods
Run build/build.bash
file.
Requirements installed by scoop:
scoop install git 7zip
scoop bucket add java
scoop install openjdk8-redhat
$ javac -version
javac 1.8.0_342
During development repo should be placed in starsector mods folder.
For debugging add following to vmparams
file in starsector directory:
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8015,suspend=n
Then launch VSCode "attach" debug configuration.
Sparse API reference can be found in Starsector/starsector-core/starfarer.api.zip
-
Improvised Refinery hullmod:
Install an Improvised Refinery onto the ship. The Refinery can inefficiently convert Ore into Metals.
The conversion speed is based on CR and number of ships with hullmod within fleet. Having nanoforge in cargo also influences conversion speed and efficiency.
A logistics hullmod. Can only be installed on Capital class ships. Unlocks when player gets Makeshift Equipment skill. Can be randomly found in derelict structures.
Updates (effectively) in real-time. -
Toggle Refinery ability:
Toggles Improvised Refinery hullmod for all ships within player fleet.
Safe to add/remove mid-game.
Similar'ish mods:
- Aptly Simple Hullmods (Audax) - https://fractalsoftworks.com/forum/index.php?topic=24550.0
- Ore Refinery (Dazs) - https://fractalsoftworks.com/forum/index.php?topic=22882.0
- Supply Forging (Timid) - https://fractalsoftworks.com/forum/index.php?topic=17503.0
This mod is somewhat inspired by Supply Forging, but uses no code from Supply Forging and has a completely different implementation.
- Dedicated Repair Equipment hullmod:
Ship with this hullmod can aid in repairs of a single other ship within fleet.
Increases repair speed, but not CR recovery speed.
While target is repairing/recovering CR - the recovery supplies cost will be reduced.
Drains metals while active proportional to target recovery cost.
Can not be installed. Built-in on Salvage Rig.
To prevent hullmod from activating - disable repairs on Salvage Rig or mothball it.
Safe to add/remove mid-game.
This idea came from old forum post mentioning how Salvage Rig used to work in the game. Also from the fact that Salvage Rig is called "Construction Rig" in the game files.