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 / Why Does Tier2-Windows copy all media to MyDocuments/AGK?

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 17th Aug 2011 12:27
Why Does a Tier2 Windows.exe (created in Debug mode) copy all media to My Documents/AGK?

All Media already resides in the local folder, so why is there a reason to duplicate it?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 17th Aug 2011 12:33
Sorry, my fault, it's installing default agk assets.

This could be a problem when distributing games on pcs that have limited user access writes.

Can we put the default media in the exe directory so agk does not have to save them in my documents, but just load them from there?
Orac
17
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 17th Aug 2011 14:36
Hi,

I've been tearing my hair out wondering why I couldn't load an image using the line int iImage = agk::LoadImage( "blue.png" );

After reading your post I looked in the My Documents\AGK folder and sure enough there was folder there that had been created when I compiled the project. I copied the image into this folder and it loaded OK!

This is a big problem. You should be able to specify where to load your assets from.

Of all the things I've lost .. I miss my marbles most of all.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 17th Aug 2011 15:35
Right now you have to put your pictures in a MEDIA folder with your exe.
But they are going to change it for the next version so you can use any folder structure you want. 5 star for that.

I hope something alternative to the "My Documents" saving is done. I can understand that for Tier1 there should be such things done automatically, but for Tier2, we should have total control where files are going, like other engines.
Orac
17
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 17th Aug 2011 16:42
@bjadams

I tried putting the assets in a 'media' folder but it still doesn't work. The only way I could get it to find the assets was to copy them to the My Documents folder.

Of all the things I've lost .. I miss my marbles most of all.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 17th Aug 2011 17:38 Edited at: 17th Aug 2011 17:39
I put my assets into a subfolder of the Media folder (like this: ProjectFolder\Media\Subfolder) and loaded them like this...


Or for you tier 2 guys...


My signature is NOT a moderator plaything! Stop changing it!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 17th Aug 2011 18:07
They will fix this media thing, so there will be less confusion soon.
Neuro
20
Years of Service
User Offline
Joined: 17th Aug 2003
Location:
Posted: 18th Aug 2011 07:10
Now i'm wondering where the media is stored for the Xcode tier 2 stuff? Yeah i hope they get this fixed soon.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 18th Aug 2011 09:25
it seems that in xcose (ios) there is no hardcoded media folder requirement. you can put your files wherever you want.
Orac
17
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 18th Aug 2011 13:41
@Mobiius

That tip works - thanks!

I'm using Tier-2 with Visual Studio 2010 by the way, now if only I could compile a release version ...

Of all the things I've lost .. I miss my marbles most of all.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 18th Aug 2011 15:02
Glad to help! lol

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2024-03-29 07:42:12
Your offset time is: 2024-03-29 07:42:12