Page 1 of 1

Image to Text Thing

Posted: Tue Jan 25, 2005 9:31 pm
by Guest
I had/might still have a goal, which is to make a sprite ripping program. What it'd do is load, say, a screen shot of a game. Then it'd divide it up into 16x16 pieces, and make each piece an array. Next, it'd compare every part of the array and delete any parts that it has a copy of, to keep from ripping multiple of the same tile. Then, one by one, with each array that doesn't have a match; it'd draw to the screen, and save to a .bmp. You would still get some junk tiles, but you'd basically get all of them on the screen. (Junk tiles, as in, it making separate tiles out of where your mouse is, or your character). But that'd be okay, I guess, you can just delete them....Anyway, to do that, I decided to make a few practice programs first.

My first attempt failed so bad that my computer froze and i had to reboot.

My second attempt actually did pretty good, and I even remembered to lock buffers this time. :) Anyway, my second attempt actually developed into a sub-par program that might actually be useful. What I did was practice making images text and back. So I made it so you can load an image, convert and save it as ASCI text, delete the original image and still be able to view the image in the program.(the RGB of each pixel of teh image is saved, when loaded they are put into an array and redrawn.)

Anyway, to make a long story short, I have an image encryptor type deal. If you have a picture or something you don't want to be found, or you just want to mess around, take the image, name it "JD" (don't ask why I chose that name. o.o) and then run the program. It'll prompt you for a username and password, if the password is incorrect, it'll instantly close. If correct, it'll open a menu. It tells the valid command. Anyway, hit the "1" button (load an image into the array), then hit "f1" (save image to a text file). Now, hit "esc" (terminate program) and delete the image. Open the program again, this time hit "f2" (load .txt file into array) and "s" to view. (Don't worry, the main menu has a display of commands.) And if you have multiple saved .txt files that you want to view, once you are viewing an image, use arrows to scroll through them. Below, hopefully, will be some screenz.

What is the point of this program? It was originally intended for practice, as mentioned above. But, as i said, it may be useful. because it is password protected, and it allows you to delete the original image and still view it, it's pretty good. And, it saves it with ASCII, making it appear as hundreds of unreadable symbols. This would be perfect for...say..hiding an image? Why would you want to hide an image? Use your imagination. :mrgreen:


Okay, be happy everyone, I used paragraphs. NO COMPLAINING THIS TIME!

YES! Yay for free image hosting!

Image
That is a picture of that ghetto password box. But it works aight.

Image
A picture of the main menu. I shrank all these pictures a little, I hope youc an still read it. remember, this program took under 30 minutes to make, it works, but isn't pretty (without pretty pictures, that is. :))

Image
Just to show you, ANY unsuspecting person would not think THIS is an image. Seriously, who would make a whole program to decode that garbage, not even knowing if it's an image? o.o

Anyway, I would post a picture of what it looks liek when you view an image, but I don't have any good ones for POSTING. So, use your imagination. :)

Anyone actually WANT that random program? Tell me, I'll e-mail it. Zipped, it's about 400 KB.

It's getting late, so night. Please vote on the poll, I don't care what you say, because I didn't intend to make a USEFUL program. But now that it's make, I want to know if it IS actaully useful to anyone.

Posted: Tue Jan 25, 2005 10:07 pm
by Falco Girgis
This is what Arce uses when he doesn't want to get caught looking at porn. :roll:

I commend him though, it's a great idea and I'm sure it'll be useful to every single teen out there who is constantly hiding their pr0n from their parents.

Congratulations, you've not only made the best post that you've ever made in your life, but you've also contributed a huge breakthrough in the pr0n media.

I'm serious, great job.

Posted: Wed Jan 26, 2005 7:44 am
by JS Lemming
Arce, I was planning on makeing a tile ripper a while ago. But if you want to I won't bother. :spin:

Posted: Wed Jan 26, 2005 4:24 pm
by Guest
OMFG, what type of pig would use that for PORN? O.O

It's for...errr...taking...errr...making code meassages. Yeah that's it, making code meassages. :oops:

Aww, wtf. Porn is true, I won't lie...x.x

Anyway, JS Lemming, yes I am still wanting to make that ripper. However, it'll take me a while. If you want to make one, feel free. x.x

BUT, I was ALSO planning on making a level re-creator! That might be a bit hard, and maybe impossible, but I think I can. It'll do the same as the image ripper, save them in arrays, but also it'll save all the tiles in arrays. It'll compare the tiles with the image, and if they match, return the tile number. So it'll create the array for you. Example:

egg = 1
pipe = 2
:pipe: :egg: :egg: :egg:
:pipe: :pipe: :pipe: :egg:
:egg: :egg: :pipe: :pipe:
:egg: :pipe: :pipe: :pipe:

It'll load one copy of ":egg:" in an array, and when it splits the image, it'll compare them. If the :egg: array equals that part of the screen, return 2. Then, in the main array, put a two. So it'll make the array to create the level for you. See what I mean? I doubt it. but whatever.

2111
2221
1122
1222

O.o
O.o
O.O

Posted: Thu Jan 27, 2005 6:24 am
by spideyspiderman2000
Cool. Looks useful and stuff.

Posted: Thu Jan 27, 2005 7:23 am
by JS Lemming
Ermmm. I don't think a level re-creator would be practical. It would only recret a screen shot sized area. You can go ahead and make the ripper arce, I have a mini game to shred together.

Posted: Thu Jan 27, 2005 8:03 am
by Falco Girgis
Well now that everybody knows of its existance and point, you may as well post its development. What is wrong with people knowing about it? That'll just make it more popular and it's always a good thing to have a "dev-journal" sort of thing when you finish a project.

My "Game Careers and Design" book says that potential employers are most interested in seeing dev-journals than anything else. That's why all of my stuff has a nice "dev topic".

Posted: Thu Jan 27, 2005 5:25 pm
by Guest
Ermmm. I don't think a level re-creator would be practical. It would only recret a screen shot sized area. You can go ahead and make the ripper arce, I have a mini game to shred together.
There are multiple web sites where people with *LOTS* of spare time take like 20 screen shots of a full NES level, and put them all together, edit out charactors, and allow you to download. Slid oone of themz in, and you'd have a FULL level remade. :)

I think it'd help with Nestix, but whatever, I won't try to make it.