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

Author Topic: Images In Executable  (Read 6260 times)

0 Members and 1 Guest are viewing this topic.

mimipim

  • Newbie
  • *
  • Posts: 49
    • View Profile
Images In Executable
« on: January 30, 2011, 12:47:46 pm »
Hi guys.

I'm developing a 2D game. That I need is to load images from exe(wheres the game start) or from any filetypes which can't be edited.

How can I do this?

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Images In Executable
« Reply #1 on: January 30, 2011, 12:52:46 pm »
You can have GIMP compile an image into a header file.. Though they tend to get pretty big.

That should work on any OS that SFML supports.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

mimipim

  • Newbie
  • *
  • Posts: 49
    • View Profile
Images In Executable
« Reply #2 on: January 30, 2011, 01:38:34 pm »
Thanks for your reply.

If anyone has another suggestion, let's share it. I want to know all the possibilities.

PS.: Game will be only for windows.

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Images In Executable
« Reply #3 on: January 30, 2011, 06:02:02 pm »
People can extract and edit your resources no matter what you do. Resource hacker makes it easy to get bitmaps embedded as resources. You're better off leaving PNG files in a content folder in your exe directory and not worrying about it.

mimipim

  • Newbie
  • *
  • Posts: 49
    • View Profile
Images In Executable
« Reply #4 on: January 30, 2011, 09:22:25 pm »
Okay but can I use some other formats, to put all images on one or something like this. Because I don't wanna to be visible so easy the images.

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Images In Executable
« Reply #5 on: January 30, 2011, 10:12:16 pm »
My engine uses a package system, a file that contains other files, you could do something like that, just copy all the files into one in brute, and add a header so you know what is what ;D

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Images In Executable
« Reply #6 on: January 30, 2011, 10:20:01 pm »
If people want your resources they will take them no matter what you do. If you really don't want them messed with then embed them at the end of your exe, encrypted, in a complex custom package format.

  • Guest
Images In Executable
« Reply #7 on: September 29, 2011, 01:04:17 pm »
An executable image is a file that acts like a "virtual disk"; when you open the file, it acts as though it is a disk drive.

It's a variation on file compression, such as ZIP or RAR files. Executable images are very common in the Linux / Macintosh world -- most programs installers are contained in executable images, for example -- but less common in the Windows world.


Cegonsoft
_________________________
Cegonsoft foundation