Jump to content
  • Advertisement
Sign in to follow this  
CrankyBoy

How can I share a .exe game?

This topic is 801 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have been learning a bit of coding and some stuff this year and I'm doing some little shitty games with Xamarin Studio, using SFML, in c#.

So my question is, how I can share my games hidding the code ? I use to put a lot of easter eggs and i don't want people finding in the code.

Share this post


Link to post
Share on other sites
Advertisement

You can't. Highly trained reverse-engineering would get your "easter eggs" fairly easy.

Obfuscator could result in a good protected code but for some degree.

You still can't hide asembly code. 

Share this post


Link to post
Share on other sites

To protect your content from beeing seen you also could encrypt it. This is done by AAA games for example The Elder Scrolls Online or The Devision because they want to protect there content from beeing modded in online play.

 

Content is in most games shipped in packages that are also compressed to reduce the size. Because those packages are loaded from Harddrive or Network, there isnt anything important that may not be encrypted/decrypted that otherwise could crash the runtime of your game. Also most packages are signed by the vendor to verify that content wasnt modified.

 

You could use this for your easter eggs too so that getting them from code isnt possible that easy and until someone cracks your code there will be more people that did find these easter eggs and told to others so they werent secret anymore anyways.

Edited by Shaarigan

Share this post


Link to post
Share on other sites

Encryption means really nothing. Ultimately, if you need to show or run it, your local computer needs to be able to decrypt it before use, which means the decryption keys must be available too at the same local computer. In other words, you'll have to send the keys of the door along or you won't be able to use or show the house.

That means any dedicated person is going to be able to decrypt it as well.

 

Given enough users, there is going to be at least one such dedicated person.

 

 

As frob said, the only really secure way is to not give the secret stuff away at all. You can't reverse engineer what is not there.

Share this post


Link to post
Share on other sites

Yeah, that would be what you do. Keep the easter egg and other private stuff stored in a database encoded. In your game you have the algorithm to decode it. That means anyone trying to find it, won't be able to, they will have to find the algorithm and packet sniffers and much more.

Share this post


Link to post
Share on other sites
It's not worth your time or money doing any advanced obfuscation.

You can keep 99.9% of users out by zipping your file, changing the first two bytes from PK to FU, and changing the files extension to .pak

It's hardly rocket science but it will keep away casual browsers. If someone's determined to find your easter eggs they will and if they're technically minded you're fighting a losing battle.

Good luck!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!