Rinart73 Posted April 6, 2017 Share Posted April 6, 2017 Extension is discontinued Short foreword When we want to remove a mod that attaches some scripts to the Entities, we replace these files with scripts that terminate() itself when Entity is being loaded by the server. This is fine in most cases except: When another mod utilizes scripts with the same name When we're dealing with some bugged or incredibly huge mod that spammed all sectors with its scripts So I developed a small utility that allows you to remove an attached scripts from all sectors and entities. How to use [*]Navigate to "%appdata%\Roaming\Avorion\galaxies\yourGalaxyName" folder [*]Place "AvorionSectorCleaner.exe" in it [*]Make a backup of your "sectors" folder [*]Drag and drop Uninstall File on "AvorionSectorCleaner.exe" [*]Launch the server and try to fly to the sectors where mod worked before. If sectors look the same as before, it worked probably. If your ship is completely gone or sector looks absolutely different, you should restore "sectors" folder from backups and try the old method of 'deleting' mods. Uninstall File - What is it? This is a json file that anyone can create. I suggest to name it something like "uninstallModName.json". At the moment the Uninstall File has the following structure: { "RemoveScripts": [ "data/scripts/path/to/script/scriptName.lua" ] } You can remove as many scripts as you want: { "RemoveScripts": [ "data/scripts/path/to/script/scriptOne.lua", "data/scripts/path/to/script/scriptTwo.lua" ] } For now "RemoveScripts" is the only parameter available. I'm planning to work on this utility more if some will find it useful. Notice This utility is in Alpha stage. It may not work or work in some cases and doesn't work in others. If you want to help me develop it, write your suggestions and post program logs. Also it would be good to attach your modlist and sector file, when you get an error. This program is useful only for Server. As far as I know Client can safely uninstall mods by deleting related files. Planned features (maybe) Possibility to remove custom variables that were added by "setValue()" and "secure()" calls AvorionSectorCleaner_0.0.6305.22283.zip Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now