I'm using the command setshoebox
The folder contains files like this:
-Game
|_Character
|_Player1
|_Player.txt
|_Player.png
|_Enemy
|_Enemy.txt
|_Enemy.png
png files will work, but the txt files (or ini) do not read them.
Why?
Thanks for the help!
As I haven't used it for a while but shouldn't non-media files be in separate files and/or called from the first parameter? :whistle:
SETSHOEBOX data$, media$
This is a small test.
SetShoeBox only reads the first line of the txt file.
I renamed the folder Barile in Barile1, otherwise the exe reads media from them and work fine.
I believe non-media files cant be included in shoebox files
Noooooooooooo :'(
I move all the files :rant:
But there is no paker for glbasic?
What happens when you rename the file.txt to file.bmp or file.wav, pack it, then extract it and rename it back to file.txt?
SETSHOEBOX data$, media$
Specifies a shoebox file from which data can be loaded. Commands that can use shoeboxes (like LOADBMP) will try and find the filename specified with the command first. If the file cannot be found it will check for the file (removing any path information) within the shoebox.
Shoeboxes are compressed archives of files from within a single folder. Under the tool menu you can find a program (shoebox) that you can use to create shoeboxes.
data$ specifies a shoebox file for the commands LOADSPRITE, LOADSOUND, LOADFONT, LOADBMP, BLENDSCREEN, GETFILE
media$ specifies a shoebox file for the commands PLAYMUSIC, PLAYMOVIE, LOOPMOVIE
Path information is ignored when checking a shoebox for a datafile.
Any way to unpack a shoebox file?
QuoteBut there is no paker for glbasic?
Hi Diego,
Look under Tools, and choose "Folder to Zip". Then select your project folder. That is great for sharing. It's a bit wasteful for backing up, but it would work for that too.
There are also archive utilities which automatically back up your work to disk or the cloud. We can help you with that.
A quick-and-dirty option is to do a Copy of your code and paste it to your word processor. Then save all revisions, with notes, inspirational picture and sketches, outlines, Etc. with that. I frequently use this method. Restoring is a simple as a cut and paste back.
Or you can copy and paste code directly to the message board, to share. (If they are no too long.) What do you have in mind?
-CW
Quote from: CW on 2013-Mar-28
QuoteBut there is no paker for glbasic?
Hi Diego,
Look under Tools, and choose "Folder to Zip". Then select your project folder. That is great for sharing. It's a bit wasteful for backing up, but it would work for that too.
There are also archive utilities which automatically back up your work to disk or the cloud. We can help you with that.
A quick-and-dirty option is to do a Copy of your code and paste it to your word processor. Then save all revisions, with notes, inspirational picture and sketches, outlines, Etc. with that. I frequently use this method. Restoring is a simple as a cut and paste back.
Or you can copy and paste code directly to the message board, to share. (If they are no too long.) What do you have in mind?
-CW
I do not need to make backups! =D
I would like a single file with all media content (sprites, sound, txt or ini etc.)
For example: file .dat
To protect (crypt) all files!
Even on Android just rename the. Apk file in. Rar and you can access the Media folder, and then the files! :good:
It sounds like you found the answer you were looking for. :)
For file security, You may be interested in Axcrypt, a free and open-source encryption utility. There are thee versions available:
1.) The standard, 32-bit version
http://download.cnet.com/AxCrypt/3000-2092_4-10564424.html (http://download.cnet.com/AxCrypt/3000-2092_4-10564424.html)
2.) The 64-bit version
http://download.cnet.com/AxCrypt-64-bit/3000-2092_4-75181507.html (http://download.cnet.com/AxCrypt-64-bit/3000-2092_4-75181507.html)
3.) The portable version which you can carry on your thumb-drive to securely access your files when you are away from home.
http://download.cnet.com/AxCrypt-Portable/3000-2092_4-75538779.html (http://download.cnet.com/AxCrypt-Portable/3000-2092_4-75538779.html)
The best way to encrypt an entire Project Folder is to zip it first, then Axcrypt.
AxCrypt supports English, Danish, Dutch, French, German, Hungarian, Italian, Norwegian, Russian, Polish, Spanish and Swedish.
Try the 'Encrypt to .EXE' option. This creates a self-extracting file. It works like a charm. Just don't forget your password or there is no getting the material back.
-CW
Quote from: CW on 2013-Mar-28
It sounds like you found the answer you were looking for. :)
For file security, You may be interested in Axcrypt, a free and open-source encryption utility. There are thee versions available:
1.) The standard, 32-bit version
http://download.cnet.com/AxCrypt/3000-2092_4-10564424.html (http://download.cnet.com/AxCrypt/3000-2092_4-10564424.html)
2.) The 64-bit version
http://download.cnet.com/AxCrypt-64-bit/3000-2092_4-75181507.html (http://download.cnet.com/AxCrypt-64-bit/3000-2092_4-75181507.html)
3.) The portable version which you can carry on your thumb-drive to securely access your files when you are away from home.
http://download.cnet.com/AxCrypt-Portable/3000-2092_4-75538779.html (http://download.cnet.com/AxCrypt-Portable/3000-2092_4-75538779.html)
It works like a charm. Just don't forget your password or there is no getting the material back.
-CW
Ok I download AxCrypt, install it, and after I encrypt the files!
Now how do I access at the encrypted files from my executable?
Ah.. you want encryption on the fly. That I have never done. I don't know if Ax-crypt can handle it, quite honestly. Maybe not.
-CW
Quote from: CW on 2013-Mar-28
Ah.. you want encryption on the fly. That I have never done. I don't know if Ax-crypt can handle it, quite honestly. Maybe not.
-CW
That's why I want to use setshobox command. but I have to move all the txt files in another folder.
For encryption on the fly, you may want to check out TrueCrypt.
http://www.truecrypt.org/ (http://www.truecrypt.org/), another free, open source encryption program.
I have never used this one, so I can't personally vouch for it. But I have heard good things about it. If you do try it, be sure to come back and let us know what you think, and how well it works for you. :)
-CW
Shoebox should been used for protection, since its pretty easy to get list of all files and then extract them. It's more a compression format.
All media on android need to been extracted to sd or internal memory, so files can been get there.
So for Png/bmp you could color scramble them and txt files could been crypted by uses of crypt commands. Then they can't tamp them in regular way.
Howover there "might" been some us export issues on android and iOS. Not sure it's also about "drm" here.
Those is just ideas.
You can store all your data in an (integer) array, then MEM2SPRITE it and save this array as a sprite (png for loseless compression). Put the sprite in the shoebox.
In your program you can just load this sprite, then SPRITE2MEM it back into an array and use your data. - Done.
If you want you add encryption with ENCRYPT/DECRYPT as an additional step for a tiny bit of extra protection (problem would be how to store the key in a save way).
Diego,
After reading over the docs for TrueCrypt, I don't believe it will give you the type of security you are after. TrueCrypt is perfect for securing your private files against unauthorized users/snoopers, however these same files are completely open to authorized users. In this way you could encrypt your music library, for example, and no one could tell that such files are anywhere on your system. But before any music player or other programs could access those files, you first have to unlock (mount, actually) the virtual hard drive to allow on-the-fly access. At that point those files are entirely open to your third-party utilities.
So if it is your aim to lock up your data/text files so that your program can access them, but the users can not, this TrueCrypt isn't the solution I had hoped it might be for you. Maybe a shoebox for your non-text data is the way to go, and for the text data, a custom written encryption function, written into your program, is the way to go. Then only your program (or someone with a de-compiler) will be able to read the text files you wish to keep secure.
I'm sorry I couldn't find a better solution for you. Maybe someone else can.
(Kanonet's solution sounds pretty good. :good:)
-CW
it's all very complicated! :giveup:
Anyway thanks for reply! :booze: :good:
As Kanonet suggested, storing data inside in code is a good and secure way but could make the large executable file size due to DATA command or variable data. I suggest this but not for a game because, reallly in most cases, what is there that needs hiding? Player and enemy data? Come on!
CW needs to understand the SETSHOEBOX command because it's not about encryption and spacefractal is right about exportation of the product in iOS.