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 / [Tier 2] Image files not coded into the final game; they have to be included in separate files.

Author
Message
Jerry McGuire
7
Years of Service
User Offline
Joined: 25th Mar 2017
Location:
Posted: 12th Apr 2018 15:54
Hi,
I've been working on a Windows app following both the "Getting Started With AppGameKit on Windows" and the "App GameKit Tier 1 Starter's Guide" documents. But in both cases I get an executable that will not include the image files. In other words:

I always have to attach the image files with the final executable or the game will not display the sprites.

This means I cannot sell a self-contained game, and anyone can tamper with the game's images. How can I get a stand-alone executable?
iMac Book Pro, MacOS 10.12.4, Xcode 9.0.1;
iPhone 6, iOS 9.35; iPhone 5s, iOS 9.35; iPad (3rd gen), iOS 9.35;

Dell Precision T7400, Windows 7 Professional 64bit, Visual Studio Community 2015;
Jerry McGuire
7
Years of Service
User Offline
Joined: 25th Mar 2017
Location:
Posted: 12th Apr 2018 22:16 Edited at: 12th Apr 2018 22:21
Quote: " You need something like this: https://www.smartpacker.nl/ "

Wow. Really? So all the software that goes around cannot be programmed using VStudio exclusively? I thought you'd be able to produce some "unique" package like those for apps.
For example, the "resource hacker" software allows you to put an image file into the executable; I couldn't make it work, but it should be possible in principle. Any idea of how to do this? I don't want to spend 100Euros for a software that does this.
Is there anyone that could expand on this topic?
Is there any other way in which games can be delivered without having your assets so directly available/exposed?
iMac Book Pro, MacOS 10.12.4, Xcode 9.0.1;
iPhone 6, iOS 9.35; iPhone 5s, iOS 9.35; iPad (3rd gen), iOS 9.35;

Dell Precision T7400, Windows 7 Professional 64bit, Visual Studio Community 2017;
Jerry McGuire
7
Years of Service
User Offline
Joined: 25th Mar 2017
Location:
Posted: 13th Apr 2018 13:49 Edited at: 13th Apr 2018 13:49
Visual Studio does allow you to add a "resource". However I do not know how to call this resource from the AppGameKit template. Could you please tell me how to do this?
iMac Book Pro, MacOS 10.12.4, Xcode 9.0.1;
iPhone 6, iOS 9.35; iPhone 5s, iOS 9.35; iPad (3rd gen), iOS 9.35;

Dell Precision T7400, Windows 7 Professional 64bit, Visual Studio Community 2017;
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 12th May 2018 16:09
1)Select your project
2)Right click and select the option Add
3)Select the option Existing Item
4)On the lower right corner Select the option All Files (*.*)
5)Using the left pane, navigate to the place where the image or icon is located
6)On the right pane, select the image you want to include and click on the Add button located in the lower right corner.
7)The image is copied into the source folder of your project.
8)On the Solution Explorer select the image and right click. Select the Properties option.
9)On the properties pane, find the Build Action. Change it to Embedded Resource.
10) Save your project
fubar

Login to post a reply

Server time is: 2024-11-18 12:19:33
Your offset time is: 2024-11-18 12:19:33