pouët.net

Go to bottom

how to?

category: general [glöplog]
 
Does anyone have any information on resource databases? Like how to create and use them? I can't find much. Should I be looking around for archival type stuff such as zip and rar or is there something more specific on (game) resource databases?
added on the 2009-10-06 17:32:14 by hexen hexen
i'm not sure if i understand correctly but you just want to shove your data in a single file, right?
added on the 2009-10-06 17:33:24 by Gargaj Gargaj
I use 7zip for creating the file and libzip to read it...
added on the 2009-10-06 17:41:04 by xTr1m xTr1m
Yeah, gargage that is exactly what I want to do. I'll check out the 7zip stuff. But, I've also seen them in other custom formats.

Another thing I was wondering about is how do people get the data out of the file without decompressing and writing the file back to disk. Such as a jpeg in the database. But instead of decompressing the database they read the jpeg straight into memory and display it?

I've just been curious about game resource databases for a while. I was at school today and I was thinking about it. So, I thought I'd ask on here as I've seen alot of demo's that have single file databases for their resources for their demos.

I almost thought that I'd have to put all the resources in a .dll and pull them out that way. But, I'm obviously wrong. Because, most the databases I've seen are not in any sort of executable format.
added on the 2009-10-06 18:33:59 by hexen hexen
Lord Gargaj, can I park my car inside of you? ;)
added on the 2009-10-06 18:38:16 by samurai samurai
Maybe you could have a look at PhysicsFS, which is an API and library to access various archive file formats (zip, .7z among others), using fs-like function (open,seek,close, etc): http://icculus.org/physfs/
added on the 2009-10-06 18:44:52 by pmdata pmdata
are there any ways to do this with just the windows api?
added on the 2009-10-06 18:49:46 by hexen hexen
the reason i ask is because i don't particularly know c/c++ i am in a c# class right now, i know visual basic and i know some masm/fasm/tasm. but, to tell you the truth i don't know how to even create the physicsFS project. i've made some console stuff in c/c++ before. but that was a long time ago.
added on the 2009-10-06 18:52:04 by hexen hexen
If you just need to store information in a flat file, like you do it with a DB, you can use the CSV ODBC connector.
added on the 2009-10-06 18:53:21 by samurai samurai
well i don't just want to store it in there. i would like to be able to read from it. well read files out of it into memory and somehow use the content that is in memory that i extracted from the database. without extracting the file to the disk then actually use the file for whatever purpose it is generally used for. i'm trying to avoid extraction to disk and trying to avoid text only databases.
added on the 2009-10-06 18:58:25 by hexen hexen
Well, you know how the internet works, don't you?
-> google.com
-> http://msdn.microsoft.com/en-us/library/ms229335.aspx
->http://www.icsharpcode.net/OpenSource/SharpZipLib/
added on the 2009-10-06 19:23:05 by samurai samurai
i actually looked around before asking here. i was searching for game resource database information though. because, that is what i thought they were called.
added on the 2009-10-06 19:26:01 by hexen hexen
Well then I guess this is the spot you need
http://msdn.microsoft.com/en-us/library/system.resources.aspx
added on the 2009-10-06 19:38:15 by samurai samurai
ok i'll check that out. thanks.
added on the 2009-10-06 20:46:02 by hexen hexen

login

Go to top