TheGameCreators / AGK-Studio

3 stars 1 forks source link

[Bug] Working File Location on Debug vs Production version macOS #556

Closed muckypaws closed 5 years ago

muckypaws commented 5 years ago

There seems to be two locations that working data is stored depending on Debug Mode or Production Code and inconsistencies in its approach...

When Debugging,

~/Library/Application Support/AGK Player/Game Name/media/

is used

On Final version

~/Library/Application Support/AppGameKit Player/media

There should be consistency between both approaches. I understand the need for segregation of data between development and production, however in production because the Game Name isn't used as an intermediate folder it means that multiple AGK deployments can corrupt each other. Screenshot 2019-10-17 at 00 08 32 Screenshot 2019-10-17 at 00 08 44

plemsoft commented 5 years ago

@muckypaws Thanks for reporting this.

I can confirm that that the "Game Name" is not included in the default writepath when using a final build.

Until this is fixed , you can add the game name yourself when you save data , like this:

OpenToWrite( 1,  "mygamename/testfile.dmp" )
WriteString(1,"My test")
CloseFile(1)

The folder "mygamename/" will be created for you in this case.

PaulSJ commented 5 years ago

Fixed for the next version. The two paths will still be different but the release version will use Library/Application Support/Game Name/media