[boskid][2.0.30] Crash taking screenshots via modding API, Optional.hpp check fails
Posted: Sun Jan 12, 2025 6:41 am
I am trying to make a mod that is capable of taking screenshots of the game at regular intervals among other tasks.
I'm using the game.takescreenshot function and whenever the show_gui, show_entity_info, or show_cursor_building_preview are set to true the game crashes.
The error log looks oddly similar to the forum thread 52878.
I tried solutions from there like disabling all game overlays from third party apps, and forcing openGL. I also tried all the suggestions in the common graphics error thread. 9300
I'm not keen on calling this a bug because I am quite new to modding Factorio. As such I created a video showing the lines of code that produce the error. I think this may be a syntax issue that I'm not aware of but I've tried many fixes. Anyway, the video is here:
https://www.dropbox.com/scl/fi/k050mlyl ... mir2f&dl=0
I'm using the game.takescreenshot function and whenever the show_gui, show_entity_info, or show_cursor_building_preview are set to true the game crashes.
The error log looks oddly similar to the forum thread 52878.
I tried solutions from there like disabling all game overlays from third party apps, and forcing openGL. I also tried all the suggestions in the common graphics error thread. 9300
I'm not keen on calling this a bug because I am quite new to modding Factorio. As such I created a video showing the lines of code that produce the error. I think this may be a syntax issue that I'm not aware of but I've tried many fixes. Anyway, the video is here:
https://www.dropbox.com/scl/fi/k050mlyl ... mir2f&dl=0