Q/A: Obfuscating Images
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Help me, PyTom!
Ne, PyTom. I readed your toturial, and didn't undersand "Obfuscating your Game" part .
"... To use this, one can change into the game directory and run a command like:
../archive.exe images *.png *.jpg "
I'm confusion about how to do. Can you tell me about this part again, simly?
Thank you
"... To use this, one can change into the game directory and run a command like:
../archive.exe images *.png *.jpg "
I'm confusion about how to do. Can you tell me about this part again, simly?
Thank you
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
First of all, let me point out I split this into its own topic so that more people can see the answer.
Okay, more detailed instruction on how to obfuscate/archive images.
1) Run a command line.
2) Change into the directory containing your game. (If you haven't changed anything, this will be somehing\renpy-4.0\game\)
3) Enter in the command:
Where jpg and png are the extensions of the image files you want to archive. (So if you have any bmp files, you can add *.bmp to that list. But png and jpg are probably the best formats to use.)
The program will churn for a few seconds, and will then be done. You can then move the jpg and png files out of the directory, and your game will still work, provided you added the
lines to your game.
Is this enough? Or is your problem with the command line itself? If that's the case, let me know, and after calling you a young whipper-snapper, I will write you a batch file that does this. Just let me know what kinds of files you need to archive.
Hope this helps.
Okay, more detailed instruction on how to obfuscate/archive images.
1) Run a command line.
2) Change into the directory containing your game. (If you haven't changed anything, this will be somehing\renpy-4.0\game\)
3) Enter in the command:
Code: Select all
..\archive.exe images *.jpg *.png
The program will churn for a few seconds, and will then be done. You can then move the jpg and png files out of the directory, and your game will still work, provided you added the
Code: Select all
init:
config.archives = [ 'images']
Is this enough? Or is your problem with the command line itself? If that's the case, let me know, and after calling you a young whipper-snapper, I will write you a batch file that does this. Just let me know what kinds of files you need to archive.
Hope this helps.
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
To some extent, I can't help it. I'll stop coding when they pry my cold dead hands off the keyboard.
There are also some things that can't really be expressed well through spoken dialogue. (Like how to call the archive command.)
There's also the fact that the new demo took me about a day to make (not counting the time it took to draw or photograph the images, but counting the time it took me to find them on my hard drive, always an adventure), so it wasn't much.
If people have suggestions for the tutorial, please let me know. If you think you can express something clearer, write it up and I'll add it in. I've been programming for over 15 years, since the first time I touched a computer. So I really don't know what it's like to interact with a machine without programming it.
There are also some things that can't really be expressed well through spoken dialogue. (Like how to call the archive command.)
There's also the fact that the new demo took me about a day to make (not counting the time it took to draw or photograph the images, but counting the time it took me to find them on my hard drive, always an adventure), so it wasn't much.
If people have suggestions for the tutorial, please let me know. If you think you can express something clearer, write it up and I'll add it in. I've been programming for over 15 years, since the first time I touched a computer. So I really don't know what it's like to interact with a machine without programming it.
- rioka
- Royal Manga Tutor
- Posts: 1255
- Joined: Fri Jul 16, 2004 12:21 pm
- Completed: Amgine Park, Garden Society: Kykuit, Metropolitan Blues (art)
- Location: somewhere in NY
- Contact:
I don't blame you. When you're used to expressing and talking to others who understand it like you, that is also how you explain it to any other person even if they're not in the field.
I wasn't going to mention it at this early stage but anyways:
I am planning on making a how-to/making of the game (literally - from images, script, etc) using my first game as an example. I figure it would be a boon and help direct newbie's in their own projects using Ren'py - not to mention maybe get more people to make ren'ai games. ;D
But that'll be awhile till I start it (hey, I gotta finish the game first! ^^) so don't anyone hold their breath.
If I have time to spare till then, I'll see about writing a simple-speak version of your tutorial, PyTom.
Btw, how's you game going snowshine? ^_^
I wasn't going to mention it at this early stage but anyways:
I am planning on making a how-to/making of the game (literally - from images, script, etc) using my first game as an example. I figure it would be a boon and help direct newbie's in their own projects using Ren'py - not to mention maybe get more people to make ren'ai games. ;D
But that'll be awhile till I start it (hey, I gotta finish the game first! ^^) so don't anyone hold their breath.
If I have time to spare till then, I'll see about writing a simple-speak version of your tutorial, PyTom.
Btw, how's you game going snowshine? ^_^
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Just put the following lines into a file named archive.bat, which you should create using notepad in the game directory. Be sure that it's a bat file and not a text file.
Once you save the file, you should be able to double-click on it and it should just work.
Code: Select all
..\archive.exe images *.png *.jpg
pause
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Glad to help.
Two things:
First, did you make your avatar yourself? It looks like its some sort of vector art. What program did you use? I'm a big fan of vector art myself, since I suck at drawing the old-fashioned way.
Second, if I did my math correct, in Vietnam, you posted just after 4am. So what are you doing up so late? That's what I call dedication to our craft.
Two things:
First, did you make your avatar yourself? It looks like its some sort of vector art. What program did you use? I'm a big fan of vector art myself, since I suck at drawing the old-fashioned way.
Second, if I did my math correct, in Vietnam, you posted just after 4am. So what are you doing up so late? That's what I call dedication to our craft.
I used Flash to draw. Last year, I tried making my own Flash cartoon (through its length is only around 2,5 minutes ). This avatar was imported from it.
Oops! Did you notice? I usually stay late to do my favorite works: building my Web, drawing manga for publishing house, and, of course, making game . Mama said I was a little owl. Heee...
PyTom, you know, I'm your fan. Because you can program RenPy. I have never study about program. Mama want me to go the medical university, so I study Flash, Photoshop and Wed by myself ( I'm broke )... Well, I'm using your RenPy to make "Buried" . This game is on my Web http://storm.prohosting.com/vmanga/game ... thieu.html.
Yeah, are you making your game, PyTom? If you want me to help anything (oh no, I only know drawing), please tell me. Because you helped me, and because I'm a your fan.
Oops! Did you notice? I usually stay late to do my favorite works: building my Web, drawing manga for publishing house, and, of course, making game . Mama said I was a little owl. Heee...
PyTom, you know, I'm your fan. Because you can program RenPy. I have never study about program. Mama want me to go the medical university, so I study Flash, Photoshop and Wed by myself ( I'm broke )... Well, I'm using your RenPy to make "Buried" . This game is on my Web http://storm.prohosting.com/vmanga/game ... thieu.html.
Yeah, are you making your game, PyTom? If you want me to help anything (oh no, I only know drawing), please tell me. Because you helped me, and because I'm a your fan.
-
- Regular
- Posts: 133
- Joined: Fri Aug 22, 2003 1:08 pm
- Location: Wroclaw, Poland
- Contact:
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
In response to snowshine:
I'm too normal to have fans. Let's just set up a mutual admiration society.
Right now, I'm trying to do my game by myself, at least when it comes to script, art, and programming. We'll see how that goes.
Since it seems like the first real Ren'Py game will be in a language other than English, I pushed up a feature into Ren'Py 4.1. It will now be possible to localize the main and game menus. One can now supply a translation for any of the English text that's created by the library. This will be in the release that's coming out tomorrow.
Also, if you ever make an English translation of your game, I'd love to play it. If you feel that you need an editor, and noone else more competent steps up, I'll do it.
I'm too normal to have fans. Let's just set up a mutual admiration society.
Right now, I'm trying to do my game by myself, at least when it comes to script, art, and programming. We'll see how that goes.
Since it seems like the first real Ren'Py game will be in a language other than English, I pushed up a feature into Ren'Py 4.1. It will now be possible to localize the main and game menus. One can now supply a translation for any of the English text that's created by the library. This will be in the release that's coming out tomorrow.
Also, if you ever make an English translation of your game, I'd love to play it. If you feel that you need an editor, and noone else more competent steps up, I'll do it.
Who is online
Users browsing this forum: No registered users