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 / AGK Player can't load files in Documents/AGK/

Author
Message
Luca91
11
Years of Service
User Offline
Joined: 1st Sep 2012
Location: Italy
Posted: 31st Jan 2013 17:31
Hello,
I'm having some problems with AppGameKit player and my android device.
It seems that AppGameKit player can't read files under Documents/AGK/Myapp/media folder.
This is a real big problem sice I store game levels on .dat files and read them with OpenToRead command.

How can I upload those files on my device ?

Thanks
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 31st Jan 2013 17:50
First:
1. What version of AppGameKit are you using?
2. Where did you get your Android Player?

Next, any files that your app needs to upload should be in the <project>/media directory, not in the Documents path.

If your app creates or rewrites any files, then they show up in the appropriate sandbox area for the device and will be read from there after that.

When using the player, any such files end up in the Player's sandbox area and may or may not be available the next time.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Luca91
11
Years of Service
User Offline
Joined: 1st Sep 2012
Location: Italy
Posted: 31st Jan 2013 17:56
Quote: "
1. What version of AppGameKit are you using?
2. Where did you get your Android Player?"


Hi,

1. 108 Beta
2. Google Play

Quote: "Next, any files that your app needs to upload should be in the <project>/media directory, not in the Documents path."


Some months ago I used to put those files in <project>/media, but then I realized that OpenToRead command works only if I put them in Documents/AGK/myapp/media/

Well, when I will be back at home, I'll try to put them in <project>/media and to retry

Thanks
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 31st Jan 2013 18:01
The Google Play Player has not been updated since before v1076, it is no good.

Download the player from this page.

Also, which version of v108? The current one is v1088.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 31st Jan 2013 18:13
by default.
the first start OpenToRead use the file <project>/media.
in game you can save with the same filename
it will save in the user path.
next start OpenToRead found the file in user path and use it.

this automatic is nice for config files and level edit in game.
each user get his default config and save his own or
he can change the default level with a in game editor.

in other words the user can't change the <project>/media template.
Luca91
11
Years of Service
User Offline
Joined: 1st Sep 2012
Location: Italy
Posted: 31st Jan 2013 22:08
Thanks for the help!
I've fixed it by putting the levels in <project>/media
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 1st Feb 2013 15:24
I just checked and it appears that they finally updated the Google Player!

It is v1083, so it is still missing some commands and fixes and not necessarily compatible with v1088.

But, if you are working with v1083, it should be fine.

If you are working with v1088, you should download the player from the link I gave. You can have both on your device at the same time. The one I created and posted uses a different package name.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-05-07 18:48:53
Your offset time is: 2024-05-07 18:48:53