SETSHOEBOX Problem

Previous topic - Next topic

Kyo


I'm using the command setshoebox

The folder contains files like this:
Code (glbasic) Select

-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!

matchy

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$

Kyo

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.

MrTAToad

I believe non-media files cant be included in shoebox files

Kyo

Noooooooooooo  :'(

I move all the files   :rant:

But there is no paker for glbasic?

matchy

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?

Jonás Perusquía

Code (glbasic) Select
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?
<HTML><BASIC><EC>
Be free and do good things

CW

#7
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

Kyo

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:

CW

#9
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

2.) The 64-bit version
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

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

Kyo

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

2.) The 64-bit version
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

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?

CW

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

Kyo

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.

CW

#13
For encryption on the fly, you may want to check out TrueCrypt.
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

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/