[Starsector Mods][0.95.1a] Scan Those Gates (v1.5.0)

  • Post category:Mods
  • Post comments:0 Comments

Scan Those Gates adds three abilities.

Remote Gate Scan: scans all gates in systems with at least one non-hidden (not pirate/pather base) market, and adds the scanned gates to the intel screen. Settings.json options are available to change the ability to also activate gates in marketless systems or just add them to the intel screen.

Remote Hypershunt Survey: scans all Coronal Hypershunts in the sector, adds their location to the intel screen under the “Megastructures” tab, and adds markers to the intel map.

Remote Cryosleeper Survey: scans all Cryosleepers in the sector, adds their location to the intel screen under the “Megastructures” tab, and adds markers to the intel map.

If the mod is added after a game has been started, the abilities will be automatically added. Scan Those Gates can be safely removed from an active game by running the console command “RemoveScanThoseGates”, saving the game, and then removing the mod.

Spoiler: click to expand
If you start a game, and the abilities are not available to you, use the runcode command in this spoiler to add them (requires the Console Commands mod).
RunCode Global.getSector().getCharacterData().addAbility(“stg_GateScanner”); Global.getSector().getCharacterData().addAbility(“stg_HypershuntScanner”); Global.getSector().getCharacterData().addAbility(“stg_CryosleeperScanner”);

Credits:
stormbringer951 – Allowing me to use code from

Spoiler: click to expand
Changelogs
v1.5.0: An ability is now used to trigger the gate scan. Two new scanning abilities are available.

v1.4.1: Now adds scanned gates to the intel screen. Options are available in settings.json for adding inactive gates to intel or scanning inactive gates during game startup.

v1.4: Scanning function now activates gates in systems with at least one non-hidden market (not pirate/pather), regardless of what the gate name is.

v1.3: Fixed a crash caused by not having Nexerelin enabled, added support for the Skip Story mod.

v1.2: Added version checker integration.

v1.1: Fixed crash caused by some gates added by mods, added error logging to starsector.log to identify which gates are causing issues.


v1.1 released, fixed crashes caused by gates added by mods that do not have expected gateData. Adds error logging

thank you kind sir

v1.2 released, added version checker integration.

when you say “that don’t have inactive in them” does that mean all the gates in the core/modded systems? so only gates in undiscovered systems remain unscanned?

v1.3: Fixed a crash caused by not having Nexerelin enabled, added support for the Skip Story mod.

ok thx for the answer. honestly i’ve been waiting for a mod like this for some time. after having explored everything in those systems sometimes i just want to start with the gates unlocked..

Currently, the mod checks the names of the gates to determine what gets scanned. All of the core system gates are named after the system they are in, so they get scanned. The procedurally generated gates are called “Inactive Gate” so they do not get scanned. This makes it so it will also scan gates that are added by mods that create custom systems.


ok thx for the answer. honestly i’ve been waiting for a mod like this for some time. after having explored everything in those systems sometimes i just want to start with the gates unlocked..

Sir, can you allow me to update this mod to the Chinese Starsector Forum(https://fossic.org)?
Thank you very much.

Sir, can you allow me to update this mod to the Chinese Starsector Forum(https://fossic.org)?
Thank you very much.

Sure, you have my permission.


Sir, I have a problem.
Will this mod work unusually if inactive gate’s name is not “Inactive Gate” in other localization?

Sir, I have a problem.
Will this mod work unusually if inactive gate’s name is not “Inactive Gate” in other localization?

There are a few things that could cause it to not work properly. The mod checks for the presence of either ‘nexerelin’ or ‘skipStory’ in the mod manager before doing anything, so if those mods have a different id in your localization, that would cause the mod to do nothing. Another issue is the method used to scan the gates, if it cannot find ‘Inactive’ in the name of gates, it will scan every gate it finds.

The source code is included with the download in the jars folder as a src.7z file if you would like to compile it yourself. Alternatively, I could help with that if you provide me with the characters used for ‘Inactive’ in the localization, and the mod ID from translated versions of Nexerelin and Skip Story


v1.4 update released. Functionality changed to scan all gates (at save start) that are located in systems with at least one non-hidden market at save start when Nexerelin Skip Story or the Skip Story mod is enabled (hidden markets are pirate/pather bases).

thank you for the update!

v1.4.1: Now adds scanned gates to the intel screen. Options are available in the settings.json for adding inactive gates to intel or scanning inactive gates during game startup.

Leave a Reply