Jump to content

[MOD] Improved Energy Suppressor - QoL and fixes of fixes


Rinart73

Recommended Posts

Starting from game version 0.23 mod is moved to the Steam Workshop.

 

0.17.1-0.18.3

 

I use Energy Suppressor Satellites a lot to hide my mining ships from persecutors. And it's very confusing when they burn out but still look the same. Just a bunch of green icons in the sector.

So, I decided to fix this and add few useful things.

 

Features

  • When suppressors burn out they turn into wreckages
  • If you'll enable this feature in suppressor settings, it will send you (or your Alliance) a mail when a satellite will burn out. In case of Alliance, only members with "Manage Ships" privilege will receive a message.
  • Fixes bug that spawns Ogonite/Xanion suppressor when it' used by an Alliance faction
  • You can  use "/burnsuppressors" command to turn suppressors, that burnt out before mod installation, into wreckages

 

Installation

  • Unpack mod archive into "Avorion" folder
  • Add following line in the end of the file "data\scripts\entity\energysuppressor.lua":

if not pcall(require, 'mods.ImprovedEnergySuppressor.scripts.entity.energysuppressor') then print('[ERROR][improvedEnergySuppressor]: failed to extend entity/energysuppressor.lua!') end

  • Add this line in the end of the file "data\scripts\items\energysuppressor.lua":

if not pcall(require, 'mods.ImprovedEnergySuppressor.scripts.items.energysuppressor') then print('[ERROR][improvedEnergySuppressor]: failed to extend items/energysuppressor.lua!') end

 

Uninstallation

 

  • Remove the lines that you added during the installation
  • Delete "ImprovedEnergySuppressor" folder from the "mods" folder

 

 

Compatibility

 

 

Mod overrides following functions:

data\scripts\entity\energysuppressor.lua

  • EnergySuppressor.updateServer
  • EnergySuppressor.interactionPossible

data\scripts\items\energysuppressor.lua

  • activate

 

Mod extends following functions:

data\scripts\entity\energysuppressor.lua

  • EnergySuppressor.initialize
  • EnergySuppressor.initUI
  • EnergySuppressor.onSync
  • EnergySuppressor.secure
  • EnergySuppressor.restore

 

 

 

Changelog

 

 

1.0.1

  • Fixed: Energy suppressors time didn't decrease. At all.
  • Fixed: A bug that erased suppressor time after installing the mod. Ouch.

1.0.0

  • Initial release

 

 

Help to Translate

Currently supported languages: English, Russian. You can help to translate this mod:

 

 

  • "Automatic Notification" - mail header
  • "Send a mail when suppressor will burn out" - energy suppressor settings

 

ImprovedEnergySuppressor-1.0.0_0.17.1-0.18.2.zip

ImprovedEnergySuppressor-1.0.1_0.17.1-0.18.3.zip

Link to comment
Share on other sites

  • 5 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...