Page 1 of 1

[Rseding91] [0.14.3] Incompatible mod GUI leftover

Posted: Mon Sep 05, 2016 1:50 pm
by Mooncat
Bug:
When a mod is disabled or removed from mod directory, its GUI can be removed correctly.
However, when a mod becomes incompatible with Factorio, e.g. game is upgraded from 0.13 to 0.14, the GUI created by the mod cannot be automatically removed.

Steps to reproduce:
1) Download the following little mod. It creates a button on gui.top of the player. When the button is clicked, a message is printed.
The mod is compatible with Factorio 0.13.
leftovermodgui_0.0.1.zip
(1.36 KiB) Downloaded 129 times
2) Launch Factorio 0.13 and start a game. The button will be shown like this:
Leftover_button_1.png
Leftover_button_1.png (1.91 MiB) Viewed 2432 times
3) Save the game and quit Factorio.

4) Update Factorio to 0.14 and launch it.

5) [Optional] Check mod list to make sure the mod is incompatible (font color = red)
Leftover_modlist.png
Leftover_modlist.png (1.4 MiB) Viewed 2432 times
6) Load the save in step 3.
Leftover_button_2.png
Leftover_button_2.png (86.61 KiB) Viewed 2432 times
7) Because the mod is not loaded, locale is lost. Also, when you click the button, nothing will be done.
leftover_button_3.png
leftover_button_3.png (1.92 MiB) Viewed 2432 times

PS: I am not sure whether it is a bug or not, since the mod status is still "Enabled". But Rseding told me to submit a bug report, so I am here. :P

Re: [Rseding91] [0.14.3] Incompatible mod GUI leftover

Posted: Mon Sep 05, 2016 2:46 pm
by Rseding91
Fixed for 0.14.4 :)

Thanks for the nice steps to reproduce the issue.

Re: [Rseding91] [0.14.3] Incompatible mod GUI leftover

Posted: Mon Sep 05, 2016 5:32 pm
by Mooncat
My pleasure. :D
Thanks for fixing it.