From b6df49dbb7576055121e106624c02840dbec6de2 Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Sat, 23 Mar 2024 15:51:52 +0200 Subject: [PATCH] Add readme note about SiN maps --- README.md | 21 ++++++++++++++++++--- src/common/collision.c | 8 ++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c765a41a..b9de6e62 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Models support: All models support only single texture for all meshes and only up to 255 frames. -Texture supported +Texture support: | Format | Original Game | Comments | | ------ | -------------- | -------- | @@ -61,16 +61,31 @@ Texture supported | jpg | retexturing | 24 bit | | bmp | Daikatana | 24 bit | +Maps support: + +| Format | Version | Game | +| ------ | ------- | ------------------------------------------ | +| IBSP | 39 | Quake 2 / Anachronox / Kingpin / Heretic 2 | +| IBSP | 41 | Daikatana | +| QBSP | 39 | Quake 2 ReRelease | +| BSPX | 39 | Quake 2 ReRelease (Extension to IBSP) | + +Note: + * SiN Gold has IBSP/41 format but has different size of lump and is + unsupported. + * Not Quake 2 maps are limmited mostly view only, and could have issues + with tranparency or some animations flags and properties. + Goals (finished): * BSPX DECOUPLEDLM light map support (base1), * QBSP map format support (mguhub), * Use ffmpeg for load any video, * RoQ and Theora cinematic videos support. * Cinematic videos support in smk, mpeg, ogv format, - * Daikatana/Heretic map partial format support, + * Daikatana/Heretic 2 map partial format support, * md5 improve load speed, * support Anachronox .dat format, - * Add debug progress loading code for maps. + * add debug progress loading code for maps. Goals (none of it finished): diff --git a/src/common/collision.c b/src/common/collision.c index c1d42432..8ebbc98b 100644 --- a/src/common/collision.c +++ b/src/common/collision.c @@ -1962,6 +1962,14 @@ CM_LoadCachedMap(const char *name, model_t *mod) __func__, name, header.version, BSPVERSION); } + Com_DPrintf("%s: Map %s ident %c%c%c%c version %d\n", + __func__, name, + (header.ident >> 0) & 0xFF, + (header.ident >> 8) & 0xFF, + (header.ident >> 16) & 0xFF, + (header.ident >> 24) & 0xFF, + header.version); + cmod_base = (byte *)buf; /* load into heap */