Re: [opendemo-devel] zlib
Status: Beta
Brought to you by:
girlich
From: Dr. U. G. <Uwe...@ph...> - 2002-01-11 07:05:49
|
Hello! > I've tried to add zlib support to a test mod, Yes! Nobody can say any longer: your XML text files are too long! > ... but it refuses to work when > compiled in qvm mode. We can find the problem, I'm sure. > It either bombs out to the console or crashes quake3 > altogether. Sounds interesting. > If you guys want to hack at it, I can commit it to cvs even > though it is broken (all the zlib stuff is in the opendemo/game/zlib > directory). I did not find a zlib directory in opendem/src/q3a/opendemo/game/ and we don't have a opendemo/game directory at all. So did you check it in already? I would prefer opendem/src/libs/zlib as a more generic place. > Everything else should still work if you don't try to use a gzip > file. So you used the standard zlib interface, which reverts to the plain file behaviour, if the file was not compressed. > I'm looking into just making my own deflate/inflate routines (it's something > I've wanted to do anyway). You're brave! > The zlib stuff shares some functionality with > od_filebuf.c, so maybe the reimplimentation could combine the two. I think odFread() should be replaces by gzread() and nothing more. This can easily be done before or after the ring-buffer comes in place. My ring-buffer comes along nicely, the code is completely typed in, compiles without warnings with GCC and qvm and does not crash, but it doesn't do anything useful yet. I hope for a bit more debugging time over the weekend. Bye, Uwe |