Author Topic: [MOD][Server side] Stolen Scrap Fix  (Read 104 times)

Rinart73

  • Sr. Member
  • ****
  • Status:
    Offline
    Posts:
    305
  • Discord: Rinart73#7304
    • View Profile
on: May 10, 2019, 09:11:36 AM
Needs to be installed on server side.
Works on 0.21.x+.


Several people reported that during the battle ships sometimes pick up Stolen Scrap metals, even though they have the "Don't pick up stolen cargo" setting on.
This mod should help with this issue by instantly transforming picked up Stolen Scrap metals into "unstolen" versions.

Installation
1. Unpack the mod archive in your Avorion folder (not in the "data" folder).
2. Open "data/scripts/entity/init.lua" and add the following code to the bottom of the file:
Code: [Select]
if entity.isShip or entity.isStation then
    entity:addScriptOnce("mods/StolenScrapFix/scripts/entity/stolenscrapfix.lua")
end

Uninstallation
It should be safe to uninstall. Just remove the lines you added during installation and folder "StolenScrapFix" folder from "mods".
« Last Edit: May 10, 2019, 09:13:54 AM by Rinart73 »