Resource Objectives


Craft specific items to earn small bonuses.

Scenarios
1 year, 3 months ago
1.1
304

b Objective Window Stuck

1 year, 3 months ago
(updated 1 year, 3 months ago)

I like the idea of this mod, but the Objective window takes up way too much space on my screen and I couldn't figure out a way to hide it.

I uninstalled this mod and the Objective window is STILL there. I had to load an autosave from before I installed the mod in order to get rid of it.

1 year, 3 months ago
(updated 1 year, 3 months ago)

Hey, thank you for the feedback! :)

I have tried reducing the content in some objectives in order to take that into account, but this is a good reminder to keep that perspective in mind in the future as well.

The reason that the objective window stays even after uninstalling, is that the objective is Factorio's native feature. From a technical point of view, this mod only changes the content of the objective box when the game begins, or the resources are gathered.

One way to hide the objective window is by running the following command in-game. However, this is unideal, since it disables achievements.
/c game.player.set_goal_description("")

I'm not sure if it's possible to run code during the uninstallation of a mod. There seems to be a script.on_configuration_changed event, but on a quick glance, I think that is only run for mods that remain after uninstalling another mod.

New response