Page 1 of 1

Gui still here after mod is disabled

Posted: Fri May 13, 2016 8:44 am
by binbinhfr
Hi,

as many users, I often install / uninstall mods and that is several times that I notice that some gui can remain after a mod uninstall.
example in attached map (open it with no mods).

I know how to delete this gui by console command, or I can delete it by installing/unsintalling the mod again, but I wanted to tell you about this little "bug" that I don't know precisely how to reproduce...

As there is no way for a mod to "uninstall itself", I supposed that it is factorio that checks if a gui must be deleted or not ? What is the basic of this test ? Is the gui top parent linked to the mod's name/version ? Then how can a gui remains if no mod is present at all ?
testGuiRemain01.zip
(7.12 MiB) Downloaded 75 times

Re: Gui still here after mod is disabled

Posted: Sat May 14, 2016 1:32 am
by Rseding91
The GUI elements on the top left where added with the console manually - not by a mod - so there's no mod that when removed would remove them.

Re: Gui still here after mod is disabled

Posted: Sat May 14, 2016 6:49 am
by binbinhfr
Rseding91 wrote:The GUI elements on the top left where added with the console manually - not by a mod - so there's no mod that when removed would remove them.
No Rseding, I can confirm you that this gui elements were added by a mod that I wrote (timetools), on which I make a lot on tests, install / unsintall with other mods. It is strange because originally there was some styles linked to this bar that looked different, but when uninstalling the mod, the bar remains with no styles anymore thus with a slightly different look. viewtopic.php?f=92&t=22822

Re: Gui still here after mod is disabled

Posted: Sat May 14, 2016 4:11 pm
by Rseding91
binbinhfr wrote:
Rseding91 wrote:The GUI elements on the top left where added with the console manually - not by a mod - so there's no mod that when removed would remove them.
No Rseding, I can confirm you that this gui elements were added by a mod that I wrote (timetools), on which I make a lot on tests, install / unsintall with other mods. It is strange because originally there was some styles linked to this bar that looked different, but when uninstalling the mod, the bar remains with no styles anymore thus with a slightly different look. viewtopic.php?f=92&t=22822
The save file says the GUI elements are owned by "custom" which only comes from the console.

Re: Gui still here after mod is disabled

Posted: Sat May 14, 2016 4:40 pm
by binbinhfr
Rseding91 wrote:The save file says the GUI elements are owned by "custom" which only comes from the console.
Ha ha, that's why I posted it in the bug section... I swear I did not create it from console at all. Such a big bar, can you imagine ? Infact , I never create a gui from console. And this map in a solo one, nobody else than me played on it.

But I admit it will be hard to find the origin of this bug... :-)

PS : idea: the only alternative solution is that I created it from the console, but by calling the interface of my mod (remote.call). But then this gui should still belong to my mod, no ? Maybe the bug is coming from here : look at a gui created/updated from a remote.call .