Game Development Community

How to BUILD PROJECT into a SINGLE executable FILE ?

by NLKNguyen · in Torque Game Builder · 11/07/2009 (1:10 pm) · 10 replies

Hi, I'm TGB newbie, I really want to make a simple 2D platform game like Mario or Aladin, so I start learning TGB few days ago, when I build a project (File/Build Project), all the resources and some other file show in folder without encrypted, it's easy for people to steal game resources and I don't like that. I thought it will build a single executable file with everything encrypted inside, and it must be that way I think.
I dont know is it because of my version of TGB, I google it whole day but no luck.

Can you tell me how to build a single executable file ?
Thank you very much !

About the author

Recent Threads


#1
11/07/2009 (7:14 pm)
To do that, you would have to completely change how Torque engine works. Basically, this isn't going to happen. Your best bet is to look into per-file encryption, and make the source changes to handle it.

Still, even using that, it's never going to be a difficult task for a user to take your 2D art. There are plenty of sprite-capture applications around. Besides, merely embedding your resources into the executable would make them just as easy to take, and having them all embedded into a single file would create an incredibly large file for any real project.
#2
11/07/2009 (7:42 pm)
Don't listen to Kenneth, there is a way. I will find a link on how to, and it doesn't require any changes to the source.

Although the way I am looking at is for TGE, I believe it may be possible to to do it to TGB.

EDIT: I couldn't find the link, but I think I remember how to do it, but I am using a Mac so it may be different if you use PC.

1. Right click the executable.
2. Click on "Show Package Contents".
3. Put the main.cs file and your game files next to the "Contents" folder.

Now again that is for TGE, but I believe a few changes could be made for TGB.
#3
11/07/2009 (10:37 pm)
You could just use a passworded ZIP file, TGB comes with that functionality built in. Should be enough to keep out most n00bs looking to take your assets. But in the end if someone wants your art bad enough they'll get it. If I were you I'd just focus on finishing your game ;)
#4
11/07/2009 (10:42 pm)
You also need to remember, .dso files can't be decompiled, so it's not like anyone will be able to change anything more than the sprites...
#5
11/08/2009 (12:22 am)
@Kenneth Murray : could u tell me more about names of those sprite-capture applications, I want to test it on some other games to make sure what it like . I'm curious
And I think the game I want to make is not too far complicate than the original Mario , actually I'm using TGB Platformer Kit, so it's not called a big game I think.

It's not like I want to make a Diablo II, by the way, can TGB make a game like Diablo II (using TGB Adventure Kit), and if it could, then is it much much more heavier for computer to play ?

@Tyler Slabinski : Wow, it worked. It's look better now.

@Joe Rossi : could you tell me how i do that. I don't intend to keep it non-hackable I just want to make it more security, at least I want to keep all files in a Single file, it's more clean that way.

-----
well, I was afraid that my version is limited in publish game. If it's the way it has to be, then it fine.

the solution to make a single playable file for Mac is okay now, what about for Windows ? I think a portable maker program is okay, but are there any other ways ?

PS: I'm MAC & Windows user and I work with MAC


Thank you everyone !

#6
11/08/2009 (2:33 am)
There is no way on either platform just like that.

On Windows you can use software like Molebox Pro / Ultra to really make it a single exe.
Don't know if there is comparable software for OSX as OSX pretends to have all in 1 app but in reality the app itself is just a folder (put the app on a non osx system and you get an applicationname.app folder with all plain in there)
#7
11/08/2009 (4:21 am)
Take a look at GLIntercept. It allows anybody to save off your graphics, 3D models, and even your shader programs!

Also, a DSO disassember (of sorts) has been created, so you really can't count on DSOs as an encryption method, either.

You should be so lucky that people want to steal your assets. It means your game is popular.
#8
11/08/2009 (1:08 pm)
The law protects you. Don't work too hard protecting your assets - do the bare minimum. If they try to use your assets in any commercial way, you can send a takedown warning to their providers and talk to a lawyer. I wouldn't be worried about mods. That's what made many games popular :)
#9
11/09/2009 (9:43 am)
Ok, I see :)
Thank you everyone, have a nice day !!
#10
02/03/2010 (7:21 pm)
Joe u said
You could just use a passworded ZIP file, TGB comes with that functionality built in.


please can u tell us how to use this built in functionality