What is really missing?


Pick a product – find the bottleneck. Works for research, rockets, anything. Across your whole base.

Utilities
9 months ago
2.0
282
Manufacturing

g [TODO] Possible incompatibility with GUI unifier mod

9 months ago

First thank you for updating this, i really missed it.

But i ran into a strange problem. I added it to a running game and the GUI toggle button doesn't show up. Even removing all mods, except base game + space age, didn't fix it. But when i start a new game, even one with all the mods i currently use, the button works just fine. After a lot of digging it feels like the GUI unifier mods, that supports the original WIM version, does something that persists even if i remove it. For now i "fixed" it by adding a "toggle" command tom /wim that does a toggleWindow. Maybe there is something you can do, but at least others trying this one will know that this might happen.

9 months ago

the GUI unifier has already caused problems with several mods. i therefore no longer use it
i also don't have the time to look at the code to make it compatible.
it's on the to-do list, but i don't know when i'll get around to it

9 months ago

the problem isn't unique to gui unifier. even without it, adding the mod to a running game fails to render its gui at all. there is no button and no window for it. starting a new game shows it without issue

9 months ago

ok, thanks for the clarification

9 months ago

and thanks to you for updating it, "what is missing" is always the primary mod i desire for factorio :)

fwiw, i "fixed" it on my end by adding this to wim add_command call, and upon calling /wim toggle in the console it appeared and worked, so hopefully a proper fix should be rather easy :D

    elseif e.parameter == "toggle" then
        ModGui.createSmallTopButton(game.get_player(e.player_index))
4 months ago

Also for me the button just doesn't get added when the mod is added to an existing save, but it's added when starting a new game :(
I used the workaround by Mithaldu and it fixed it (thanks!)

It seems that calling /wim toggle multiple times doesn't break anything, so it'd be probably safe to call createSmallTopButton every time the game is loaded? I'm not a modder though...
If that doesn't work, it'd be great to have at least the console command above added as a workaround to be able to enable it.

Apart from this, thanks for porting the mod! It's really nice to untangle my py playthrough!

New response