AM2R-Community-Developers / AM2R-Community-Updates

Source code for AM2R 1.5.2+, free of copyrighted assets and trademarks.
https://www.reddit.com/r/AM2R/
Other
139 stars 27 forks source link

Snapshotting in-game has unintended behaviour when launching from the Launcher #79

Closed Miepee closed 3 years ago

Miepee commented 3 years ago

Describe the bug When you press F12 in-game, it only (over)writes snap 0000.png.

To Reproduce Launch AM2R via the Launcher and press F12

Expected behavior It should create new files, like snap 0001.png, snap 0002.png and so forth, just like it does, when you're launching it without the launcher.

Platform (please complete the following information):

Game Version: 1.5.2

Miepee commented 3 years ago

This is a bug on how Game Maker handles working_directory For whatever reason, if you launch a game externally (be it via shell script, programm, etc.) and have a folder structure similar to this: Launcher in dir/Launcher.exe The game in dir/subfolder/subfolder2/Game.exe

Then the Game thinks, that working_directory is in %LOCALAPPDATA%/Game/subfolder/subfolder2 instead of %LOCALAPPDATA%/Game/

A way to fix this, is by changing the current working directory to dir/subfolder/subfolder2.

This has been fixed and tested in Commit 7fb1f09 of the Launcher, will close this issue when a new Release of the Launcher is out.