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 / Can the .exe contain the media?

Author
Message
Rob from Scotland
20
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Scotland
Posted: 29th Sep 2013 21:09 Edited at: 29th Sep 2013 21:20
I can compile my app and run it. This produces a .exe application and I can run it. However, if I remove the application, say to the desktop, then the application cannot run. If I copy the media folder to the desktop then the application runs ok. Can my app be compiled to include the media inside the resulting .exe?

On another matter, when the app runs from the destop, with the media file also present it has a vertical layout rather than a square generic one that I thought I had started with. I'd really like it to have the much bigger screen that I had used with setvirtualresolution(1224,680). Any help around, again!!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Sep 2013 21:22
Quote: "Can my app be compiled to include the media inside the resulting .exe?"

AGK's IDE just cannot do that.

As for the other issue, the file built by the AppGameKit IDE (which is basically a copy of the Windows Player) looks for the 'setup.agc' file to tell it the space available to it. If it does not find it, it defaults to some values in portrait mode (I don't know how it picks them).

So, if you want to use the settings in setup.agc (which probably match what you are using in your SetVirtualResolution command), then you need to copy that file to your desktop as well.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Impetus73
12
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 4th Oct 2013 20:55
I used SmartPacker tool to create an EXE file with all the media in it.

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 4th Oct 2013 21:32
SmartPacker looks interesting (just checked the website). How does it handle the files that get written to Documents/AGK/<appname>/media?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 4th Oct 2013 22:05 Edited at: 4th Oct 2013 22:08
Would V-Packer work with AppGameKit?

BTW, any idea for something that also works on Mac?

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 4th Oct 2013 22:12
On the Mac the media file is not visible. Xcode builds a single package just like for Android or iOS.

And, if you publish for Mac, you are required to use Xcode to create the deliverable (at least that is what I saw the last time I looked at the agreement I signed).

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 4th Oct 2013 22:34
Thanks

Rob from Scotland
20
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Scotland
Posted: 5th Oct 2013 13:31
This is all very interesting. With DarkBASIC classic all the media was contained in the exe. SmartPacker looks good but a little expensive. I have just started with AppGameKit and only see it as a hobby. Of course, if any cash finds its way to me then that's OK.

Do others release an app as a folder containing the app and media folder?
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Oct 2013 14:08
Currently most games are released for iOS and Android and those games are already packaged. Bax used some packer for his game that is free but comes with a launcher. I am considering SmartPacker myself right now as I soon intend to go beyond this community.

Downloaded the trial. Will give it a go later.

Impetus73
12
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 6th Oct 2013 22:21 Edited at: 6th Oct 2013 22:21
SmartPacker Pro uses a virtual filesystem, so all files are stored inside the .exe file, so if you solve 4 levels, and give someone the .exe file, they have 4 levels solved, make sure they get a "nonplayed" .exe file

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 6th Oct 2013 22:57
Impetus73:
Now that's interesting. So you can create and delete files inside it? What about saving/accessing files externally, for say level creation?

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 6th Oct 2013 23:00
Impetus73, it shouldn't work that way for an AppGameKit app that writes to files. Unless the SmartPacker overrides writing to Documents\AGK\appname\media.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Impetus73
12
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 7th Oct 2013 03:57
Yes it override, and makes a virtual C: drive inside the file. Nothing is stored outside this virtual system.

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 7th Oct 2013 16:02
Cool. I actually like that.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 7th Oct 2013 16:26
Vishnu Packer is free but it does bloat your download quite a bit.

You ain't seen me right?

Login to post a reply

Server time is: 2024-05-07 10:54:10
Your offset time is: 2024-05-07 10:54:10