How to Make your Own Files

Started by G_G, August 22, 2008, 10:10:39 am

Previous topic - Next topic

G_G

This tut is for scripters really, you could make a script that requires a file like Red.green Open a text notepad and when you go to save it click save as and on the thing that says Save as Type, click the bar and click on All Files then name the file [name here].[file name you want here] Example:Script.script then when you look at it in a folder, it will show the file as Script.script a SCRIPT file. I have some examples in this zip. I have a .green .blue .red .myass and I think thats all.
DEMO:::  http://www.sendspace.com/file/so2x6j

Fantasist

Quote[name here].[file name you want here]


Technical terms:

[file name here].[file extension here]

Yeah, that's pretty useful, but it only changes the extension. For example, if you save a normal text file with the extension 'mp3', it won't become an mp3 because the data is still text. File extensions are indicators to the file format.

^_^
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




G_G

Yea its still a text file but its useful when you're making a game. You could have your own save files. change the .rx thing to .save and when someone saves it make it .save. I think its useful.

Diokatsu

August 22, 2008, 12:40:15 pm #3 Last Edit: September 03, 2008, 11:06:12 am by Diokatsu
I like this. I'll check it out but it's not that hard to grasp.

And i had this MS Word Doc and I changed the file extension to mp3 and it played!!!! Of course that was the intention in the first place but it was still cool @_@

shdwlink1993

...Do I want to know what it actually sounded like?  :^_^':
Stuff I've made:




"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."

Blizzard

Have you ever hidden a program in an image? :naughty:
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Diokatsu


Blizzard

Hm... Maybe another time. ;) You need Photoshop or GIMP for that, though.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Diokatsu

I got both xD CS3

You should make a tut once you finish up TLoL...

Blizzard

It's rather simple, but I'm too lazy to type it down.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Blizzard

September 24, 2008, 03:18:33 pm #10 Last Edit: September 24, 2008, 03:20:53 pm by Blizzard
BLOODY DOUBLE POST!

NAMK asked me on IRC how to do so I told him. Here's the convo:

Spoiler: ShowHide
Quote[20:58] SchoonerMcPersonman: blizzard
[20:58] SchoonerMcPersonman: I just read on CP
[20:58] SchoonerMcPersonman: and now you must tell me
[20:58] SchoonerMcPersonman: how you hid a program in an image
[21:02] f[o_o]: ^_^
[21:02] f[o_o]: it's easy
[21:02] f[o_o]: you just need an advanced image editing program like photoshop
[21:02] f[o_o]: now
[21:02] f[o_o]: take a small program
[21:03] f[o_o]: let's say 65536 bytes
[21:03] f[o_o]: now
[21:03] SchoonerMcPersonman: I has GIMP
[21:03] f[o_o]: should work
[21:03] f[o_o]: change the extension to .raw
[21:03] f[o_o]: open it up in the prog
[21:04] SchoonerMcPersonman: change the extension with Notepad right?
[21:04] f[o_o]: and best to use a resolution of 256x256 for that image
[21:04] f[o_o]: no, rename the file
[21:04] SchoonerMcPersonman: oh ok
[21:04] f[o_o]: except if you have extensions disabled
[21:04] f[o_o]: do you see the .exe part in the file names?
[21:04] f[o_o]: or .jpg
[21:04] f[o_o]: if not
[21:04] SchoonerMcPersonman: noes
[21:04] f[o_o]: you can enable it
[21:04] f[o_o]: just open up windows explorer
[21:05] f[o_o]: click on "Tools" in the menu
[21:05] f[o_o]: and then options
[21:05] f[o_o]: "folder options" that is
[21:05] SchoonerMcPersonman: foudn
[21:05] f[o_o]: and disable that option saying "hide extensions for known file types"
[21:05] f[o_o]: anyway
[21:05] f[o_o]: after you open the image
[21:06] f[o_o]: you should get some junk
[21:06] f[o_o]: BTW, I forgot to say
[21:06] f[o_o]: set the image as 1 byte per pixel
[21:06] f[o_o]: you should get an image that looks like noise
[21:06] f[o_o]: now open any png image
[21:06] SchoonerMcPersonman: GIMP won't open .raw files :<
[21:07] f[o_o]: then just don't use any extension
[21:07] f[o_o]: or any that is signed as pure pixel data bitmap
[21:07] SchoonerMcPersonman: "unknown file type"
[21:07] f[o_o]: that's a file without header
[21:07] f[o_o]: ah, damn <_<;
[21:07] SchoonerMcPersonman: rename to...
[21:07] f[o_o]: anyway
[21:08] SchoonerMcPersonman: will .bmp work?
[21:08] f[o_o]: if you use gif, you need to adjust the rest of the image in that way so it won't mess up the image
[21:08] f[o_o]: yeah, it will
[21:08] f[o_o]: just like png you won't have to worry about color loss then
[21:08] f[o_o]: now
[21:08] f[o_o]: I like using a TV
[21:09] f[o_o]: and putting my "program image" instead of an image
[21:09] f[o_o]: so the TV looks like there's noise at it
[21:09] f[o_o]: usually it's a good idea to add some noise under it
[21:09] f[o_o]: and add somewhere the starting pixels of the real program image
[21:09] f[o_o]: and the width and height
[21:09] f[o_o]: makes great riddles
[21:09] f[o_o]: now save it
[21:10] f[o_o]: and you have a program hidden in an image :)
[21:10] SchoonerMcPersonman: can you run the program by making it a .exe?
[21:10] f[o_o]: you have to extract the noise part of the image first
[21:10] f[o_o]: then save it as headerless file
[21:10] f[o_o]: and rename it back
[21:10] f[o_o]: because
[21:10] SchoonerMcPersonman: hehe haxx
[21:11] f[o_o]: when you use the program data for the image
[21:11] f[o_o]: it adds the image format's header
[21:11] f[o_o]: so simple rename won't work
[21:11] f[o_o]: you have to extract it first
[21:11] f[o_o]: save as headerless image
[21:11] SchoonerMcPersonman: right
[21:11] f[o_o]: then rename
[21:11] f[o_o]: usually .raw is headerless
[21:11] SchoonerMcPersonman: yeah
[21:11] * SchoonerMcPersonman jumps up and down
[21:11] f[o_o]: IDK which extension is used in GIMP
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Diokatsu

Thanks Blizz >:3

Darn double posting!