Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / write to file - lacking permission on Mac?

Author
Message
Timshark
16
Years of Service
User Offline
Joined: 30th Jun 2007
Location: Oslo, Norway
Posted: 15th Dec 2020 04:08
Hi
Im trying to write to a file in the projects media directory on Mac with this code:



Nothing happens. The file is not created or if I make a text file, nothing is changed in the file. Is this a permission thing on Mac?

Tim
MadBit
VIP Member
Gold Codemaster
14
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 15th Dec 2020 06:07
I don't know where AppGameKit stores user files on Mac. But on Windows the storage folder is not the same as the project folder.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 15th Dec 2020 06:21 Edited at: 15th Dec 2020 06:27
Actually if you're creating files it stores them in C:\Users\your_id\AppData\Local\AGKApps\your_app\media
There is probably a similar folder on the mac.
You can prove this by opening the file you just created using OpenToRead()


EDIT: You can get the folder that is written to using GetWritePath()
Timshark
16
Years of Service
User Offline
Joined: 30th Jun 2007
Location: Oslo, Norway
Posted: 15th Dec 2020 12:02
Ah. I found it in the user/library folder as you said. Thank you.

Login to post a reply

Server time is: 2024-03-28 10:46:36
Your offset time is: 2024-03-28 10:46:36