![]() |
Something similar to zip, or pak... - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Something similar to zip, or pak... (/showthread.php?tid=618) |
Something similar to zip, or pak... - Obsidian - 09-01-2007 I was wondering if there was a program that could store a bunch of other graphics and/or files into a single file, but couldn't easily be ripped apart (e.g., using winzip). I'm redoing a lot of my game system, and i wanted to store the majority of info in 1 file. I thought about searching PSCode, but i wasn't really quite sure what i should have searched. - Matt - 09-01-2007 Password protect a .pk file and take stuff out of it like that, making your client input the password, but use some bullshit ass password that nobody could guess, and that bruteforce couldn't get. I was wanting this, but I couldn't find any info on reading/writing with zip files. - Obsidian - 09-01-2007 well reading is really the biggest deal for me. as long as the program can easily read the data back out of it easily it should be okay. - Matt - 09-01-2007 Like I said, I found no information on this whatsoever, so if you do find something on it, please let me know. I think this would be the best way to protect gfx and stuff. - Obsidian - 10-01-2007 i'm not really doing it to protect my graphics, my tiles aren't a complete set. they're individual based on what they are. each tile, also has binary data with it. Now it's not difficult to store both the picture and binary data that goes along with it. I just don't want like... 500 individual images, then another 500 binary files just to store some data. - Obsidian - 10-01-2007 awesome, thanks dave. - Robin - 10-01-2007 Save as binary..? - Obsidian - 10-01-2007 Yeah but what about the images? - Robin - 10-01-2007 Save as binary... >.> I think Funkynut made a tut for it. - Obsidian - 10-01-2007 hmmmm i didn't think you could store image data as binary and still correctly read it back.... interesting... - Robin - 10-01-2007 Well, you can ^_^;; - Obsidian - 10-01-2007 just like a put, , frmmain.picture2.picture ? - Robin - 10-01-2007 No - Obsidian - 10-01-2007 Don't be too helpful all at once now... - William - 10-01-2007 Kite Wrote:Well, you can ^_^;;Are you really sure you can? Doesn't sound reasonable. - Robin - 10-01-2007 I can't remember, but I think it was binary... - TheRealDamien - 10-01-2007 You sure you dont mean store it into a form? - Robin - 10-01-2007 TheRealDamien Wrote:You sure you dont mean store it into a form? How the fuck do I mistake binary for saving it in a form!? - funkynut - 10-01-2007 You do do know that a picture is basically a lot of data that tells the computer what to do right (how to put the picture together)? So using logic, why cant you make your own format... You could even save the image data the way has it stored in bitmaps, but latch on your own data somewhere, problem solved. Of course, I doubt its as easy as that, since you'd probably have to work out, which part of the file is actually image and which isn't yada yada A good start would be to look at the file layout of bitmaps if you want to create your own file format. There are probably much easier ways to do what you want, but I'm too lazy to actually read the rest of the topic. O here's a site with some zipping info, not sure if its useful http://www.codeguru.com/vb/gen/vb_graph ... php/c6743/ - funkynut - 10-01-2007 O yea, that thing Kite was referring to was my tut that loaded any file and compressed it as a new file using zlib - Reece - 11-01-2007 Sorry if i make a tit out of myself im i'll so forgive me, but cant you save loads of files in .cab file? Im sure most games do it now :S |