Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Hide the files of your "game" or "app"  (Read 2379 times)

0 Members and 1 Guest are viewing this topic.

Power

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Hide the files of your "game" or "app"
« on: April 09, 2020, 02:33:26 pm »
Hello,
I am very excited for learning SFML, and still have many questions,
On a video tutorial, i saw how a compiled programme through "release" option, could be generated and be distributed, the tutorial mentionned not to forget any data files (font/image/texture/musics).

And i tried it, i could send a programme.exe + the files + the .dll files all in one package, the receiver extracted all and was able to test my programme.

Now is there a way to hide all the files/data from the user of the programme?
« Last Edit: April 09, 2020, 03:32:57 pm by Power »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Hide the files of your "game" or "app"
« Reply #1 on: April 09, 2020, 07:02:33 pm »
Yes, you can compile the resources directly into the executable. For DLLs, the solution (when possible) is to link the corresponding library statically to your executable.

But is there any good reason to do so?
Laurent Gomila - SFML developer

Power

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Hide the files of your "game" or "app"
« Reply #2 on: April 09, 2020, 09:00:14 pm »
Yes, let's say i made a game with "secrets" and suprises.
I don't want players to discover all the images and sounds and musics that the game has to offer.
Do you know how can that be done? I am using CodeBlocks.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Hide the files of your "game" or "app"
« Reply #3 on: April 09, 2020, 09:21:13 pm »
Google has quite a few results when you look for resource compiler and similar keywords. ;)

Don't forget that a simple resource hack tool, will reveal all the images and sounds anyways, so if that's the only reason, it's not really worth it. The ones that want to look at the resource files will find a way regardless - all the AAA games are being reverse engineered to some extend.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Power

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Hide the files of your "game" or "app"
« Reply #4 on: April 09, 2020, 11:12:43 pm »
Google has quite a few results when you look for resource compiler and similar keywords. ;)

Don't forget that a simple resource hack tool, will reveal all the images and sounds anyways, so if that's the only reason, it's not really worth it. The ones that want to look at the resource files will find a way regardless - all the AAA games are being reverse engineered to some extend.
True indeed.
I guess it wanted to hide them from random close contacts who would alpha test my game/app.
Okay i will try to search and find how to do it.thx
« Last Edit: April 10, 2020, 10:23:13 am by Power »

 

anything