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 / Cant save to a .txt :( (Ideas ?)

Author
Message
Random App Creator
8
Years of Service
User Offline
Joined: 27th Jul 2015
Location:
Posted: 28th Jul 2015 00:30
Hey Guys, i hope someone can help me here


I try to save into a txt but somehow it wont work...
Here is my code:


Wilf
Valued Member
17
Years of Service
User Offline
Joined: 1st Jun 2006
Location: Gone to Unity.
Posted: 28th Jul 2015 10:18
Don't use WriteInteger for human readable files. Convert your integer to a string and write that instead:



BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Jul 2015 14:05
Do you mean you can't find the file?

It is in c:\Users\<USER>\AppData\Local\AGKApps\<MYAPP>

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Random App Creator
8
Years of Service
User Offline
Joined: 27th Jul 2015
Location:
Posted: 28th Jul 2015 16:56
thank for your help guys but i tried the new code and looked in that path but i still cant find it :/

Im using the Steam Version of the AGK2 (maybe a bug here ?)


Even if i copy the simple code from the tutorial it wont do anyhting:




Please help me, its the only thing that i need to release my brand new app, but im stuck now
Random App Creator
8
Years of Service
User Offline
Joined: 27th Jul 2015
Location:
Posted: 28th Jul 2015 17:01
Wow i dont understand that now:

I tried to read from the file and it gives me everything that i stored to it, but in the folder the file dont exists ?!

Its working now but i rlly dont understand how it can read and write to a file wich isnt existing...
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Jul 2015 19:18
It will be here...
Quote: "c:\Users\<USER>\AppData\Local\AGKApps\<MYAPP>"


I think there is a command "GetRawWritePath" that tells you where the path is.

And if you are running in Mac, Android, iOS, Linux, it will be different again.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
29 games
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 29th Jul 2015 00:10 Edited at: 29th Jul 2015 00:11
Quote: "Wow i dont understand that now:

I tried to read from the file and it gives me everything that i stored to it, but in the folder the file dont exists ?!
"


AGK knows where things are stored The file or the folder may be hidden (I think I had to unhide it to see the files my apps were creating).

Just to add to BatVink's answer the command is GetWritePath(). If you run the code below, it'll show where AppGameKit is writing files to:



Happy hunting.

Invaders of the 29th Dimension - available now on Google Play
Find me on indieDB

Login to post a reply

Server time is: 2024-04-27 01:19:21
Your offset time is: 2024-04-27 01:19:21