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 Classic Chat / AGKApps Folder

Author
Message
RobbSnow
8
Years of Service
User Offline
Joined: 14th Oct 2015
Location:
Posted: 24th May 2016 19:53
Is there anyway to change the name of this folder?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th May 2016 23:40
No, it will always be created when the app runs, but you can save files somewhere else by using SetRawWritePath
RobbSnow
8
Years of Service
User Offline
Joined: 14th Oct 2015
Location:
Posted: 25th May 2016 19:46 Edited at: 25th May 2016 20:03
Okay.
So, you and I both make a game about fishing and call it "Fish".
Is everyone that buys both our games going to have data from both games written to the same folder or is it handled some other way?

Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 26th May 2016 20:14
On iOS, Android, and Mac this is handled automatically and every app will have its own data. On Windows, and Linux it uses the exe to differentiate apps, so you are right, if we both had an app named Fish they would go to the same folder. We initially had it use the full exe path to differentiate apps, but in some cases this generated paths that were too long for Windows. So there is probably some room for improvement here, however since the paths are set up before the bytecode runs it is difficult to get the app to provide a unique string like a company name or something.

For now if you are using a common exe name then it might be best to use a unique folder inside the write folder when writing files. For example OpenToWrite("/MyCompany/MySaveFile.txt"), or using the SetRawWritePath and MakeFolder commands to create a custom folder in the AppData folder and then setting your write path to that.
RobbSnow
8
Years of Service
User Offline
Joined: 14th Oct 2015
Location:
Posted: 26th May 2016 21:20
Thanks Paul
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th May 2016 09:42 Edited at: 27th May 2016 09:42
Perhaps call the folder the app Id name. (com.company.appname) like android does? Incorporate this into the planned windows deployment wizard?
RobbSnow
8
Years of Service
User Offline
Joined: 14th Oct 2015
Location:
Posted: 15th Jun 2016 20:41
So it only has to be that way in Tier 1?
RobbSnow
8
Years of Service
User Offline
Joined: 14th Oct 2015
Location:
Posted: 30th Jun 2016 02:23
I saw this was added to 2.0.20. Thanks!!

Login to post a reply

Server time is: 2024-04-26 13:42:58
Your offset time is: 2024-04-26 13:42:58