Page 1 of 1

UI icons not vanishing when mod uninstalled

Posted: Sun Jul 09, 2017 10:47 pm
by adeade45
Only happens for this one save, so I'm going to provide it. As you can see from the save data, Shuttle Train Lite and Upgrade Planner are both uninstalled, yet ingame both mods' buttons still appear, albeit with a "no key" description and no function when clicked.

https://drive.google.com/file/d/0B6Fgji ... sp=sharing

All other saves correctly remove the UI button when a mod is removed. I haven't tested any other mods than these two, but these two buttons have been messed up for a long time (Before the update that was supposed to fix this even)

Re: UI icons not vanishing when mod uninstalled

Posted: Mon Jul 10, 2017 12:03 am
by Rseding91
Was the save created before 0.15.20~ ish? If so, then it's already fixed but the save is in a known bad state. New saves created since then handle modded GUI elements correctly.

Re: UI icons not vanishing when mod uninstalled

Posted: Mon Jul 10, 2017 1:53 am
by adeade45
Yes, it was, is there a way for me to get the icons removed?

Why is the GUI saved in the save anyways? Is it too processor-intensive to NOT save them and instead have the mods add their buttons every time the save is loaded?

Re: UI icons not vanishing when mod uninstalled

Posted: Mon Jul 10, 2017 10:09 am
by Rseding91
adeade45 wrote:Yes, it was, is there a way for me to get the icons removed?

Why is the GUI saved in the save anyways? Is it too processor-intensive to NOT save them and instead have the mods add their buttons every time the save is loaded?
You can use the Lua API to erase all of the buttons - modding help would probably work best for that.