Mapshot

by palats

Generates a zoomable render of the whole map.

Utilities
a month ago
1.0 - 2.0
5.91K

b multiplayer bug (cannot join [...] mod event handlers are not identical)

4 months ago

578.087 Error ClientMultiplayerManager.cpp:1064: mod-mapshot was not registered for any events when the map was saved but has registered the following events as a result of loading: on_tick (ID 0)
578.087 Error ClientMultiplayerManager.cpp:86: MultiplayerManager failed: "" + multiplayer.script-event-mismatch + "
" + "
mod-mapshot"
578.087 Info ClientMultiplayerManager.cpp:608: UpdateTick(1048695) changing state from(ConnectedLoadingMap) to(Failed)
675.322 Quitting: window closed.
675.322 Info GlobalContext.cpp:768: Deleting active scenario.
675.558 Info ClientMultiplayerManager.cpp:199: Quitting multiplayer connection.
675.558 Info ClientMultiplayerManager.cpp:608: UpdateTick(18446744073709551615) changing state from(Failed) to(Disconnected)

4 months ago
(updated 4 months ago)

seems to be an earlier reported bug from 3 years ago, same reproduce (install midsave, restart, error)

4 months ago

Sorry, I do not have the bandwidth to dig into that. I imagine it could be either:
- An issue with the way Mapshot removes its own event handler.
- Some behavior about multiplayer & mods (e.g., adding a mod later). I'm really not familiar with the details of Factorio multiplayer.

For the event handler thing, that would be around here. From the error message, it seems that remove an event handler might be an issue for multiplayer. The idea here is that Mapshot registers an event handler to trigger itself on startup when requested from the command line. As it is a one-time thing, it unregister itself to avoid having an extra per-tick useless handler. If you have the possibility to customize the mod, trying to remove the line where it unregister might help.

New response