Jump to content

  • Log In with Google      Sign In   
  • Create Account


portable version of game


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
10 replies to this topic

#1 Bush   Members   -  Reputation: 157

Like
2Likes
Like

Posted 11 January 2013 - 10:35 AM

Hello!!!
I have an interesting computer game. I want to create  a portable version of this game (no installation), so users can play it without having to install (at work, for example!). What technologies for creating and using portable games do you know? 
 



Sponsor:

#2 Tom Sloper   Moderators   -  Reputation: 7448

Like
0Likes
Like

Posted 11 January 2013 - 11:58 AM

Not a Writing question. Moving to For Beginners.


-- Tom Sloper
Sloperama Productions
Making games fun and getting them done.
www.sloperama.com

Please do not PM me. My email address is easy to find, but note that I do not give private advice.

#3 Karsten_   Members   -  Reputation: 1201

Like
2Likes
Like

Posted 11 January 2013 - 12:05 PM

If you want a single file for your users to click and run, perhaps you can look into tools like WinRAR that can create self-extracting .exe files.

 

This way it will silently extract to a temp directory, run the game and then clean up afterwards. I does work quite well unless the game is massive.

 

For UNIX you can do similar with something like makeself (http://megastep.org/makeself/).

 

This system pretty much works using any language, i.e you could include the whole java runtime or python environment. (Though it might be a bit large or take a tad longer to extract).

 

I did try it with Java and WinRAR a while back.. and it does work suprisingly well.


Mutiny - Open-source C++ Unity re-implementation.
Defile of Eden 2 - FreeBSD and OpenBSD binaries of our latest game.


#4 shadowomf   Members   -  Reputation: 319

Like
3Likes
Like

Posted 12 January 2013 - 01:00 PM

If you want your application to be just copy-able (being able to copy the whole game folder to another machine and run it) you should make sure that all required resources and libraries are located in this directory.

On Windows settings should be loaded from %appdata% and if they can't be found they should be created with some default values that make sense.

 

However if you want your game to be a single file it gets a bit more complicated.

You will have to use statically linked libraries (.lib files, not static linking of .dll's).

The resources will have to be added as actual ressource files by the linker or you just append them to your executable by using the copy command. I would prefer the second one, as mentioned before if you look for sfx archives you will find how they build their stub. The advantage is that code and resource compilation is not dependent on another. And if you're clever you will be able to remove appended ressources from you executable and replace them with new ones, no recompile neccessary.



#5 Pasparty   Members   -  Reputation: 118

Like
2Likes
Like

Posted 14 January 2013 - 05:24 AM

If you thought to make a game without installation, I recommend to read a useful article in Wikipedia (at first) http://en.wikipedia.org/wiki/Portable_application + http://en.wikipedia.org/wiki/Portable_application_creators 

I do not know the specifics of the game, so I can not advise sdk for creating this game



#6 Bush   Members   -  Reputation: 157

Like
0Likes
Like

Posted 15 January 2013 - 07:18 AM

oh! I am grateful for the information!



#7 Ravyne   Crossbones+   -  Reputation: 5686

Like
3Likes
Like

Posted 15 January 2013 - 09:17 AM

To make a portable application, you just have to package everything into a single directory (which, itself, can contain sub-directories), and then use relative paths. Make sure to include all dependencies you might need, as you can't count on them being installed on the machine that the application is running on. For save-games and settings, you want to store anything that follows the user inside that directory (say, so that they can put the game on a USB drive and continue on a different machine), and any machine-specific settings or data in someplace like %appdata% -- say, video quality settings. In general, portable software is also written to assume that the user has no special privileges to the machine; this is good practice for all software, but is necessary for portable apps, as the user may not even have temporary admin rights, say, to install necessary dependencies like DirectX.

 

You can go one step further and make your application a single file, but its not necessary. If you wanted to do that, you'd need to write all your resources onto the end of your .exe file, and then take special care to read them back appropriately. Usually you'd first package the resources into something like a .zip file, and then append that file to the end of the executable; hen you can treat the zip file (which may or may not be compressed) as a sort of file system. This is kind of a neat approach, but its a fair bit of work and complication, without providing much benefit over the single directory approach.



#8 Topiary   Members   -  Reputation: 147

Like
2Likes
Like

Posted 17 January 2013 - 06:10 AM

More than a year ago, I created my first portable application.smile.png
Tip: you can find how to create portable applications on YouTube! (Search thinapp, boxedapp, cameyo, spoon)


#9 Bush   Members   -  Reputation: 157

Like
0Likes
Like

Posted 18 January 2013 - 07:21 AM

Thanks, guys! At first I did not go that way! You have helped me! (I found the tutorials, to create portable application is easier than I thought)
Thank you all!



#10 termintator2012   Members   -  Reputation: 129

Like
1Likes
Like

Posted 21 January 2013 - 05:18 AM

More than a year ago, I created my first portable application.smile.png
Tip: you can find how to create portable applications on YouTube! (Search thinapp, boxedapp, cameyo, spoon)

Yes, there are a lot of great tutorials! I use them! And I advise to you)


Edited by termintator2012, 21 January 2013 - 05:19 AM.


#11 Bush   Members   -  Reputation: 157

Like
0Likes
Like

Posted 22 January 2013 - 04:10 AM

I really found a lot of useful information and videos. Thank you all!






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS