Open GlobalExplorer, navigate around deep into the productionPoints list the last selection being g_currentMission.productionChainManager.productionPoints[10]
Close that savegame, open a new savegaeme on a simple map, ie: NoMansLand
Open GlobalExplorer again
Expected
history to be flushed because I'm not on the same savegame
Actual
Global Explorer opens with the last history item, but since that item doesn't exist in the current global object tree - the UI hangs, with the only option to exit. There is no cursor, no means of selecting anything, no means of clearing the input.
Manual Fix
Opening the config file at modSettings/FS22_GlobalExplorer/history.xml, and deleting all non-valid (on the new map) history items and re-launching the game fixes the issue.
Possibly add a keybind or button to "clear" the history
Automatically clear the history on using the mod in a different savegame
Confirm that history items exist in the current game's tree before showing them to the user in the history; ie: on step 5, check each of the history items, if that path doesn't exist, remove it from the history.
Thanks for the verbose bug report. I think validating the history items when they're loaded is the best solution. I have a few other tweaks I'll be adding to the next release. Thanks again!
Steps to reproduce
g_currentMission.productionChainManager.productionPoints[10]
Expected
history to be flushed because I'm not on the same savegame
Actual
Global Explorer opens with the last history item, but since that item doesn't exist in the current global object tree - the UI hangs, with the only option to exit. There is no cursor, no means of selecting anything, no means of clearing the input.
Manual Fix
Opening the config file at
modSettings/FS22_GlobalExplorer/history.xml
, and deleting all non-valid (on the new map) history items and re-launching the game fixes the issue.Suggestions