From f1ca9910413cf6bc6af8498de70b8851b61ade34 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 10:50:11 +0200 Subject: [PATCH 01/59] make static, cleanup and delet dead code hw_cache --- src/hardware/hw_bsp.c | 4 +++ src/hardware/hw_cache.c | 59 ++++++++++++++++++++++------------------ src/hardware/hw_glob.h | 8 ++---- src/hardware/hw_main.cpp | 2 +- 4 files changed, 40 insertions(+), 33 deletions(-) diff --git a/src/hardware/hw_bsp.c b/src/hardware/hw_bsp.c index ab2a133b7..d2a5ac498 100644 --- a/src/hardware/hw_bsp.c +++ b/src/hardware/hw_bsp.c @@ -36,7 +36,11 @@ extrasubsector_t *extrasubsectors = NULL; // newsubsectors are subsectors without segs, added for the plane polygons #define NEWSUBSECTORS 50 static size_t totsubsectors; +#ifdef PARANOIA size_t addsubsector; +#else +static size_t addsubsector; +#endif typedef struct { diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index d44ac4f82..dfcacc3e6 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -38,6 +38,8 @@ INT32 textureformat = GL_TEXFMT_P_8; // use chromakey for hole RGBA_t mapPalette[256] = {0}; // the palette for the currently loaded level or menu etc. +static void HWR_FreeTextureColormaps(patch_t *patch); + static INT32 format2bpp(GLTextureFormat_t format) { switch (format) @@ -440,7 +442,7 @@ void HWR_MakePatch(const patch_t *patch, GLPatch_t *glPatch, GLMipmap_t *glMipma static size_t gl_numtextures = 0; // Texture count static GLMapTexture_t *gl_textures; // For all textures -void HWR_FreeTextureData(patch_t *patch) +static void HWR_FreeTextureData(patch_t *patch) { GLPatch_t *glPatch; @@ -451,8 +453,8 @@ void HWR_FreeTextureData(patch_t *patch) if (vid.glstate == VID_GL_LIBRARY_LOADED) GL_DeleteTexture(glPatch->mipmap); - if (glPatch->mipmap->data) - Z_Free(glPatch->mipmap->data); + + Z_Free(glPatch->mipmap->data); } void HWR_FreeTexture(patch_t *patch) @@ -479,7 +481,7 @@ void HWR_FreeTexture(patch_t *patch) } // Called by HWR_FreePatchCache. -void HWR_FreeTextureColormaps(patch_t *patch) +static void HWR_FreeTextureColormaps(patch_t *patch) { GLPatch_t *pat; @@ -512,10 +514,8 @@ void HWR_FreeTextureColormaps(patch_t *patch) pat->mipmap->nextcolormap = next->nextcolormap; // Free image data from memory. - if (next->data) - Z_Free(next->data); - if (next->colormap) - Z_Free(next->colormap); + Z_Free(next->data); + Z_Free(next->colormap); next->data = NULL; next->colormap = NULL; GL_DeleteTexture(next); @@ -559,10 +559,10 @@ void HWR_ClearAllTextures(void) HWR_FreePatchCache(true); } -void HWR_FreeColormapCache(void) +/*static void HWR_FreeColormapCache(void) { HWR_FreePatchCache(false); -} +}*/ void HWR_InitMapTextures(void) { @@ -572,8 +572,7 @@ void HWR_InitMapTextures(void) static void FreeMapTexture(GLMapTexture_t *tex) { GL_DeleteTexture(&tex->mipmap); - if (tex->mipmap.data) - Z_Free(tex->mipmap.data); + Z_Free(tex->mipmap.data); tex->mipmap.data = NULL; } @@ -860,12 +859,14 @@ GLMapTexture_t *HWR_GetTexture(INT32 tex, boolean noencore) #endif // Generate texture if missing from the cache - if (!gltex->mipmap.data && !gltex->mipmap.downloaded) - HWR_GenerateTexture(tex, gltex, noencore); - - // If hardware does not have the texture, then call GL_SetTexture to upload it if (!gltex->mipmap.downloaded) + { + if (!gltex->mipmap.data) + HWR_GenerateTexture(tex, gltex, noencore); + + // If hardware does not have the texture, then call GL_SetTexture to upload it GL_SetTexture(&gltex->mipmap); + } HWR_SetCurrentTexture(&gltex->mipmap); // The system-memory data can be purged now. @@ -960,12 +961,14 @@ void HWR_GetFlat(lumpnum_t flatlumpnum, boolean noencoremap) M_Memcpy(glMipmap->colormap->data, colormap, 256 * sizeof(UINT8)); } - if (!glMipmap->downloaded && !glMipmap->data) - HWR_CacheFlat(glMipmap, flatlumpnum); - - // If hardware does not have the texture, then call GL_SetTexture to upload it if (!glMipmap->downloaded) + { + if (!glMipmap->data) + HWR_CacheFlat(glMipmap, flatlumpnum); + + // If hardware does not have the texture, then call GL_SetTexture to upload it GL_SetTexture(glMipmap); + } HWR_SetCurrentTexture(glMipmap); // The system-memory data can be purged now. @@ -979,12 +982,14 @@ static void HWR_LoadPatchMipmap(patch_t *patch, GLMipmap_t *glMipmap) { GLPatch_t *glPatch = patch->hardware; - if (!glMipmap->downloaded && !glMipmap->data) - HWR_MakePatch(patch, glPatch, glMipmap, true); - - // If hardware does not have the texture, then call GL_SetTexture to upload it if (!glMipmap->downloaded) + { + if (!glMipmap->data) + HWR_MakePatch(patch, glPatch, glMipmap, true); + + // If hardware does not have the texture, then call GL_SetTexture to upload it GL_SetTexture(glMipmap); + } HWR_SetCurrentTexture(glMipmap); // The system-memory data can be purged now. @@ -1043,11 +1048,11 @@ void HWR_GetMappedPatch(patch_t *patch, const UINT8 *colormap) // search for the mipmap // skip the first (no colormap translated) - for (glMipmap = glPatch->mipmap; LIKELY(glMipmap->nextcolormap);) + for (glMipmap = glPatch->mipmap; glMipmap->nextcolormap;) { glMipmap = glMipmap->nextcolormap; - if (UNLIKELY(glMipmap->colormap && glMipmap->colormap->source == colormap)) + if (glMipmap->colormap && glMipmap->colormap->source == colormap) { if (memcmp(glMipmap->colormap->data, colormap, 256 * sizeof(UINT8))) { @@ -1343,7 +1348,7 @@ void HWR_SetMapPalette(void) // Creates a hardware lighttable from the supplied lighttable. // Returns the id of the hw lighttable, usable in FSurfaceInfo. -UINT32 HWR_CreateLightTable(UINT8 *lighttable) +static UINT32 HWR_CreateLightTable(UINT8 *lighttable) { UINT32 i, id; RGBA_t *palette = HWR_GetTexturePalette(); diff --git a/src/hardware/hw_glob.h b/src/hardware/hw_glob.h index 1be176a42..e6b6734a5 100644 --- a/src/hardware/hw_glob.h +++ b/src/hardware/hw_glob.h @@ -42,7 +42,7 @@ typedef struct gl_vissprite_s mobj_t *mobj; precipmobj_t *precip; // Tails 08-25-2002 boolean vflip; - //Hurdler: 25/04/2000: now support colormap in hardware mode + //Hurdler: 25/04/2000: now support colormap in hardware mode UINT8 *colormap; INT32 dispoffset; // copy of info->dispoffset, affects ordering but not drawing } gl_vissprite_t; @@ -53,7 +53,9 @@ void HWR_ObjectLightLevelPost(gl_vissprite_t *spr, const sector_t *sector, INT32 // hw_bsp.c // -------- extern extrasubsector_t *extrasubsectors; +#ifdef PARANOIA extern size_t addsubsector; +#endif void HWR_FreeExtraSubsectors(void); @@ -82,15 +84,11 @@ void HWR_GetFlat(lumpnum_t flatlumpnum, boolean noencoremap); // ^ some flats must NOT be remapped to encore, since we remap them as we cache them for ease, adding a toggle here seems wise. void HWR_FreeTexture(patch_t *patch); -void HWR_FreeTextureData(patch_t *patch); -void HWR_FreeTextureColormaps(patch_t *patch); void HWR_ClearAllTextures(void); -void HWR_FreeColormapCache(void); void HWR_UnlockCachedPatch(GLPatch_t *gpatch); void HWR_SetPalette(RGBA_t *palette); void HWR_SetMapPalette(void); -UINT32 HWR_CreateLightTable(UINT8 *lighttable); UINT32 HWR_GetLightTableID(extracolormap_t *colormap); void HWR_ClearLightTables(void); diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 9affc422f..81ce4d286 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -2925,7 +2925,7 @@ static void HWR_Subsector(size_t num) extracolormap_t *ceilingcolormap; ffloor_t *rover; -#ifdef PARANOIA //no risk while developing, enough debugging nights! +#ifdef PARANOIA // no risk while developing, enough debugging nights! if (num >= addsubsector) I_Error("HWR_Subsector: ss %s with numss = %s, addss = %s\n", sizeu1(num), sizeu2(numsubsectors), sizeu3(addsubsector)); From 20a3f4b6f30e56d16f52dc1fffde22b673bfed71 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 10:14:40 +0200 Subject: [PATCH 02/59] only check cyan floor hack on flats that contain cyan there was the remap loop that would already check this for us, so we can save a few calls to W_CheckNameForNum and memcmp --- src/hardware/hw_cache.c | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index dfcacc3e6..c1de7ba17 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -322,8 +322,6 @@ static void HWR_GenerateTexture(INT32 texnum, GLMapTexture_t *gltex, boolean noe INT32 i, idx; boolean skyspecial = false; // poor hack for Legacy large skies.. - RGBA_t *palette; - texture = textures[texnum]; gltex->mipmap.flags = TF_CHROMAKEYED | TF_WRAPXY; @@ -360,7 +358,7 @@ static void HWR_GenerateTexture(INT32 texnum, GLMapTexture_t *gltex, boolean noe INT32 j; RGBA_t col; - palette = HWR_GetTexturePalette(); + const RGBA_t *palette = HWR_GetTexturePalette(); col = palette[HWR_CHROMAKEY_EQUIVALENTCOLORINDEX]; @@ -882,17 +880,12 @@ static void HWR_CacheFlat(GLMipmap_t *glMipmap, lumpnum_t flatlumpnum) size_t steppy; #endif size_t size, pflatsize; - const char *flatname = W_CheckNameForNum(flatlumpnum); + boolean haschromakey = false; // setup the texture info glMipmap->format = GL_TEXFMT_P_8; glMipmap->flags = TF_WRAPXY|TF_CHROMAKEYED; - if (UNLIKELY(memcmp(flatname, "GBA_RRF5", 8) == 0 && flatname[8] == 0)) - { - glMipmap->flags &= ~TF_CHROMAKEYED; - } - size = W_LumpLength(flatlumpnum); switch (size) @@ -930,11 +923,25 @@ static void HWR_CacheFlat(GLMipmap_t *glMipmap, lumpnum_t flatlumpnum) for (steppy = 0; steppy < size; steppy++) { if (flat[steppy] == HWR_PATCHES_CHROMAKEY_COLORINDEX) + { + haschromakey = true; continue; + } flat[steppy] = glMipmap->colormap->source[flat[steppy]]; } #endif + + if (haschromakey) + { + const char *flatname = W_CheckNameForNum(flatlumpnum); + + // hack for gba rainbow roads cyan floors + if (UNLIKELY(memcmp(flatname, "GBA_RRF5", 8) == 0 && flatname[8] == 0)) + { + glMipmap->flags &= ~TF_CHROMAKEYED; + } + } } // Download a Doom 'flat' to the hardware cache and make it ready for use @@ -1121,11 +1128,10 @@ static void HWR_DrawFadeMaskInCache(GLMipmap_t *mipmap, INT32 pblockwidth, INT32 UINT8 *flat; UINT8 *dest, *src, texel; RGBA_t col; - RGBA_t *palette = HWR_GetTexturePalette(); + const RGBA_t *palette = HWR_GetTexturePalette(); // Place the flats data into flat - W_ReadLump(fademasklumpnum, Z_Malloc(W_LumpLength(fademasklumpnum), - PU_HWRCACHE, &flat)); + W_ReadLump(fademasklumpnum, Z_Malloc(W_LumpLength(fademasklumpnum), PU_HWRCACHE, &flat)); stepy = ((INT32)fmheight< Date: Thu, 18 Sep 2025 10:15:30 +0200 Subject: [PATCH 03/59] delet P_Initsecnode empty function now --- src/p_local.h | 1 - src/p_map.c | 4 ---- src/p_setup.c | 3 --- 3 files changed, 8 deletions(-) diff --git a/src/p_local.h b/src/p_local.h index d428d59d1..bb7bf599f 100644 --- a/src/p_local.h +++ b/src/p_local.h @@ -410,7 +410,6 @@ boolean P_CheckSector(sector_t *sector, boolean crunch); void P_DelSeclist(msecnode_t *node); void P_CreateSecNodeList(mobj_t *thing, fixed_t x, fixed_t y); -void P_Initsecnode(void); void P_RadiusAttack(mobj_t *spot, mobj_t *source, fixed_t damagedist); diff --git a/src/p_map.c b/src/p_map.c index f1fe307cf..52d43d649 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -3823,10 +3823,6 @@ boolean P_CheckSector(sector_t *sector, boolean crunch) Lots of new Boom functions that work faster and add functionality. */ -void P_Initsecnode(void) -{ -} - // P_GetSecnode() retrieves a node from the freelist. The calling routine // should make sure it sets all fields properly. diff --git a/src/p_setup.c b/src/p_setup.c index 17debbde0..985c53f76 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -2766,9 +2766,6 @@ boolean P_SetupLevel(boolean fromnetsave, boolean reloadinggamestate) CON_Drawer(); // let the user know what we are going to do I_FinishUpdate(); // page flip or blit buffer - // Initialize sector node list. - P_Initsecnode(); - if (netgame || multiplayer) cv_debug = botskin = 0; From fb023899221fa61cd4e6872a1f56c09fa7bc05a0 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 10:48:07 +0200 Subject: [PATCH 04/59] use P_SetupCamera for P_MoveCameraToSpawn also modify P_SetupCamera to always just move the camera to the playerstarts --- src/p_local.h | 4 ++- src/p_setup.c | 54 ++---------------------------------- src/p_user.c | 76 +++++++++++++++++++++++++++++++-------------------- 3 files changed, 52 insertions(+), 82 deletions(-) diff --git a/src/p_local.h b/src/p_local.h index bb7bf599f..dc101502f 100644 --- a/src/p_local.h +++ b/src/p_local.h @@ -175,16 +175,18 @@ extern fixed_t t_cam_rotate[MAXSPLITSCREENPLAYERS]; fixed_t P_GetPlayerHeight(player_t *player); fixed_t P_GetPlayerSpinHeight(player_t *player); void P_AddPlayerScore(player_t *player, UINT32 amount); + +void P_SetupCamera(camera_t *cam); void P_ResetCamera(player_t *player, camera_t *thiscam); boolean P_TryCameraMove(fixed_t x, fixed_t y, camera_t *thiscam); #ifndef NOCLIPCAM void P_SlideCameraMove(camera_t *thiscam); #endif -//void P_DemoCameraMovement(camera_t *cam, UINT8 num); boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcalled); void P_ResetLocalCamAiming(player_t *player); void P_ToggleDemoCamera(UINT8 viewnum); void P_CalcChasePostImg(player_t *player, camera_t *thiscam); + boolean P_PlayerInPain(player_t *player); void P_DoPlayerPain(player_t *player, mobj_t *source, mobj_t *inflictor); void P_ResetPlayer(player_t *player); diff --git a/src/p_setup.c b/src/p_setup.c index 985c53f76..bd28f777b 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -2373,44 +2373,6 @@ static void P_LoadRecordGhosts(void) free(gpath); } -static void P_SetupCamera(UINT8 pnum, camera_t *cam) -{ - if (players[pnum].mo && (server || addedtogame)) - { - cam->x = players[pnum].mo->x; - cam->y = players[pnum].mo->y; - cam->z = players[pnum].mo->z; - cam->angle = players[pnum].mo->angle; - } - else - { - mapthing_t *thing; - - switch (gametype) - { - case GT_MATCH: - case GT_TAG: - thing = deathmatchstarts[0]; - break; - default: - thing = playerstarts[0]; - break; - } - - if (!thing) - return; // we can't do jack shit - - cam->x = thing->x; - cam->y = thing->y; - cam->z = thing->z; - cam->angle = FixedAngle((fixed_t)thing->angle << FRACBITS); - } - - cam->subsector = R_PointInSubsectorFast(cam->x, cam->y); // make sure camera has a subsector set -- Monster Iestyn (12/11/18) - - cam->chase = false; // tell camera to reset its position next tic -} - static void P_InitCamera(void) { INT32 i; @@ -2420,10 +2382,7 @@ static void P_InitCamera(void) for (i = 0; i <= splitscreen; i++) { - if (camera[i].freecam) - continue; - - P_SetupCamera(displayplayers[i], &camera[i]); + P_SetupCamera(&camera[i]); } // Though, I don't think anyone would care about cam_rotate being reset back to the only value that makes sense :P @@ -2431,6 +2390,8 @@ static void P_InitCamera(void) { if (!cv_cam_rotate[i].changed) CV_Set(&cv_cam_rotate[i], cv_cam_rotate[i].defaultvalue); + if (!cv_chasecam[i].changed) + CV_SetValue(&cv_chasecam[i], true); // srb2kart: always on } displayplayers[0] = consoleplayer; // Start with your OWN view, please! @@ -2787,15 +2748,6 @@ boolean P_SetupLevel(boolean fromnetsave, boolean reloadinggamestate) && atoi(mapheaderinfo[gamemap-1]->forcecharacter) != 255) P_ForceCharacter(mapheaderinfo[gamemap-1]->forcecharacter); - if (!dedicated) - { - for (i = 0; i < MAXSPLITSCREENPLAYERS; i++) - { - if (!cv_chasecam[i].changed) - CV_SetValue(&cv_chasecam[i], true); // srb2kart: always on - } - } - // Initial height of PointOfView // will be set by player think. players[consoleplayer].viewz = 1; diff --git a/src/p_user.c b/src/p_user.c index 670db91d8..6eb761de0 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -3439,14 +3439,41 @@ static void P_DemoCameraMovement(camera_t *cam, UINT8 num) cam->subsector = R_PointInSubsectorFast(cam->x, cam->y); } +void P_SetupCamera(camera_t *cam) +{ + mapthing_t *thing; + + switch (gametype) + { + case GT_MATCH: + case GT_TAG: + thing = deathmatchstarts[0]; + break; + default: + thing = playerstarts[0]; + break; + } + + if (!thing) + return; // we can't do jack shit + + cam->x = thing->x << FRACBITS; + cam->y = thing->y << FRACBITS; + cam->angle = FixedAngle(thing->angle*FRACUNIT); + + cam->subsector = R_PointInSubsectorFast(cam->x, cam->y); // make sure camera has a subsector set -- Monster Iestyn (12/11/18) + cam->z = P_GetSectorFloorZAt(cam->subsector->sector, cam->x, cam->y) + (32<chase = false; // tell camera to reset its position next tic +} + void P_ResetCamera(player_t *player, camera_t *thiscam) { tic_t tries = 0; - fixed_t x, y, z; UINT8 i; if (thiscam->freecam) - return; // do not reset the camera there. + return; // do not reset the camera there. if (!player->mo) return; @@ -3455,17 +3482,15 @@ void P_ResetCamera(player_t *player, camera_t *thiscam) return; thiscam->chase = true; - x = player->mo->x - P_ReturnThrustX(player->mo, thiscam->angle, player->mo->radius); - y = player->mo->y - P_ReturnThrustY(player->mo, thiscam->angle, player->mo->radius); - if (player->mo->eflags & MFE_VERTICALFLIP) - z = player->mo->z + player->mo->height - (32<mo->z + (32<x = x; - thiscam->y = y; - thiscam->z = z; + thiscam->x = player->mo->x - P_ReturnThrustX(player->mo, thiscam->angle, player->mo->radius); + thiscam->y = player->mo->y - P_ReturnThrustY(player->mo, thiscam->angle, player->mo->radius); + if (player->mo->eflags & MFE_VERTICALFLIP) + thiscam->z = player->mo->z + player->mo->height - (32<z = player->mo->z + (32<reset = true; for (i = 0; i <= splitscreen; i++) @@ -3480,14 +3505,14 @@ void P_ResetCamera(player_t *player, camera_t *thiscam) thiscam->relativex = 0; - thiscam->subsector = R_PointInSubsectorFast(thiscam->x,thiscam->y); + thiscam->subsector = R_PointInSubsectorFast(thiscam->x, thiscam->y); thiscam->radius = 20*FRACUNIT; thiscam->height = 16*FRACUNIT; thiscam->reset_aiming = true; - while (!P_MoveChaseCamera(player,thiscam,true) && ++tries < 2*TICRATE); + while (!P_MoveChaseCamera(player, thiscam, true) && ++tries < 2*TICRATE); } #ifndef NOCLIPCAM // Disable all z-clipping for noclip cam @@ -3696,28 +3721,19 @@ static boolean P_CheckNoclipCameraPosition(player_t *player, camera_t *thiscam, } #endif +// Freecam toggle button is a "shortcut" to reset +// the camera to "spawn" position when spectator static void P_MoveCameraToSpawn(UINT8 playernum) { camera_t *thiscam = &camera[playernum]; - player_t *player = P_GetLocalPlayerForNum(playernum); - if (!thiscam || !player->mo) + if (!thiscam) return; - thiscam->x = player->mo->x - P_ReturnThrustX(player->mo, thiscam->angle, player->mo->radius); - thiscam->y = player->mo->y - P_ReturnThrustY(player->mo, thiscam->angle, player->mo->radius); - if (player->mo->eflags & MFE_VERTICALFLIP) - thiscam->z = player->mo->z + player->mo->height - (32<z = player->mo->z + (32<reset = true; - - thiscam->angle = player->mo->angle; thiscam->aiming = 0; - - thiscam->subsector = R_PointInSubsectorFast(thiscam->x,thiscam->y); - + thiscam->reset = true; thiscam->reset_aiming = true; R_ResetViewInterpolation(playernum); @@ -3783,14 +3799,14 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall if (player->spectator) // force cam off for spectators return true; - if (!cv_chasecam[num].value && thiscam == &camera[num]) + if (!cv_chasecam[num].value) return true; } if (!thiscam->chase && !resetcalled) { focusangle = ((P_IsLocalPlayer(player)) ? localangle[num] : mo->angle); - camrotate = ((thiscam == &camera[num]) ? cv_cam_rotate[num].value : 0); + camrotate = cv_cam_rotate[num].value; if (leveltime < introtime) // Whoooshy camera! { @@ -3912,7 +3928,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall } if (!resetcalled && (leveltime > starttime && timeover != 2) - && (thiscam == &camera[num] && t_cam_rotate[num] != -42)) + && (t_cam_rotate[num] != -42)) { angle = FixedAngle(camrotate*FRACUNIT); thiscam->angle = angle; From 837f74f28af355f54d053ce49b1751ee4d4d7fa7 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 10:48:20 +0200 Subject: [PATCH 05/59] simplify startedInFreePlay check --- src/p_setup.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index bd28f777b..14df20980 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -2623,26 +2623,20 @@ static void P_SetupPlayer(void) thwompsactive = false; spbplace = -1; - startedInFreePlay = false; + startedInFreePlay = true; + for (UINT8 nump = 0, i = 0; i < MAXPLAYERS; i++) { - UINT8 nump = 0; - for (i = 0; i < MAXPLAYERS; i++) + if (!playeringame[i] || players[i].spectator) { - if (!playeringame[i] || players[i].spectator) - { - continue; - } - - nump++; - if (nump == 2) - { - break; - } + continue; } - if (nump <= 1) + nump++; + + if (nump > 1) { - startedInFreePlay = true; + startedInFreePlay = false; + break; } } } From 4e394951bcd79432effb14bfd554d9b941429789 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 10:48:54 +0200 Subject: [PATCH 06/59] allow freecam to work with first person --- src/r_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_main.cpp b/src/r_main.cpp index 00fdf4204..d600730c6 100644 --- a/src/r_main.cpp +++ b/src/r_main.cpp @@ -1240,7 +1240,7 @@ void R_SetupFrame(UINT8 pnum, boolean skybox) thiscam->reset = false; } - if (player->spectator) + if (player->spectator || thiscam->freecam) { // Free flying spectator uses demo freecam. This // requires chasecam to be enabled. From ec41a7152cc325d7f68cd9e53c6e0304eace69ce Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 16:38:19 +0200 Subject: [PATCH 07/59] remove erronous errors W_InitFileError from within W_InitMultipleFiles will handle this --- src/d_main.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 972d65844..e483ea0f8 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1818,14 +1818,9 @@ void D_SRB2Main(void) // load wad, including the main wad file CONS_Printf("W_InitMultipleFiles(): Adding IWAD and main PWADs.\n"); - if (!W_InitMultipleFiles(startupwadfiles, false)) -#ifdef _DEBUG - CONS_Error("A WAD file was not found or not valid.\nCheck the log to see which ones.\n"); -#else - I_Error("A WAD file was not found or not valid.\nCheck the log to see which ones.\n"); -#endif - D_CleanFile(startupwadfiles); + W_InitMultipleFiles(startupwadfiles, false); + D_CleanFile(startupwadfiles); mainwads = 0; #ifndef DEVELOP @@ -1888,8 +1883,7 @@ void D_SRB2Main(void) } } - if (!W_InitMultipleFiles(startuppwads, true)) - CONS_Error("A PWAD file was not found or not valid.\nCheck the log to see which ones.\n"); + W_InitMultipleFiles(startuppwads, true); D_CleanFile(startuppwads); // From 826183ce2ac5b5ea0b7744759de353fd620aa68a Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 16:39:36 +0200 Subject: [PATCH 08/59] skip checking for replaced maps on start if no extra wads are loaded ~~technically this also should be done for autoload~~ --- src/d_main.c | 82 +++++++++++++++++++++++++++------------------------- src/d_main.h | 4 --- 2 files changed, 42 insertions(+), 44 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index e483ea0f8..17ed4b7f1 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -96,20 +96,17 @@ // platform independant focus loss UINT8 window_notinfocus = false; -// -// DEMO LOOP -// -//static INT32 demosequence; -static char *startupwadfiles[MAX_WADFILES]; +static char *startupiwadfiles[MAX_WADFILES]; static char *startuppwads[MAX_WADFILES]; // autoloading -char *autoloadwadfiles[MAX_WADFILES]; -char *autoloadwadfilespost[MAX_WADFILES]; +static char *autoloadwadfiles[MAX_WADFILES]; +static char *autoloadwadfilespost[MAX_WADFILES]; boolean autoloading; boolean autoloaded; boolean postautoloaded = false; boolean wasautoloaded = false; +// boolean devparm = false; // started game with -devparm @@ -1247,7 +1244,7 @@ static boolean AddIWAD(void) if (FIL_ReadFileOK(path)) { - D_AddFile(path, startupwadfiles); + D_AddFile(path, startupiwadfiles); return true; } @@ -1307,12 +1304,12 @@ static void IdentifyVersion(void) D_AddFile(va(pandf,srb2waddir,"patch.dta")); #endif - D_AddFile(va(pandf, srb2waddir, "gfx.kart"), startupwadfiles); - D_AddFile(va(pandf, srb2waddir, "textures.kart"), startupwadfiles); - D_AddFile(va(pandf, srb2waddir, "chars.kart"), startupwadfiles); - D_AddFile(va(pandf, srb2waddir, "maps.kart"), startupwadfiles); + D_AddFile(va(pandf, srb2waddir, "gfx.kart"), startupiwadfiles); + D_AddFile(va(pandf, srb2waddir, "textures.kart"), startupiwadfiles); + D_AddFile(va(pandf, srb2waddir, "chars.kart"), startupiwadfiles); + D_AddFile(va(pandf, srb2waddir, "maps.kart"), startupiwadfiles); #ifdef USE_PATCH_KART - D_AddFile(va(pandf,srb2waddir,"patch.kart"), startupwadfiles); + D_AddFile(va(pandf,srb2waddir,"patch.kart"), startupiwadfiles); #endif const char *path = NULL; @@ -1322,7 +1319,7 @@ static void IdentifyVersion(void) // completely optional if (FIL_ReadFileOK(path)) { - D_AddFile(path, startupwadfiles); + D_AddFile(path, startupiwadfiles); found_extra_kart = true; } @@ -1331,7 +1328,7 @@ static void IdentifyVersion(void) // completely optional 2: Back with a vengence if (FIL_ReadFileOK(path)) { - D_AddFile(path, startupwadfiles); + D_AddFile(path, startupiwadfiles); found_extra2_kart = true; } @@ -1339,7 +1336,7 @@ static void IdentifyVersion(void) if (FIL_ReadFileOK(path)) { - D_AddFile(path, startupwadfiles); + D_AddFile(path, startupiwadfiles); found_extra3_kart = true; } @@ -1354,7 +1351,7 @@ static void IdentifyVersion(void) if (ms == 0) \ I_Error("File " str " has been modified with non-music/sound lumps"); \ if (ms == 1) \ - D_AddFile(musicpath, startupwadfiles); \ + D_AddFile(musicpath, startupiwadfiles); \ } { const char *musicpath; @@ -1819,8 +1816,8 @@ void D_SRB2Main(void) // load wad, including the main wad file CONS_Printf("W_InitMultipleFiles(): Adding IWAD and main PWADs.\n"); - W_InitMultipleFiles(startupwadfiles, false); - D_CleanFile(startupwadfiles); + W_InitMultipleFiles(startupiwadfiles, false); + D_CleanFile(startupiwadfiles); mainwads = 0; #ifndef DEVELOP @@ -1884,38 +1881,43 @@ void D_SRB2Main(void) } W_InitMultipleFiles(startuppwads, true); - D_CleanFile(startuppwads); - // - // search for maps... again. - // - for (wadnum = mainwads+1; wadnum < numwadfiles; wadnum++) + // Only search for pwad maps if we actually have a pwad added + if (startuppwads[0] != NULL) { - lumpinfo = wadfiles[wadnum]->lumpinfo; - for (i = 0; i < wadfiles[wadnum]->numlumps; i++, lumpinfo++) + // + // search for maps... again. + // + for (wadnum = mainwads+1; wadnum < numwadfiles; wadnum++) { - name = lumpinfo->name; - - if (memcmp(name, "MAP", 3) == 0) // Ignore the headers + lumpinfo = wadfiles[wadnum]->lumpinfo; + for (i = 0; i < wadfiles[wadnum]->numlumps; i++, lumpinfo++) { - INT16 num; - if (name[5] != '\0') - continue; - num = (INT16)M_MapNumber(name[3], name[4]); + name = lumpinfo->name; - // we want to record whether this map exists. if it doesn't have a header, we can assume it's not relephant - if (num <= NUMMAPS && mapheaderinfo[num - 1]) + if (memcmp(name, "MAP", 3) == 0) // Ignore the headers { - if (mapheaderinfo[num - 1]->menuflags & LF2_EXISTSHACK) - G_SetGameModified(multiplayer, true); // oops, double-defined - no record attack privileges for you - mapheaderinfo[num - 1]->menuflags |= LF2_EXISTSHACK; - } + INT16 num; + if (name[5] != '\0') + continue; + num = (INT16)M_MapNumber(name[3], name[4]); - CONS_Printf("%s\n", name); + // we want to record whether this map exists. if it doesn't have a header, we can assume it's not relephant + if (num <= NUMMAPS && mapheaderinfo[num - 1]) + { + if (mapheaderinfo[num - 1]->menuflags & LF2_EXISTSHACK) + G_SetGameModified(multiplayer, true); // oops, double-defined - no record attack privileges for you + mapheaderinfo[num - 1]->menuflags |= LF2_EXISTSHACK; + } + + CONS_Printf("%s\n", name); + } } } } + D_CleanFile(startuppwads); + cht_Init(); //---------------------------------------------------- READY SCREEN diff --git a/src/d_main.h b/src/d_main.h index fe904e15a..86c79a63c 100644 --- a/src/d_main.h +++ b/src/d_main.h @@ -64,12 +64,8 @@ extern boolean minilighticon; // mkwii-style minimap headlight extern boolean autoloading; extern boolean autoloaded; extern boolean postautoloaded; - void D_AddPostloadFiles(void); -extern char *autoloadwadfilespost[MAX_WADFILES]; -extern char *autoloadwadfiles[MAX_WADFILES]; - // the infinite loop of D_SRB2Loop() called from win_main for windows version void D_SRB2Loop(void) FUNCNORETURN; From 9ca21f1fb492afc58bb8b5a9a7b8e325aa75fc75 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 16:40:51 +0200 Subject: [PATCH 09/59] simplify startup map checks a little --- src/d_main.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 17ed4b7f1..de7a299ea 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1864,12 +1864,9 @@ void D_SRB2Main(void) { name = lumpinfo->name; - if (memcmp(name, "MAP", 3) == 0) // Ignore the headers + if (memcmp(name, "MAP", 3) == 0 && name[5] == '\0') // Ignore the headers { - INT16 num; - if (name[5] != '\0') - continue; - num = (INT16)M_MapNumber(name[3], name[4]); + INT16 num = (INT16)M_MapNumber(name[3], name[4]); // we want to record whether this map exists. if it doesn't have a header, we can assume it's not relephant if (num <= NUMMAPS && mapheaderinfo[num - 1]) @@ -1895,12 +1892,9 @@ void D_SRB2Main(void) { name = lumpinfo->name; - if (memcmp(name, "MAP", 3) == 0) // Ignore the headers + if (memcmp(name, "MAP", 3) == 0 && name[5] == '\0') // Ignore the headers { - INT16 num; - if (name[5] != '\0') - continue; - num = (INT16)M_MapNumber(name[3], name[4]); + INT16 num = (INT16)M_MapNumber(name[3], name[4]); // we want to record whether this map exists. if it doesn't have a header, we can assume it's not relephant if (num <= NUMMAPS && mapheaderinfo[num - 1]) From 363f4c56f4573bbd3a5f49acb626dca639160a56 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 18:20:10 +0200 Subject: [PATCH 10/59] dedupe map replacement checks the actual checks are in P_CheckMapReplacements --- src/d_main.c | 102 +++++++++++++++++--------------------------------- src/p_setup.c | 30 +++++++-------- src/p_setup.h | 2 + 3 files changed, 52 insertions(+), 82 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index de7a299ea..3093c6c18 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -147,8 +147,6 @@ boolean dedicated = false; boolean loaded_config = false; // true once config.cfg loaded AND executed -static void D_CleanFile(char **filearray); - // // D_PostEvent // Called by the I/O functions when input is detected @@ -1063,6 +1061,16 @@ static void D_AddFile(const char *file, char **filearray) filearray[pnumwadfiles] = newfile; } +static void D_CleanFile(char **filearray) +{ + size_t pnumwadfiles; + for (pnumwadfiles = 0; filearray[pnumwadfiles]; pnumwadfiles++) + { + free(filearray[pnumwadfiles]); + filearray[pnumwadfiles] = NULL; + } +} + // Taken from TSoURDt3rd // https://github.com/StarManiaKG/The-Story-of-Uncapped-Revengence-Discord-the-3rd/blob/main/src/STAR/star_functions.c static INT32 D_DetectFileType(const char* filename) @@ -1224,16 +1232,6 @@ void D_AddPostloadFiles(void) postautoloaded = true; } -static void D_CleanFile(char **filearray) -{ - size_t pnumwadfiles; - for (pnumwadfiles = 0; filearray[pnumwadfiles]; pnumwadfiles++) - { - free(filearray[pnumwadfiles]); - filearray[pnumwadfiles] = NULL; - } -} - // ========================================================================== // Identify the SRB2 version, and IWAD file to use. // ========================================================================== @@ -1364,6 +1362,27 @@ static void IdentifyVersion(void) #endif } +// +// search for maps +// +static void D_CheckMaps(boolean checkreplaced) +{ + INT32 i; + char *name; + UINT16 wadnum; + lumpinfo_t *lumpinfo; + + for (wadnum = 0; wadnum < mainwads; wadnum++) + { + lumpinfo = wadfiles[wadnum]->lumpinfo; + for (i = 0; i < wadfiles[wadnum]->numlumps; i++, lumpinfo++) + { + name = lumpinfo->name; + P_CheckMapReplacements(name, checkreplaced); + } + } +} + // // Center the title string, then add the date and time of compilation. // @@ -1615,12 +1634,9 @@ static void D_CheckSaturnExtraFiles(void) // void D_SRB2Main(void) { - INT32 p, i; + INT32 p; char srb2[82]; // srb2 title banner char title[82]; - lumpinfo_t *lumpinfo; - UINT16 wadnum; - char *name; INT32 pstartmap = 1; boolean autostart = false; @@ -1678,9 +1694,7 @@ void D_SRB2Main(void) #if defined (__OS2__) && !defined (HAVE_SDL) // set PM window title - snprintf(pmData->title, sizeof (pmData->title), - "SRB2Kart" VERSIONSTRING ": %s", - title); + snprintf(pmData->title, sizeof (pmData->title), "SRB2Kart" VERSIONSTRING ": %s", title); pmData->title[sizeof (pmData->title) - 1] = '\0'; #endif @@ -1854,60 +1868,14 @@ void D_SRB2Main(void) // conversion sometimes needs the palette V_ReloadPalette(); - // - // search for maps - // - for (wadnum = 0; wadnum < mainwads; wadnum++) - { - lumpinfo = wadfiles[wadnum]->lumpinfo; - for (i = 0; i < wadfiles[wadnum]->numlumps; i++, lumpinfo++) - { - name = lumpinfo->name; - - if (memcmp(name, "MAP", 3) == 0 && name[5] == '\0') // Ignore the headers - { - INT16 num = (INT16)M_MapNumber(name[3], name[4]); - - // we want to record whether this map exists. if it doesn't have a header, we can assume it's not relephant - if (num <= NUMMAPS && mapheaderinfo[num - 1]) - { - mapheaderinfo[num - 1]->menuflags |= LF2_EXISTSHACK; - } - } - } - } + D_CheckMaps(false); W_InitMultipleFiles(startuppwads, true); // Only search for pwad maps if we actually have a pwad added if (startuppwads[0] != NULL) { - // - // search for maps... again. - // - for (wadnum = mainwads+1; wadnum < numwadfiles; wadnum++) - { - lumpinfo = wadfiles[wadnum]->lumpinfo; - for (i = 0; i < wadfiles[wadnum]->numlumps; i++, lumpinfo++) - { - name = lumpinfo->name; - - if (memcmp(name, "MAP", 3) == 0 && name[5] == '\0') // Ignore the headers - { - INT16 num = (INT16)M_MapNumber(name[3], name[4]); - - // we want to record whether this map exists. if it doesn't have a header, we can assume it's not relephant - if (num <= NUMMAPS && mapheaderinfo[num - 1]) - { - if (mapheaderinfo[num - 1]->menuflags & LF2_EXISTSHACK) - G_SetGameModified(multiplayer, true); // oops, double-defined - no record attack privileges for you - mapheaderinfo[num - 1]->menuflags |= LF2_EXISTSHACK; - } - - CONS_Printf("%s\n", name); - } - } - } + D_CheckMaps(true); } D_CleanFile(startuppwads); diff --git a/src/p_setup.c b/src/p_setup.c index 14df20980..680bdac91 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3043,33 +3043,33 @@ static boolean P_CheckSoundReplacements(UINT16 wadnum, char *name, size_t i) return false; } - // -// search for maps +// P_CheckReplacMapReplacements // -static boolean P_CheckMapReplacements(char *name) +// search for maps and check if they replace another map when checkreplaced is set +// +boolean P_CheckMapReplacements(char *name, boolean checkreplaced) { - if (memcmp(name, "MAP", 3) == 0) // Ignore the headers + if (memcmp(name, "MAP", 3) == 0 && name[5] == '\0') // Ignore the headers { - INT16 num; - - if (name[5] != '\0') - return false; - - num = (INT16)M_MapNumber(name[3], name[4]); + INT16 num = (INT16)M_MapNumber(name[3], name[4]); // we want to record whether this map exists. if it doesn't have a header, we can assume it's not relephant if (num <= NUMMAPS && mapheaderinfo[num-1]) { - if (mapheaderinfo[num-1]->menuflags & LF2_EXISTSHACK) + if (checkreplaced && mapheaderinfo[num-1]->menuflags & LF2_EXISTSHACK) G_SetGameModified(multiplayer, true); // oops, double-defined - no record attack privileges for you mapheaderinfo[num-1]->menuflags |= LF2_EXISTSHACK; } - if (num == gamemap) - partadd_replacescurrentmap = true; + if (checkreplaced) + { + if (num == gamemap) + partadd_replacescurrentmap = true; + + CONS_Printf("%s\n", name); + } - CONS_Printf("%s\n", name); return true; } @@ -3153,7 +3153,7 @@ UINT16 P_PartialAddWadFile(const char *wadfilename, boolean local) if (P_CheckSoundReplacements(wadnum, name, i)) continue; - if (P_CheckMapReplacements(name)) + if (P_CheckMapReplacements(name, true)) { mapsadded = true; continue; diff --git a/src/p_setup.h b/src/p_setup.h index 02f3238c6..7827ebbe6 100644 --- a/src/p_setup.h +++ b/src/p_setup.h @@ -76,6 +76,8 @@ void HWR_LoadLevel(void); boolean P_AddWadFile(const char *wadfilename, boolean local); +boolean P_CheckMapReplacements(char *name, boolean checkreplaced); + // WARNING: The following functions should be grouped as follows: // any amount of PartialAdds followed by MultiSetups until returned true, // as soon as possible. From 9be5780597a6a2a16ad3c44bb76a05dbfefbc914 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 18 Sep 2025 21:08:30 +0200 Subject: [PATCH 11/59] rename "ffloor" global to "visffloor" prevent name conflicts with a bunch of local variables named "ffloor" --- src/r_bsp.cpp | 62 ++++++++++++------------- src/r_plane.cpp | 13 +++--- src/r_plane.h | 2 +- src/r_segs.cpp | 119 ++++++++++++++++++++++++------------------------ 4 files changed, 99 insertions(+), 97 deletions(-) diff --git a/src/r_bsp.cpp b/src/r_bsp.cpp index ae89109db..fa66ac2ac 100644 --- a/src/r_bsp.cpp +++ b/src/r_bsp.cpp @@ -842,9 +842,9 @@ static void R_Subsector(size_t num) ceilingplane = NULL; numffloors = 0; - ffloor[numffloors].slope = NULL; - ffloor[numffloors].plane = NULL; - ffloor[numffloors].polyobj = NULL; + visffloor[numffloors].slope = NULL; + visffloor[numffloors].plane = NULL; + visffloor[numffloors].polyobj = NULL; if (frontsector->ffloors) { @@ -864,8 +864,8 @@ static void R_Subsector(size_t num) } } - ffloor[numffloors].plane = NULL; - ffloor[numffloors].polyobj = NULL; + visffloor[numffloors].plane = NULL; + visffloor[numffloors].polyobj = NULL; heightcheck = P_GetFFloorBottomZAt(rover, viewx, viewy); planecenterz = P_GetFFloorBottomZAt(rover, frontsector->soundorg.x, frontsector->soundorg.y); @@ -878,7 +878,7 @@ static void R_Subsector(size_t num) light = R_GetPlaneLight(frontsector, planecenterz, viewz < heightcheck); - ffloor[numffloors].plane = R_FindPlane( + visffloor[numffloors].plane = R_FindPlane( *rover->bottomheight, *rover->bottompic, *frontsector->lightlist[light].lightlevel, *rover->bottomxoffs, *rover->bottomyoffs, *rover->bottomangle, @@ -888,22 +888,22 @@ static void R_Subsector(size_t num) , R_NoEncore(rover->master->frontsector, true), true, frontsector ); - ffloor[numffloors].slope = *rover->b_slope; + visffloor[numffloors].slope = *rover->b_slope; // Tell the renderer this sector has slopes in it. - if (ffloor[numffloors].slope) + if (visffloor[numffloors].slope) frontsector->hasslope = true; - ffloor[numffloors].height = heightcheck; - ffloor[numffloors].ffloor = rover; + visffloor[numffloors].height = heightcheck; + visffloor[numffloors].ffloor = rover; numffloors++; } if (numffloors >= MAXFFLOORS) break; - ffloor[numffloors].plane = NULL; - ffloor[numffloors].polyobj = NULL; + visffloor[numffloors].plane = NULL; + visffloor[numffloors].polyobj = NULL; heightcheck = P_GetFFloorTopZAt(rover, viewx, viewy); planecenterz = P_GetFFloorTopZAt(rover, frontsector->soundorg.x, frontsector->soundorg.y); @@ -915,7 +915,7 @@ static void R_Subsector(size_t num) { light = R_GetPlaneLight(frontsector, planecenterz, viewz < heightcheck); - ffloor[numffloors].plane = R_FindPlane( + visffloor[numffloors].plane = R_FindPlane( *rover->topheight, *rover->toppic, *frontsector->lightlist[light].lightlevel, *rover->topxoffs, *rover->topyoffs, *rover->topangle, @@ -925,14 +925,14 @@ static void R_Subsector(size_t num) , R_NoEncore(rover->master->frontsector, false), false, frontsector ); - ffloor[numffloors].slope = *rover->t_slope; + visffloor[numffloors].slope = *rover->t_slope; // Tell the renderer this sector has slopes in it. - if (ffloor[numffloors].slope) + if (visffloor[numffloors].slope) frontsector->hasslope = true; - ffloor[numffloors].height = heightcheck; - ffloor[numffloors].ffloor = rover; + visffloor[numffloors].height = heightcheck; + visffloor[numffloors].ffloor = rover; numffloors++; } } @@ -956,49 +956,49 @@ static void R_Subsector(size_t num) } polysec = po->lines[0]->backsector; - ffloor[numffloors].plane = NULL; + visffloor[numffloors].plane = NULL; if (polysec->floorheight <= ceilingcenterz && polysec->floorheight >= floorcenterz && (viewz < polysec->floorheight)) { light = R_GetPlaneLight(frontsector, polysec->floorheight, viewz < polysec->floorheight); - ffloor[numffloors].plane = R_FindPlane(polysec->floorheight, polysec->floorpic, + visffloor[numffloors].plane = R_FindPlane(polysec->floorheight, polysec->floorpic, (light == -1 ? frontsector->lightlevel : *frontsector->lightlist[light].lightlevel), polysec->floor_xoffs, polysec->floor_yoffs, polysec->floorpic_angle-po->angle, (light == -1 ? frontsector->extra_colormap : frontsector->lightlist[light].extra_colormap), NULL, po ,NULL // will ffloors be slopable eventually? , R_NoEncore(polysec, false), false, frontsector); - ffloor[numffloors].height = polysec->floorheight; - ffloor[numffloors].polyobj = po; - ffloor[numffloors].slope = NULL; -// ffloor[numffloors].ffloor = rover; - po->visplane = ffloor[numffloors].plane; + visffloor[numffloors].height = polysec->floorheight; + visffloor[numffloors].polyobj = po; + visffloor[numffloors].slope = NULL; +// visffloor[numffloors].ffloor = rover; + po->visplane = visffloor[numffloors].plane; numffloors++; } if (numffloors >= MAXFFLOORS) break; - ffloor[numffloors].plane = NULL; + visffloor[numffloors].plane = NULL; if (polysec->ceilingheight >= floorcenterz && polysec->ceilingheight <= ceilingcenterz && (viewz > polysec->ceilingheight)) { light = R_GetPlaneLight(frontsector, polysec->floorheight, viewz < polysec->floorheight); - ffloor[numffloors].plane = R_FindPlane(polysec->ceilingheight, polysec->ceilingpic, + visffloor[numffloors].plane = R_FindPlane(polysec->ceilingheight, polysec->ceilingpic, (light == -1 ? frontsector->lightlevel : *frontsector->lightlist[light].lightlevel), polysec->ceiling_xoffs, polysec->ceiling_yoffs, polysec->ceilingpic_angle-po->angle, (light == -1 ? frontsector->extra_colormap : frontsector->lightlist[light].extra_colormap), NULL, po ,NULL // will ffloors be slopable eventually? , R_NoEncore(polysec, true), false, frontsector); - ffloor[numffloors].polyobj = po; - ffloor[numffloors].height = polysec->ceilingheight; - ffloor[numffloors].slope = NULL; -// ffloor[numffloors].ffloor = rover; - po->visplane = ffloor[numffloors].plane; + visffloor[numffloors].polyobj = po; + visffloor[numffloors].height = polysec->ceilingheight; + visffloor[numffloors].slope = NULL; +// visffloor[numffloors].ffloor = rover; + po->visplane = visffloor[numffloors].plane; numffloors++; } diff --git a/src/r_plane.cpp b/src/r_plane.cpp index 0ccf1cc48..d4de83cd2 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -53,7 +53,7 @@ static visplane_t **freehead = &freetail; visplane_t *floorplane; visplane_t *ceilingplane; -visffloor_t ffloor[MAXFFLOORS]; +visffloor_t visffloor[MAXFFLOORS]; INT32 numffloors; //SoM: 3/23/2000: Boom visplane hashing routine. @@ -134,8 +134,9 @@ void R_AllocPlaneMemory(void) for (unsigned i = 0; i < MAXFFLOORS; i++) { - ffloor[i].f_clip = ffloor_f_clip + (i * viewwidth); - ffloor[i].c_clip = ffloor_c_clip + (i * viewwidth); + visffloor_t *ffloor = &visffloor[i]; + ffloor->f_clip = ffloor_f_clip + (i * viewwidth); + ffloor->c_clip = ffloor_c_clip + (i * viewwidth); } yslopetab = static_cast(Z_Realloc(yslopetab, sizeof(*yslopetab) * (viewheight * 16), PU_STATIC, NULL)); @@ -313,9 +314,9 @@ void R_ClearFFloorClips(void) // opening / clipping determination for (p = 0; p < MAXFFLOORS; p++) { - visffloor_t *fffloor = &ffloor[p]; - std::fill(fffloor->f_clip, fffloor->f_clip + viewwidth, static_cast(viewheight)); - std::fill(fffloor->c_clip, fffloor->c_clip + viewwidth, static_cast(-1)); + visffloor_t *ffloor = &visffloor[p]; + std::fill(ffloor->f_clip, ffloor->f_clip + viewwidth, static_cast(viewheight)); + std::fill(ffloor->c_clip, ffloor->c_clip + viewwidth, static_cast(-1)); } numffloors = 0; diff --git a/src/r_plane.h b/src/r_plane.h index f330baa3d..d3b22ea30 100644 --- a/src/r_plane.h +++ b/src/r_plane.h @@ -114,7 +114,7 @@ typedef struct planemgr_s polyobj_t *polyobj; } visffloor_t; -extern visffloor_t ffloor[MAXFFLOORS]; +extern visffloor_t visffloor[MAXFFLOORS]; extern INT32 numffloors; #ifdef __cplusplus diff --git a/src/r_segs.cpp b/src/r_segs.cpp index d8cef4129..70740eb5b 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -1244,13 +1244,13 @@ static void R_RenderSegLoop(drawcolumndata_t* dc) for (i = 0; i < numffloors; i++) { - if (ffloor[i].polyobj && (!curline->polyseg || ffloor[i].polyobj != curline->polyseg)) + if (visffloor[i].polyobj && (!curline->polyseg || visffloor[i].polyobj != curline->polyseg)) continue; - if (ffloor[i].height < viewz) + if (visffloor[i].height < viewz) { - INT32 top_w = (ffloor[i].f_frac >> HEIGHTBITS) + 1; - INT32 bottom_w = ffloor[i].f_clip[rw_x]; + INT32 top_w = (visffloor[i].f_frac >> HEIGHTBITS) + 1; + INT32 bottom_w = visffloor[i].f_clip[rw_x]; if (top_w < top) top_w = top; @@ -1259,22 +1259,22 @@ static void R_RenderSegLoop(drawcolumndata_t* dc) bottom_w = bottom; // Polyobject-specific hack to fix plane leaking -Red - if (ffloor[i].polyobj && top_w >= bottom_w) + if (visffloor[i].polyobj && top_w >= bottom_w) { - ffloor[i].plane->top[rw_x] = 0xFFFF; - ffloor[i].plane->bottom[rw_x] = 0x0000; // fix for sky plane drawing crashes - Monster Iestyn 25/05/18 + visffloor[i].plane->top[rw_x] = 0xFFFF; + visffloor[i].plane->bottom[rw_x] = 0x0000; // fix for sky plane drawing crashes - Monster Iestyn 25/05/18 } else if (top_w <= bottom_w) { fftop = (INT16)top_w; ffbottom = (INT16)bottom_w; - ffloor[i].plane->top[rw_x] = fftop; - ffloor[i].plane->bottom[rw_x] = ffbottom; + visffloor[i].plane->top[rw_x] = fftop; + visffloor[i].plane->bottom[rw_x] = ffbottom; // Lactozilla: Cull part of the column by the 3D floor if it can't be seen // "bottom" is the top pixel of the floor column - if (ffbottom >= bottom-1 && R_FFloorCanClip(&ffloor[i]) && !curline->polyseg) + if (ffbottom >= bottom-1 && R_FFloorCanClip(&visffloor[i]) && !curline->polyseg) { rw_floormarked = true; floorclip[rw_x] = fftop; @@ -1293,10 +1293,10 @@ static void R_RenderSegLoop(drawcolumndata_t* dc) } } } - else if (ffloor[i].height > viewz) + else if (visffloor[i].height > viewz) { - INT32 top_w = ffloor[i].c_clip[rw_x] + 1; - INT32 bottom_w = (ffloor[i].f_frac >> HEIGHTBITS); + INT32 top_w = visffloor[i].c_clip[rw_x] + 1; + INT32 bottom_w = (visffloor[i].f_frac >> HEIGHTBITS); if (top_w < top) top_w = top; @@ -1305,22 +1305,22 @@ static void R_RenderSegLoop(drawcolumndata_t* dc) bottom_w = bottom; // Polyobject-specific hack to fix plane leaking -Red - if (ffloor[i].polyobj && top_w >= bottom_w) + if (visffloor[i].polyobj && top_w >= bottom_w) { - ffloor[i].plane->top[rw_x] = 0xFFFF; - ffloor[i].plane->bottom[rw_x] = 0x0000; // fix for sky plane drawing crashes - Monster Iestyn 25/05/18 + visffloor[i].plane->top[rw_x] = 0xFFFF; + visffloor[i].plane->bottom[rw_x] = 0x0000; // fix for sky plane drawing crashes - Monster Iestyn 25/05/18 } else if (top_w <= bottom_w) { fftop = (INT16)top_w; ffbottom = (INT16)bottom_w; - ffloor[i].plane->top[rw_x] = fftop; - ffloor[i].plane->bottom[rw_x] = ffbottom; + visffloor[i].plane->top[rw_x] = fftop; + visffloor[i].plane->bottom[rw_x] = ffbottom; // Lactozilla: Cull part of the column by the 3D floor if it can't be seen // "top" is the height of the ceiling column - if (fftop <= top+1 && R_FFloorCanClip(&ffloor[i]) && !curline->polyseg) + if (fftop <= top+1 && R_FFloorCanClip(&visffloor[i]) && !curline->polyseg) { rw_ceilingmarked = true; ceilingclip[rw_x] = ffbottom; @@ -1538,19 +1538,19 @@ static void R_RenderSegLoop(drawcolumndata_t* dc) for (i = 0; i < numffloors; i++) { - if (curline->polyseg && (ffloor[i].polyobj != curline->polyseg)) + if (curline->polyseg && (visffloor[i].polyobj != curline->polyseg)) continue; - ffloor[i].f_frac += ffloor[i].f_step; + visffloor[i].f_frac += visffloor[i].f_step; } for (i = 0; i < numbackffloors; i++) { - if (curline->polyseg && (ffloor[i].polyobj != curline->polyseg)) + if (curline->polyseg && (visffloor[i].polyobj != curline->polyseg)) continue; - ffloor[i].f_clip[rw_x] = ffloor[i].c_clip[rw_x] = (INT16)((ffloor[i].b_frac >> HEIGHTBITS) & 0xFFFF); - ffloor[i].b_frac += ffloor[i].b_step; + visffloor[i].f_clip[rw_x] = visffloor[i].c_clip[rw_x] = (INT16)((visffloor[i].b_frac >> HEIGHTBITS) & 0xFFFF); + visffloor[i].b_frac += visffloor[i].b_step; } rw_scale += rw_scalestep; @@ -1881,11 +1881,11 @@ void R_StoreWallRange(INT32 start, INT32 stop) { for (i = 0; i < numffloors; i++) { - if (ffloor[i].polyobj && (!ds_p->curline->polyseg || ffloor[i].polyobj != ds_p->curline->polyseg)) + if (visffloor[i].polyobj && (!ds_p->curline->polyseg || visffloor[i].polyobj != ds_p->curline->polyseg)) continue; - ffloor[i].f_pos = P_GetZAt(ffloor[i].slope, segleft .x, segleft .y, ffloor[i].height) - viewz; - ffloor[i].f_pos_slope = P_GetZAt(ffloor[i].slope, segright.x, segright.y, ffloor[i].height) - viewz; + visffloor[i].f_pos = P_GetZAt(visffloor[i].slope, segleft .x, segleft .y, visffloor[i].height) - viewz; + visffloor[i].f_pos_slope = P_GetZAt(visffloor[i].slope, segright.x, segright.y, visffloor[i].height) - viewz; } } @@ -2630,19 +2630,19 @@ void R_StoreWallRange(INT32 start, INT32 stop) { for (i = 0; i < numffloors; i++) { - ffloor[i].f_pos >>= 4; - ffloor[i].f_pos_slope >>= 4; + visffloor[i].f_pos >>= 4; + visffloor[i].f_pos_slope >>= 4; if (linedef->special == HORIZONSPECIAL) // Horizon lines extend FOFs in contact with them too. { - ffloor[i].f_step = 0; - ffloor[i].f_frac = (centeryfrac>>4); + visffloor[i].f_step = 0; + visffloor[i].f_frac = (centeryfrac>>4); topfrac++; // Prevent 1px HOM } else { - ffloor[i].f_frac = (centeryfrac>>4) - FixedMul(ffloor[i].f_pos, rw_scale); - ffloor[i].f_step = ((centeryfrac>>4) - FixedMul(ffloor[i].f_pos_slope, ds_p->scale2) - ffloor[i].f_frac)/(range); + visffloor[i].f_frac = (centeryfrac>>4) - FixedMul(visffloor[i].f_pos, rw_scale); + visffloor[i].f_step = ((centeryfrac>>4) - FixedMul(visffloor[i].f_pos_slope, ds_p->scale2) - visffloor[i].f_frac)/(range); } } } @@ -2686,14 +2686,14 @@ void R_StoreWallRange(INT32 start, INT32 stop) auto setup_back_fof = [&] { - //ffloor[i].slope = *rover->b_slope; - ffloor[i].b_pos = roverleft; - ffloor[i].b_pos_slope = roverright; - ffloor[i].b_pos >>= 4; - ffloor[i].b_pos_slope >>= 4; - ffloor[i].b_frac = (centeryfrac >> 4) - FixedMul(ffloor[i].b_pos, rw_scale); - ffloor[i].b_step = (centeryfrac >> 4) - FixedMul(ffloor[i].b_pos_slope, ds_p->scale2); - ffloor[i].b_step = (ffloor[i].b_step-ffloor[i].b_frac)/(range); + //visffloor[i].slope = *rover->b_slope; + visffloor[i].b_pos = roverleft; + visffloor[i].b_pos_slope = roverright; + visffloor[i].b_pos >>= 4; + visffloor[i].b_pos_slope >>= 4; + visffloor[i].b_frac = (centeryfrac >> 4) - FixedMul(visffloor[i].b_pos, rw_scale); + visffloor[i].b_step = (centeryfrac >> 4) - FixedMul(visffloor[i].b_pos_slope, ds_p->scale2); + visffloor[i].b_step = (visffloor[i].b_step-visffloor[i].b_frac)/(range); }; if (backsector->ffloors) @@ -2788,20 +2788,20 @@ void R_StoreWallRange(INT32 start, INT32 stop) { auto setup_back_polyobj = [&](fixed_t height) { - if (ffloor[i].plane->minx > ds_p->x1) - ffloor[i].plane->minx = ds_p->x1; + if (visffloor[i].plane->minx > ds_p->x1) + visffloor[i].plane->minx = ds_p->x1; - if (ffloor[i].plane->maxx < ds_p->x2) - ffloor[i].plane->maxx = ds_p->x2; + if (visffloor[i].plane->maxx < ds_p->x2) + visffloor[i].plane->maxx = ds_p->x2; - ffloor[i].slope = NULL; - ffloor[i].b_pos = height; - ffloor[i].b_pos = (ffloor[i].b_pos - viewz) >> 4; - ffloor[i].b_step = FixedMul(-rw_scalestep, ffloor[i].b_pos); - ffloor[i].b_frac = (centeryfrac >> 4) - FixedMul(ffloor[i].b_pos, rw_scale); + visffloor[i].slope = NULL; + visffloor[i].b_pos = height; + visffloor[i].b_pos = (visffloor[i].b_pos - viewz) >> 4; + visffloor[i].b_step = FixedMul(-rw_scalestep, visffloor[i].b_pos); + visffloor[i].b_frac = (centeryfrac >> 4) - FixedMul(visffloor[i].b_pos, rw_scale); }; - while (i < numffloors && ffloor[i].polyobj != curline->polyseg) + while (i < numffloors && visffloor[i].polyobj != curline->polyseg) i++; if (i < numffloors && backsector->floorheight <= frontsector->ceilingheight && @@ -2862,8 +2862,8 @@ void R_StoreWallRange(INT32 start, INT32 stop) for (i = 0; i < numffloors; i++) { - ds_p->ffloorplanes[i] = ffloor[i].plane = - R_CheckPlane(ffloor[i].plane, rw_x, rw_stopx - 1); + ds_p->ffloorplanes[i] = visffloor[i].plane = + R_CheckPlane(visffloor[i].plane, rw_x, rw_stopx - 1); } firstseg = ds_p; @@ -2871,7 +2871,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) else { for (i = 0; i < numffloors; i++) - R_ExpandPlane(ffloor[i].plane, rw_x, rw_stopx - 1); + R_ExpandPlane(visffloor[i].plane, rw_x, rw_stopx - 1); } // FIXME hack to fix planes disappearing when a seg goes behind the camera. This NEEDS to be changed to be done properly. -Red @@ -2879,13 +2879,14 @@ void R_StoreWallRange(INT32 start, INT32 stop) { for (i = 0; i < numffloors; i++) { - if (!ffloor[i].polyobj || ffloor[i].polyobj != curline->polyseg) + if (!visffloor[i].polyobj || visffloor[i].polyobj != curline->polyseg) continue; - if (ffloor[i].plane->minx > rw_x) - ffloor[i].plane->minx = rw_x; - if (ffloor[i].plane->maxx < rw_stopx - 1) - ffloor[i].plane->maxx = rw_stopx - 1; + if (visffloor[i].plane->minx > rw_x) + visffloor[i].plane->minx = rw_x; + + if (visffloor[i].plane->maxx < rw_stopx - 1) + visffloor[i].plane->maxx = rw_stopx - 1; } } From 602e4df5b9038d11854dfaa0c14f61b234f8d975 Mon Sep 17 00:00:00 2001 From: Indev Date: Fri, 19 Sep 2025 02:06:05 +0300 Subject: [PATCH 12/59] Fix smol oversight :3 --- src/lua_playerlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_playerlib.c b/src/lua_playerlib.c index 0309c1928..aa5fde833 100644 --- a/src/lua_playerlib.c +++ b/src/lua_playerlib.c @@ -271,7 +271,7 @@ int player_aiming_setter(lua_State *L) { if (plr == P_GetLocalPlayerForNum(i)) { - localangle[i] = plr->aiming; + localaiming[i] = plr->aiming; break; } } From c4149e26e8f7f8e2102a27607f48d613c9a59e17 Mon Sep 17 00:00:00 2001 From: Indev Date: Fri, 19 Sep 2025 02:10:44 +0300 Subject: [PATCH 13/59] Oops there's 1 more --- src/p_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index 6eb761de0..78590837b 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -4160,7 +4160,7 @@ void P_ResetLocalCamAiming(player_t *player) { if (player == P_GetLocalPlayerForNum(i)) { - localangle[i] = 0; + localaiming[i] = 0; break; } } From 1015800483720f9df910a5cbe83122f9aee5fd5f Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 19 Sep 2025 13:36:49 +0200 Subject: [PATCH 14/59] delet some double defined things --- src/console.h | 5 +++++ src/doomstat.h | 1 - src/screen.h | 1 - src/st_stuff.h | 8 +------- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/console.h b/src/console.h index d51ab36b5..e704a87f1 100644 --- a/src/console.h +++ b/src/console.h @@ -10,6 +10,9 @@ /// \file console.h /// \brief Console drawing and input +#ifndef __CONSOLE__ +#define __CONSOLE__ + #include "d_event.h" #include "command.h" #include "i_threads.h" @@ -62,3 +65,5 @@ void CON_ToggleOff(void); boolean CON_Ready(void); void CON_LogMessage(const char *msg); + +#endif diff --git a/src/doomstat.h b/src/doomstat.h index 87accd1d3..700f7997c 100644 --- a/src/doomstat.h +++ b/src/doomstat.h @@ -569,7 +569,6 @@ extern consvar_t cv_forceskin; // force clients to use the server's skin extern consvar_t cv_downloading; // allow clients to downloading WADs. extern consvar_t cv_nettimeout; // SRB2Kart: Advanced server options menu extern consvar_t cv_jointimeout; -extern consvar_t cv_maxping; extern ticcmd_t netcmds[BACKUPTICS][MAXPLAYERS]; extern INT32 serverplayer; extern INT32 adminplayers[MAXPLAYERS]; diff --git a/src/screen.h b/src/screen.h index 7cde5a6dc..665466dde 100644 --- a/src/screen.h +++ b/src/screen.h @@ -93,7 +93,6 @@ extern consvar_t cv_paralleldrawmasked; extern consvar_t cv_highreshudscale; // wait for page flipping to end or not extern consvar_t cv_vidwait; -extern consvar_t cv_timescale; extern consvar_t cv_votebgscaling; diff --git a/src/st_stuff.h b/src/st_stuff.h index 5ffb3334f..8e7f8fa41 100644 --- a/src/st_stuff.h +++ b/src/st_stuff.h @@ -75,20 +75,14 @@ extern player_t *stplyr; // for splitscreen correct palette changes and overlay extern UINT8 stplyrnum; extern lumpnum_t st_borderpatchnum; + // patches, also used in intermission -extern patch_t *tallnum[10]; extern patch_t *facerankprefix[MAXSKINS]; // ranking extern patch_t *facewantprefix[MAXSKINS]; // wanted extern patch_t *facemmapprefix[MAXSKINS]; // minimap extern patch_t *localfacerankprefix[MAXLOCALSKINS]; // ranking extern patch_t *localfacewantprefix[MAXLOCALSKINS]; // wanted extern patch_t *localfacemmapprefix[MAXLOCALSKINS]; // minimap -/*extern char *facerankprefix_name[MAXSKINS]; // ranking -extern char *facewantprefix_name[MAXSKINS]; // wanted -extern char *facemmapprefix_name[MAXSKINS]; // minimap -extern char *localfacerankprefix_name[MAXLOCALSKINS]; // ranking -extern char *localfacewantprefix_name[MAXLOCALSKINS]; // wanted -extern char *localfacemmapprefix_name[MAXLOCALSKINS]; // minimap*/ /** HUD location information (don't move this comment) */ From 9bab3d579554491cf60c288bf941efd70b5cc5c6 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 19 Sep 2025 13:37:56 +0200 Subject: [PATCH 15/59] fix some potential leaks in M_DrawSplitText --- src/m_menu.c | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index 3ccbed5eb..bbe54ab1c 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -2143,7 +2143,8 @@ static void M_DrawSplitText(INT32 x, INT32 y, INT32 option, const char* str, INT char** clines = NULL; INT16 num_lines = 0; - if (icopy == NULL) return; + if (icopy == NULL) + return; char* tok = strtok(icopy, "\n"); @@ -2151,17 +2152,26 @@ static void M_DrawSplitText(INT32 x, INT32 y, INT32 option, const char* str, INT { char* line = strdup(tok); - if (line == NULL) return; + if (line == NULL) + { + goto cleanup; + } - clines = realloc(clines, (num_lines + 1) * sizeof(char*)); + char **tmp = realloc(clines, (num_lines + 1) * sizeof(char *)); + + if (tmp == NULL) + { + free(line); + goto cleanup; + } + + clines = tmp; clines[num_lines] = line; num_lines++; tok = strtok(NULL, "\n"); } - free(icopy); - INT16 yoffset; yoffset = (((5*10 - num_lines*10))); @@ -2180,11 +2190,17 @@ static void M_DrawSplitText(INT32 x, INT32 y, INT32 option, const char* str, INT V_DrawCenteredThinString(x, y + yoffset, option, clines[i]); V_DrawCenteredThinString(x, y + yoffset, option|V_YELLOWMAP|((9 - alpha) << V_ALPHASHIFT), clines[i]); yoffset += 10; - // Remember to free the memory for each line when you're done with it. - free(clines[i]); } - free(clines); +cleanup: + if (clines) + { + // Remember to free the memory for each line when you're done with it. + for (int i = 0; i < num_lines; i++) + free(clines[i]); + free(clines); + } + free(icopy); } static void M_DoToolTips(menu_t* menu) From 2e766a7e1674855fb23de00f617717ebf4e96ddf Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 19 Sep 2025 13:40:25 +0200 Subject: [PATCH 16/59] fix potential NULL deref of string in lua chatprint lib functions --- src/lua_baselib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lua_baselib.c b/src/lua_baselib.c index fb2b7a36f..5af1a79b0 100644 --- a/src/lua_baselib.c +++ b/src/lua_baselib.c @@ -99,11 +99,12 @@ static int lib_chatprint(lua_State *L) { const char *str = luaL_checkstring(L, 1); // retrieve string boolean sound = lua_optboolean(L, 2); // retrieve sound boolean - int len = strlen(str); if (str == NULL) // error if we don't have a string! return luaL_error(L, LUA_QL("tostring") " must return a string to " LUA_QL("chatprint")); + int len = strlen(str); + if (len > 255) // string is too long!!! return luaL_error(L, "String exceeds the 255 characters limit of the chat buffer."); @@ -117,7 +118,6 @@ static int lib_chatprintf(lua_State *L) int n = lua_gettop(L); /* number of arguments */ const char *str = luaL_checkstring(L, 2); // retrieve string boolean sound = lua_optboolean(L, 3); // sound? - int len = strlen(str); player_t *plr; if (n < 2) @@ -133,6 +133,8 @@ static int lib_chatprintf(lua_State *L) if (str == NULL) // error if we don't have a string! return luaL_error(L, LUA_QL("tostring") " must return a string to " LUA_QL("chatprintf")); + int len = strlen(str); + if (len > 255) // string is too long!!! return luaL_error(L, "String exceeds the 255 characters limit of the chat buffer."); From bdeb7e5e9d3195a52a5a87e2fd1fb4234269e8ad Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 19 Sep 2025 13:41:31 +0200 Subject: [PATCH 17/59] fix potential leak in protocol registering --- src/d_protocol.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/d_protocol.c b/src/d_protocol.c index a4baea43a..ee943f08d 100644 --- a/src/d_protocol.c +++ b/src/d_protocol.c @@ -60,7 +60,7 @@ static boolean RegisterProtocols(const char *path) HKEY hKey = OpenKey(HKEY_CURRENT_USER,"Software\\Classes\\srb2kart"); SetStringValue(hKey, "URL Protocol", ""); RegCloseKey(hKey); - hKey = OpenKey(HKEY_CURRENT_USER,"Software\\Classes\\srb2kart\\shell\\open\\command"); + hKey = OpenKey(HKEY_CURRENT_USER,"Software\\Classes\\srb2kart\\shell\\open\\command"); SetStringValue(hKey, "", va("\"%s\" \"%%1\"", path)); RegCloseKey(hKey); #elif defined (__unix__) || defined (UNIXCOMMON) @@ -76,12 +76,12 @@ static boolean RegisterProtocols(const char *path) if (system("which update-desktop-database > /dev/null 2>&1")) { - // command not found, probably doesn't have freedesktop, so let's ignore + // command not found, probably doesn't have freedesktop, so let's ignore CONS_Alert(CONS_ERROR, "Unable to register protocols. Your system doesn't seem to have freedesktop.\n"); return false; } - if (stat(applicationsfolder, &sb) == -1) + if (stat(applicationsfolder, &sb) == -1) { // location doesn't exist, so let's actually create it newfolder = true; @@ -119,12 +119,13 @@ static boolean RegisterProtocols(const char *path) if (!alreadyexists) fprintf(mimefile, "x-scheme-handler/srb2kart=srb2kart-handler.desktop;\n"); - + if (newfolder) { if (system(va("update-desktop-database %s/.local/share/applications/", homedir)) == -1) { CONS_Alert(CONS_ERROR, "Unable to register protocols. Could not run call to run update-desktop-database sucessfully.\n"); + fclose(mimefile); return false; } } @@ -206,7 +207,7 @@ void D_SetupProtocol(void) fp = fopen(protocolfile, "a+"); result = fgets(buffer, PATH_MAX, fp); - if (result) + if (result) { if (strcmp(buffer, "no") == 0) { From 3c8529562279fa156cc07be4c22074f9e390f2ae Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 19 Sep 2025 13:48:03 +0200 Subject: [PATCH 18/59] fix most implicit float > double conversions --- src/command.c | 4 +-- src/d_main.c | 2 +- src/hardware/hw_clip.c | 4 +-- src/hardware/hw_draw.c | 2 +- src/hardware/hw_main.cpp | 8 ++--- src/hardware/r_opengl/r_opengl.c | 9 ++--- src/i_time.c | 4 +-- src/r_draw_span.cpp | 2 +- src/r_plane.cpp | 12 +++---- src/sdl/i_system.cpp | 1 - src/sdl/mixer_sound.c | 2 +- src/v_video.c | 56 ++++++++++++++++---------------- 12 files changed, 53 insertions(+), 53 deletions(-) diff --git a/src/command.c b/src/command.c index 3881246c1..63cb834e6 100644 --- a/src/command.c +++ b/src/command.c @@ -838,7 +838,7 @@ static void COM_Help_f(void) { { if (!stricmp(cvar->PossibleValue[0].strvalue, "MIN") && !stricmp(cvar->PossibleValue[1].strvalue, "MAX")) - { + { if (floatmode) { float fu = FIXED_TO_FLOAT(cvar->PossibleValue[0].value); @@ -1044,7 +1044,7 @@ static void COM_Add_f(void) if (( cvar->flags & CV_FLOAT )) { - float n =FIXED_TO_FLOAT (cvar->value) + atof(COM_Argv(2)); + float n = FIXED_TO_FLOAT(cvar->value) + (float)atof(COM_Argv(2)); CV_Set(cvar, va("%ld%s", (long)n, M_Ftrim(n))); } else diff --git a/src/d_main.c b/src/d_main.c index 3093c6c18..4df0846b9 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -868,7 +868,7 @@ void D_SRB2Loop(void) // I looked at the possibility of putting in a float drawer for // perfstats and it's very complicated, so we'll just do this instead... ps_interp_frac.value.p = (precise_t)((FIXED_TO_FLOAT(g_time.timefrac)) * 1000.0f); - ps_interp_lag.value.p = (precise_t)((deltasecs) * 1000.0f); + ps_interp_lag.value.p = (precise_t)((deltasecs) * 1000.0); const boolean lagging = ((deltatics >= 1.0) || hu_stopped); diff --git a/src/hardware/hw_clip.c b/src/hardware/hw_clip.c index 346ed1d7c..6066d8528 100644 --- a/src/hardware/hw_clip.c +++ b/src/hardware/hw_clip.c @@ -331,8 +331,8 @@ angle_t gld_FrustumAngle(angle_t tiltangle) // ok, this is a gross hack that barely works... // but at least it doesn't overestimate too much... - clipfov = atan(1 / projMatrix[0]) * 360.0f / M_PIl; - floatangle = 2.0f + (45.0f + (tilt / 1.9f)) * clipfov / 90.0f; + clipfov = atan(1 / (GLdouble)projMatrix[0]) * 360.0 / M_PIl; + floatangle = 2.0 + (45.0 + ((double)tilt / 1.9)) * clipfov / 90.0; if (floatangle >= 180.0) return 0xffffffff; a1 = (angle_t)xs_CRoundToInt(ANG1 * floatangle); diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index 1b082c3a6..454c9bbf0 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -496,7 +496,7 @@ void HWR_DrawCroppedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t pscale, void HWR_DrawFlatFill(INT32 x, INT32 y, INT32 w, INT32 h, lumpnum_t flatlumpnum) { FOutVector v[4]; - double dflatsize; + float dflatsize; INT32 flatflag; const size_t len = W_LumpLength(flatlumpnum); diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 81ce4d286..7fc596a6d 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -681,8 +681,8 @@ static void HWR_RenderPlane(subsector_t *subsector, extrasubsector_t *xsub, bool tempxsow = flatxref; tempytow = flatyref; anglef = ANG2RAD(InvAngle(angle)); - flatxref = (tempxsow * cos(anglef)) - (tempytow * sin(anglef)); - flatyref = (tempxsow * sin(anglef)) + (tempytow * cos(anglef)); + flatxref = (tempxsow * cosf(anglef)) - (tempytow * sinf(anglef)); + flatyref = (tempxsow * sinf(anglef)) + (tempytow * cosf(anglef)); } #define SETUP3DVERT(vert, vx, vy) {\ @@ -695,8 +695,8 @@ static void HWR_RenderPlane(subsector_t *subsector, extrasubsector_t *xsub, bool {\ tempxsow = vert->s;\ tempytow = vert->t;\ - vert->s = (tempxsow * cos(anglef)) - (tempytow * sin(anglef));\ - vert->t = (tempxsow * sin(anglef)) + (tempytow * cos(anglef));\ + vert->s = (tempxsow * cosf(anglef)) - (tempytow * sinf(anglef));\ + vert->t = (tempxsow * sinf(anglef)) + (tempytow * cosf(anglef));\ }\ \ vert->x = (vx);\ diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 8947e99c3..450ed7550 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -227,8 +227,9 @@ static void GL_MSG_Warning(const char *format, ...) CONS_Alert(CONS_WARNING, "%s", str); #endif #ifdef DEBUG_TO_FILE - if (!gllogstream) + if (!gllogstream) gllogstream = fopen("ogllog.txt", "w"); + fwrite(str, strlen(str), 1, gllogstream); #endif } @@ -2843,7 +2844,7 @@ void GL_DrawModelEx(model_t *model, INT32 frameIndex, float duration, float tics scaley = vscale; scalez = hscale; - if (duration > 0.0 && tics >= 0.0) // don't interpolate if instantaneous or infinite in length + if (duration > 0.0f && tics >= 0.0f) // don't interpolate if instantaneous or infinite in length { float newtime = (duration - tics); // + 1; @@ -3380,10 +3381,10 @@ void GL_RenderVhsEffect(fixed_t upbary, fixed_t downbary, UINT8 updistort, UINT8 fix[6] = fix[0] + xfix; fix[4] = fix[2] + xfix; fix[1] = fix[7] = i*yfix; - fix[3] = fix[5] = (i+0.015)*yfix; + fix[3] = fix[5] = (i+0.015f)*yfix; screenVerts[1] = screenVerts[10] = 2*i - 1.0f; - screenVerts[4] = screenVerts[7] = screenVerts[1] + 0.03; + screenVerts[4] = screenVerts[7] = screenVerts[1] + 0.03f; pglColor4ubv(color); diff --git a/src/i_time.c b/src/i_time.c index da6bc3882..888f2c62c 100644 --- a/src/i_time.c +++ b/src/i_time.c @@ -60,7 +60,7 @@ void I_UpdateTime(fixed_t timescale) tic_t realtics; // get real tics - ticratescaled = (double)TICRATE * FixedToFloat(timescale); + ticratescaled = (double)TICRATE * FixedToDouble(timescale); enterprecise = I_GetPreciseTime(); elapsedseconds = (double)(enterprecise - oldenterprecise) / I_GetPrecisePrecision(); @@ -79,6 +79,6 @@ void I_UpdateTime(fixed_t timescale) { double fractional, integral; fractional = modf(tictimer * ticratescaled, &integral); - g_time.timefrac = FloatToFixed(fractional); + g_time.timefrac = DoubleToFixed(fractional); } } diff --git a/src/r_draw_span.cpp b/src/r_draw_span.cpp index a8ed71008..818b19182 100644 --- a/src/r_draw_span.cpp +++ b/src/r_draw_span.cpp @@ -343,7 +343,7 @@ static void R_DrawTiltedSpanTemplate(drawspandata_t* ds) } else { - double left = width; + float left = width; iz += ds->szp.x * left; uz += ds->sup.x * left; vz += ds->svp.x * left; diff --git a/src/r_plane.cpp b/src/r_plane.cpp index d4de83cd2..d4b718123 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -411,8 +411,8 @@ visplane_t *R_FindPlane(fixed_t height, INT32 picnum, INT32 lightlevel, float x = vx / (float)FRACUNIT; float y = vy / (float)FRACUNIT; - vx = (x * cos(ang) + y * sin(ang)) * FRACUNIT; - vy = (-x * sin(ang) + y * cos(ang)) * FRACUNIT; + vx = (x * cosf(ang) + y * sinf(ang)) * FRACUNIT; + vy = (-x * sinf(ang) + y * cosf(ang)) * FRACUNIT; xoff = vx; yoff = vy; @@ -431,8 +431,8 @@ visplane_t *R_FindPlane(fixed_t height, INT32 picnum, INT32 lightlevel, float ang = ANG2RAD(polyobj->angle); float x = FixedToFloat(polyobj->centerPt.x); float y = FixedToFloat(polyobj->centerPt.y); - xoff -= FloatToFixed(x * cos(ang) + y * sin(ang)); - yoff -= FloatToFixed(x * sin(ang) - y * cos(ang)); + xoff -= FloatToFixed(x * cosf(ang) + y * sinf(ang)); + yoff -= FloatToFixed(x * sinf(ang) - y * cosf(ang)); } else { @@ -914,8 +914,8 @@ static void R_SetSlopePlaneOrigin(drawspandata_t *ds, pslope_t *slope, fixed_t x // p is the texture origin in view space // Don't add in the offsets at this stage, because doing so can result in // errors if the flat is rotated. - p->x = vxf * cos(ang) - vyf * sin(ang); - p->z = vxf * sin(ang) + vyf * cos(ang); + p->x = vxf * cosf(ang) - vyf * sinf(ang); + p->z = vxf * sinf(ang) + vyf * cosf(ang); p->y = (R_GetSlopeZAt(slope, -xoff, yoff) - zpos) / (float)FRACUNIT; } diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 3dc47a28e..8edb08d65 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -357,7 +357,6 @@ static void write_backtrace(bt_crash_reason_t reason) buf.pos = backtrace; buf.size = BUFSIZE; - if (!out) { fprintf(stderr, "\nWARNING: Couldn't open crash log for writing! Make sure your permissions are correct. Please save the below report!\n"); diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index b50fe5168..f6c739ab1 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -626,7 +626,7 @@ Countstutter (int len) else bytes = ( music_bytes - music_stutter_bytes ); - I_SetSongPosition((int)( (float)bytes/4/44100.0*1000 )); + I_SetSongPosition((int)( (float)bytes/4/44100.0f*1000 )); } } } diff --git a/src/v_video.c b/src/v_video.c index 3bde9bd3d..822eb5a1c 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -107,22 +107,22 @@ static boolean InitCube(void) { { { - {0.0, 0.0, 0.0}, // black corner - {0.0, 0.0, 1.0} // blue corner + {0.0f, 0.0f, 0.0f}, // black corner + {0.0f, 0.0f, 1.0f} // blue corner }, { - {0.0, 1.0, 0.0}, // green corner - {0.0, 1.0, 1.0} // cyan corner + {0.0f, 1.0f, 0.0f}, // green corner + {0.0f, 1.0f, 1.0f} // cyan corner } }, { { - {1.0, 0.0, 0.0}, // red corner - {1.0, 0.0, 1.0} // magenta corner + {1.0f, 0.0f, 0.0f}, // red corner + {1.0f, 0.0f, 1.0f} // magenta corner }, { - {1.0, 1.0, 0.0}, // yellow corner - {1.0, 1.0, 1.0} // white corner + {1.0f, 1.0f, 0.0f}, // yellow corner + {1.0f, 1.0f, 1.0f} // white corner } } }; @@ -145,9 +145,9 @@ static boolean InitCube(void) #endif #define gammascale 8 - globalgammamul = (cv_globalgamma.value ? ((255 - (gammascale*abs(cv_globalgamma.value)))/255.0) : 1.0); - globalgammaoffs = ((cv_globalgamma.value > 0) ? ((gammascale*cv_globalgamma.value)/255.0) : 0.0); - desatur[0] = desatur[1] = desatur[2] = globalgammaoffs + (0.33*globalgammamul); + globalgammamul = (cv_globalgamma.value ? ((255.0f - (gammascale*abs(cv_globalgamma.value))) / 255.0f) : 1.0f); + globalgammaoffs = ((cv_globalgamma.value > 0) ? ((gammascale*cv_globalgamma.value) / 255.0f) : 0.0f); + desatur[0] = desatur[1] = desatur[2] = globalgammaoffs + (0.33f * globalgammamul); if (doinggamma || diffcons(cv_rhue) @@ -171,8 +171,8 @@ static boolean InitCube(void) working[1][1][1][0] = working[1][1][1][1] = working[1][1][1][2] = globalgammaoffs+globalgammamul; #define dohue(hue, gamma, loc) \ - tempgammamul = (gamma ? ((255 - (gammascale*abs(gamma)))/255.0)*globalgammamul : globalgammamul);\ - tempgammaoffs = ((gamma > 0) ? ((gammascale*gamma)/255.0) + globalgammaoffs : globalgammaoffs);\ + tempgammamul = (gamma ? ((255.0f - (gammascale*abs(gamma)))/255.0f)*globalgammamul : globalgammamul);\ + tempgammaoffs = ((gamma > 0) ? ((gammascale*gamma)/255.0f) + globalgammaoffs : globalgammaoffs);\ mod = ((hue % huecoloursteps)*(tempgammamul)/huecoloursteps);\ switch (hue/huecoloursteps)\ {\ @@ -223,14 +223,14 @@ static boolean InitCube(void) {\ float work, mod, tempgammamul, tempgammaoffs;\ apply = true;\ - work = (cv_sat.value/10.0);\ - mod = ((hue % huecoloursteps)*(1.0)/huecoloursteps);\ + work = (cv_sat.value/10.0f);\ + mod = ((hue % huecoloursteps)*(1.0f)/huecoloursteps);\ if (hue & huecoloursteps)\ mod = 2-mod;\ else\ mod += 1;\ - tempgammamul = (gamma ? ((255 - (gammascale*abs(gamma)))/255.0)*globalgammamul : globalgammamul);\ - tempgammaoffs = ((gamma > 0) ? ((gammascale*gamma)/255.0) + globalgammaoffs : globalgammaoffs);\ + tempgammamul = (gamma ? ((255.0f - (gammascale*abs(gamma)))/255.0f)*globalgammamul : globalgammamul);\ + tempgammaoffs = ((gamma > 0) ? ((gammascale*gamma)/255.0f) + globalgammaoffs : globalgammaoffs);\ for (q = 0; q < 3; q++)\ dosaturation(working[r][g][b][q], (tempgammaoffs+(desatur[q]*mod*tempgammamul)));\ } @@ -246,7 +246,7 @@ static boolean InitCube(void) if diffconssat(cv_globalsaturation) { - float work = (cv_globalsaturation.value/10.0); + float work = (cv_globalsaturation.value/10.0f); apply = true; @@ -272,10 +272,10 @@ static boolean InitCube(void) return false; #define dowork(i, j, k, l) \ - if (working[i][j][k][l] > 1.0)\ - working[i][j][k][l] = 1.0;\ - else if (working[i][j][k][l] < 0.0)\ - working[i][j][k][l] = 0.0;\ + if (working[i][j][k][l] > 1.0f)\ + working[i][j][k][l] = 1.0f;\ + else if (working[i][j][k][l] < 0.0f)\ + working[i][j][k][l] = 0.0f;\ Cubepal[i][j][k][l] = working[i][j][k][l] for (q = 0; q < 3; q++) { @@ -466,7 +466,7 @@ void V_CubeApply(UINT8 *red, UINT8 *green, UINT8 *blue) if (!Cubeapply) return; - linear = (*red/255.0); + linear = (*red/255.0f); #define dolerp(e1, e2) ((1 - linear)*e1 + linear*e2) for (q = 0; q < 3; q++) { @@ -475,19 +475,19 @@ void V_CubeApply(UINT8 *red, UINT8 *green, UINT8 *blue) working[2][q] = dolerp(Cubepal[0][0][1][q], Cubepal[1][0][1][q]); working[3][q] = dolerp(Cubepal[0][1][1][q], Cubepal[1][1][1][q]); } - linear = (*green/255.0); + linear = (*green/255.0f); for (q = 0; q < 3; q++) { working[0][q] = dolerp(working[0][q], working[1][q]); working[1][q] = dolerp(working[2][q], working[3][q]); } - linear = (*blue/255.0); + linear = (*blue/255.0f); for (q = 0; q < 3; q++) { working[0][q] = 255*dolerp(working[0][q], working[1][q]); - if (working[0][q] > 255.0) - working[0][q] = 255.0; - else if (working[0][q] < 0.0) + if (working[0][q] > 255.0f) + working[0][q] = 255.0f; + else if (working[0][q] < 0.0f) working[0][q] = 0.0; } #undef dolerp From 7c490de93e160217ef0f5f5d6459fbeb4e1b6c6a Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 20 Sep 2025 16:11:07 +0200 Subject: [PATCH 19/59] delet metal sonic replay code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit massively cluttered the demo code hope this aint used for some super obscure thing guess weĀ“ll see --- src/console.c | 2 +- src/d_clisrv.c | 6 - src/d_main.c | 7 +- src/d_netcmd.c | 13 +- src/d_player.h | 4 - src/dedicated/i_system.c | 4 - src/doomstat.h | 1 - src/g_demo.c | 424 ++------------------------------------- src/g_demo.h | 12 -- src/g_game.c | 5 - src/m_menu.c | 2 - src/p_inter.c | 20 +- src/p_mobj.c | 21 +- src/p_saveg.c | 11 +- src/p_setup.c | 6 - src/p_spec.c | 23 ++- src/p_tick.c | 5 - src/p_user.c | 5 +- src/sdl/i_system.cpp | 4 - 19 files changed, 42 insertions(+), 533 deletions(-) diff --git a/src/console.c b/src/console.c index bb86d444b..420740b37 100644 --- a/src/console.c +++ b/src/console.c @@ -836,7 +836,7 @@ boolean CON_Responder(event_t *ev) // check for console toggle key if (ev->type != ev_console) { - if (modeattacking || metalrecording) + if (modeattacking) return false; if (ev->data1 >= KEY_MOUSE1) // See also: HUD_Responder diff --git a/src/d_clisrv.c b/src/d_clisrv.c index f72ae4cb9..237d7c130 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -3451,10 +3451,6 @@ void CL_RemovePlayer(INT32 playernum, INT32 reason) void CL_Reset(void) { - if (metalrecording) - G_StopMetalRecording(); - if (metalplayback) - G_StopMetalDemo(); if (demo.recording) G_CheckDemoStatus(); @@ -4700,8 +4696,6 @@ boolean SV_SpawnServer(void) { if (demo.playback) G_StopDemo(); // reset engine parameter - if (metalplayback) - G_StopMetalDemo(); if (!serverrunning) { diff --git a/src/d_main.c b/src/d_main.c index 4df0846b9..061be7537 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -2018,12 +2018,7 @@ void D_SRB2Main(void) // check for a driver that wants intermission stats // start the apropriate game based on parms - if (M_CheckParm("-metal")) - { - G_RecordMetal(); - autostart = true; - } - else if (M_CheckParm("-record") && M_IsNextParm()) + if (M_CheckParm("-record") && M_IsNextParm()) { G_RecordDemo(M_GetNextParm()); autostart = true; diff --git a/src/d_netcmd.c b/src/d_netcmd.c index e858ecc65..4c189a1cc 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -1530,12 +1530,7 @@ static void SendNameAndColor(void) if (players[consoleplayer].mo) players[consoleplayer].mo->color = players[consoleplayer].skincolor; - if (metalrecording) - { // Metal Sonic is Sonic, obviously. - SetPlayerSkinByNum(consoleplayer, 0); - CV_StealthSet(&cv_skin, skins[0].name); - } - else if ((foundskin = R_SkinAvailable(cv_skin.string)) != -1) + if ((foundskin = R_SkinAvailable(cv_skin.string)) != -1) { cv_skin.value = foundskin; SetPlayerSkin(consoleplayer, cv_skin.string); @@ -2325,8 +2320,6 @@ static void Command_Playdemo_f(void) // disconnect from server here? if (demo.playback) G_StopDemo(); - if (metalplayback) - G_StopMetalDemo(); // open the demo file strcpy(name, COM_Argv(1)); @@ -2373,8 +2366,6 @@ static void Command_Timedemo_f(void) // disconnect from server here? if (demo.playback) G_StopDemo(); - if (metalplayback) - G_StopMetalDemo(); // open the demo file strcpy (name, COM_Argv(1)); @@ -2931,8 +2922,6 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum) if (demo.timing) G_DoneLevelLoad(); - if (metalrecording) - G_BeginMetal(); if (demo.recording) // Okay, level loaded, character spawned and skinned, G_BeginRecording(); // I AM NOW READY TO RECORD. demo.deferstart = true; diff --git a/src/d_player.h b/src/d_player.h index 11ccf8079..bcecb66a5 100644 --- a/src/d_player.h +++ b/src/d_player.h @@ -383,10 +383,6 @@ typedef struct player_s fixed_t viewz; // Base height above floor for viewz. fixed_t viewheight; - // Bob/squat speed. - //fixed_t deltaviewheight; - // bounded/scaled total momentum. - //fixed_t bob; angle_t viewrollangle; angle_t tilt; diff --git a/src/dedicated/i_system.c b/src/dedicated/i_system.c index b2affd674..016359772 100644 --- a/src/dedicated/i_system.c +++ b/src/dedicated/i_system.c @@ -1439,8 +1439,6 @@ void I_Quit(void) if (demo.recording) G_CheckDemoStatus(); - if (metalrecording) - G_StopMetalRecording(); D_QuitNetGame(); I_ShutdownMusic(); @@ -1546,8 +1544,6 @@ void I_Error(const char *error, ...) // Shutdown. Here might be other errors. if (demo.recording) G_CheckDemoStatus(); - if (metalrecording) - G_StopMetalRecording(); D_QuitNetGame(); I_ShutdownMusic(); diff --git a/src/doomstat.h b/src/doomstat.h index 700f7997c..46c3d61f9 100644 --- a/src/doomstat.h +++ b/src/doomstat.h @@ -71,7 +71,6 @@ extern boolean majormods; extern UINT16 mainwads; extern boolean savemoddata; // This mod saves time/emblem data. extern boolean imcontinuing; // Temporary flag while continuing -extern boolean metalrecording; #define ATTACKING_NONE 0 #define ATTACKING_RECORD 1 diff --git a/src/g_demo.c b/src/g_demo.c index a706256ff..20d40d5bf 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -82,12 +82,6 @@ static boolean demosynced = true; // console warning message struct demovars_s demo; -boolean metalrecording; // recording as metal sonic -mobj_t *metalplayback; -static UINT8 *metalbuffer = NULL; -static UINT8 *metal_p; -static UINT16 metalversion; - consvar_t cv_resyncdemo = {"resyncdemo", "On", 0, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; // extra data stuff (events registered this frame while recording) @@ -196,25 +190,10 @@ static ticcmd_t oldcmd[MAXPLAYERS]; #define EZT_SPRITE 0x40 // Changed sprite set completely out of PLAY (NiGHTS, SOCs, whatever) #define EZT_KART 0x80 // SRB2Kart: Changed current held item/quantity and bumpers for battle -static mobj_t oldmetal, oldghost[MAXPLAYERS]; +static mobj_t oldghost[MAXPLAYERS]; static void G_ResetDemoPlayback(char *pdemoname); -void G_SaveMetal(UINT8 **buffer) -{ - I_Assert(buffer != NULL && *buffer != NULL); - - WRITEUINT32(*buffer, metal_p - metalbuffer); -} - -void G_LoadMetal(UINT8 **buffer) -{ - I_Assert(buffer != NULL && *buffer != NULL); - - G_DoPlayMetal(); - metal_p = metalbuffer + READUINT32(*buffer); -} - // Finds a skin with the closest stats if the expected skin doesn't exist. static INT32 GetSkinNumClosestToStats(UINT8 kartspeed, UINT8 kartweight) { @@ -1269,15 +1248,15 @@ void G_GhostTicker(void) { switch (ziptic & EZT_THOKMASK) { - case EZT_THOK: - type = (UINT32)mobjinfo[MT_PLAYER].painchance; - break; - case EZT_SPIN: - type = (UINT32)mobjinfo[MT_PLAYER].damage; - break; - case EZT_REV: - type = (UINT32)mobjinfo[MT_PLAYER].raisestate; - break; + case EZT_THOK: + type = (UINT32)mobjinfo[MT_PLAYER].painchance; + break; + case EZT_SPIN: + type = (UINT32)mobjinfo[MT_PLAYER].damage; + break; + case EZT_REV: + type = (UINT32)mobjinfo[MT_PLAYER].raisestate; + break; } } if (type != -1) @@ -1575,216 +1554,6 @@ void G_ConfirmRewind(tic_t rewindtime) P_ResetCamera(&players[displayplayers[i]], &camera[i]); } -void G_ReadMetalTic(mobj_t *metal) -{ - UINT8 ziptic; - UINT16 speed; - UINT8 statetype; - - if (!metal_p) - return; - ziptic = READUINT8(metal_p); - - // Read changes from the tic - if (ziptic & GZT_XYZ) - { - oldmetal.x = READFIXED(metal_p); - oldmetal.y = READFIXED(metal_p); - oldmetal.z = READFIXED(metal_p); - P_MoveOrigin(metal, oldmetal.x, oldmetal.y, oldmetal.z); - oldmetal.x = metal->x; - oldmetal.y = metal->y; - oldmetal.z = metal->z; - } - else - { - if (ziptic & GZT_MOMXY) - { - oldmetal.momx = READINT16(metal_p)<<8; - oldmetal.momy = READINT16(metal_p)<<8; - } - if (ziptic & GZT_MOMZ) - oldmetal.momz = READINT16(metal_p)<<8; - oldmetal.x += oldmetal.momx; - oldmetal.y += oldmetal.momy; - oldmetal.z += oldmetal.momz; - } - if (ziptic & GZT_ANGLE) - oldmetal.angle = READUINT8(metal_p)<<24; - if (ziptic & GZT_SPRITE) - metal_p++; // Currently unused. (Metal Sonic figures out what he's doing his own damn self.) - - // Set movement, position, and angle - // oldmetal contains where you're supposed to be. - metal->momx = oldmetal.momx; - metal->momy = oldmetal.momy; - metal->momz = oldmetal.momz; - P_UnsetThingPosition(metal); - metal->x = oldmetal.x; - metal->y = oldmetal.y; - metal->z = oldmetal.z; - P_SetThingPosition(metal); - metal->angle = oldmetal.angle; - - if (ziptic & GZT_EXTRA) - { // But wait, there's more! - ziptic = READUINT8(metal_p); - if (ziptic & EZT_FLIP) - metal->eflags ^= MFE_VERTICALFLIP; - if (ziptic & EZT_SCALE) - { - metal->destscale = READFIXED(metal_p); - if (metal->destscale != metal->scale) - P_SetScale(metal, metal->destscale); - } - } - - // Calculates player's speed based on distance-of-a-line formula - speed = FixedDiv(P_AproxDistance(oldmetal.momx, oldmetal.momy), metal->scale)>>FRACBITS; - - // Use speed to decide an appropriate state - if (speed > 20) // default skin runspeed - statetype = 2; - else if (speed > 1) // stopspeed - statetype = 1; - else - statetype = 0; - - // Set state - if (statetype != metal->threshold) - { - switch (statetype) - { - case 2: // run - P_SetMobjState(metal,metal->info->meleestate); - break; - case 1: // walk - P_SetMobjState(metal,metal->info->seestate); - break; - default: // stand - P_SetMobjState(metal,metal->info->spawnstate); - break; - } - metal->threshold = statetype; - } - - // TODO: Modify state durations based on movement speed, similar to players? - - if (*metal_p == DEMOMARKER) - { - // end of demo data stream - G_StopMetalDemo(); - return; - } -} - -void G_WriteMetalTic(mobj_t *metal) -{ - UINT8 ziptic = 0; - UINT8 *ziptic_p; - - if (!demobuf.p) // demobuf.p will be NULL until the race start linedef executor is triggered! - return; - - ziptic_p = demobuf.p++; // the ziptic, written at the end of this function - - #define MAXMOM (0xFFFF<<8) - - // GZT_XYZ is only useful if you've moved 256 FRACUNITS or more in a single tic. - if (abs(metal->x-oldmetal.x) > MAXMOM - || abs(metal->y-oldmetal.y) > MAXMOM - || abs(metal->z-oldmetal.z) > MAXMOM) - { - oldmetal.x = metal->x; - oldmetal.y = metal->y; - oldmetal.z = metal->z; - WRITEFIXED(demobuf.p,oldmetal.x); - WRITEFIXED(demobuf.p,oldmetal.y); - WRITEFIXED(demobuf.p,oldmetal.z); - ziptic |= GZT_XYZ; - } - else - { - // For moving normally: - // Store one full byte of movement, plus one byte of fractional movement. - INT16 momx = (INT16)((metal->x-oldmetal.x)>>8); - INT16 momy = (INT16)((metal->y-oldmetal.y)>>8); - if (momx != oldmetal.momx - || momy != oldmetal.momy) - { - oldmetal.momx = momx; - oldmetal.momy = momy; - WRITEINT16(demobuf.p,momx); - WRITEINT16(demobuf.p,momy); - ziptic |= GZT_MOMXY; - } - momx = (INT16)((metal->z-oldmetal.z)>>8); - if (momx != oldmetal.momz) - { - oldmetal.momz = momx; - WRITEINT16(demobuf.p,momx); - ziptic |= GZT_MOMZ; - } - - // This SHOULD set oldmetal.x/y/z to match metal->x/y/z - // but it keeps the fractional loss of one byte, - // so it will hopefully be made up for in future tics. - oldmetal.x += oldmetal.momx<<8; - oldmetal.y += oldmetal.momy<<8; - oldmetal.z += oldmetal.momz<<8; - } - - #undef MAXMOM - - // Only store the 8 most relevant bits of angle - // because exact values aren't too easy to discern to begin with when only 8 angles have different sprites - // and it does not affect movement at all anyway. - if (metal->angle>>24 != oldmetal.angle) - { - oldmetal.angle = metal->angle>>24; - WRITEUINT8(demobuf.p,oldmetal.angle); - ziptic |= GZT_ANGLE; - } - - // Metal Sonic does not need our state changes. - // ... currently. - - { - UINT8 *exttic_p = NULL; - UINT8 exttic = 0; - if ((metal->eflags & MFE_VERTICALFLIP) != (oldmetal.eflags & MFE_VERTICALFLIP)) - { - if (!exttic_p) - exttic_p = demobuf.p++; - exttic |= EZT_FLIP; - oldmetal.eflags ^= MFE_VERTICALFLIP; - } - if (metal->scale != oldmetal.scale) - { - if (!exttic_p) - exttic_p = demobuf.p++; - exttic |= EZT_SCALE; - WRITEFIXED(demobuf.p,metal->scale); - oldmetal.scale = metal->scale; - } - if (exttic_p) - { - *exttic_p = exttic; - ziptic |= GZT_EXTRA; - } - } - - *ziptic_p = ziptic; - - // attention here for the ticcmd size! - // latest demos with mouse aiming byte in ticcmd - if (demobuf.p >= demoend - 32) - { - G_StopMetalRecording(); // no more space - return; - } -} - // // G_RecordDemo // @@ -1815,23 +1584,6 @@ void G_RecordDemo(const char *name) } } -void G_RecordMetal(void) -{ - INT32 maxsize; - maxsize = cv_maxdemosize.value*1024*1024; - if (demobuf.buffer) - Z_Free(demobuf.buffer); - demobuf.p = NULL; - metalrecording = false; - demobuf.buffer = Z_Malloc(maxsize + 100*1024, PU_STATIC, NULL); - demoend = demobuf.buffer + maxsize; - - if (demobuf.buffer) - metalrecording = true; - else - CONS_Alert(CONS_ERROR, "Failed to allocate demo buffer\n"); -} - void G_BeginRecording(void) { UINT8 i, p; @@ -2016,46 +1768,6 @@ void G_BeginRecording(void) } } -void G_BeginMetal(void) -{ - mobj_t *mo = players[consoleplayer].mo; - - if (demobuf.buffer == NULL) - { - CONS_Alert(CONS_ERROR, "No metal demo buffer allocated\n"); - metalrecording = false; - return; - } - - if (demobuf.p) - { - Z_Free(demobuf.buffer); - demobuf.buffer = NULL; - metalrecording = false; - return; - } - - demobuf.p = demobuf.buffer; - - // Write header. - M_Memcpy(demobuf.p, DEMOHEADER, 12); demobuf.p += 12; - WRITEUINT8(demobuf.p,VERSION); - WRITEUINT8(demobuf.p,SUBVERSION); - WRITEUINT16(demobuf.p,DEMOVERSION); - - // demo checksum - demobuf.p += 16; - - M_Memcpy(demobuf.p, "METL", 4); demobuf.p += 4; - - // Set up our memory. - memset(&oldmetal,0,sizeof(oldmetal)); - oldmetal.x = mo->x; - oldmetal.y = mo->y; - oldmetal.z = mo->z; - oldmetal.angle = mo->angle; -} - void G_WriteStanding(UINT8 ranking, char *name, INT32 skinnum, UINT8 color, UINT32 val) { char temp[17]; @@ -3657,74 +3369,6 @@ void G_TimeDemo(const char *name) G_DeferedPlayDemo(name); } -void G_DoPlayMetal(void) -{ - lumpnum_t l; - mobj_t *mo = NULL; - thinker_t *th; - - // it's an internal demo - if ((l = W_CheckNumForName(va("%sMS",G_BuildMapName(gamemap)))) == LUMPERROR) - { - CONS_Alert(CONS_WARNING, M_GetText("No bot recording for this map.\n")); - return; - } - else - metalbuffer = metal_p = W_CacheLumpNum(l, PU_STATIC); - - // find metal sonic - for (th = thinkercap.next; th != &thinkercap; th = th->next) - { - if (th->function != (actionf_p1)P_MobjThinker) - continue; - - mo = (mobj_t *)th; - if (mo->type == MT_METALSONIC_RACE) - break; - } - if (!mo) - { - CONS_Alert(CONS_ERROR, M_GetText("Failed to find bot entity.\n")); - Z_Free(metalbuffer); - return; - } - - // read demo header - metal_p += 12; // DEMOHEADER - metal_p++; // VERSION - metal_p++; // SUBVERSION - metalversion = READUINT16(metal_p); - switch(metalversion) - { - case DEMOVERSION: // latest always supported - break; -#ifdef DEMO_COMPAT_100 - case 0x0001: - I_Error("You need to implement demo compat here, doofus! %s:%d", __FILE__, __LINE__); -#endif - // too old, cannot support. - default: - CONS_Alert(CONS_WARNING, M_GetText("Failed to load bot recording for this map, format version incompatible.\n")); - Z_Free(metalbuffer); - return; - } - metal_p += 16; // demo checksum - if (memcmp(metal_p, "METL", 4)) - { - CONS_Alert(CONS_WARNING, M_GetText("Failed to load bot recording for this map, wasn't recorded in Metal format.\n")); - Z_Free(metalbuffer); - return; - } metal_p += 4; // "METL" - - // read initial tic - memset(&oldmetal,0,sizeof(oldmetal)); - oldmetal.x = mo->x; - oldmetal.y = mo->y; - oldmetal.z = mo->z; - oldmetal.angle = mo->angle; - metalplayback = mo; -} - void G_DoneLevelLoad(void) { CONS_Printf(M_GetText("Loaded level in %f sec\n"), (double)(I_GetTime() - demostarttime) / TICRATE); @@ -3742,42 +3386,6 @@ void G_DoneLevelLoad(void) =================== */ -// Stops metal sonic's demo. Separate from other functions because metal + replays can coexist -void G_StopMetalDemo(void) -{ - // Metal Sonic finishing doesn't end the game, dammit. - Z_Free(metalbuffer); - metalbuffer = NULL; - metalplayback = NULL; - metal_p = NULL; -} - -// Stops metal sonic recording. -ATTRNORETURN void FUNCNORETURN G_StopMetalRecording(void) -{ - boolean saved = false; - if (demobuf.p && demobuf.buffer != NULL) - { - UINT8 *p = demobuf.buffer+16; // checksum position -#ifdef NOMD5 - UINT8 i; - WRITEUINT8(demobuf.p, DEMOMARKER); // add the demo end marker - for (i = 0; i < 16; i++, p++) - *p = P_RandomByte(); // This MD5 was chosen by fair dice roll and most likely < 50% correct. -#else - WRITEUINT8(demobuf.p, DEMOMARKER); // add the demo end marker - md5_buffer((char *)p+16, demobuf.p - (p+16), (void *)p); // make a checksum of everything after the checksum in the file. -#endif - saved = FIL_WriteFile(va("%sMS.LMP", G_BuildMapName(gamemap)), demobuf.buffer, demobuf.p - demobuf.buffer); // finally output the file. - } - Z_Free(demobuf.buffer); - demobuf.buffer = NULL; - metalrecording = false; - if (saved) - I_Error("Saved to %sMS.LMP", G_BuildMapName(gamemap)); - I_Error("Failed to save demo!"); -} - // reset engine variable set for the demos // called from stopdemo command, map command, and g_checkdemoStatus. void G_StopDemo(void) @@ -3860,8 +3468,6 @@ boolean G_CheckDemoStatus(void) { G_FreeGhosts(); - // DO NOT end metal sonic demos here - if (demo.timing) { G_StopTimingDemo(); @@ -3907,18 +3513,15 @@ boolean G_CheckDemoStatus(void) void G_ResetDemoRecording(void) { - if (demobuf.buffer) - Z_Free(demobuf.buffer); + Z_Free(demobuf.buffer); demobuf.buffer = NULL; demo.recording = false; } static void G_ResetDemoPlayback(char *pdemoname) { - if (pdemoname) - Z_Free(pdemoname); - if (demobuf.buffer) - Z_Free(demobuf.buffer); + Z_Free(pdemoname); + Z_Free(demobuf.buffer); demobuf.buffer = NULL; demo.playback = false; if (demo.title) @@ -4007,7 +3610,6 @@ void G_SaveDemo(void) md5_buffer((char *)p+16, (demobuf.buffer + length) - (p+16), p); #endif - if (FIL_WriteFile(va(pandf, srb2home, demoname), demobuf.buffer, demobuf.p - demobuf.buffer)) // finally output the file. demo.savemode = DSM_SAVED; diff --git a/src/g_demo.h b/src/g_demo.h index 905094579..36458b240 100644 --- a/src/g_demo.h +++ b/src/g_demo.h @@ -87,13 +87,9 @@ typedef struct menudemo_s { } standings[MAXPLAYERS]; } menudemo_t; -extern mobj_t *metalplayback; - // Only called by startup code. void G_RecordDemo(const char *name); -void G_RecordMetal(void); void G_BeginRecording(void); -void G_BeginMetal(void); // Only called by shutdown code. void G_WriteStanding(UINT8 ranking, char *name, INT32 skinnum, UINT8 color, UINT32 val); @@ -147,11 +143,6 @@ void G_StoreRewindInfo(void); void G_PreviewRewind(tic_t previewtime); void G_ConfirmRewind(tic_t rewindtime); -void G_ReadMetalTic(mobj_t *metal); -void G_WriteMetalTic(mobj_t *metal); -void G_SaveMetal(UINT8 **buffer); -void G_LoadMetal(UINT8 **buffer); - // Your naming conventions are stupid and useless. // There is no conflict here. typedef struct demoghost { @@ -176,10 +167,7 @@ void G_TimeDemo(const char *name); void G_AddGhost(char *defdemoname); void G_FreeGhosts(void); void G_UpdateStaffGhostName(lumpnum_t l); -void G_DoPlayMetal(void); void G_DoneLevelLoad(void); -void G_StopMetalDemo(void); -ATTRNORETURN void FUNCNORETURN G_StopMetalRecording(void); void G_StopDemo(void); boolean G_CheckDemoStatus(void); void G_SaveDemo(void); diff --git a/src/g_game.c b/src/g_game.c index 0db5cfc51..0b74aca5c 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3053,11 +3053,6 @@ static void G_DoCompleted(void) gameaction = ga_nothing; - if (metalplayback) - G_StopMetalDemo(); - if (metalrecording) - G_StopMetalRecording(); - K_StatRound(); for (i = 0; i < MAXPLAYERS; i++) diff --git a/src/m_menu.c b/src/m_menu.c index bbe54ab1c..8c459b1c0 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -7111,8 +7111,6 @@ static void M_StartServer(INT32 choice) if (demo.playback) G_StopDemo(); - if (metalrecording) - G_StopMetalDemo(); if (!cv_nextmap.value) CV_SetValue(&cv_nextmap, G_RandMap(G_TOLFlag(cv_newgametype.value), -1, false, 0, false, NULL)+1); diff --git a/src/p_inter.c b/src/p_inter.c index 26c9111b9..7746459f5 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -1575,9 +1575,6 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source) // Let EVERYONE know what happened to a player! 01-29-2002 Tails if (target->player && !target->player->spectator) { - if (metalrecording) // Ack! Metal Sonic shouldn't die! Cut the tape, end recording! - G_StopMetalRecording(); - target->flags2 &= ~MF2_DONTDRAW; } @@ -2254,18 +2251,15 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da } // Everything above here can't be forced. - if (!metalrecording) - { - UINT8 shouldForce = LUA_HookShouldDamage(target, inflictor, source, damage); + UINT8 shouldForce = LUA_HookShouldDamage(target, inflictor, source, damage); - if (P_MobjWasRemoved(target)) - return (shouldForce == 1); // mobj was removed + if (P_MobjWasRemoved(target)) + return (shouldForce == 1); // mobj was removed - if (shouldForce == 1) - force = true; - else if (shouldForce == 2) - return false; - } + if (shouldForce == 1) + force = true; + else if (shouldForce == 2) + return false; if (!force) { diff --git a/src/p_mobj.c b/src/p_mobj.c index c7aa2051a..186d04046 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -11048,20 +11048,12 @@ void P_SpawnMapThing(mapthing_t *mthing) else { // save spots for respawning in network games - if (!metalrecording) - playerstarts[mthing->type-1] = mthing; + playerstarts[mthing->type-1] = mthing; } return; } - // If recording, you ARE Metal Sonic. Do not spawn it, do not save normal spawnpoints. - if (metalrecording && mthing->type == mobjinfo[MT_METALSONIC_RACE].doomednum) - { - playerstarts[0] = mthing; - return; - } - // find which type to spawn for (i = 0; i < NUMMOBJTYPES; i++) { @@ -11079,20 +11071,11 @@ void P_SpawnMapThing(mapthing_t *mthing) i = MT_UNKNOWN; } - if (metalrecording) // Metal Sonic can't use these things. - { - if (mobjinfo[i].flags & (MF_ENEMY|MF_BOSS) || i == MT_EMMY || i == MT_STARPOST) - return; - } - if (i >= MT_EMERALD1 && i <= MT_EMERALD7) // Pickupable Emeralds { if (gametype != GT_COOP) // Don't place emeralds in non-coop modes return; - if (metalrecording) - return; // Metal Sonic isn't for collecting emeralds. - if (emeralds & mobjinfo[i].speed) // You already have this emerald! return; } @@ -11679,7 +11662,7 @@ ML_NOCLIMB : Direction not controllable mobj->fuse = mthing->angle + mobj->info->speed; } // Use per-thing collision for spikes if the deaf flag is checked. - if (mthing->options & MTF_AMBUSH && !metalrecording) + if (mthing->options & MTF_AMBUSH) { P_UnsetThingPosition(mobj); mobj->flags &= ~(MF_NOBLOCKMAP|MF_NOGRAVITY|MF_NOCLIPHEIGHT); diff --git a/src/p_saveg.c b/src/p_saveg.c index e1e280e4b..6f4e67854 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -3301,13 +3301,7 @@ static inline void P_NetArchiveSpecials(savebuffer_t *save) // Current global weather type WRITEUINT8(save->p, globalweather); - if (metalplayback) // Is metal sonic running? - { - WRITEUINT8(save->p, 0x01); - G_SaveMetal(&save->p); - } - else - WRITEUINT8(save->p, 0x00); + WRITEUINT8(save->p, 0x00); // metal sonic } // @@ -3348,8 +3342,7 @@ static void P_NetUnArchiveSpecials(savebuffer_t *save) P_SwitchWeather(globalweather); } - if (READUINT8(save->p) == 0x01) // metal sonic - G_LoadMetal(&save->p); + READUINT8(save->p); // metal sonic } // ======================================================================= diff --git a/src/p_setup.c b/src/p_setup.c index 680bdac91..892f44992 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -938,9 +938,6 @@ static void P_SpawnMapThings(void) huntemeralds[emer3 - 1]->z<sidenum[0]], *this; boolean always = !(line->flags & ML_NOCLIMB); // If noclimb: Only change mid texture if mid texture already exists on tagged lines, etc. + for (linenum = 0; linenum < numlines; linenum++) { if (lines[linenum].special == 439) @@ -2688,25 +2689,29 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec) // Front side this = &sides[lines[linenum].sidenum[0]]; - if (always || this->toptexture) this->toptexture = set->toptexture; - if (always || this->midtexture) this->midtexture = set->midtexture; - if (always || this->bottomtexture) this->bottomtexture = set->bottomtexture; + if (always || this->toptexture) + this->toptexture = set->toptexture; + if (always || this->midtexture) + this->midtexture = set->midtexture; + if (always || this->bottomtexture) + this->bottomtexture = set->bottomtexture; if (lines[linenum].sidenum[1] == 0xffff) continue; // One-sided stops here. // Back side this = &sides[lines[linenum].sidenum[1]]; - if (always || this->toptexture) this->toptexture = set->toptexture; - if (always || this->midtexture) this->midtexture = set->midtexture; - if (always || this->bottomtexture) this->bottomtexture = set->bottomtexture; + if (always || this->toptexture) + this->toptexture = set->toptexture; + if (always || this->midtexture) + this->midtexture = set->midtexture; + if (always || this->bottomtexture) + this->bottomtexture = set->bottomtexture; } } break; - case 440: // Play race countdown and start Metal Sonic - if (!metalrecording && !metalplayback) - G_DoPlayMetal(); + case 440: // Play race countdown and start Metal Sonic // srb2kart: unused break; case 441: // Trigger unlockable diff --git a/src/p_tick.c b/src/p_tick.c index e6755fec7..35dc25164 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -829,11 +829,6 @@ void P_Ticker(boolean run) P_RunQuakes(); - if (metalplayback) - G_ReadMetalTic(metalplayback); - if (metalrecording) - G_WriteMetalTic(players[consoleplayer].mo); - if (demo.recording) { G_WriteAllGhostTics(); diff --git a/src/p_user.c b/src/p_user.c index 78590837b..4cbcf6bd6 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1399,7 +1399,7 @@ static void P_CheckBustableBlocks(player_t *player) if (!(rover->flags & FF_SHATTER) && !(rover->flags & FF_SPINBUST) && !((player->pflags & PF_SPINNING) && !(player->pflags & PF_JUMPED)) && (!player->powers[pw_super]) - && !(player->pflags & PF_DRILLING) && !metalrecording) + && !(player->pflags & PF_DRILLING)) continue; topheight = P_GetFOFTopZ(player->mo, node->m_sector, rover, player->mo->x, player->mo->y, NULL); @@ -1448,9 +1448,6 @@ static void P_CheckBustableBlocks(player_t *player) player->mo->momy >>= 1; } - //if (metalrecording) - // G_RecordBustup(rover); - EV_CrumbleChain(node->m_sector, rover); // Run a linedef executor?? diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 8edb08d65..9ff5b675a 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -1974,8 +1974,6 @@ void I_Quit(void) if (demo.recording) G_CheckDemoStatus(); - if (metalrecording) - G_StopMetalRecording(); D_QuitNetGame(); I_ShutdownMusic(); @@ -2100,8 +2098,6 @@ void I_Error(const char *error, ...) // Shutdown. Here might be other errors. if (demo.recording) G_CheckDemoStatus(); - if (metalrecording) - G_StopMetalRecording(); D_QuitNetGame(); I_ShutdownMusic(); From e9fc57b97d7f72f5a9708b9ca55136ed7a1e51ed Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 20 Sep 2025 16:34:35 +0200 Subject: [PATCH 20/59] move saltyhop stuff into seperate struct no functional change, just as little cleaner lookin + reduce size by using stdbools boolean --- src/k_kart.c | 68 ++++++++++++++++++++++++---------------------------- src/p_mobj.h | 17 ++++++++----- src/p_user.c | 2 +- 3 files changed, 43 insertions(+), 44 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index c94cc7904..6b4e333ab 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -91,16 +91,10 @@ static void saltyhop_onchange(void) { player_t *player = &players[i]; - if (!player || !playeringame[i] || P_MobjWasRemoved(player->mo)) + if (!player || P_MobjWasRemoved(player->mo)) continue; - player->mo->salty_jump = false; - player->mo->salty_zoffset = 0; - player->mo->salty_momz = 0; - - player->mo->salty_ready = false; - player->mo->salty_tapping = false; - player->mo->init_salty = false; + memset(&player->mo->salty, 0, sizeof(player->mo->salty)); } } @@ -3339,70 +3333,70 @@ static void K_QuiteSaltyHop(player_t *player) return; // what the fuck is this haya - //fixed_t mos = FRACUNIT; // doesnt work correctly if it isnt :/ mobj_t *pmo = player->mo; + salty_t *psalt = &pmo->salty; const boolean onground = P_IsObjectOnGround(pmo); // ready? if (!player->kartstuff[k_jmp]) { - pmo->salty_ready = true; - pmo->salty_tapping = false; + psalt->ready = true; + psalt->tapping = false; } - else if (pmo->salty_ready) + else if (psalt->ready) { - pmo->salty_ready = false; - pmo->salty_tapping = true; + psalt->ready = false; + psalt->tapping = true; } else { - pmo->salty_tapping = false; + psalt->tapping = false; } // GO! - if (!pmo->init_salty) + if (!psalt->init) { - pmo->salty_jump = false; - pmo->salty_zoffset = 0; - pmo->salty_momz = 0; - pmo->init_salty = true; + psalt->jump = false; + psalt->zoffset = 0; + psalt->momz = 0; + psalt->init = true; } - else if (pmo->salty_jump) + else if (psalt->jump) { if (pmo->eflags & MFE_JUSTHITFLOOR) { - pmo->salty_zoffset = 0; + psalt->zoffset = 0; } else if (onground) { - pmo->salty_zoffset += pmo->salty_momz; - pmo->salty_momz -= (FRACUNIT*3/2); + psalt->zoffset += psalt->momz; + psalt->momz -= (FRACUNIT*3/2); } else { - pmo->salty_zoffset *= (49/50)*FRACUNIT; - pmo->salty_momz = 0; + psalt->zoffset *= (49/50)*FRACUNIT; + psalt->momz = 0; } - if (pmo->salty_zoffset <= 0) + if (psalt->zoffset <= 0) { if (cv_saltyhopsfx.value && !(pmo->eflags & MFE_JUSTHITFLOOR) && onground) S_StartSound(pmo, sfx_s268); - pmo->salty_jump = false; - pmo->salty_zoffset = 0; - pmo->salty_momz = 0; + psalt->jump = false; + psalt->zoffset = 0; + psalt->momz = 0; // shlamma damma if (cv_saltysquish.value) pmo->stretchslam += 8*FRACUNIT; } - else if (cv_saltysquish.value && pmo->salty_zoffset >= 0) + else if (cv_saltysquish.value && psalt->zoffset >= 0) { // goofy ahh hack pmo->spriteyscale += (FRACUNIT/8); pmo->spritexscale -= (FRACUNIT/8); } - pmo->spriteyoffset = FixedMul(pmo->salty_zoffset, cv_saltyheight.value); + pmo->spriteyoffset = FixedMul(psalt->zoffset, cv_saltyheight.value); if (cv_saltyhopsfx.value) { @@ -3412,11 +3406,11 @@ static void K_QuiteSaltyHop(player_t *player) S_StopSoundByID(pmo, sfx_drift); } } - else if (pmo->salty_tapping && onground && !player->kartstuff[k_spinouttimer] && !player->kartstuff[k_squishedtimer]) + else if (psalt->tapping && onground && !player->kartstuff[k_spinouttimer] && !player->kartstuff[k_squishedtimer]) { - pmo->salty_jump = true; - pmo->salty_zoffset = 0; - pmo->salty_momz = 6*FRACUNIT; + psalt->jump = true; + psalt->zoffset = 0; + psalt->momz = 6*FRACUNIT; if (cv_saltyhopsfx.value) S_StartSound(pmo, sfx_s25a); } @@ -3443,7 +3437,7 @@ boolean K_ShouldSlopeRoll(mobj_t *mobj) return false; // seeing a character rotate mid-hop looks really janky - if (!cv_saltyroll.value && mobj->player && mobj->player->mo->salty_jump) + if (!cv_saltyroll.value && mobj->player && mobj->player->mo->salty.jump) return false; return K_CheckSlopeRollDist(mobj); diff --git a/src/p_mobj.h b/src/p_mobj.h index eed259ba3..2db5ba120 100644 --- a/src/p_mobj.h +++ b/src/p_mobj.h @@ -266,6 +266,16 @@ typedef enum { PCF_THUNK = 1<<5, // Ran the thinker this tic. } precipflag_t; +typedef struct salty_s +{ + bool init; + bool ready; + bool tapping; + fixed_t zoffset; + fixed_t momz; + bool jump; +} salty_t; + // Map Object definition. typedef struct mobj_s { @@ -407,12 +417,7 @@ typedef struct mobj_s tic_t slamsoundtimer; // Funni slam sound when landing // saltyhop! hardcode edition - boolean salty_ready; - boolean salty_tapping; - fixed_t salty_zoffset; - fixed_t salty_momz; - boolean salty_jump; - boolean init_salty; + salty_t salty; // WARNING: New fields must be added separately to savegame and Lua. boolean islocal; // BEWARE: islocal does not exist in vanilla, strictly to be used for locally loaded addons to not cause desynchs with the mobj linedef trigger check. DO NOT USE THIS IN ACTUAL ADDONS YOU INTEND TO USE ON YOUR SERVER diff --git a/src/p_user.c b/src/p_user.c index 4cbcf6bd6..392878054 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -4505,7 +4505,7 @@ static void P_DoFunnyDance(player_t *player) { fixed_t bpm; // 140bpm ish - if (player->spectator || !player->mo || player->kartstuff[k_respawn] || player->mo->salty_jump) // this looks jank as hell during hop + if (player->spectator || !player->mo || player->kartstuff[k_respawn] || player->mo->salty.jump) // this looks jank as hell during hop return; player->squishdance.bounce = 0; From 8867dc959eab5e03ff6af7765c2fd2e6a550d3f2 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 20 Sep 2025 16:29:55 +0200 Subject: [PATCH 21/59] dedupe and cleanup nights hoops spawn most of the actual spawn is split into P_SpawnNiGHTSHoop, which takes arguments to determine if to spawn just a hoop or its collision detectors (if you wonder why this takes a mobj pointer to pointer is due to collision detector need the former hoops last mobj to link into) - also actually fixes midgame join crash (hoop hnext was directly nulled instead of using p_settarget) - added some extra safety checks - reduced the amounts of r_pointinsubsector calls for things that used to go through this function --- src/m_cheat.c | 15 ++- src/p_inter.c | 17 ++- src/p_mobj.c | 346 +++++++++++++++++--------------------------------- src/p_mobj.h | 2 +- src/p_saveg.c | 2 +- src/p_setup.c | 5 +- 6 files changed, 140 insertions(+), 247 deletions(-) diff --git a/src/m_cheat.c b/src/m_cheat.c index d4120368d..85caaa234 100644 --- a/src/m_cheat.c +++ b/src/m_cheat.c @@ -830,18 +830,18 @@ void OP_NightsObjectplace(player_t *player) mt->options = (UINT16)((player->mo->z - fheight)>>FRACBITS); mt->angle = (INT16)(mt->angle+(INT16)((FixedInt(FixedDiv(temp*FRACUNIT, 360*(FRACUNIT/256))))<<8)); - P_SpawnHoopsAndRings(mt); + P_SpawnHoops(mt); } // This places a ring! - if (cmd->buttons & BT_BACKWARD) + /*if (cmd->buttons & BT_BACKWARD) { player->pflags |= PF_ATTACKDOWN; if (!OP_HeightOkay(player, false)) return; mt = OP_CreateNewMapThing(player, (UINT16)mobjinfo[MT_RING].doomednum, false); - P_SpawnHoopsAndRings(mt); + //P_SpawnHoopsAndRings(mt); } // This places a wing item! @@ -852,8 +852,8 @@ void OP_NightsObjectplace(player_t *player) return; mt = OP_CreateNewMapThing(player, (UINT16)mobjinfo[MT_NIGHTSWING].doomednum, false); - P_SpawnHoopsAndRings(mt); - } + //P_SpawnHoopsAndRings(mt); + }*/ // This places a custom object as defined in the console cv_mapthingnum. if (cmd->buttons & BT_BRAKE) @@ -891,7 +891,7 @@ void OP_NightsObjectplace(player_t *player) || mt->type == 1705 || mt->type == 1713 // NiGHTS Hoops || mt->type == 1800) // Mario Coin { - P_SpawnHoopsAndRings(mt); + P_SpawnHoops(mt); } else P_SpawnMapThing(mt); @@ -1022,7 +1022,8 @@ void OP_ObjectplaceMovement(player_t *player) || mt->type == 1705 || mt->type == 1713 // NiGHTS Hoops || mt->type == 1800) // Mario Coin { - P_SpawnHoopsAndRings(mt); + // NiGHTS hoops only + P_SpawnHoops(mt); } else P_SpawnMapThing(mt); diff --git a/src/p_inter.c b/src/p_inter.c index 7746459f5..6eb6779a0 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -890,16 +890,19 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) break; case MT_HOOPCOLLIDE: // This produces a kind of 'domino effect' with the hoop's pieces. - for (; !P_MobjWasRemoved(special->hprev); special = special->hprev); // Move to the first sprite in the hoop + for (; special->hprev != NULL; special = special->hprev); // Move to the first sprite in the hoop i = 0; - for (; !P_MobjWasRemoved(special->hnext) && special->type == MT_HOOP; special = special->hnext) + for (; special->hnext != NULL && special->type == MT_HOOP; special = special->hnext) { - special->fuse = 11; - special->movedir = i; - special->extravalue1 = special->target->extravalue1; - special->extravalue2 = special->target->extravalue2; - special->target->threshold = 4242; + if (!P_MobjWasRemoved(special->target)) + { + special->fuse = 11; + special->movedir = i; + special->extravalue1 = special->target->extravalue1; + special->extravalue2 = special->target->extravalue2; + special->target->threshold = 4242; + } i++; } // Make the collision detectors disappear. diff --git a/src/p_mobj.c b/src/p_mobj.c index 186d04046..3d437b1c5 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -11805,228 +11805,141 @@ ML_NOCLIMB : Direction not controllable mthing->mobj = mobj; } -void P_SpawnHoopsAndRings(mapthing_t *mthing) +static void P_SpawnNiGHTSHoop(fixed_t x, fixed_t y, fixed_t z, fixed_t hoopsize, fixed_t hoopplacement, angle_t closestangle, INT16 spewangle, mobj_t *hoopcenter, mobj_t **nextmobj, mobjtype_t type) { - mobj_t *mobj = NULL; - INT32 /*r,*/ i; - fixed_t x, y, z, finalx, finaly, finalz; - sector_t *sec; + INT32 i; + angle_t fa; TVector v, *res; - angle_t closestangle, fa; + mobj_t *mobj = NULL; + + for (i = 0; i < hoopsize; i++) + { + fa = i*(FINEANGLES/hoopsize); + v[0] = FixedMul(FINECOSINE(fa), hoopplacement); + v[1] = 0; + v[2] = FixedMul(FINESINE(fa), hoopplacement); + v[3] = FRACUNIT; + + res = VectorMatrixMultiply(v, *RotateXMatrix(FixedAngle(spewangle))); + M_Memcpy(&v, res, sizeof (v)); + res = VectorMatrixMultiply(v, *RotateZMatrix(closestangle)); + M_Memcpy(&v, res, sizeof (v)); + + mobj = P_SpawnMobj(x + v[0], y + v[1], z + v[2], type); + + if (P_MobjWasRemoved(mobj)) + continue; + + mobj->z -= mobj->height/2; + + if (hoopcenter) + { + P_SetTarget(&mobj->target, hoopcenter); // Link the sprite to the center. + + mobj->fuse = 0; + + // Link all the sprites in the hoop together + if (nextmobj && *nextmobj) + { + P_SetTarget(&mobj->hprev, *nextmobj); + P_SetTarget(&mobj->hprev->hnext, mobj); + } + else + P_SetTarget(&mobj->hprev, P_SetTarget(&mobj->hnext, NULL)); + } + else + { + // Link all the collision sprites together. + P_SetTarget(&mobj->hnext, NULL); + P_SetTarget(&mobj->hprev, *nextmobj); + P_SetTarget(&mobj->hprev->hnext, mobj); + } + + *nextmobj = mobj; + } +} + +void P_SpawnHoops(mapthing_t *mthing) +{ + fixed_t x, y, z; + fixed_t spewangle; + fixed_t sizefactor; + fixed_t hoopsize, hoopplacement; + sector_t *sec; + angle_t closestangle; + + mobj_t *hoopcenter; + mobj_t *nextmobj = NULL; + + // srb2kart - no rings or ring-like objects in R1 + if (mthing->type != 1705 && mthing->type != 1713) + return; x = mthing->x << FRACBITS; y = mthing->y << FRACBITS; sec = R_PointInSubsector(x, y)->sector; - // NiGHTS hoop! - if (mthing->type == 1705) - { - mobj_t *nextmobj = NULL; - mobj_t *hoopcenter; - INT16 spewangle; - + // Save our flags! + if (mthing->type == 1713) + z = (mthing->options >> ZSHIFT) << FRACBITS; + else z = mthing->options << FRACBITS; - hoopcenter = P_SpawnMobj(x, y, z, MT_HOOPCENTER); - hoopcenter->spawnpoint = mthing; + hoopcenter = P_SpawnMobj(x, y, z, MT_HOOPCENTER); - z += P_GetSectorFloorZAt(sec, x, y); - - hoopcenter->z = z - hoopcenter->height/2; - - P_UnsetThingPosition(hoopcenter); - hoopcenter->x = x; - hoopcenter->y = y; - P_SetThingPosition(hoopcenter); - - // Scale 0-255 to 0-359 =( - closestangle = FixedAngle(FixedMul((mthing->angle>>8)*FRACUNIT, - 360*(FRACUNIT/256))); - - hoopcenter->movedir = FixedInt(FixedMul((mthing->angle&255)*FRACUNIT, - 360*(FRACUNIT/256))); - hoopcenter->movecount = FixedInt(AngleFixed(closestangle)); - - // For the hoop when it flies away - hoopcenter->extravalue1 = 32; - hoopcenter->extravalue2 = 8 * FRACUNIT; - - spewangle = (INT16)hoopcenter->movedir; - - // Create the hoop! - for (i = 0; i < 32; i++) - { - fa = i*(FINEANGLES/32); - v[0] = FixedMul(FINECOSINE(fa),96*FRACUNIT); - v[1] = 0; - v[2] = FixedMul(FINESINE(fa),96*FRACUNIT); - v[3] = FRACUNIT; - - res = VectorMatrixMultiply(v, *RotateXMatrix(FixedAngle(spewangle*FRACUNIT))); - M_Memcpy(&v, res, sizeof (v)); - res = VectorMatrixMultiply(v, *RotateZMatrix(closestangle)); - M_Memcpy(&v, res, sizeof (v)); - - finalx = x + v[0]; - finaly = y + v[1]; - finalz = z + v[2]; - - mobj = P_SpawnMobj(finalx, finaly, finalz, MT_HOOP); - - mobj->z -= mobj->height/2; - - P_SetTarget(&mobj->target, hoopcenter); // Link the sprite to the center. - mobj->fuse = 0; - - // Link all the sprites in the hoop together - if (nextmobj) - { - P_SetTarget(&mobj->hprev, nextmobj); - P_SetTarget(&mobj->hprev->hnext, mobj); - } - else - mobj->hprev = mobj->hnext = NULL; - - nextmobj = mobj; - } - - // Create the collision detectors! - for (i = 0; i < 16; i++) - { - fa = i*FINEANGLES/16; - v[0] = FixedMul(FINECOSINE(fa),32*FRACUNIT); - v[1] = 0; - v[2] = FixedMul(FINESINE(fa),32*FRACUNIT); - v[3] = FRACUNIT; - res = VectorMatrixMultiply(v, *RotateXMatrix(FixedAngle(spewangle*FRACUNIT))); - M_Memcpy(&v, res, sizeof (v)); - res = VectorMatrixMultiply(v, *RotateZMatrix(closestangle)); - M_Memcpy(&v, res, sizeof (v)); - - finalx = x + v[0]; - finaly = y + v[1]; - finalz = z + v[2]; - - mobj = P_SpawnMobj(finalx, finaly, finalz, MT_HOOPCOLLIDE); - mobj->z -= mobj->height/2; - - // Link all the collision sprites together. - mobj->hnext = NULL; - P_SetTarget(&mobj->hprev, nextmobj); - P_SetTarget(&mobj->hprev->hnext, mobj); - - nextmobj = mobj; - } - // Create the collision detectors! - for (i = 0; i < 16; i++) - { - fa = i*FINEANGLES/16; - v[0] = FixedMul(FINECOSINE(fa),64*FRACUNIT); - v[1] = 0; - v[2] = FixedMul(FINESINE(fa),64*FRACUNIT); - v[3] = FRACUNIT; - res = VectorMatrixMultiply(v, *RotateXMatrix(FixedAngle(spewangle*FRACUNIT))); - M_Memcpy(&v, res, sizeof (v)); - res = VectorMatrixMultiply(v, *RotateZMatrix(closestangle)); - M_Memcpy(&v, res, sizeof (v)); - - finalx = x + v[0]; - finaly = y + v[1]; - finalz = z + v[2]; - - mobj = P_SpawnMobj(finalx, finaly, finalz, MT_HOOPCOLLIDE); - mobj->z -= mobj->height/2; - - // Link all the collision sprites together. - mobj->hnext = NULL; - P_SetTarget(&mobj->hprev, nextmobj); - P_SetTarget(&mobj->hprev->hnext, mobj); - - nextmobj = mobj; - } + if (P_MobjWasRemoved(hoopcenter)) return; - } - // CUSTOMIZABLE NiGHTS hoop! - else if (mthing->type == 1713) + + hoopcenter->spawnpoint = mthing; + + z += P_GetSectorFloorZAt(sec, x, y); + + hoopcenter->z -= hoopcenter->height/2; + + P_UnsetThingPosition(hoopcenter); + hoopcenter->x = x; + hoopcenter->y = y; + P_SetThingPosition(hoopcenter); + + // Scale 0-255 to 0-359 =( + closestangle = FixedAngle(FixedMul((mthing->angle >> 8)*FRACUNIT, 360*(FRACUNIT/256))); + + hoopcenter->movedir = FixedInt(FixedMul((mthing->angle & 255)*FRACUNIT, 360*(FRACUNIT/256))); + hoopcenter->movecount = FixedInt(AngleFixed(closestangle)); + + spewangle = (fixed_t)((INT16)hoopcenter->movedir * FRACUNIT); + + if (mthing->type == 1713) // CUSTOMIZABLE NiGHTS hoop! { - mobj_t *nextmobj = NULL; - mobj_t *hoopcenter; - INT16 spewangle; - INT32 hoopsize; - INT32 hoopplacement; - - // Save our flags! - z = (mthing->options>>ZSHIFT) << FRACBITS; - - hoopcenter = P_SpawnMobj(x, y, z, MT_HOOPCENTER); - hoopcenter->spawnpoint = mthing; - - z += P_GetSectorFloorZAt(sec, x, y); - hoopcenter->z = z - hoopcenter->height/2; - - P_UnsetThingPosition(hoopcenter); - hoopcenter->x = x; - hoopcenter->y = y; - P_SetThingPosition(hoopcenter); - - // Scale 0-255 to 0-359 =( - closestangle = FixedAngle(FixedMul((mthing->angle>>8)*FRACUNIT, - 360*(FRACUNIT/256))); - - hoopcenter->movedir = FixedInt(FixedMul((mthing->angle&255)*FRACUNIT, - 360*(FRACUNIT/256))); - hoopcenter->movecount = FixedInt(AngleFixed(closestangle)); - - spewangle = (INT16)hoopcenter->movedir; - // Super happy fun time // For each flag add 4 fracunits to the size // Default (0 flags) is 8 fracunits hoopsize = 8 + (4 * (mthing->options & 0xF)); - hoopplacement = hoopsize * (4*FRACUNIT); + sizefactor = 4*FRACUNIT; + hoopplacement = hoopsize * sizefactor; // For the hoop when it flies away hoopcenter->extravalue1 = hoopsize; hoopcenter->extravalue2 = FixedDiv(hoopplacement, 12*FRACUNIT); + } + else // NiGHTS hoop! + { + hoopsize = 32; + sizefactor = 32*FRACUNIT; + hoopplacement = 96*FRACUNIT; - // Create the hoop! - for (i = 0; i < hoopsize; i++) - { - fa = i*(FINEANGLES/hoopsize); - v[0] = FixedMul(FINECOSINE(fa), hoopplacement); - v[1] = 0; - v[2] = FixedMul(FINESINE(fa), hoopplacement); - v[3] = FRACUNIT; + // For the hoop when it flies away + hoopcenter->extravalue1 = hoopsize; + hoopcenter->extravalue2 = 8 * FRACUNIT; + } - res = VectorMatrixMultiply(v, *RotateXMatrix(FixedAngle(spewangle*FRACUNIT))); - M_Memcpy(&v, res, sizeof (v)); - res = VectorMatrixMultiply(v, *RotateZMatrix(closestangle)); - M_Memcpy(&v, res, sizeof (v)); + // Create the hoop! + P_SpawnNiGHTSHoop(x, y, z, hoopsize, hoopplacement, closestangle, spewangle, hoopcenter, &nextmobj, MT_HOOP); - finalx = x + v[0]; - finaly = y + v[1]; - finalz = z + v[2]; - - mobj = P_SpawnMobj(finalx, finaly, finalz, MT_HOOP); - - mobj->z -= mobj->height/2; - P_SetTarget(&mobj->target, hoopcenter); // Link the sprite to the center. - mobj->fuse = 0; - - // Link all the sprites in the hoop together - if (nextmobj) - { - P_SetTarget(&mobj->hprev, nextmobj); - P_SetTarget(&mobj->hprev->hnext, mobj); - } - else - mobj->hprev = mobj->hnext = NULL; - - nextmobj = mobj; - } - - // Create the collision detectors! + // Create the collision detectors! + if (mthing->type == 1713) + { // Create them until the size is less than 8 // But always create at least ONE set of collision detectors do @@ -12036,39 +11949,16 @@ void P_SpawnHoopsAndRings(mapthing_t *mthing) else hoopsize /= 2; - hoopplacement = hoopsize * (4*FRACUNIT); + hoopplacement = hoopsize * sizefactor; - for (i = 0; i < hoopsize; i++) - { - fa = i*FINEANGLES/hoopsize; - v[0] = FixedMul(FINECOSINE(fa), hoopplacement); - v[1] = 0; - v[2] = FixedMul(FINESINE(fa), hoopplacement); - v[3] = FRACUNIT; - res = VectorMatrixMultiply(v, *RotateXMatrix(FixedAngle(spewangle*FRACUNIT))); - M_Memcpy(&v, res, sizeof (v)); - res = VectorMatrixMultiply(v, *RotateZMatrix(closestangle)); - M_Memcpy(&v, res, sizeof (v)); - - finalx = x + v[0]; - finaly = y + v[1]; - finalz = z + v[2]; - - mobj = P_SpawnMobj(finalx, finaly, finalz, MT_HOOPCOLLIDE); - mobj->z -= mobj->height/2; - - // Link all the collision sprites together. - mobj->hnext = NULL; - P_SetTarget(&mobj->hprev, nextmobj); - P_SetTarget(&mobj->hprev->hnext, mobj); - - nextmobj = mobj; - } + P_SpawnNiGHTSHoop(x, y, z, hoopsize, hoopplacement, closestangle, spewangle, NULL, &nextmobj, MT_HOOPCOLLIDE); } while (hoopsize >= 8); - - return; } - else return; // srb2kart - no rings or ring-like objects in R1 + else + { + P_SpawnNiGHTSHoop(x, y, z, hoopsize/2, sizefactor, closestangle, spewangle, NULL, &nextmobj, MT_HOOPCOLLIDE); + P_SpawnNiGHTSHoop(x, y, z, hoopsize/2, sizefactor*2, closestangle, spewangle, NULL, &nextmobj, MT_HOOPCOLLIDE); + } } // diff --git a/src/p_mobj.h b/src/p_mobj.h index 2db5ba120..1123faf5b 100644 --- a/src/p_mobj.h +++ b/src/p_mobj.h @@ -501,7 +501,7 @@ void P_MovePlayerToStarpost(INT32 playernum); void P_AfterPlayerSpawn(INT32 playernum); void P_SpawnMapThing(mapthing_t *mthing); -void P_SpawnHoopsAndRings(mapthing_t *mthing); +void P_SpawnHoops(mapthing_t *mthing); void P_SpawnHoopOfSomething(fixed_t x, fixed_t y, fixed_t z, fixed_t radius, INT32 number, mobjtype_t type, angle_t rotangle); void P_SpawnPrecipitation(void); void P_SpawnParaloop(fixed_t x, fixed_t y, fixed_t z, fixed_t radius, INT32 number, mobjtype_t type, statenum_t nstate, angle_t rotangle, boolean spawncenter); diff --git a/src/p_saveg.c b/src/p_saveg.c index 6f4e67854..cb6d46062 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -2007,7 +2007,7 @@ static void LoadMobjThinker(savebuffer_t *save, actionf_p1 thinker) if (mapthings[spawnpointnum].type == 1705 || mapthings[spawnpointnum].type == 1713) // NiGHTS Hoop special case { - P_SpawnHoopsAndRings(&mapthings[spawnpointnum]); + P_SpawnHoops(&mapthings[spawnpointnum]); return; } diff --git a/src/p_setup.c b/src/p_setup.c index 892f44992..861e1c5ea 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -948,10 +948,9 @@ static void P_SpawnMapThings(void) mt->mobj = NULL; // Z for objects Tails 05-26-2002 - mt->z = (INT16)(R_PointInSubsector(mt->x << FRACBITS, mt->y << FRACBITS) - ->sector->floorheight>>FRACBITS); + mt->z = (INT16)(R_PointInSubsector(mt->x << FRACBITS, mt->y << FRACBITS)->sector->floorheight>>FRACBITS); - P_SpawnHoopsAndRings(mt); + P_SpawnHoops(mt); } } } From 72c05fae773c7d3ab2db97f66064df0f80a5a41f Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 20 Sep 2025 17:56:16 +0200 Subject: [PATCH 22/59] add gba RR check for software cyan cut --- src/p_setup.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/p_setup.c b/src/p_setup.c index 861e1c5ea..c0c020ec3 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -628,6 +628,15 @@ static void P_CheckCyanFlat(levelflat_t *levelflat) if (rendermode != render_soft) return; + const char *flatname = W_CheckNameForNum(levelflat->lumpnum); + + // hack for gba rainbow roads cyan floors + if (UNLIKELY(memcmp(flatname, "GBA_RRF5", 8) == 0 && flatname[8] == 0)) + { + levelflat->cyan = false; + return; + } + const UINT8 *flat = R_GetFlat(levelflat->lumpnum); const size_t size = W_LumpLength(levelflat->lumpnum); From fbb77e842816a5b3d194e931934c5409e30bcef1 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 20 Sep 2025 18:05:11 +0200 Subject: [PATCH 23/59] always account for mobjscale in precip this is a fix not some feature honestly --- src/hardware/hw_main.cpp | 2 +- src/m_menudefs.c | 25 +++++++++++-------------- src/p_mobj.c | 7 +++---- src/p_spec.c | 2 +- src/r_fps.cpp | 8 ++------ src/r_main.cpp | 2 -- src/r_main.h | 2 +- src/r_things.cpp | 3 +-- 8 files changed, 20 insertions(+), 31 deletions(-) diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 7fc596a6d..8dec512dc 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -4623,7 +4623,7 @@ static void HWR_AddPrecipitationSprites(void) return; } - drawdist = ((fixed_t)(cv_drawdist_precip.value) * (cv_mobjscaleprecip.value ? mapobjectscale : FRACUNIT)); + drawdist = ((fixed_t)(cv_drawdist_precip.value) * mapobjectscale); // No to infinite precipitation draw distance. if (cv_drawdist_precip.value == 0) diff --git a/src/m_menudefs.c b/src/m_menudefs.c index f9d1e0ea9..d0b410946 100644 --- a/src/m_menudefs.c +++ b/src/m_menudefs.c @@ -935,28 +935,27 @@ static menuitem_t OP_ExpOptionsMenu[] = {IT_STRING|IT_CVAR, NULL, "Interpolation Distance", &cv_maxinterpdist, 10}, {IT_STRING | IT_CVAR, NULL, "Weather Interpolation", &cv_precipinterp, 15}, - {IT_STRING | IT_CVAR, NULL, "Scale Weather with Mobjscale", &cv_mobjscaleprecip, 25}, - {IT_STRING | IT_CVAR, NULL, "Less Weather Effects", &cv_lessprecip, 30}, + {IT_STRING | IT_CVAR, NULL, "Less Weather Effects", &cv_lessprecip, 25}, - {IT_STRING | IT_CVAR, NULL, "Minimum Sector Brightness", &cv_secbright, 40}, + {IT_STRING | IT_CVAR, NULL, "Minimum Sector Brightness", &cv_secbright, 35}, - //{IT_STRING | IT_CVAR, NULL, "Randomized Directional Light", &cv_randomdirlight, 55}, // should this ever come back + //{IT_STRING | IT_CVAR, NULL, "Randomized Directional Light", &cv_randomdirlight, 50}, // should this ever come back - {IT_STRING | IT_CVAR, NULL, "Skyboxes", &cv_skybox, 50}, + {IT_STRING | IT_CVAR, NULL, "Skyboxes", &cv_skybox, 45}, - {IT_STRING | IT_CVAR, NULL, "FPS counter sampling", &cv_accuratefps, 60}, + {IT_STRING | IT_CVAR, NULL, "FPS counter sampling", &cv_accuratefps, 55}, - {IT_STRING | IT_CVAR, NULL, "Votescreen Scaling", &cv_votebgscaling, 70}, + {IT_STRING | IT_CVAR, NULL, "Votescreen Scaling", &cv_votebgscaling, 65}, #ifdef HWRENDER - {IT_STRING | IT_CVAR, NULL, "Screen Textures", &cv_glscreentextures, 80}, + {IT_STRING | IT_CVAR, NULL, "Screen Textures", &cv_glscreentextures, 75}, #ifdef USE_FBO_OGL - {IT_STRING | IT_CVAR, NULL, "FBO Downsampling support", &cv_glframebuffer, 85}, - {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 95}, - {IT_DISABLED, NULL, "", NULL, 105}, // dummy text -#else + {IT_STRING | IT_CVAR, NULL, "FBO Downsampling support", &cv_glframebuffer, 80}, {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 90}, {IT_DISABLED, NULL, "", NULL, 100}, // dummy text +#else + {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 85}, + {IT_DISABLED, NULL, "", NULL, 95}, // dummy text #endif #endif }; @@ -966,7 +965,6 @@ static const char* OP_ExpTooltips[] = NULL, "How far Mobj interpolation should take effect.", "Should weather be interpolated? Weather should look about the\nsame but perform a bit better when disabled.", - "Should weather be scaled with Mapobjectscale?.", "When weather is on this will cut the object amount used in half.", "Sets minimum sector brightness, useful for dark areas", //"Should the directional lightning be randomized each map?\nTakes effect on next map load.", @@ -987,7 +985,6 @@ enum op_exp_header, op_exp_interpdist, op_exp_precipinter, - op_exp_precipmoscale, op_exp_lessprecip, op_exp_secbright, //op_exp_dirlight, diff --git a/src/p_mobj.c b/src/p_mobj.c index 3d437b1c5..ee12f6b2b 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -3620,7 +3620,7 @@ boolean P_PrecipThinker(precipmobj_t *mobj) return false; mobj->z = mobj->ceilingz; - mobj->momz = cv_mobjscaleprecip.value ? FixedMul(mobj->info->speed, mapobjectscale) : mobj->info->speed; + mobj->momz = FixedMul(mobj->info->speed, mapobjectscale); mobj->precipflags &= ~PCF_SPLASH; R_ResetPrecipitationMobjInterpolationState(mobj); } @@ -10039,7 +10039,7 @@ static precipmobj_t *P_SpawnPrecipMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype mobj->ceilingz = P_GetSectorCeilingZAt(mobj->subsector->sector, x, y); mobj->z = z; - mobj->momz = cv_mobjscaleprecip.value ? FixedMul(info->speed, mapobjectscale) : info->speed; + mobj->momz = FixedMul(info->speed, mapobjectscale); mobj->thinker.function = (actionf_p1)P_NullPrecipThinker; P_AddPrecipThinker(&mobj->thinker); @@ -10242,7 +10242,6 @@ void P_SpawnPrecipitation(void) if (dedicated || !cv_drawdist_precip.value || curWeather == PRECIP_NONE || curWeather == PRECIP_STORM_NORAIN) return; - const fixed_t precipmoscale = (cv_mobjscaleprecip.value ? mapobjectscale : FRACUNIT); const INT32 density = (cv_lessprecip.value ? 2 : 1); // only spawn half as much // Use the blockmap to narrow down our placing patterns @@ -10253,7 +10252,7 @@ void P_SpawnPrecipitation(void) // If mobjscale < FRACUNIT, each blockmap cell covers // more area so spawn more precipitation in that area. - for (j = 0; j < FRACUNIT; j += precipmoscale) + for (j = 0; j < FRACUNIT; j += mapobjectscale) { INT32 floorz; INT32 ceilingz; diff --git a/src/p_spec.c b/src/p_spec.c index 3afb3dae3..430605b77 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -1799,7 +1799,7 @@ void P_SwitchWeather(INT32 weathernum) precipmobj->tics = st->tics; precipmobj->sprite = st->sprite; precipmobj->frame = st->frame; - precipmobj->momz = (cv_mobjscaleprecip.value ? FixedMul(mobjinfo[type].speed, mapobjectscale) : mobjinfo[type].speed); + precipmobj->momz = FixedMul(mobjinfo[type].speed, mapobjectscale); precipmobj->precipflags &= ~(PCF_INVISIBLE|PCF_SPLASH); // P_PrecipThinker will add this again if it needs to } diff --git a/src/r_fps.cpp b/src/r_fps.cpp index d2665ac21..fdb1996b2 100644 --- a/src/r_fps.cpp +++ b/src/r_fps.cpp @@ -385,18 +385,14 @@ void R_InterpolatePrecipMobjState(precipmobj_t *mobj, fixed_t frac, interpmobjst out->x = mobj->x; out->y = mobj->y; out->z = mobj->z; - out->scale = cv_mobjscaleprecip.value ? mapobjectscale : FRACUNIT; - //out->subsector = mobj->subsector; - //out->angle = mobj->angle; + out->scale = mapobjectscale; return; } out->x = R_LerpFixed(mobj->old_x, mobj->x, frac); out->y = R_LerpFixed(mobj->old_y, mobj->y, frac); out->z = R_LerpFixed(mobj->old_z, mobj->z, frac); - out->scale = cv_mobjscaleprecip.value ? mapobjectscale : FRACUNIT; - //out->subsector = R_PointInSubsector(out->x, out->y); // this is unused - //out->angle = R_LerpAngle(mobj->old_angle, mobj->angle, frac); + out->scale = mapobjectscale; } static levelinterpolator_t *CreateInterpolator(levelinterpolator_type_e type, thinker_t *thinker) diff --git a/src/r_main.cpp b/src/r_main.cpp index d600730c6..946528395 100644 --- a/src/r_main.cpp +++ b/src/r_main.cpp @@ -192,7 +192,6 @@ consvar_t cv_translucency = {"translucency", "On", CV_SAVE, CV_OnOff, NULL, 0 consvar_t cv_drawdist = {"drawdist", "Infinite", CV_SAVE, drawdist_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_drawdist_precip = {"drawdist_precip", "1024", CV_SAVE|CV_CALL|CV_NOINIT, drawdist_precip_cons_t, Precipstuff_OnChange, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_lessprecip = {"lessweathereffects", "Off", CV_SAVE|CV_CALL|CV_NOINIT, CV_OnOff, Precipstuff_OnChange, 0, NULL, NULL, 0, 0, NULL}; -consvar_t cv_mobjscaleprecip = {"scaleprecipmobjscale", "Off", CV_SAVE|CV_CALL|CV_NOINIT, CV_OnOff, Precipstuff_OnChange, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_maxinterpdist = {"maxinterpdist", "Infinite", CV_SAVE, maxinterpdist_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_playerfade = {"playerfade", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_ripplewater = {"waterripples", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; @@ -1539,7 +1538,6 @@ void R_RegisterEngineStuff(void) CV_RegisterVar(&cv_drawdist); CV_RegisterVar(&cv_drawdist_precip); CV_RegisterVar(&cv_lessprecip); - CV_RegisterVar(&cv_mobjscaleprecip); CV_RegisterVar(&cv_fovchange); CV_RegisterVar(&cv_fov); diff --git a/src/r_main.h b/src/r_main.h index af77a4ecd..4ec43a2f3 100644 --- a/src/r_main.h +++ b/src/r_main.h @@ -186,7 +186,7 @@ extern consvar_t cv_shadow, cv_shadowoffs; extern consvar_t cv_ffloorclip, cv_spriteclip; extern consvar_t cv_softcyancut; extern consvar_t cv_translucency; -extern consvar_t cv_drawdist, cv_drawdist_precip, cv_lessprecip, cv_mobjscaleprecip; +extern consvar_t cv_drawdist, cv_drawdist_precip, cv_lessprecip; extern consvar_t cv_fov, cv_fovchange; extern consvar_t cv_skybox; extern consvar_t cv_tailspickup; diff --git a/src/r_things.cpp b/src/r_things.cpp index 1164072db..72786bc9e 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -2086,8 +2086,7 @@ void R_AddPrecipitationSprites(void) return; } - const fixed_t precipscale = (cv_mobjscaleprecip.value ? mapobjectscale : FRACUNIT); - const fixed_t drawdist = ((fixed_t)(cv_drawdist_precip.value) * precipscale); + const fixed_t drawdist = ((fixed_t)(cv_drawdist_precip.value) * mapobjectscale); // no, no infinite draw distance for precipitation. this option at zero is supposed to turn it off if (drawdist == 0) From e1ad48ec1698742a4beb2d44ae741e82c3c09932 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 20 Sep 2025 18:07:58 +0200 Subject: [PATCH 24/59] always interpolate weather when using interpolation same here, a fix, not a feature --- src/m_menudefs.c | 27 ++++++++++++--------------- src/r_fps.cpp | 4 +--- src/r_fps.h | 1 - src/r_main.cpp | 1 - 4 files changed, 13 insertions(+), 20 deletions(-) diff --git a/src/m_menudefs.c b/src/m_menudefs.c index d0b410946..bbed87c90 100644 --- a/src/m_menudefs.c +++ b/src/m_menudefs.c @@ -933,29 +933,28 @@ static menuitem_t OP_ExpOptionsMenu[] = { {IT_HEADER, NULL, "Advanced Video Options", NULL, 0}, {IT_STRING|IT_CVAR, NULL, "Interpolation Distance", &cv_maxinterpdist, 10}, - {IT_STRING | IT_CVAR, NULL, "Weather Interpolation", &cv_precipinterp, 15}, - {IT_STRING | IT_CVAR, NULL, "Less Weather Effects", &cv_lessprecip, 25}, + {IT_STRING | IT_CVAR, NULL, "Less Weather Effects", &cv_lessprecip, 20}, - {IT_STRING | IT_CVAR, NULL, "Minimum Sector Brightness", &cv_secbright, 35}, + {IT_STRING | IT_CVAR, NULL, "Minimum Sector Brightness", &cv_secbright, 30}, - //{IT_STRING | IT_CVAR, NULL, "Randomized Directional Light", &cv_randomdirlight, 50}, // should this ever come back + //{IT_STRING | IT_CVAR, NULL, "Randomized Directional Light", &cv_randomdirlight, 45}, // should this ever come back - {IT_STRING | IT_CVAR, NULL, "Skyboxes", &cv_skybox, 45}, + {IT_STRING | IT_CVAR, NULL, "Skyboxes", &cv_skybox, 40}, - {IT_STRING | IT_CVAR, NULL, "FPS counter sampling", &cv_accuratefps, 55}, + {IT_STRING | IT_CVAR, NULL, "FPS counter sampling", &cv_accuratefps, 50}, - {IT_STRING | IT_CVAR, NULL, "Votescreen Scaling", &cv_votebgscaling, 65}, + {IT_STRING | IT_CVAR, NULL, "Votescreen Scaling", &cv_votebgscaling, 60}, #ifdef HWRENDER - {IT_STRING | IT_CVAR, NULL, "Screen Textures", &cv_glscreentextures, 75}, + {IT_STRING | IT_CVAR, NULL, "Screen Textures", &cv_glscreentextures, 70}, #ifdef USE_FBO_OGL - {IT_STRING | IT_CVAR, NULL, "FBO Downsampling support", &cv_glframebuffer, 80}, - {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 90}, - {IT_DISABLED, NULL, "", NULL, 100}, // dummy text -#else + {IT_STRING | IT_CVAR, NULL, "FBO Downsampling support", &cv_glframebuffer, 75}, {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 85}, - {IT_DISABLED, NULL, "", NULL, 95}, // dummy text + {IT_DISABLED, NULL, "", NULL, 95}, // dummy text +#else + {IT_STRING | IT_CVAR, NULL, "Palette Depth", &cv_glpalettedepth, 80}, + {IT_DISABLED, NULL, "", NULL, 90}, // dummy text #endif #endif }; @@ -964,7 +963,6 @@ static const char* OP_ExpTooltips[] = { NULL, "How far Mobj interpolation should take effect.", - "Should weather be interpolated? Weather should look about the\nsame but perform a bit better when disabled.", "When weather is on this will cut the object amount used in half.", "Sets minimum sector brightness, useful for dark areas", //"Should the directional lightning be randomized each map?\nTakes effect on next map load.", @@ -984,7 +982,6 @@ enum { op_exp_header, op_exp_interpdist, - op_exp_precipinter, op_exp_lessprecip, op_exp_secbright, //op_exp_dirlight, diff --git a/src/r_fps.cpp b/src/r_fps.cpp index fdb1996b2..ad8c97aed 100644 --- a/src/r_fps.cpp +++ b/src/r_fps.cpp @@ -49,8 +49,6 @@ static CV_PossibleValue_t fpscap_cons_t[] = { consvar_t cv_fpscap = {"fpscap", "Match refresh rate", CV_SAVE, fpscap_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_fpscapbg = {"fpscapbackground", "Match refresh rate", CV_SAVE, fpscap_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; -consvar_t cv_precipinterp = {"precipinterpolation", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; - ps_metric_t ps_interp_frac = {}; ps_metric_t ps_interp_lag = {}; @@ -380,7 +378,7 @@ void R_InterpolateMobjState(mobj_t *mobj, fixed_t frac, interpmobjstate_t *out) void R_InterpolatePrecipMobjState(precipmobj_t *mobj, fixed_t frac, interpmobjstate_t *out) { - if (frac == FRACUNIT || !cv_precipinterp.value) + if (frac == FRACUNIT) { out->x = mobj->x; out->y = mobj->y; diff --git a/src/r_fps.h b/src/r_fps.h index 64903a5b5..49ca669d3 100644 --- a/src/r_fps.h +++ b/src/r_fps.h @@ -26,7 +26,6 @@ extern "C" { #include "m_perfstats.h" extern consvar_t cv_fpscap, cv_fpscapbg; -extern consvar_t cv_precipinterp; extern ps_metric_t ps_interp_frac; extern ps_metric_t ps_interp_lag; diff --git a/src/r_main.cpp b/src/r_main.cpp index 946528395..ee5fcd0f8 100644 --- a/src/r_main.cpp +++ b/src/r_main.cpp @@ -1597,5 +1597,4 @@ void R_RegisterEngineStuff(void) // Frame interpolation/uncapped CV_RegisterVar(&cv_fpscap); CV_RegisterVar(&cv_fpscapbg); - CV_RegisterVar(&cv_precipinterp); } From fcadd03607bd4eea0168229ca6fd0cabf793a59e Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 20 Sep 2025 18:51:44 +0200 Subject: [PATCH 25/59] add back toggle for mouse cursor visability behaviour --- src/d_netcmd.c | 4 +++- src/d_netcmd.h | 1 + src/m_menudefs.c | 3 +++ src/sdl/i_video.c | 9 +++++++-- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 4c189a1cc..5ac858fb5 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -277,7 +277,8 @@ consvar_t cv_skipmapcheck = {"skipmapcheck", "Off", CV_SAVE, CV_OnOff, NULL, 0, INT32 cv_debug; static void UseMouse_OnChange(void); -consvar_t cv_usemouse = {"use_mouse", "Off", CV_SAVE|CV_CALL,usemouse_cons_t, UseMouse_OnChange, 0, NULL, NULL, 0, 0, NULL}; +consvar_t cv_usemouse = {"use_mouse", "Off", CV_SAVE|CV_CALL, usemouse_cons_t, UseMouse_OnChange, 0, NULL, NULL, 0, 0, NULL}; +consvar_t cv_mousevisible = {"mousevisible", "Off", CV_SAVE|CV_CALL, CV_OnOff, UseMouse_OnChange, 0, NULL, NULL, 0, 0, NULL}; static void UseMouse_OnChange(void) { @@ -1004,6 +1005,7 @@ void D_RegisterClientCommands(void) CV_RegisterVar(&cv_invertmouse); CV_RegisterVar(&cv_mousesens); CV_RegisterVar(&cv_mouseysens); + CV_RegisterVar(&cv_mousevisible); // s_sound.c CV_RegisterVar(&cv_soundvolume); diff --git a/src/d_netcmd.h b/src/d_netcmd.h index 1078de5d2..098de925e 100644 --- a/src/d_netcmd.h +++ b/src/d_netcmd.h @@ -50,6 +50,7 @@ extern consvar_t cv_splitplayers; extern consvar_t cv_seenames, cv_allowseenames; #endif extern consvar_t cv_usemouse; +extern consvar_t cv_mousevisible; //WTF extern consvar_t cv_mouseturn; extern consvar_t cv_usejoystick[4]; //MAXSPLITSCREENPLAYERS diff --git a/src/m_menudefs.c b/src/m_menudefs.c index bbed87c90..d3d95a296 100644 --- a/src/m_menudefs.c +++ b/src/m_menudefs.c @@ -1180,6 +1180,8 @@ static menuitem_t OP_FocusOptionsMenu[] = {IT_STRING|IT_CVAR, NULL, "Background FPS Cap", &cv_fpscapbg, 80}, {IT_STRING|IT_CVAR, NULL, "Show \"FOCUS LOST\"", &cv_showfocuslost, 100}, + + {IT_STRING|IT_CVAR, NULL, "Visible Mouse", &cv_mousevisible, 120}, }; static const char* OP_FocusOptionsTooltips[] = @@ -1190,6 +1192,7 @@ static const char* OP_FocusOptionsTooltips[] = "Should the game pause while the game is unfocused?", "Set manual framerate cap while the game is unfocused.", "Should the FOCUS LOST window appear\n while the game is unfocused?", + "Displays the mouse cursor while the game is in focus.", }; static menuitem_t OP_DataOptionsMenu[] = diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 159b49d7a..7a6cb1743 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -613,7 +613,8 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt) case SDL_WINDOWEVENT_FOCUS_GAINED: kbfocus = SDL_TRUE; mousefocus = SDL_TRUE; - SDL_ShowCursor(SDL_FALSE); + if (!cv_mousevisible.value) + SDL_ShowCursor(SDL_FALSE); break; case SDL_WINDOWEVENT_FOCUS_LOST: kbfocus = SDL_FALSE; @@ -1195,7 +1196,11 @@ void I_StartupMouse(void) if (disable_mouse) return; - SDL_ShowCursor(SDL_FALSE); + if (!cv_mousevisible.value) + SDL_ShowCursor(SDL_FALSE); + else + SDL_ShowCursor(SDL_TRUE); + SDL_SetWindowGrab(window, SDL_FALSE); SDL_SetRelativeMouseMode(SDL_FALSE); } From 9ba305eb77abd424cfe89879a84d687b260c7545 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 21 Sep 2025 05:12:47 +0200 Subject: [PATCH 26/59] add backwards compat support for ogl 2.1 fbo extensions this should allow older gpus to use the feature aswell, not super clean but seems to work TODO: refactor this whole crap, switch to seperate read and draw to use blitting and make this multisampling compatible so we can get rid of the messy "downsample" code and have this active by default --- src/hardware/r_opengl/r_opengl.c | 231 +++++++++++++++++++++++++------ src/hardware/r_opengl/r_opengl.h | 2 +- 2 files changed, 187 insertions(+), 46 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 450ed7550..c17180aab 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -130,10 +130,26 @@ static GLint viewport[4]; #ifdef USE_FBO_OGL GLuint FramebufferObject, FramebufferTexture, RenderbufferObject; -boolean supportFBO = false; +enum +{ + FBO_NONE, + FBO_ARB, + FBO_EXT, + FBO_EXT_STENCIL // supports stencil attachment +}; + +int supportFBO = FBO_NONE; static boolean fboinit = false; static void GL_Framebuffer_DeleteAttachments(void); + +static int FBO_FRAMEBUFFER = GL_FRAMEBUFFER; +static int FBO_COLOR_ATTACHMENT = GL_COLOR_ATTACHMENT0; +static int FBO_DEPTH_ATTACHMENT = GL_DEPTH_STENCIL_ATTACHMENT; +static int FBO_DEPTH_STENCIL = GL_DEPTH24_STENCIL8; +static int FBO_RENDERBUFFER = GL_RENDERBUFFER; +static int FBO_COMPLETE = GL_FRAMEBUFFER_COMPLETE; + #endif // Sryder: NextTexAvail is broken for these because palette changes or changes to the texture filter or antialiasing @@ -449,7 +465,7 @@ typedef void (APIENTRY * PFNglCopyTexSubImage2D) (GLenum target, GLint level, GL static PFNglCopyTexSubImage2D pglCopyTexSubImage2D; #ifdef USE_FBO_OGL -/* 3.0 functions for framebuffers and renderbuffers */ +/* core functions for framebuffers and renderbuffers */ typedef void (APIENTRY * PFNglGenFramebuffers) (GLsizei n, GLuint *ids); static PFNglGenFramebuffers pglGenFramebuffers; typedef void (APIENTRY * PFNglBindFramebuffer) (GLenum target, GLuint framebuffer); @@ -470,6 +486,28 @@ typedef void (APIENTRY * PFNglRenderbufferStorage) (GLenum target, GLenum intern static PFNglRenderbufferStorage pglRenderbufferStorage; typedef void (APIENTRY * PFNglFramebufferRenderbuffer) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLenum renderbuffer); static PFNglFramebufferRenderbuffer pglFramebufferRenderbuffer; + +/* 2.1 extension functions for framebuffers and renderbuffers */ +typedef void (APIENTRY * PFNglGenFramebuffersEXT) (GLsizei n, GLuint *ids); +static PFNglGenFramebuffersEXT pglGenFramebuffersEXT; +typedef void (APIENTRY * PFNglBindFramebufferEXT) (GLenum target, GLuint framebuffer); +static PFNglBindFramebufferEXT pglBindFramebufferEXT; +typedef void (APIENTRY * PFNglDeleteFramebuffersEXT) (GLsizei n, GLuint *ids); +static PFNglDeleteFramebuffersEXT pglDeleteFramebuffersEXT; +typedef void (APIENTRY * PFNglFramebufferTexture2DEXT) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +static PFNglFramebufferTexture2DEXT pglFramebufferTexture2DEXT; +typedef GLenum (APIENTRY * PFNglCheckFramebufferStatusEXT) (GLenum target); +static PFNglCheckFramebufferStatusEXT pglCheckFramebufferStatusEXT; +typedef void (APIENTRY * PFNglGenRenderbuffersEXT) (GLsizei n, GLuint *renderbuffers); +static PFNglGenRenderbuffersEXT pglGenRenderbuffersEXT; +typedef void (APIENTRY * PFNglBindRenderbufferEXT) (GLenum target, GLuint renderbuffer); +static PFNglBindRenderbufferEXT pglBindRenderbufferEXT; +typedef void (APIENTRY * PFNglDeleteRenderbuffersEXT) (GLsizei n, GLuint *renderbuffers); +static PFNglDeleteRenderbuffersEXT pglDeleteRenderbuffersEXT; +typedef void (APIENTRY * PFNglRenderbufferStorageEXT) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +static PFNglRenderbufferStorageEXT pglRenderbufferStorageEXT; +typedef void (APIENTRY * PFNglFramebufferRenderbufferEXT) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLenum renderbuffer); +static PFNglFramebufferRenderbufferEXT pglFramebufferRenderbufferEXT; #endif // USE_FBO_OGL #endif //!STATIC_OPENGL @@ -732,16 +770,35 @@ static void GL_Shader_SetUniforms(FSurfaceInfo *Surface, GLRGBAFloat *poly, GLRG static GLRGBAFloat shader_defaultcolor = {1.0f, 1.0f, 1.0f, 1.0f}; #ifdef USE_FBO_OGL -static boolean GLFramebuffer_CheckExt(void) +static int GLFramebuffer_CheckExt(void) { - //this stuff needs atleast OGL 3.0 - if (majorGL < 3) - return false; + // in opengl 3.0 and up fbos are standart and always supported + if (majorGL >= 3) + return FBO_ARB; - // check if all needed gl extensions are available - return (GL_isExtAvailable("GL_ARB_framebuffer_no_attachments", gl_extensions) - && GL_isExtAvailable("GL_ARB_framebuffer_object", gl_extensions) - && GL_isExtAvailable("GL_ARB_framebuffer_sRGB", gl_extensions)); + // gl versions from 2.1 may still support framebuffer objects + + // maybe, just maybe, we support the standart extensions + if (GL_isExtAvailable("GL_ARB_framebuffer_no_attachments", gl_extensions) + && GL_isExtAvailable("GL_ARB_framebuffer_object", gl_extensions) + && GL_isExtAvailable("GL_ARB_framebuffer_sRGB", gl_extensions)) + return FBO_ARB; + + // nope, try the older 2.1 extensions + if (GL_isExtAvailable("GL_EXT_framebuffer_no_attachments", gl_extensions) + && GL_isExtAvailable("GL_EXT_framebuffer_object", gl_extensions) + && GL_isExtAvailable("GL_EXT_framebuffer_sRGB", gl_extensions)) + { + // perhaps we may even support a stencil attachment + if (GL_isExtAvailable("GL_EXT_packed_depth_stencil", gl_extensions)) + return FBO_EXT_STENCIL; + + // no stencil support, sad + return FBO_EXT; + } + + // no fbo support for you :c + return FBO_NONE; } #endif @@ -799,27 +856,95 @@ void SetupGLFunc4(void) GetGLfunc(glGetUniformLocation); #ifdef USE_FBO_OGL - if (GLFramebuffer_CheckExt()) - { - GetGLfunc(glGenFramebuffers); - GetGLfunc(glBindFramebuffer); - GetGLfunc(glDeleteFramebuffers); - GetGLfunc(glFramebufferTexture2D); - GetGLfunc(glCheckFramebufferStatus); - GetGLfunc(glGenRenderbuffers); - GetGLfunc(glBindRenderbuffer); - GetGLfunc(glDeleteRenderbuffers); - GetGLfunc(glRenderbufferStorage); - GetGLfunc(glFramebufferRenderbuffer); + const int fbocheck = GLFramebuffer_CheckExt(); - // check if ALL functions are availible - if (pglGenFramebuffers && pglBindFramebuffer && - pglDeleteFramebuffers && pglFramebufferTexture2D && - pglCheckFramebufferStatus && pglGenRenderbuffers && - pglBindRenderbuffer && pglDeleteRenderbuffers && - pglRenderbufferStorage && pglFramebufferRenderbuffer) - supportFBO = true; + if (fbocheck != FBO_NONE) + { + if (fbocheck == FBO_ARB) + { + GetGLfunc(glGenFramebuffers); + GetGLfunc(glBindFramebuffer); + GetGLfunc(glDeleteFramebuffers); + GetGLfunc(glFramebufferTexture2D); + GetGLfunc(glCheckFramebufferStatus); + GetGLfunc(glGenRenderbuffers); + GetGLfunc(glBindRenderbuffer); + GetGLfunc(glDeleteRenderbuffers); + GetGLfunc(glRenderbufferStorage); + GetGLfunc(glFramebufferRenderbuffer); + + // check if ALL functions are availible + // what a mouthful + if (pglGenFramebuffers && pglBindFramebuffer && + pglDeleteFramebuffers && pglFramebufferTexture2D && + pglCheckFramebufferStatus && pglGenRenderbuffers && + pglBindRenderbuffer && pglDeleteRenderbuffers && + pglRenderbufferStorage && pglFramebufferRenderbuffer) + supportFBO = fbocheck; + } + else if (fbocheck == FBO_EXT || fbocheck == FBO_EXT_STENCIL) // uh oh only support for EXT prefix fbos... + { + GetGLfunc(glGenFramebuffersEXT); + GetGLfunc(glBindFramebufferEXT); + GetGLfunc(glDeleteFramebuffersEXT); + GetGLfunc(glFramebufferTexture2DEXT); + GetGLfunc(glCheckFramebufferStatusEXT); + GetGLfunc(glGenRenderbuffersEXT); + GetGLfunc(glBindRenderbufferEXT); + GetGLfunc(glDeleteRenderbuffersEXT); + GetGLfunc(glRenderbufferStorageEXT); + GetGLfunc(glFramebufferRenderbufferEXT); + + // check if ALL functions are availible + // what a mouthful + if (pglGenFramebuffersEXT && pglBindFramebufferEXT && + pglDeleteFramebuffersEXT && pglFramebufferTexture2DEXT && + pglCheckFramebufferStatusEXT && pglGenRenderbuffersEXT && + pglBindRenderbufferEXT && pglDeleteRenderbuffersEXT && + pglRenderbufferStorageEXT && pglFramebufferRenderbufferEXT) + { + // remapping galore huehue + // do this so we dont have to dupe half our code + pglGenFramebuffers = pglGenFramebuffersEXT; + pglBindFramebuffer = pglBindFramebufferEXT; + pglDeleteFramebuffers = pglDeleteFramebuffersEXT; + pglFramebufferTexture2D = pglFramebufferTexture2DEXT; + pglCheckFramebufferStatus = pglCheckFramebufferStatusEXT; + pglGenRenderbuffers = pglGenRenderbuffersEXT; + pglBindRenderbuffer = pglBindRenderbufferEXT; + pglDeleteRenderbuffers = pglDeleteRenderbuffersEXT; + pglRenderbufferStorage = pglRenderbufferStorageEXT; + pglFramebufferRenderbuffer = pglFramebufferRenderbufferEXT; + + // the enums "technically" should map the same + // but better be safe than sorry + FBO_FRAMEBUFFER = GL_FRAMEBUFFER_EXT; + FBO_COLOR_ATTACHMENT = GL_COLOR_ATTACHMENT0_EXT; + FBO_DEPTH_ATTACHMENT = GL_DEPTH_ATTACHMENT_EXT; + FBO_DEPTH_STENCIL = (supportFBO == FBO_EXT_STENCIL) ? GL_DEPTH_STENCIL_EXT : GL_DEPTH_COMPONENT; + FBO_RENDERBUFFER = GL_RENDERBUFFER_EXT; + FBO_COMPLETE = GL_FRAMEBUFFER_COMPLETE_EXT; + + supportFBO = fbocheck; + } + } } + + /*switch (supportFBO) + { + case FBO_ARB: + GL_DBG_Printf("\nFBO: ARB extensions found\n"); + break; + case FBO_EXT: + GL_DBG_Printf("\nFBO: EXT extensions found, no stencil\n"); + break; + case FBO_EXT_STENCIL: + GL_DBG_Printf("\nFBO: EXT extensions with packed depth-stencil\n"); + break; + case FBO_NONE: + GL_DBG_Printf("\nFBO: No framebuffer object support\n"); + break; + }*/ #endif #undef GetGLfunc } @@ -1144,7 +1269,7 @@ static void GL_Framebuffer_GenerateAttachments(void) return; // Bind the framebuffer - pglBindFramebuffer(GL_FRAMEBUFFER, FramebufferObject); + pglBindFramebuffer(FBO_FRAMEBUFFER, FramebufferObject); // Generate the framebuffer texture if (!FramebufferTexture) @@ -1157,7 +1282,7 @@ static void GL_Framebuffer_GenerateAttachments(void) pglBindTexture(GL_TEXTURE_2D, 0); // Attach the framebuffer texture to the framebuffer - pglFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, FramebufferTexture, 0); + pglFramebufferTexture2D(FBO_FRAMEBUFFER, FBO_COLOR_ATTACHMENT, GL_TEXTURE_2D, FramebufferTexture, 0); } // Generate the renderbuffer @@ -1165,18 +1290,34 @@ static void GL_Framebuffer_GenerateAttachments(void) { pglGenRenderbuffers(1, &RenderbufferObject); - pglBindRenderbuffer(GL_RENDERBUFFER, RenderbufferObject); - pglRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH24_STENCIL8, screen_width, screen_height); - pglFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, RenderbufferObject); + pglBindRenderbuffer(FBO_RENDERBUFFER, RenderbufferObject); + + if (supportFBO == FBO_ARB) + { + pglRenderbufferStorage(FBO_RENDERBUFFER, FBO_DEPTH_STENCIL, screen_width, screen_height); + pglFramebufferRenderbuffer(FBO_FRAMEBUFFER, FBO_DEPTH_ATTACHMENT, FBO_RENDERBUFFER, RenderbufferObject); + } + else if (supportFBO == FBO_EXT || supportFBO == FBO_EXT_STENCIL) + { + pglRenderbufferStorage(FBO_RENDERBUFFER, FBO_DEPTH_STENCIL, screen_width, screen_height); + // attach a renderbuffer to depth attachment point + pglFramebufferRenderbuffer(FBO_FRAMEBUFFER, FBO_DEPTH_ATTACHMENT, FBO_RENDERBUFFER, RenderbufferObject); + + if (supportFBO == FBO_EXT_STENCIL) + { + // attach a renderbuffer to stencil attachment point + pglFramebufferRenderbuffer(FBO_FRAMEBUFFER, GL_STENCIL_ATTACHMENT_EXT, FBO_RENDERBUFFER, RenderbufferObject); + } + } // Clear the renderbuffer GL_ClearBuffer(true, true, true, NULL); - pglBindRenderbuffer(GL_RENDERBUFFER, 0); + pglBindRenderbuffer(FBO_RENDERBUFFER, 0); } // Unbind the framebuffer - pglBindFramebuffer(GL_FRAMEBUFFER, 0); + pglBindFramebuffer(FBO_FRAMEBUFFER, 0); fboinit = true; } @@ -1190,8 +1331,8 @@ static void GL_Framebuffer_DeleteAttachments(void) return; // Unbind the framebuffer - pglBindFramebuffer(GL_FRAMEBUFFER, 0); - pglBindRenderbuffer(GL_RENDERBUFFER, 0); + pglBindFramebuffer(FBO_FRAMEBUFFER, 0); + pglBindRenderbuffer(FBO_RENDERBUFFER, 0); if (FramebufferTexture) pglDeleteTextures(1, &FramebufferTexture); @@ -1213,7 +1354,7 @@ static void GL_Framebuffer_Generate(void) if (!FramebufferObject) pglGenFramebuffers(1, &FramebufferObject); - if (pglCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE) + if (pglCheckFramebufferStatus(FBO_FRAMEBUFFER) == (GLenum)FBO_COMPLETE) GL_Framebuffer_GenerateAttachments(); } @@ -1237,8 +1378,8 @@ void GL_Framebuffer_Unbind(void) if (!FramebufferObject && !RenderbufferObject) return; - pglBindFramebuffer(GL_FRAMEBUFFER, 0); - pglBindRenderbuffer(GL_RENDERBUFFER, 0); + pglBindFramebuffer(FBO_FRAMEBUFFER, 0); + pglBindRenderbuffer(FBO_RENDERBUFFER, 0); } void GL_Framebuffer_Enable(void) @@ -1251,8 +1392,8 @@ void GL_Framebuffer_Enable(void) else if (!FramebufferTexture || !RenderbufferObject) GL_Framebuffer_GenerateAttachments(); - pglBindFramebuffer(GL_FRAMEBUFFER, FramebufferObject); - pglBindRenderbuffer(GL_RENDERBUFFER, RenderbufferObject); + pglBindFramebuffer(FBO_FRAMEBUFFER, FramebufferObject); + pglBindRenderbuffer(FBO_RENDERBUFFER, RenderbufferObject); } void GL_Framebuffer_Disable(void) @@ -1263,8 +1404,8 @@ void GL_Framebuffer_Disable(void) if (!FramebufferObject && !RenderbufferObject) return; - pglBindFramebuffer(GL_FRAMEBUFFER, 0); - pglBindRenderbuffer(GL_RENDERBUFFER, 0); + pglBindFramebuffer(FBO_FRAMEBUFFER, 0); + pglBindRenderbuffer(FBO_RENDERBUFFER, 0); GL_Framebuffer_Delete(); } diff --git a/src/hardware/r_opengl/r_opengl.h b/src/hardware/r_opengl/r_opengl.h index e0d7e13ac..a3e8ea516 100644 --- a/src/hardware/r_opengl/r_opengl.h +++ b/src/hardware/r_opengl/r_opengl.h @@ -113,7 +113,7 @@ void GL_Framebuffer_Disable(void); extern GLuint FramebufferObject, FramebufferTexture, RenderbufferObject; extern GLboolean FrameBufferEnabled, RenderToFramebuffer; -extern boolean supportFBO; +extern int supportFBO; #endif // ========================================================================== From 4b4d038ac85a229521fb17961fcaba43a0fbe0db Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 22 Sep 2025 23:38:11 +0200 Subject: [PATCH 27/59] cleanup fbo stuff a bit --- src/hardware/r_opengl/r_opengl.c | 186 ++++++++++++++----------------- src/hardware/r_opengl/r_opengl.h | 3 - src/sdl/ogl_sdl.c | 1 + 3 files changed, 83 insertions(+), 107 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index c17180aab..1b1a9a3c8 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -128,8 +128,6 @@ GLfloat projMatrix[16]; static GLint viewport[4]; #ifdef USE_FBO_OGL -GLuint FramebufferObject, FramebufferTexture, RenderbufferObject; - enum { FBO_NONE, @@ -138,18 +136,29 @@ enum FBO_EXT_STENCIL // supports stencil attachment }; +typedef struct +{ + GLuint fboobj; + GLuint tex; + GLuint rboobj; + + boolean init; +} fboobj_t; + +static fboobj_t framebufferobject = {}; + int supportFBO = FBO_NONE; -static boolean fboinit = false; + +// older gl versions might not have these, so prevent compile errors +// this should still give a simple depth only rbo +#ifndef GL_DEPTH24_STENCIL8 +GL_DEPTH24_STENCIL8 GL_DEPTH_COMPONENT_EXT +#endif +#ifndef GL_DEPTH_STENCIL_ATTACHMENT +GL_DEPTH_STENCIL_ATTACHMENT GL_DEPTH_ATTACHMENT_EXT +#endif static void GL_Framebuffer_DeleteAttachments(void); - -static int FBO_FRAMEBUFFER = GL_FRAMEBUFFER; -static int FBO_COLOR_ATTACHMENT = GL_COLOR_ATTACHMENT0; -static int FBO_DEPTH_ATTACHMENT = GL_DEPTH_STENCIL_ATTACHMENT; -static int FBO_DEPTH_STENCIL = GL_DEPTH24_STENCIL8; -static int FBO_RENDERBUFFER = GL_RENDERBUFFER; -static int FBO_COMPLETE = GL_FRAMEBUFFER_COMPLETE; - #endif // Sryder: NextTexAvail is broken for these because palette changes or changes to the texture filter or antialiasing @@ -880,7 +889,9 @@ void SetupGLFunc4(void) pglCheckFramebufferStatus && pglGenRenderbuffers && pglBindRenderbuffer && pglDeleteRenderbuffers && pglRenderbufferStorage && pglFramebufferRenderbuffer) + { supportFBO = fbocheck; + } } else if (fbocheck == FBO_EXT || fbocheck == FBO_EXT_STENCIL) // uh oh only support for EXT prefix fbos... { @@ -916,15 +927,6 @@ void SetupGLFunc4(void) pglRenderbufferStorage = pglRenderbufferStorageEXT; pglFramebufferRenderbuffer = pglFramebufferRenderbufferEXT; - // the enums "technically" should map the same - // but better be safe than sorry - FBO_FRAMEBUFFER = GL_FRAMEBUFFER_EXT; - FBO_COLOR_ATTACHMENT = GL_COLOR_ATTACHMENT0_EXT; - FBO_DEPTH_ATTACHMENT = GL_DEPTH_ATTACHMENT_EXT; - FBO_DEPTH_STENCIL = (supportFBO == FBO_EXT_STENCIL) ? GL_DEPTH_STENCIL_EXT : GL_DEPTH_COMPONENT; - FBO_RENDERBUFFER = GL_RENDERBUFFER_EXT; - FBO_COMPLETE = GL_FRAMEBUFFER_COMPLETE_EXT; - supportFBO = fbocheck; } } @@ -1263,123 +1265,100 @@ void GL_DeleteTexture(GLMipmap_t *pTexInfo) } #ifdef USE_FBO_OGL -static void GL_Framebuffer_GenerateAttachments(void) +static void GL_Framebuffer_DeleteAttachments(void) { - if (!supportFBO || !UseScreenFBO()) + if (!supportFBO || !framebufferobject.init) + return; + + // Unbind the framebuffer + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); + + if (framebufferobject.tex) + pglDeleteTextures(1, &framebufferobject.tex); + + if (framebufferobject.rboobj) + pglDeleteRenderbuffers(1, &framebufferobject.rboobj); + + framebufferobject.tex = 0; + framebufferobject.rboobj = 0; + framebufferobject.init = false; +} + +static void GL_Framebuffer_Generate(void) +{ + if (!supportFBO || framebufferobject.init || !UseScreenFBO()) + return; + + // Generate the framebuffer + if (!framebufferobject.fboobj) + pglGenFramebuffers(1, &framebufferobject.fboobj); + + if (pglCheckFramebufferStatus(GL_FRAMEBUFFER_EXT) != GL_FRAMEBUFFER_COMPLETE_EXT) return; // Bind the framebuffer - pglBindFramebuffer(FBO_FRAMEBUFFER, FramebufferObject); + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, framebufferobject.fboobj); // Generate the framebuffer texture - if (!FramebufferTexture) + if (!framebufferobject.tex) { - pglGenTextures(1, &FramebufferTexture); - pglBindTexture(GL_TEXTURE_2D, FramebufferTexture); + pglGenTextures(1, &framebufferobject.tex); + pglBindTexture(GL_TEXTURE_2D, framebufferobject.tex); pglTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, screen_width, screen_height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); pglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); pglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); pglBindTexture(GL_TEXTURE_2D, 0); // Attach the framebuffer texture to the framebuffer - pglFramebufferTexture2D(FBO_FRAMEBUFFER, FBO_COLOR_ATTACHMENT, GL_TEXTURE_2D, FramebufferTexture, 0); + pglFramebufferTexture2D(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, framebufferobject.tex, 0); } // Generate the renderbuffer - if (!RenderbufferObject) + if (!framebufferobject.rboobj) { - pglGenRenderbuffers(1, &RenderbufferObject); + pglGenRenderbuffers(1, &framebufferobject.rboobj); - pglBindRenderbuffer(FBO_RENDERBUFFER, RenderbufferObject); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, framebufferobject.rboobj); if (supportFBO == FBO_ARB) { - pglRenderbufferStorage(FBO_RENDERBUFFER, FBO_DEPTH_STENCIL, screen_width, screen_height); - pglFramebufferRenderbuffer(FBO_FRAMEBUFFER, FBO_DEPTH_ATTACHMENT, FBO_RENDERBUFFER, RenderbufferObject); + pglRenderbufferStorage(GL_RENDERBUFFER_EXT, GL_DEPTH24_STENCIL8, screen_width, screen_height); + pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); } else if (supportFBO == FBO_EXT || supportFBO == FBO_EXT_STENCIL) { - pglRenderbufferStorage(FBO_RENDERBUFFER, FBO_DEPTH_STENCIL, screen_width, screen_height); + pglRenderbufferStorage(GL_RENDERBUFFER_EXT, (supportFBO == FBO_EXT_STENCIL) ? GL_DEPTH_STENCIL_EXT : GL_DEPTH_COMPONENT, screen_width, screen_height); + // attach a renderbuffer to depth attachment point - pglFramebufferRenderbuffer(FBO_FRAMEBUFFER, FBO_DEPTH_ATTACHMENT, FBO_RENDERBUFFER, RenderbufferObject); + pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); if (supportFBO == FBO_EXT_STENCIL) { // attach a renderbuffer to stencil attachment point - pglFramebufferRenderbuffer(FBO_FRAMEBUFFER, GL_STENCIL_ATTACHMENT_EXT, FBO_RENDERBUFFER, RenderbufferObject); + pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_STENCIL_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); } } // Clear the renderbuffer GL_ClearBuffer(true, true, true, NULL); - pglBindRenderbuffer(FBO_RENDERBUFFER, 0); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); } // Unbind the framebuffer - pglBindFramebuffer(FBO_FRAMEBUFFER, 0); + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); - fboinit = true; -} - -static void GL_Framebuffer_DeleteAttachments(void) -{ - if (!supportFBO || !fboinit) - return; - - if (!FramebufferObject && !RenderbufferObject && !FramebufferTexture) - return; - - // Unbind the framebuffer - pglBindFramebuffer(FBO_FRAMEBUFFER, 0); - pglBindRenderbuffer(FBO_RENDERBUFFER, 0); - - if (FramebufferTexture) - pglDeleteTextures(1, &FramebufferTexture); - - if (RenderbufferObject) - pglDeleteRenderbuffers(1, &RenderbufferObject); - - FramebufferTexture = 0; - RenderbufferObject = 0; - fboinit = false; -} - -static void GL_Framebuffer_Generate(void) -{ - if (!supportFBO || !UseScreenFBO()) - return; - - // Generate the framebuffer - if (!FramebufferObject) - pglGenFramebuffers(1, &FramebufferObject); - - if (pglCheckFramebufferStatus(FBO_FRAMEBUFFER) == (GLenum)FBO_COMPLETE) - GL_Framebuffer_GenerateAttachments(); -} - -static void GL_Framebuffer_Delete(void) -{ - if (!supportFBO || !fboinit) - return; - - if (FramebufferObject) - pglDeleteFramebuffers(1, &FramebufferObject); - - GL_Framebuffer_DeleteAttachments(); - FramebufferObject = 0; + framebufferobject.init = true; } void GL_Framebuffer_Unbind(void) { - if (!supportFBO || !fboinit) + if (!supportFBO || !framebufferobject.init) return; - if (!FramebufferObject && !RenderbufferObject) - return; - - pglBindFramebuffer(FBO_FRAMEBUFFER, 0); - pglBindRenderbuffer(FBO_RENDERBUFFER, 0); + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); } void GL_Framebuffer_Enable(void) @@ -1387,27 +1366,26 @@ void GL_Framebuffer_Enable(void) if (!supportFBO || !UseScreenFBO()) return; - if (FramebufferObject == 0) - GL_Framebuffer_Generate(); - else if (!FramebufferTexture || !RenderbufferObject) - GL_Framebuffer_GenerateAttachments(); + GL_Framebuffer_Generate(); - pglBindFramebuffer(FBO_FRAMEBUFFER, FramebufferObject); - pglBindRenderbuffer(FBO_RENDERBUFFER, RenderbufferObject); + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, framebufferobject.fboobj); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, framebufferobject.rboobj); } void GL_Framebuffer_Disable(void) { - if (!supportFBO || !fboinit) + if (!supportFBO || !framebufferobject.init) return; - if (!FramebufferObject && !RenderbufferObject) - return; + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); - pglBindFramebuffer(FBO_FRAMEBUFFER, 0); - pglBindRenderbuffer(FBO_RENDERBUFFER, 0); + // delet our fbo + if (framebufferobject.fboobj) + pglDeleteFramebuffers(1, &framebufferobject.fboobj); - GL_Framebuffer_Delete(); + framebufferobject.fboobj = 0; + GL_Framebuffer_DeleteAttachments(); } #endif diff --git a/src/hardware/r_opengl/r_opengl.h b/src/hardware/r_opengl/r_opengl.h index a3e8ea516..3b4e2dbd0 100644 --- a/src/hardware/r_opengl/r_opengl.h +++ b/src/hardware/r_opengl/r_opengl.h @@ -110,9 +110,6 @@ extern PFNglGetString pglGetString; void GL_Framebuffer_Unbind(void); void GL_Framebuffer_Enable(void); void GL_Framebuffer_Disable(void); - -extern GLuint FramebufferObject, FramebufferTexture, RenderbufferObject; -extern GLboolean FrameBufferEnabled, RenderToFramebuffer; extern int supportFBO; #endif diff --git a/src/sdl/ogl_sdl.c b/src/sdl/ogl_sdl.c index c8701506e..61ba126b9 100644 --- a/src/sdl/ogl_sdl.c +++ b/src/sdl/ogl_sdl.c @@ -210,6 +210,7 @@ boolean OglSdlSurface(INT32 w, INT32 h) #if defined (__unix__) #ifdef USE_FBO_OGL + // TODO: delet this since nvidia fixed their shit on 575 char videodriver[4] = {'S','D','L',0}; if (supportFBO && strstr((const char*)gl_renderer, "NVIDIA") && (*strncpy(videodriver, SDL_GetCurrentVideoDriver(), sizeof(videodriver)-1) != '\0') From 53cea0a835461cb8e773dc5b05d885d18fe73bf8 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 22 Sep 2025 23:44:44 +0200 Subject: [PATCH 28/59] move fbo stuff to a better place in r_opengl --- src/hardware/r_opengl/r_opengl.c | 252 ++++++++++++++++--------------- 1 file changed, 127 insertions(+), 125 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 1b1a9a3c8..c184d9b3c 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -1264,131 +1264,6 @@ void GL_DeleteTexture(GLMipmap_t *pTexInfo) pTexInfo->downloaded = 0; } -#ifdef USE_FBO_OGL -static void GL_Framebuffer_DeleteAttachments(void) -{ - if (!supportFBO || !framebufferobject.init) - return; - - // Unbind the framebuffer - pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); - pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); - - if (framebufferobject.tex) - pglDeleteTextures(1, &framebufferobject.tex); - - if (framebufferobject.rboobj) - pglDeleteRenderbuffers(1, &framebufferobject.rboobj); - - framebufferobject.tex = 0; - framebufferobject.rboobj = 0; - framebufferobject.init = false; -} - -static void GL_Framebuffer_Generate(void) -{ - if (!supportFBO || framebufferobject.init || !UseScreenFBO()) - return; - - // Generate the framebuffer - if (!framebufferobject.fboobj) - pglGenFramebuffers(1, &framebufferobject.fboobj); - - if (pglCheckFramebufferStatus(GL_FRAMEBUFFER_EXT) != GL_FRAMEBUFFER_COMPLETE_EXT) - return; - - // Bind the framebuffer - pglBindFramebuffer(GL_FRAMEBUFFER_EXT, framebufferobject.fboobj); - - // Generate the framebuffer texture - if (!framebufferobject.tex) - { - pglGenTextures(1, &framebufferobject.tex); - pglBindTexture(GL_TEXTURE_2D, framebufferobject.tex); - pglTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, screen_width, screen_height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); - pglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - pglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - pglBindTexture(GL_TEXTURE_2D, 0); - - // Attach the framebuffer texture to the framebuffer - pglFramebufferTexture2D(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, framebufferobject.tex, 0); - } - - // Generate the renderbuffer - if (!framebufferobject.rboobj) - { - pglGenRenderbuffers(1, &framebufferobject.rboobj); - - pglBindRenderbuffer(GL_RENDERBUFFER_EXT, framebufferobject.rboobj); - - if (supportFBO == FBO_ARB) - { - pglRenderbufferStorage(GL_RENDERBUFFER_EXT, GL_DEPTH24_STENCIL8, screen_width, screen_height); - pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); - } - else if (supportFBO == FBO_EXT || supportFBO == FBO_EXT_STENCIL) - { - pglRenderbufferStorage(GL_RENDERBUFFER_EXT, (supportFBO == FBO_EXT_STENCIL) ? GL_DEPTH_STENCIL_EXT : GL_DEPTH_COMPONENT, screen_width, screen_height); - - // attach a renderbuffer to depth attachment point - pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); - - if (supportFBO == FBO_EXT_STENCIL) - { - // attach a renderbuffer to stencil attachment point - pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_STENCIL_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); - } - } - - // Clear the renderbuffer - GL_ClearBuffer(true, true, true, NULL); - - pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); - } - - // Unbind the framebuffer - pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); - - framebufferobject.init = true; -} - -void GL_Framebuffer_Unbind(void) -{ - if (!supportFBO || !framebufferobject.init) - return; - - pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); - pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); -} - -void GL_Framebuffer_Enable(void) -{ - if (!supportFBO || !UseScreenFBO()) - return; - - GL_Framebuffer_Generate(); - - pglBindFramebuffer(GL_FRAMEBUFFER_EXT, framebufferobject.fboobj); - pglBindRenderbuffer(GL_RENDERBUFFER_EXT, framebufferobject.rboobj); -} - -void GL_Framebuffer_Disable(void) -{ - if (!supportFBO || !framebufferobject.init) - return; - - pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); - pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); - - // delet our fbo - if (framebufferobject.fboobj) - pglDeleteFramebuffers(1, &framebufferobject.fboobj); - - framebufferobject.fboobj = 0; - GL_Framebuffer_DeleteAttachments(); -} -#endif - // -----------------+ // Flush : flush OpenGL textures // : Clear list of downloaded mipmaps @@ -3221,6 +3096,133 @@ void GL_SetTransform(FTransform *stransform) pglGetFloatv(GL_MODELVIEW_MATRIX, modelMatrix); // added for new coronas' code (without depth buffer) } +#ifdef USE_FBO_OGL +static void GL_Framebuffer_DeleteAttachments(void) +{ + if (!supportFBO || !framebufferobject.init) + return; + + // Unbind the framebuffer + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); + + if (framebufferobject.tex) + pglDeleteTextures(1, &framebufferobject.tex); + + if (framebufferobject.rboobj) + pglDeleteRenderbuffers(1, &framebufferobject.rboobj); + + framebufferobject.tex = 0; + framebufferobject.rboobj = 0; + framebufferobject.init = false; +} + +static void GL_Framebuffer_Generate(void) +{ + if (!supportFBO || framebufferobject.init || !UseScreenFBO()) + return; + + // Generate the framebuffer + if (!framebufferobject.fboobj) + pglGenFramebuffers(1, &framebufferobject.fboobj); + + if (pglCheckFramebufferStatus(GL_FRAMEBUFFER_EXT) != GL_FRAMEBUFFER_COMPLETE_EXT) + return; + + // Bind the framebuffer + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, framebufferobject.fboobj); + + // Generate the framebuffer texture + if (!framebufferobject.tex) + { + pglGenTextures(1, &framebufferobject.tex); + pglBindTexture(GL_TEXTURE_2D, framebufferobject.tex); + pglTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, screen_width, screen_height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); + pglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + pglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + Clamp2D(GL_TEXTURE_WRAP_S); + Clamp2D(GL_TEXTURE_WRAP_T); + pglBindTexture(GL_TEXTURE_2D, 0); + + // Attach the framebuffer texture to the framebuffer + pglFramebufferTexture2D(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, framebufferobject.tex, 0); + } + + // Generate the renderbuffer + if (!framebufferobject.rboobj) + { + pglGenRenderbuffers(1, &framebufferobject.rboobj); + + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, framebufferobject.rboobj); + + if (supportFBO == FBO_ARB) + { + pglRenderbufferStorage(GL_RENDERBUFFER_EXT, GL_DEPTH24_STENCIL8, screen_width, screen_height); + pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); + } + else if (supportFBO == FBO_EXT || supportFBO == FBO_EXT_STENCIL) + { + pglRenderbufferStorage(GL_RENDERBUFFER_EXT, (supportFBO == FBO_EXT_STENCIL) ? GL_DEPTH_STENCIL_EXT : GL_DEPTH_COMPONENT, screen_width, screen_height); + + // attach a renderbuffer to depth attachment point + pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); + + if (supportFBO == FBO_EXT_STENCIL) + { + // attach a renderbuffer to stencil attachment point + pglFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, GL_STENCIL_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, framebufferobject.rboobj); + } + } + + // Clear the renderbuffer + GL_ClearBuffer(true, true, true, NULL); + + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); + } + + // Unbind the framebuffer + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); + + framebufferobject.init = true; +} + +void GL_Framebuffer_Unbind(void) +{ + if (!supportFBO || !framebufferobject.init) + return; + + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); +} + +void GL_Framebuffer_Enable(void) +{ + if (!supportFBO || !UseScreenFBO()) + return; + + GL_Framebuffer_Generate(); + + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, framebufferobject.fboobj); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, framebufferobject.rboobj); +} + +void GL_Framebuffer_Disable(void) +{ + if (!supportFBO || !framebufferobject.init) + return; + + pglBindFramebuffer(GL_FRAMEBUFFER_EXT, 0); + pglBindRenderbuffer(GL_RENDERBUFFER_EXT, 0); + + // delet our fbo + if (framebufferobject.fboobj) + pglDeleteFramebuffers(1, &framebufferobject.fboobj); + + framebufferobject.fboobj = 0; + GL_Framebuffer_DeleteAttachments(); +} +#endif + INT32 GL_GetTextureUsed(void) { FTextureInfo *tmp = TexCacheHead; From f3de6c15eb98a7592e3c580995278dda29d2e9e3 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 22 Sep 2025 23:47:31 +0200 Subject: [PATCH 29/59] force disable fbo if it fails to create --- src/hardware/r_opengl/r_opengl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index c184d9b3c..804bd9a00 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -3127,7 +3127,12 @@ static void GL_Framebuffer_Generate(void) pglGenFramebuffers(1, &framebufferobject.fboobj); if (pglCheckFramebufferStatus(GL_FRAMEBUFFER_EXT) != GL_FRAMEBUFFER_COMPLETE_EXT) + { + // if this fails, dont retry it a gazillion times + // this wouldnt recover + supportFBO = false; return; + } // Bind the framebuffer pglBindFramebuffer(GL_FRAMEBUFFER_EXT, framebufferobject.fboobj); From f0d2685a60423b3ccde82977d2834dd4be51fcb4 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 22 Sep 2025 23:59:45 +0200 Subject: [PATCH 30/59] keep some stuff for screentextures prevent reinit, stack allocations and such most of these never change and are readonly this might slightly speedup rendering, though prob negligble --- src/hardware/r_opengl/r_opengl.c | 57 ++++++++++++++------------------ 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 804bd9a00..ccf64494a 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -3228,6 +3228,14 @@ void GL_Framebuffer_Disable(void) } #endif +static const float defaultscreenVerts[12] = +{ + -1.0f, -1.0f, 1.0f, + -1.0f, 1.0f, 1.0f, + 1.0f, 1.0f, 1.0f, + 1.0f, -1.0f, 1.0f +}; + INT32 GL_GetTextureUsed(void) { FTextureInfo *tmp = TexCacheHead; @@ -3259,7 +3267,10 @@ void GL_PostImgRedraw(float points[SCREENVERTS][SCREENVERTS][2]) float float_x, float_y, float_nextx, float_nexty; float xfix, yfix; - const float blackBack[16] = + if (gl_enable_screen_textures != 2) + return; + + static const float blackBack[16] = { -16.0f, -16.0f, 6.0f, -16.0f, 16.0f, 6.0f, @@ -3267,9 +3278,6 @@ void GL_PostImgRedraw(float points[SCREENVERTS][SCREENVERTS][2]) 16.0f, -16.0f, 6.0f }; - if (gl_enable_screen_textures != 2) - return; - // X/Y stretch fix for all resolutions(!) xfix = (float)screen_texsizew/((float)(screen_width/(float)(SCREENVERTS-1))); yfix = (float)screen_texsizeh/((float)(screen_height/(float)(SCREENVERTS-1))); @@ -3348,14 +3356,6 @@ void GL_DrawScreenTexture(int tex, FSurfaceInfo *surf, FBITFIELD polyflags) float fix[8]; float xfix, yfix; - const float screenVerts[12] = - { - -1.0f, -1.0f, 1.0f, - -1.0f, 1.0f, 1.0f, - 1.0f, 1.0f, 1.0f, - 1.0f, -1.0f, 1.0f - }; - if (gl_enable_screen_textures != 2) return; @@ -3380,7 +3380,7 @@ void GL_DrawScreenTexture(int tex, FSurfaceInfo *surf, FBITFIELD polyflags) pglColor4ubv(white); pglTexCoordPointer(2, GL_FLOAT, 0, fix); - pglVertexPointer(3, GL_FLOAT, 0, screenVerts); + pglVertexPointer(3, GL_FLOAT, 0, defaultscreenVerts); pglDrawArrays(GL_TRIANGLE_FAN, 0, 4); tex_downloaded = screenTextures[tex]; @@ -3394,16 +3394,11 @@ void GL_DoScreenWipe(int wipeStart, int wipeEnd) INT32 fademaskdownloaded = tex_downloaded; // the fade mask that has been set - const float screenVerts[12] = - { - -1.0f, -1.0f, 1.0f, - -1.0f, 1.0f, 1.0f, - 1.0f, 1.0f, 1.0f, - 1.0f, -1.0f, 1.0f - }; - float fix[8]; + if (!gl_enable_screen_textures) + return; + const float defaultST[8] = { 0.0f, 1.0f, @@ -3412,9 +3407,6 @@ void GL_DoScreenWipe(int wipeStart, int wipeEnd) 1.0f, 1.0f }; - if (!gl_enable_screen_textures) - return; - xfix = 1/((float)screen_texsizew/(float)screen_width); yfix = 1/((float)screen_texsizeh/(float)screen_height); @@ -3436,7 +3428,7 @@ void GL_DoScreenWipe(int wipeStart, int wipeEnd) pglBindTexture(GL_TEXTURE_2D, screenTextures[wipeStart]); pglColor4ubv(white); pglTexCoordPointer(2, GL_FLOAT, 0, fix); - pglVertexPointer(3, GL_FLOAT, 0, screenVerts); + pglVertexPointer(3, GL_FLOAT, 0, defaultscreenVerts); pglDrawArrays(GL_TRIANGLE_FAN, 0, 4); GL_SetBlend(PF_Modulated|PF_Translucent|PF_NoDepthTest); @@ -3455,7 +3447,7 @@ void GL_DoScreenWipe(int wipeStart, int wipeEnd) pglClientActiveTexture(GL_TEXTURE0); pglTexCoordPointer(2, GL_FLOAT, 0, fix); - pglVertexPointer(3, GL_FLOAT, 0, screenVerts); + pglVertexPointer(3, GL_FLOAT, 0, defaultscreenVerts); pglClientActiveTexture(GL_TEXTURE1); pglEnableClientState(GL_TEXTURE_COORD_ARRAY); pglTexCoordPointer(2, GL_FLOAT, 0, defaultST); @@ -3473,9 +3465,13 @@ void GL_RenderVhsEffect(fixed_t upbary, fixed_t downbary, UINT8 updistort, UINT8 { float xfix, yfix; float fix[8]; - GLubyte color[4] = {255, 255, 255, 255}; float i; + if (gl_enable_screen_textures != 2) + return; + + GLubyte color[4] = {255, 255, 255, 255}; + float screenVerts[12] = { -1.0f, -1.0f, 1.0f, @@ -3484,9 +3480,6 @@ void GL_RenderVhsEffect(fixed_t upbary, fixed_t downbary, UINT8 updistort, UINT8 1.0f, -1.0f, 1.0f }; - if (gl_enable_screen_textures != 2) - return; - xfix = 1/((float)screen_texsizew/(float)screen_width); yfix = 1/((float)screen_texsizeh/(float)screen_height); @@ -3611,8 +3604,8 @@ void GL_DrawScreenFinalTexture(int tex, INT32 width, INT32 height, boolean usesh float xoff = 1, yoff = 1; // xoffset and yoffset for the polygon to have black bars around the screen FRGBAFloat clearColour; - float off[12]; - float fix[8]; + static float off[12]; + static float fix[8]; if (gl_enable_screen_textures != 2) return; From e359c8dcd0e04112148f4073e0a9c7158c6224ab Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 23 Sep 2025 00:11:11 +0200 Subject: [PATCH 31/59] port blankarts GLDEBUGMESSAGE stuff credits GenericHeroGuy switched to use CON_LogMessage for now, since console print functions may die during startup --- src/hardware/r_opengl/r_opengl.c | 92 ++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index ccf64494a..d013dc873 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -25,6 +25,9 @@ // Eeeeh not sure is this right way, but it works < sry :c < sry again it had to go :c +// requires GL 4.3 +//#define GLDEBUGMESSAGE + #if defined (HWRENDER) && !defined (NOROPENGL) #include "../../r_fps.h" // For R_GetTimeFrac, used for the leveltime shader uniform @@ -41,6 +44,10 @@ #include "../../r_local.h" // For rendertimefrac, used for the leveltime shader uniform #include "../../i_video.h" +#ifdef GLDEBUGMESSAGE +#include "../../console.h" +#endif + struct GLRGBAFloat { GLfloat red; @@ -353,6 +360,10 @@ static void GL_MSG_Error(const char *format, ...) #define pglCopyTexImage2D glCopyTexImage2D #define pglCopyTexSubImage2D glCopyTexSubImage2D +#ifdef GLDEBUGMESSAGE +#define pglDebugMessageCallback glDebugMessageCallback +#endif + #else //!STATIC_OPENGL /* 1.0 functions */ @@ -553,6 +564,11 @@ static PFNglColorPointer pglColorPointer; typedef void (APIENTRY * PFNglBlendEquation) (GLenum mode); static PFNglBlendEquation pglBlendEquation; +#ifdef GLDEBUGMESSAGE +typedef void (APIENTRY * PFNglDebugMessageCallback) (void (APIENTRY *DEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam), const void *userParam); +static PFNglDebugMessageCallback pglDebugMessageCallback; +#endif + /* 1.2 Parms */ /* GL_CLAMP_TO_EDGE_EXT */ #ifndef GL_CLAMP_TO_EDGE @@ -864,6 +880,10 @@ void SetupGLFunc4(void) GetGLfunc(glUniform3fv); GetGLfunc(glGetUniformLocation); +#ifdef GLDEBUGMESSAGE + GetGLfunc(glDebugMessageCallback); +#endif + #ifdef USE_FBO_OGL const int fbocheck = GLFramebuffer_CheckExt(); @@ -1190,6 +1210,72 @@ void GL_SetModelView(GLint w, GLint h) pglGetFloatv(GL_PROJECTION_MATRIX, projMatrix); } +#ifdef GLDEBUGMESSAGE +// smol helper for logmessage +static const char* AlertType(alerttype_t level) +{ + switch (level) + { + case CONS_ERROR: return "ERROR:"; + case CONS_WARNING: return "WARNING:"; + case CONS_NOTICE: return "NOTICE:"; + default: return ""; + } +} + +static void APIENTRY DebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam) +{ + const char *debugsource, *debugtype; + + (void)id; + (void)length; + (void)userParam; + + switch (source) + { +#define S(s) case GL_DEBUG_SOURCE_##s: debugsource = #s; break + S(API); + S(WINDOW_SYSTEM); + S(SHADER_COMPILER); + S(THIRD_PARTY); + S(APPLICATION); + S(OTHER); +#undef S + default: + debugsource = "unknown"; + break; + } + + switch (type) + { +#define S(s) case GL_DEBUG_TYPE_##s: debugtype = #s; break + S(ERROR); + S(DEPRECATED_BEHAVIOR); + S(UNDEFINED_BEHAVIOR); + S(PORTABILITY); + S(PERFORMANCE); + S(MARKER); + S(PUSH_GROUP); + S(POP_GROUP); + S(OTHER); +#undef S + default: + debugtype = "unknown"; + break; + } + + alerttype_t level = severity == GL_DEBUG_SEVERITY_HIGH ? CONS_ERROR + : severity == GL_DEBUG_SEVERITY_MEDIUM ? CONS_WARNING + : CONS_NOTICE; + + //CONS_Alert(level, "OpenGL (%s) (%s): %s\n", debugsource, debugtype, message); + + char buf[1024]; + snprintf(buf, sizeof(buf), "%s OpenGL (%s) (%s): %s\n", AlertType(level), debugsource, debugtype, message); + CON_LogMessage(buf); +} +#endif + // -----------------+ // SetStates : Set permanent states // -----------------+ @@ -1226,6 +1312,12 @@ void GL_SetStates(void) pglLoadIdentity(); pglScalef(1.0f, 1.0f, -1.0f); pglGetFloatv(GL_MODELVIEW_MATRIX, modelMatrix); // added for new coronas' code (without depth buffer) + +#ifdef GLDEBUGMESSAGE + pglEnable(GL_DEBUG_OUTPUT); + pglEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); + pglDebugMessageCallback(&DebugMessage, NULL); +#endif } // -----------------+ From a193604d0f662873be66f8a32fba7ef106072642 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 23 Sep 2025 18:51:54 +0200 Subject: [PATCH 32/59] revert minimap bounds calculation back to vanilla karts (fixes https://github.com/Indev450/SRB2Kart-Saturn/issues/201) --- src/k_hud.c | 2 +- src/p_setup.c | 34 +++++++++------------------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/src/k_hud.c b/src/k_hud.c index f433edcdd..8f4c3ad1f 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -3518,7 +3518,7 @@ static void K_drawKartMinimapIcon(fixed_t objx, fixed_t objy, INT32 hudx, INT32 return; // no pic, just get outta here } - amnumxpos = (FixedMul(objx, minimapinfo.zoom) - minimapinfo.offs_x); + amnumxpos = (FixedMul(objx, minimapinfo.zoom) - minimapinfo.offs_x); amnumypos = -(FixedMul(objy, minimapinfo.zoom) - minimapinfo.offs_y); if (encoremode) diff --git a/src/p_setup.c b/src/p_setup.c index c0c020ec3..8c6750c50 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -2406,9 +2406,6 @@ struct minimapinfo minimapinfo; static void P_InitMinimapInfo(void) { lumpnum_t lumpnum; - fixed_t a; - fixed_t b; - node_t *bsp = &nodes[numnodes-1]; if (minimapinfo.minimap_pic) @@ -2438,30 +2435,17 @@ static void P_InitMinimapInfo(void) // it's because mapwidth and height would otherwise overflow for maps larger than half the size possible... // map boundaries and sizes will ALWAYS be whole numbers thankfully // later calculations take into consideration that these are actually not in terms of FRACUNIT though - minimapinfo.map_w = (minimapinfo.max_x >>= FRACBITS) - (minimapinfo.min_x >>= FRACBITS); - minimapinfo.map_h = (minimapinfo.max_y >>= FRACBITS) - (minimapinfo.min_y >>= FRACBITS); + minimapinfo.min_x >>= FRACBITS; + minimapinfo.max_x >>= FRACBITS; + minimapinfo.min_y >>= FRACBITS; + minimapinfo.max_y >>= FRACBITS; + minimapinfo.map_w = minimapinfo.max_x - minimapinfo.min_x; + minimapinfo.map_h = minimapinfo.max_y - minimapinfo.min_y; - minimapinfo.minimap_w = minimapinfo.minimap_h = 100; + minimapinfo.minimap_w = FixedDiv(minimapinfo.minimap_pic->width, minimapinfo.map_w); + minimapinfo.minimap_h = FixedDiv(minimapinfo.minimap_pic->height, minimapinfo.map_h); - a = FixedDiv(minimapinfo.minimap_w<>(FRACBITS-4); - minimapinfo.zoom = a; - } - else - { - if (a != b) - { - minimapinfo.minimap_w = FixedMul(b, minimapinfo.map_w)>>(FRACBITS-4); - } - minimapinfo.zoom = b; - } - - minimapinfo.zoom >>= (FRACBITS-4); - minimapinfo.zoom -= (minimapinfo.zoom/20); + minimapinfo.zoom = FixedMul(min(minimapinfo.minimap_w, minimapinfo.minimap_h), FRACUNIT-FRACUNIT/20); // These should always be small enough to be bitshift back right now minimapinfo.offs_x = FixedMul((minimapinfo.min_x + minimapinfo.map_w/2) << FRACBITS, minimapinfo.zoom); From af1507b530e86b89cf6cbf1e6efd1f2d561ede94 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 23 Sep 2025 20:16:54 +0200 Subject: [PATCH 33/59] fix md5checks breaking for pk3s --- src/d_netcmd.c | 30 ++++++++++++------------------ src/w_wad.c | 6 +++--- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 5ac858fb5..816548f49 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -4413,18 +4413,15 @@ static void Command_Addfile(void) if (!isprint(fn[i]) || fn[i] == ';') return; - if (fhandle) - { - fclose(fhandle); - fhandle = NULL; - } - if ((fhandle = W_OpenWadFile(&fn, true)) != NULL) { musiconly = W_VerifyNMUSlumps(fn, fhandle, false); } if (musiconly == -1) + return; // file not found + + if (!musiconly) { // ... But only so long as they contain nothing more then music and sprites. if (netgame && !(server || IsPlayerAdmin(consoleplayer))) @@ -4452,7 +4449,7 @@ static void Command_Addfile(void) { UINT8 md5sum[16]; #ifdef NOMD5 - memset(md5sum,0,16); + memset(md5sum, 0, 16); #else { @@ -4460,30 +4457,27 @@ static void Command_Addfile(void) CONS_Debug(DBG_SETUP, "Making MD5 for %s\n",fn); md5_stream(fhandle, md5sum); CONS_Debug(DBG_SETUP, "MD5 calc for %s took %f second\n", fn, (float)(I_GetTime() - t)/TICRATE); + fclose(fhandle); } for (i = 0; i < numwadfiles; i++) { - if (memcmp(wadfiles[i]->md5sum, md5sum, 16)) - continue; - - CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), fn); - goto addfile_finally; + if (!memcmp(wadfiles[i]->md5sum, md5sum, 16)) + { + CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), fn); + return; + } } #endif // Finally okay to write this important data - WRITESTRINGN(buf_p,p,240); + WRITESTRINGN(buf_p, p, 240); WRITEMEM(buf_p, md5sum, 16); } if (IsPlayerAdmin(consoleplayer) && (!server)) // Request to add file SendNetXCmd(XD_REQADDFILE, buf, buf_p - buf); else - SendNetXCmd(XD_ADDFILE, buf, buf_p - buf); - -addfile_finally: - if (fhandle) - fclose(fhandle); + SendNetXCmd(XD_ADDFILE, buf, buf_p - buf);; } /** Adds something at runtime. diff --git a/src/w_wad.c b/src/w_wad.c index ec3966c02..a08a2833a 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -2359,12 +2359,12 @@ int W_VerifyNMUSlumps(const char *filename, FILE *handle, boolean exit_on_error) && stricmp(&filename[len], ".lua")) { status = W_VerifyWAD(handle, NMUSlist, false); - - // repair file handle in this specific case - fseek(handle, 0, SEEK_SET); } } + // repair file handle + fseek(handle, 0, SEEK_SET); + if (status == -1) W_InitFileError(filename, exit_on_error); From 2b1b4544f948d3a9aaa60083832c96c72fd62ceb Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Sat, 20 Sep 2025 16:52:44 +0200 Subject: [PATCH 34/59] Introducing: __attribute__((__cleanup__)) I don't wanna hear about MSVC... or C++... This fixes NUMEROUS memory leaks introduced by G_ReadDemoHeader, which I was utterly oblivious to up until an hour ago --- src/doomdef.h | 6 ++++++ src/z_zone.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/doomdef.h b/src/doomdef.h index a16eae265..7e2589cf6 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -567,6 +567,12 @@ UINT32 quickncasehash (const char *p, size_t n) #endif #endif +// the GNU cleanup attribute: plugging memory leaks since 2003! +// on scope exit, the cleanup function is called with a pointer to the declared variable, +// essentially behaving like a C++ destructor +// NOTE: you WILL have nasal troubles if the variable is not initialized +#define CLEANUP(f) __attribute__((__cleanup__(f))) + // An assert-type mechanism. #ifdef PARANOIA #define I_Assert(e) ((e) ? (void)0 : I_Error("assert failed: %s, file %s, line %d", #e, __FILE__, __LINE__)) diff --git a/src/z_zone.h b/src/z_zone.h index 709fa1d96..25d5cfab4 100644 --- a/src/z_zone.h +++ b/src/z_zone.h @@ -171,6 +171,12 @@ void *Z_LevelPoolMalloc(size_t size); void *Z_LevelPoolCalloc(size_t size); void Z_LevelPoolFree(void *p, size_t size); +// for use with CLEANUP macro +FUNCINLINE static ATTRINLINE void Z_Pfree(void *p) +{ + Z_Free(*(void **)p); +} + #ifdef __cplusplus } // extern "C" #endif From 487b71f82c9c56c8118b97b2b46e1397c7ae24ec Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 23 Sep 2025 23:57:15 +0200 Subject: [PATCH 35/59] ensure Addfile filehandle will always be properly closed TODO: probs could reuse this function in more places where filehandles are used --- src/d_netcmd.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 816548f49..9b6c0010a 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -4386,6 +4386,14 @@ static void Command_Addfilelocal(void) P_AddWadFile(fn, true); } +static void CloseFileHandle(FILE **fhandle) +{ + if (*fhandle) + { + fclose(*fhandle); + *fhandle = NULL; + } +} /** Adds a pwad at runtime. * Searches for sounds, maps, music, new images. @@ -4398,7 +4406,7 @@ static void Command_Addfile(void) INT32 i; int musiconly = -1; // W_VerifyNMUSlumps isn't boolean - FILE *fhandle = NULL; + CLEANUP(CloseFileHandle) FILE *fhandle = NULL; if (COM_Argc() != 2) { @@ -4418,7 +4426,7 @@ static void Command_Addfile(void) musiconly = W_VerifyNMUSlumps(fn, fhandle, false); } - if (musiconly == -1) + if (fhandle == NULL || musiconly == -1) return; // file not found if (!musiconly) @@ -4457,7 +4465,6 @@ static void Command_Addfile(void) CONS_Debug(DBG_SETUP, "Making MD5 for %s\n",fn); md5_stream(fhandle, md5sum); CONS_Debug(DBG_SETUP, "MD5 calc for %s took %f second\n", fn, (float)(I_GetTime() - t)/TICRATE); - fclose(fhandle); } for (i = 0; i < numwadfiles; i++) From 58705fb18438dcb0d99e819473bff91fd39c2694 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 24 Sep 2025 17:22:00 +0200 Subject: [PATCH 36/59] cleanup w_wad again - add pfree for CLEANUP macro - use CLEANUP everywhere applicable - delet duped code - make directory signatures static and const at file scope --- src/w_wad.c | 270 +++++++++++++++++++++++---------------------------- src/z_zone.h | 11 +++ 2 files changed, 131 insertions(+), 150 deletions(-) diff --git a/src/w_wad.c b/src/w_wad.c index a08a2833a..1cd318368 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -81,7 +81,6 @@ #define O_BINARY 0 #endif - typedef struct { const char *name; @@ -102,6 +101,9 @@ typedef struct lumpnum_cache_s static lumpnum_cache_t lumpnumcache[LUMPNUMCACHESIZE]; static UINT16 lumpnumcacheindex = 0; +static const char pat_central[] = {0x50, 0x4b, 0x01, 0x02, 0x00}; +static const char pat_end[] = {0x50, 0x4b, 0x05, 0x06, 0x00}; + //=========================================================================== // GLOBALS //=========================================================================== @@ -271,44 +273,42 @@ static inline void W_LoadDehackedLumpsPK3(UINT16 wadnum) static inline void W_LoadDehackedLumps(UINT16 wadnum) { UINT16 lump; + lumpinfo_t *lump_p; // Find Lua scripts before SOCs to allow new A_Actions in SOC editing. + lump_p = wadfiles[wadnum]->lumpinfo; + + for (lump = 0; lump < wadfiles[wadnum]->numlumps; lump++, lump_p++) + if (memcmp(lump_p->name, "LUA_", 4) == 0) + LUA_LoadLump(wadnum, lump); + + lump_p = wadfiles[wadnum]->lumpinfo; + + const size_t len = strlen(wadfiles[wadnum]->filename); + + for (lump = 0; lump < wadfiles[wadnum]->numlumps; lump++, lump_p++) { - lumpinfo_t *lump_p = wadfiles[wadnum]->lumpinfo; + if (memcmp(lump_p->name, "SOC_", 4) == 0) // Check for generic SOC lump + { // shameless copy+paste of code from LUA_LoadLump + size_t length = len + 1 + strlen(lump_p->fullname); // length of file name, '|', and lump name + char *name = malloc(length + 1); - for (lump = 0; lump < wadfiles[wadnum]->numlumps; lump++, lump_p++) - if (memcmp(lump_p->name,"LUA_",4)==0) - LUA_LoadLump(wadnum, lump); - } + sprintf(name, "%s|%s", wadfiles[wadnum]->filename, lump_p->fullname); + name[length] = '\0'; - { - lumpinfo_t *lump_p = wadfiles[wadnum]->lumpinfo; - size_t len = strlen(wadfiles[wadnum]->filename); - - for (lump = 0; lump < wadfiles[wadnum]->numlumps; lump++, lump_p++) + CONS_Printf(M_GetText("Loading SOC from %s\n"), name); + DEH_LoadDehackedLumpPwad(wadnum, lump); + free(name); + } + else if (memcmp(lump_p->name, "MAINCFG", 8) == 0) // Check for MAINCFG { - if (memcmp(lump_p->name,"SOC_",4) == 0) // Check for generic SOC lump - { // shameless copy+paste of code from LUA_LoadLump - size_t length = len + 1 + strlen(lump_p->fullname); // length of file name, '|', and lump name - char *name = malloc(length + 1); - - sprintf(name, "%s|%s", wadfiles[wadnum]->filename, lump_p->fullname); - name[length] = '\0'; - - CONS_Printf(M_GetText("Loading SOC from %s\n"), name); - DEH_LoadDehackedLumpPwad(wadnum, lump); - free(name); - } - else if (memcmp(lump_p->name,"MAINCFG",8) == 0) // Check for MAINCFG - { - CONS_Printf(M_GetText("Loading main config from %s\n"), wadfiles[wadnum]->filename); - DEH_LoadDehackedLumpPwad(wadnum, lump); - } - else if (memcmp(lump_p->name,"OBJCTCFG",8) == 0) // Check for OBJCTCFG - { - CONS_Printf(M_GetText("Loading object config from %s\n"), wadfiles[wadnum]->filename); - DEH_LoadDehackedLumpPwad(wadnum, lump); - } + CONS_Printf(M_GetText("Loading main config from %s\n"), wadfiles[wadnum]->filename); + DEH_LoadDehackedLumpPwad(wadnum, lump); + } + else if (memcmp(lump_p->name, "OBJCTCFG", 8) == 0) // Check for OBJCTCFG + { + CONS_Printf(M_GetText("Loading object config from %s\n"), wadfiles[wadnum]->filename); + DEH_LoadDehackedLumpPwad(wadnum, lump); } } } @@ -415,7 +415,7 @@ static lumpinfo_t* ResGetLumpsStandalone(FILE* handle, UINT16* numlumps, const c /** Create a lumpinfo_t array for a WAD file. */ -static lumpinfo_t* ResGetLumpsWad (FILE* handle, UINT16* nlmp, const char* filename) +static lumpinfo_t* ResGetLumpsWad(FILE* handle, UINT16* nlmp, const char* filename) { UINT16 numlumps = *nlmp; lumpinfo_t* lumpinfo; @@ -424,8 +424,8 @@ static lumpinfo_t* ResGetLumpsWad (FILE* handle, UINT16* nlmp, const char* filen wadinfo_t header; lumpinfo_t *lump_p; - filelump_t *fileinfo; - void *fileinfov; + filelump_t *fileinfo = NULL; + CLEANUP(pfree) void *fileinfov = NULL; // read the header if (fread(&header, 1, sizeof header, handle) < sizeof header) @@ -439,8 +439,8 @@ static lumpinfo_t* ResGetLumpsWad (FILE* handle, UINT16* nlmp, const char* filen compressed = 1; } else if (memcmp(header.identification, "IWAD", 4) != 0 - && memcmp(header.identification, "PWAD", 4) != 0 - && memcmp(header.identification, "SDLL", 4) != 0) + && memcmp(header.identification, "PWAD", 4) != 0 + && memcmp(header.identification, "SDLL", 4) != 0) { CONS_Alert(CONS_ERROR, M_GetText("Invalid WAD header\n")); return NULL; @@ -454,10 +454,9 @@ static lumpinfo_t* ResGetLumpsWad (FILE* handle, UINT16* nlmp, const char* filen fileinfov = fileinfo = malloc(i); if (fseek(handle, header.infotableofs, SEEK_SET) == -1 - || fread(fileinfo, 1, i, handle) < i) + || fread(fileinfo, 1, i, handle) < i) { CONS_Alert(CONS_ERROR, M_GetText("Corrupt wadfile directory (%s)\n"), M_FileError(handle)); - free(fileinfov); return NULL; } @@ -475,15 +474,14 @@ static lumpinfo_t* ResGetLumpsWad (FILE* handle, UINT16* nlmp, const char* filen { UINT32 realsize = 0; - if (fseek(handle, lump_p->position, SEEK_SET) - == -1 || fread(&realsize, 1, sizeof realsize, - handle) < sizeof realsize) + if (fseek(handle, lump_p->position, SEEK_SET) == -1 + || fread(&realsize, 1, sizeof realsize, handle) < sizeof(realsize)) { - I_Error("corrupt compressed file: %s; maybe %s", /// \todo Avoid the bailout? - filename, M_FileError(handle)); + I_Error("corrupt compressed file: %s; maybe %s", filename, M_FileError(handle)); /// \todo Avoid the bailout? } realsize = LONG(realsize); + if (realsize != 0) { lump_p->size = realsize; @@ -522,18 +520,18 @@ static lumpinfo_t* ResGetLumpsWad (FILE* handle, UINT16* nlmp, const char* filen lump_p->fullnamelength = lump_p->namelength; lump_p->hash.fullname = lump_p->hash.name; } - free(fileinfov); + *nlmp = numlumps; return lumpinfo; } /** Optimized pattern search in a file. */ -static boolean ResFindSignature (FILE* handle, char endPat[], UINT32 startpos) +static boolean ResFindSignature(FILE* handle, const char endPat[], UINT32 startpos) { //the Wii U has rather slow filesystem access, and fgetc is *unbearable* //so I reimplemented this function to buffer 128k chunks - char *s; + const char *s; int c; fseek(handle, 0, SEEK_END); @@ -547,7 +545,7 @@ static boolean ResFindSignature (FILE* handle, char endPat[], UINT32 startpos) //128k buffers size_t buffer_size = min(128 * 1024 * sizeof(char), remaining); - char* buffer = (char*)(malloc(buffer_size)); + CLEANUP(pfree) char* buffer = (char*)(malloc(buffer_size)); size_t bytes_read = 0; while ((bytes_read = fread(buffer, 1, buffer_size, handle)) > 0) @@ -562,13 +560,12 @@ static boolean ResFindSignature (FILE* handle, char endPat[], UINT32 startpos) if (*s == c) { s++; + if (*s == 0x00) // The array pointer has reached the key char which marks the end. It means we have matched the signature. { //the original function would leave the FILE* seeked to the end of the match size_t foundpos = chunkpos + i + 1; fseek(handle, foundpos, SEEK_SET); - - free(buffer); return true; } } @@ -577,7 +574,6 @@ static boolean ResFindSignature (FILE* handle, char endPat[], UINT32 startpos) chunkpos += bytes_read; } - free(buffer); return false; } @@ -644,18 +640,16 @@ static lumpinfo_t* ResGetLumpsZip(FILE* handle, UINT16* nlmp) zlentry_t zlentry; UINT16 numlumps = *nlmp; - lumpinfo_t* lumpinfo; + lumpinfo_t* lumpinfo = NULL; lumpinfo_t *lump_p; size_t i; - static const char pat_central[] = {0x50, 0x4b, 0x01, 0x02, 0x00}; - static char pat_end[] = {0x50, 0x4b, 0x05, 0x06, 0x00}; - // Look for central directory end signature near end of file. // Contains entry number (number of lumps), and central directory start offset. fseek(handle, 0, SEEK_END); - const long startpos = ftell(handle) - (22 + 65536); - if (!ResFindSignature(handle, pat_end, max(0, startpos))) + + const long startpos = (ftell(handle) - (22 + 65536)); + if (!ResFindSignature(handle, pat_end, max(0l, startpos))) { CONS_Alert(CONS_ERROR, "Missing central directory\n"); return NULL; @@ -667,18 +661,18 @@ static lumpinfo_t* ResGetLumpsZip(FILE* handle, UINT16* nlmp) CONS_Alert(CONS_ERROR, "Corrupt central directory (%s)\n", M_FileError(handle)); return NULL; } + numlumps = SHORT(zend.entries); lump_p = lumpinfo = Z_Malloc(numlumps * sizeof (*lumpinfo), PU_STATIC, NULL); fseek(handle, LONG(zend.cdiroffset), SEEK_SET); - char *cdir = Z_Malloc(LONG(zend.cdirsize), PU_STATIC, &cdir); + CLEANUP(Z_Pfree) char *cdir = Z_Malloc(LONG(zend.cdirsize), PU_STATIC, &cdir); if (fread(cdir, 1, LONG(zend.cdirsize), handle) < (UINT32)(LONG(zend.cdirsize))) { CONS_Alert(CONS_ERROR, "Failed to read central directory (%s)\n", M_FileError(handle)); - Z_Free(cdir); Z_Free(lumpinfo); return NULL; } @@ -695,7 +689,6 @@ static lumpinfo_t* ResGetLumpsZip(FILE* handle, UINT16* nlmp) if (memcmp(zentry->signature, pat_central, 4)) { CONS_Alert(CONS_ERROR, "Central directory is corrupt\n"); - Z_Free(cdir); Z_Free(lumpinfo); return NULL; } @@ -749,14 +742,13 @@ static lumpinfo_t* ResGetLumpsZip(FILE* handle, UINT16* nlmp) lump_p->compression = CM_UNSUPPORTED; break; } + free(fullname); // skip and ignore comments/extra fields offset += sizeof *zentry + SHORT(zentry->namelen) + SHORT(zentry->xtralen) + SHORT(zentry->commlen); } - Z_Free(cdir); - // Adjust lump position values properly for (i = 0, lump_p = lumpinfo; i < numlumps; i++, lump_p++) { @@ -775,7 +767,7 @@ static lumpinfo_t* ResGetLumpsZip(FILE* handle, UINT16* nlmp) return lumpinfo; } -static UINT16 W_InitFileError (const char *filename, boolean exitworthy) +static UINT16 W_InitFileError(const char *filename, boolean exitworthy) { if (exitworthy) { @@ -820,14 +812,13 @@ UINT16 W_InitFile(const char *filename, boolean local, boolean startup) refreshdirmenu = REFRESHDIR_NORMAL|REFRESHDIR_ADDFILE; // clean out cons_alerts that happened earlier Z_Free(refreshdirname); + refreshdirname = NULL; if (dirmenu) { refreshdirname = Z_StrDup(filename); nameonly(refreshdirname); } - else - refreshdirname = NULL; CONS_Printf("Loading %s\n", filename); @@ -860,8 +851,7 @@ UINT16 W_InitFile(const char *filename, boolean local, boolean startup) if (!memcmp(wadfiles[i]->md5sum, md5sum, 16)) { CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), filename); - if (handle) - fclose(handle); + fclose(handle); return W_InitFileError(filename, false); } } @@ -1040,10 +1030,9 @@ static boolean TestValidLump(UINT16 wad, UINT16 lump) return true; } - const char *W_CheckNameForNumPwad(UINT16 wad, UINT16 lump) { - if (lump >= wadfiles[wad]->numlumps || !TestValidLump(wad, 0)) + if (!TestValidLump(wad, lump)) return NULL; return wadfiles[wad]->lumpinfo[lump].name; @@ -1068,7 +1057,7 @@ UINT16 W_CheckNumForNamePwad(const char *name, UINT16 wad, UINT16 startlump) UINT32 hash; size_t namelen; - if (!TestValidLump(wad,0)) + if (!TestValidLump(wad, 0)) return INT16_MAX; memset(uname, 0, sizeof uname); @@ -1108,12 +1097,14 @@ UINT16 W_CheckNumForNamePwad(const char *name, UINT16 wad, UINT16 startlump) UINT16 W_CheckNumForLongNamePwad(const char *name, UINT16 wad, UINT16 startlump) { UINT16 i; + UINT32 hash; + size_t namelen; - if (!TestValidLump(wad,0)) + if (!TestValidLump(wad, 0)) return INT16_MAX; - size_t namelen = strlen(name); - UINT32 hash = W_HashLumpName(name); + namelen = strlen(name); + hash = W_HashLumpName(name); // // scan forward @@ -1205,6 +1196,7 @@ UINT16 W_CheckNumForFullNamePK3(const char *name, UINT16 wad, UINT16 startlump) INT32 i; lumpinfo_t *lump_p = wadfiles[wad]->lumpinfo + startlump; size_t name_length = strlen(name); + for (i = startlump; i < wadfiles[wad]->numlumps; i++, lump_p++) { if (!strnicmp(name, lump_p->fullname, name_length)) @@ -1212,6 +1204,7 @@ UINT16 W_CheckNumForFullNamePK3(const char *name, UINT16 wad, UINT16 startlump) return i; } } + // Not found at all? return INT16_MAX; } @@ -1294,6 +1287,7 @@ lumpnum_t W_CheckNumForName(const char *name) for (i = numwadfiles - 1; i >= 0; i--) { check = W_CheckNumForNamePwad(name, (UINT16)i, 0); + if (check != INT16_MAX) break; //found it } @@ -1306,7 +1300,6 @@ lumpnum_t W_CheckNumForName(const char *name) { // Update the cache. lumpnum_t lumpnum = (i << 16) + check; - AddLumpToCache(lumpnum, name, false); return lumpnum; @@ -1338,6 +1331,7 @@ lumpnum_t W_CheckNumForLongName(const char *name) for (i = numwadfiles - 1; i >= 0; i--) { check = W_CheckNumForLongNamePwad(name, (UINT16)i, 0); + if (check != INT16_MAX) break; //found it } @@ -1351,7 +1345,6 @@ lumpnum_t W_CheckNumForLongName(const char *name) { // Update the cache. lumpnum_t lumpnum = (i << 16) + check; - AddLumpToCache(lumpnum, name, true); return lumpnum; @@ -1424,7 +1417,6 @@ lumpnum_t W_CheckNumForNameInBlock(const char *name, const char *blockstart, con } // Used by Lua. Case sensitive lump checking, quickly... -#include "fastcmp.h" UINT8 W_LumpExists(const char *name) { INT32 i,j; @@ -1432,7 +1424,7 @@ UINT8 W_LumpExists(const char *name) { lumpinfo_t *lump_p = wadfiles[i]->lumpinfo; for (j = 0; j < wadfiles[i]->numlumps; ++j, ++lump_p) - if (fastcmp(lump_p->name,name)) + if (fastcmp(lump_p->name, name)) return true; } return false; @@ -1462,6 +1454,7 @@ size_t W_LumpLengthPwad(UINT16 wad, UINT16 lump) { if (!TestValidLump(wad, lump)) return 0; + return wadfiles[wad]->lumpinfo[lump].size; } @@ -1472,7 +1465,7 @@ size_t W_LumpLengthPwad(UINT16 wad, UINT16 lump) */ size_t W_LumpLength(lumpnum_t lumpnum) { - return W_LumpLengthPwad(WADFILENUM(lumpnum),LUMPNUM(lumpnum)); + return W_LumpLengthPwad(WADFILENUM(lumpnum), LUMPNUM(lumpnum)); } // @@ -1504,7 +1497,6 @@ boolean W_IsLumpFolder(UINT16 wad, UINT16 lump) if (W_FileHasFolders(wadfiles[wad])) { const char *name = wadfiles[wad]->lumpinfo[lump].fullname; - return (name[strlen(name)-1] == '/'); // folders end in '/' } @@ -1516,6 +1508,7 @@ boolean W_IsLumpFolder(UINT16 wad, UINT16 lump) void zerr(int ret) { CONS_Printf("zpipe: "); + switch (ret) { case Z_ERRNO: @@ -1577,8 +1570,9 @@ size_t W_ReadLumpHeaderPwad(UINT16 wad, UINT16 lump, void *dest, size_t size, si return 0; lumpsize = wadfiles[wad]->lumpinfo[lump].size; + // empty resource (usually markers like S_START, F_END ..) - if (!lumpsize || lumpsizelumpcache; if (!lumpcache[lump]) { void *ptr = Z_Malloc(W_LumpLengthPwad(wad, lump), tag, &lumpcache[lump]); - W_ReadLumpHeaderPwad(wad, lump, ptr, 0, 0); // read the lump in full + W_ReadLumpHeaderPwad(wad, lump, ptr, 0, 0); // read the lump in full } else Z_ChangeTag(lumpcache[lump], tag); @@ -1753,7 +1747,7 @@ void *W_CacheLumpNumPwad(UINT16 wad, UINT16 lump, INT32 tag) void *W_CacheLumpNum(lumpnum_t lumpnum, INT32 tag) { - return W_CacheLumpNumPwad(WADFILENUM(lumpnum),LUMPNUM(lumpnum),tag); + return W_CacheLumpNumPwad(WADFILENUM(lumpnum), LUMPNUM(lumpnum),tag); } // @@ -1769,7 +1763,7 @@ void *W_CacheLumpNumForce(lumpnum_t lumpnum, INT32 tag) wad = WADFILENUM(lumpnum); lump = LUMPNUM(lumpnum); - if (!TestValidLump(wad,lump)) + if (!TestValidLump(wad, lump)) return NULL; ptr = Z_Malloc(W_LumpLengthPwad(wad, lump), tag, NULL); @@ -1807,7 +1801,7 @@ static inline boolean W_IsLumpCachedPWAD(UINT16 wad, UINT16 lump, void *ptr) boolean W_IsLumpCached(lumpnum_t lumpnum, void *ptr) { - return W_IsLumpCachedPWAD(WADFILENUM(lumpnum),LUMPNUM(lumpnum), ptr); + return W_IsLumpCachedPWAD(WADFILENUM(lumpnum), LUMPNUM(lumpnum), ptr); } // @@ -1839,7 +1833,7 @@ static inline boolean W_IsPatchCachedPWAD(UINT16 wad, UINT16 lump, void *ptr) boolean W_IsPatchCached(lumpnum_t lumpnum, void *ptr) { - return W_IsPatchCachedPWAD(WADFILENUM(lumpnum),LUMPNUM(lumpnum), ptr); + return W_IsPatchCachedPWAD(WADFILENUM(lumpnum), LUMPNUM(lumpnum), ptr); } @@ -1897,7 +1891,7 @@ void *W_CacheSoftwarePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag) void *W_CacheSoftwarePatchNum(lumpnum_t lumpnum, INT32 tag) { - return W_CacheSoftwarePatchNumPwad(WADFILENUM(lumpnum),LUMPNUM(lumpnum),tag); + return W_CacheSoftwarePatchNumPwad(WADFILENUM(lumpnum), LUMPNUM(lumpnum), tag); } void *W_CachePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag) @@ -1920,7 +1914,7 @@ void *W_CachePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag) void *W_CachePatchNum(lumpnum_t lumpnum, INT32 tag) { - return W_CachePatchNumPwad(WADFILENUM(lumpnum),LUMPNUM(lumpnum),tag); + return W_CachePatchNumPwad(WADFILENUM(lumpnum), LUMPNUM(lumpnum), tag); } void *W_GetCachedPatchNumPwad(UINT16 wad, UINT16 lump) @@ -2053,11 +2047,13 @@ void W_VerifyFileMD5(UINT16 wadfilenum, const char *matchmd5) I_Assert(strlen(matchmd5) == 2*MD5_LEN); I_Assert(wadfilenum < numwadfiles); + // Convert an md5 string like "7d355827fa8f981482246d6c95f9bd48" // into a real md5. for (ix = 0; ix < 2*MD5_LEN; ix++) { INT32 n, c = matchmd5[ix]; + if (isdigit(c)) n = c - '0'; else @@ -2066,8 +2062,11 @@ void W_VerifyFileMD5(UINT16 wadfilenum, const char *matchmd5) if (isupper(c)) n = c - 'A' + 10; else n = c - 'a' + 10; } - if (ix & 1) realmd5[ix>>1] = (UINT8)(realmd5[ix>>1]+n); - else realmd5[ix>>1] = (UINT8)(n<<4); + + if (ix & 1) + realmd5[ix>>1] = (UINT8)(realmd5[ix>>1]+n); + else + realmd5[ix>>1] = (UINT8)(n<<4); } if (memcmp(realmd5, wadfiles[wadfilenum]->md5sum, 16)) @@ -2086,15 +2085,13 @@ void W_VerifyFileMD5(UINT16 wadfilenum, const char *matchmd5) // Verify versions for different archive // formats. checklist assumed to be valid. - -static int -W_VerifyName (const char *name, lumpchecklist_t *checklist, boolean status) +static int W_VerifyName(const char *name, lumpchecklist_t *checklist, boolean status) { size_t j; for (j = 0; checklist[j].len && checklist[j].name; ++j) { - if (( strncasecmp(name, checklist[j].name, - checklist[j].len) != false ) == status) + if ((strncasecmp(name, checklist[j].name, + checklist[j].len) != false) == status) { return true; } @@ -2143,7 +2140,7 @@ static int W_VerifyWAD(FILE *fp, lumpchecklist_t *checklist, boolean status) if (!strncmp(lumpinfo.name, sprnames[j], 4)) // Sprites continue; - if (! W_VerifyName(lumpinfo.name, checklist, status)) + if (!W_VerifyName(lumpinfo.name, checklist, status)) return false; } return true; @@ -2175,9 +2172,6 @@ static int W_VerifyPK3(FILE *fp, lumpchecklist_t *checklist, boolean status) UINT16 numlumps; size_t i; - char pat_central[] = {0x50, 0x4b, 0x01, 0x02, 0x00}; - char pat_end[] = {0x50, 0x4b, 0x05, 0x06, 0x00}; - char lumpname[9]; // Haha the ResGetLumpsZip function doesn't @@ -2188,8 +2182,8 @@ static int W_VerifyPK3(FILE *fp, lumpchecklist_t *checklist, boolean status) fseek(fp, 0, SEEK_END); file_size = ftell(fp); - const long size = file_size - (22 + 65536); - if (!ResFindSignature(fp, pat_end, max(0, size))) + const long startpos = (file_size - (22 + 65536)); + if (!ResFindSignature(fp, pat_end, max(0l, startpos))) return true; fseek(fp, -4, SEEK_CUR); @@ -2202,11 +2196,10 @@ static int W_VerifyPK3(FILE *fp, lumpchecklist_t *checklist, boolean status) fseek(fp, LONG(zend.cdiroffset), SEEK_SET); - char *cdir = (char*)(malloc(LONG(zend.cdirsize))); + CLEANUP(pfree) char *cdir = (char*)(malloc(LONG(zend.cdirsize))); if (fread(cdir, 1, LONG(zend.cdirsize), fp) < (UINT32)(LONG(zend.cdirsize))) { - free(cdir); return true; } @@ -2221,7 +2214,6 @@ static int W_VerifyPK3(FILE *fp, lumpchecklist_t *checklist, boolean status) if (memcmp(zentry->signature, pat_central, 4) != 0) { - free(cdir); return true; } @@ -2244,7 +2236,7 @@ static int W_VerifyPK3(FILE *fp, lumpchecklist_t *checklist, boolean status) memset(lumpname, '\0', 9); // Making sure they're initialized to 0. Is it necessary? strncpy(lumpname, trimname, min(8, dotpos - trimname)); - if (! W_VerifyName(lumpname, checklist, status)) + if (!W_VerifyName(lumpname, checklist, status)) verified = false; // Check for directories next, if it's blacklisted it will return false @@ -2262,13 +2254,11 @@ static int W_VerifyPK3(FILE *fp, lumpchecklist_t *checklist, boolean status) if (fseek(fp, LONG(zentry->offset), SEEK_SET) != 0) { - free(cdir); return true; } if (fread(&zlentry, 1, sizeof(zlentry_t), fp) < sizeof (zlentry_t)) { - free(cdir); return true; } @@ -2276,8 +2266,6 @@ static int W_VerifyPK3(FILE *fp, lumpchecklist_t *checklist, boolean status) sizeof zlentry + SHORT(zlentry.namelen) + SHORT(zlentry.xtralen) + LONG(zlentry.compsize); } - free(cdir); - if (data_size < file_size) { const char * error = "ZIP file has holes (%ld extra bytes)\n"; @@ -2309,7 +2297,7 @@ static int W_VerifyPK3(FILE *fp, lumpchecklist_t *checklist, boolean status) */ int W_VerifyNMUSlumps(const char *filename, FILE *handle, boolean exit_on_error) { - lumpchecklist_t NMUSlist[] = + static lumpchecklist_t NMUSlist[] = { {"D_", 2}, // MIDI music {"O_", 2}, // Digital music @@ -2346,20 +2334,16 @@ int W_VerifyNMUSlumps(const char *filename, FILE *handle, boolean exit_on_error) }; int status = 0; - size_t len = strlen(filename) - 4; - if (stricmp(&filename[len], ".pk3") == 0) + const restype_t type = ResourceFileDetect(filename); + + if (type == RET_PK3) { status = W_VerifyPK3(handle, NMUSlist, false); } - else + else if (type == RET_WAD) { - // detect wad file by the absence of the other supported extensions - if (stricmp(&filename[len], ".soc") - && stricmp(&filename[len], ".lua")) - { - status = W_VerifyWAD(handle, NMUSlist, false); - } + status = W_VerifyWAD(handle, NMUSlist, false); } // repair file handle @@ -2441,9 +2425,6 @@ static int W_CheckPK3Contains(FILE *fp, lumpchecklist_t *checklist) UINT16 numlumps; size_t i; - char pat_central[] = {0x50, 0x4b, 0x01, 0x02, 0x00}; - char pat_end[] = {0x50, 0x4b, 0x05, 0x06, 0x00}; - char lumpname[9]; // Haha the ResGetLumpsZip function doesn't @@ -2454,8 +2435,8 @@ static int W_CheckPK3Contains(FILE *fp, lumpchecklist_t *checklist) fseek(fp, 0, SEEK_END); file_size = ftell(fp); - const long startpos = file_size - (22 + 65536); - if (!ResFindSignature(fp, pat_end, max(0, startpos))) + const long startpos = (file_size - (22 + 65536)); + if (!ResFindSignature(fp, pat_end, max(0l, startpos))) return true; fseek(fp, -4, SEEK_CUR); @@ -2468,11 +2449,10 @@ static int W_CheckPK3Contains(FILE *fp, lumpchecklist_t *checklist) fseek(fp, LONG(zend.cdiroffset), SEEK_SET); - char *cdir = (char*)(malloc(LONG(zend.cdirsize))); + CLEANUP(pfree) char *cdir = (char*)(malloc(LONG(zend.cdirsize))); if (fread(cdir, 1, LONG(zend.cdirsize), fp) < (UINT32)(LONG(zend.cdirsize))) { - free(cdir); return true; } @@ -2481,13 +2461,12 @@ static int W_CheckPK3Contains(FILE *fp, lumpchecklist_t *checklist) for (i = 0; i < numlumps; i++) { zentry_t *zentry = (zentry_t*)(cdir + offset); - char* fullname; + CLEANUP(pfree) char* fullname = NULL; char* trimname; char* dotpos; if (memcmp(zentry->signature, pat_central, 4) != 0) { - free(cdir); return false; } @@ -2510,21 +2489,15 @@ static int W_CheckPK3Contains(FILE *fp, lumpchecklist_t *checklist) if (W_NameStartsWith(lumpname, checklist)) { - free(fullname); - free(cdir); return true; } } if (W_NameStartsWith(fullname, checklist)) { - free(fullname); - free(cdir); return true; } - free(fullname); - offset += sizeof *zentry + SHORT(zentry->namelen) + SHORT(zentry->xtralen) + SHORT(zentry->commlen); data_size += @@ -2532,13 +2505,11 @@ static int W_CheckPK3Contains(FILE *fp, lumpchecklist_t *checklist) if (fseek(fp, LONG(zentry->offset), SEEK_SET) != 0) { - free(cdir); return false; } if (fread(&zlentry, 1, sizeof(zlentry_t), fp) < sizeof (zlentry_t)) { - free(cdir); return false; } @@ -2546,8 +2517,6 @@ static int W_CheckPK3Contains(FILE *fp, lumpchecklist_t *checklist) sizeof zlentry + SHORT(zlentry.namelen) + SHORT(zlentry.xtralen) + LONG(zlentry.compsize); } - free(cdir); - if (data_size < file_size) { const char * error = "ZIP file has holes (%ld extra bytes)\n"; @@ -2573,23 +2542,22 @@ static int W_CheckFileContains(const char *filename, lumpchecklist_t *checklist) if (!checklist) I_Error("No checklist for %s\n", filename); + // open wad file if ((handle = W_OpenWadFile(&filename, false)) == NULL) return -1; - size_t len = strlen(filename) - 4; + const restype_t type = ResourceFileDetect(filename); - if (stricmp(&filename[len], ".pk3") == 0) - contains = W_CheckPK3Contains(handle, checklist); - else + if (type == RET_PK3) { - // detect wad file by the absence of the other supported extensions - if (stricmp(&filename[len], ".soc") - && stricmp(&filename[len], ".lua")) - { - contains = W_CheckWADContains(handle, checklist); - } + contains = W_CheckPK3Contains(handle, checklist); } + else if (type == RET_WAD) + { + contains = W_CheckWADContains(handle, checklist); + } + fclose(handle); return contains; } @@ -2610,6 +2578,7 @@ int W_CheckPostLoadList(const char *filename) {NULL, 0}, }; + return W_CheckFileContains(filename, postloadlist); } @@ -2716,6 +2685,7 @@ virtres_t* vres_GetMap(lumpnum_t lumpnum) vlumps[i].data = (UINT8*)(W_CacheLumpNum(lumpnum, PU_LEVEL)); } } + vres = (virtres_t*)(Z_Malloc(sizeof(virtres_t), PU_LEVEL, NULL)); vres->vlumps = vlumps; vres->numlumps = numlumps; diff --git a/src/z_zone.h b/src/z_zone.h index 25d5cfab4..0d482ad62 100644 --- a/src/z_zone.h +++ b/src/z_zone.h @@ -177,6 +177,17 @@ FUNCINLINE static ATTRINLINE void Z_Pfree(void *p) Z_Free(*(void **)p); } +// for use with CLEANUP macro +// not sure where to put this +FUNCINLINE static ATTRINLINE void pfree(void *p) +{ + if (*(void **)p) + { + free(*(void **)p); + *(void **)p = NULL; + } +} + #ifdef __cplusplus } // extern "C" #endif From f27cb0ba8fd308b70089bed7ffddad468fff9712 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 19 Sep 2025 17:47:26 +0200 Subject: [PATCH 37/59] allocate imgbuf for "to patch" conversions only if needed should save around 64 megs on dedis --- src/r_patch.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/r_patch.c b/src/r_patch.c index d8e0b94f3..e774c1c2e 100644 --- a/src/r_patch.c +++ b/src/r_patch.c @@ -322,9 +322,6 @@ void R_LoadSpriteInfoLumps(UINT16 wadnum, UINT16 numlumps) } } - -static unsigned char imgbuf[1<<26]; - // // Creates a patch. // Assumes a PU_PATCH zone memory tag and no user, but can always be set later @@ -451,6 +448,8 @@ void *Patch_CreateGL(patch_t *patch) } #endif // HWRENDER +static UINT8 *imgbuf = NULL; + // // R_MaskedFlatToPatch // @@ -460,13 +459,17 @@ void *R_PixelsToPatch(UINT8 *raw, INT16 width, INT16 height, INT16 leftoffset, I { INT16 x, y; UINT8 *img; - UINT8 *imgptr = imgbuf; UINT8 *colpointers, *startofspan; size_t size = 0; if (!raw) return NULL; + if (!imgbuf) + imgbuf = Z_Malloc(1<<26, PU_STATIC, NULL); + + UINT8 *imgptr = imgbuf; + // Write image size and offset WRITEINT16(imgptr, width); WRITEINT16(imgptr, height); @@ -580,13 +583,17 @@ void *R_MaskedFlatToPatch(UINT16 *raw, INT16 width, INT16 height, INT16 leftoffs { INT16 x, y; UINT8 *img; - UINT8 *imgptr = imgbuf; UINT8 *colpointers, *startofspan; size_t size = 0; if (!raw) return NULL; + if (!imgbuf) + imgbuf = Z_Malloc(1<<26, PU_STATIC, NULL); + + UINT8 *imgptr = imgbuf; + // Write image size and offset WRITEINT16(imgptr, width); WRITEINT16(imgptr, height); From ff2fc6170df007a6eeeac34cc31817e41176ddd9 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 19 Sep 2025 17:48:17 +0200 Subject: [PATCH 38/59] avoid constant reallocations for patch rotation instead keep our buffers, resize em on need improves perf a bit maybe will be changed to free on levelload not sure, depends on how much memory this will allocate --- src/r_patchrotation.c | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/src/r_patchrotation.c b/src/r_patchrotation.c index 3f1836ad1..bea963342 100644 --- a/src/r_patchrotation.c +++ b/src/r_patchrotation.c @@ -39,9 +39,9 @@ INT32 R_GetRollAngle(angle_t rollangle) angle_t R_RotationAngle(angle_t ang, angle_t camang, interpmobjstate_t *interp) { return FixedMul(FINECOSINE((ang) >> ANGLETOFINESHIFT), interp->roll) + - FixedMul(FINESINE((ang) >> ANGLETOFINESHIFT), interp->pitch) + - FixedMul(FINECOSINE((camang) >> ANGLETOFINESHIFT), interp->sloperoll) + - FixedMul(FINESINE((camang) >> ANGLETOFINESHIFT), interp->slopepitch); + FixedMul(FINESINE((ang) >> ANGLETOFINESHIFT), interp->pitch) + + FixedMul(FINECOSINE((camang) >> ANGLETOFINESHIFT), interp->sloperoll) + + FixedMul(FINESINE((camang) >> ANGLETOFINESHIFT), interp->slopepitch); } patch_t *Patch_GetRotatedSprite(spriteframe_t *sprite, size_t frame, size_t spriteangle, boolean flip, void *info, INT32 rotationangle) @@ -73,7 +73,7 @@ patch_t *Patch_GetRotatedSprite(spriteframe_t *sprite, size_t frame, size_t spri if (lump == LUMPERROR) return NULL; - patch = W_CachePatchNum(lump, PU_SPRITE); + patch = (patch_t *)W_CachePatchNum(lump, PU_SPRITE); if (sprinfo->available) { @@ -127,8 +127,10 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle UINT32 i; patch_t *rotated; - UINT16 *rawdst, *rawconv; + static UINT16 *rawdst = NULL, *rawconv = NULL; + UINT16 *rawout; size_t size; + static size_t dst_capacity = 0, conv_capacity = 0; INT32 bflip = (flip != 0x00); INT32 width = patch->width; @@ -181,7 +183,14 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle size = (newwidth * newheight); if (!size) size = (width * height); - rawdst = Z_Malloc(size * sizeof(UINT16), PU_STATIC, NULL); + + if (size > dst_capacity) + { + // no realloc since we dont care about the old data + Z_Free(rawdst); + rawdst = Z_Malloc(size * sizeof(UINT16), PU_STATIC, NULL); + dst_capacity = size; + } for (i = 0; i < size; i++) rawdst[i] = 0xFF00; @@ -224,7 +233,14 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle UINT16 *src, *dest; size = (width * height); - rawconv = Z_Calloc(size * sizeof(UINT16), PU_STATIC, NULL); + + if (size > conv_capacity) + { + // no realloc since we dont care about the old data + Z_Free(rawconv); + rawconv = Z_Calloc(size * sizeof(UINT16), PU_STATIC, NULL); + conv_capacity = size; + } src = &rawdst[(miny * newwidth) + minx]; dest = rawconv; @@ -240,21 +256,21 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle ox -= minx; oy -= miny; - Z_Free(rawdst); + rawout = rawconv; } else { - rawconv = rawdst; width = newwidth; height = newheight; + + rawout = rawdst; } // make patch - rotated = (patch_t *)R_MaskedFlatToPatch(rawconv, width, height, 0, 0, &size); + rotated = (patch_t *)R_MaskedFlatToPatch(rawout, width, height, 0, 0, &size); Z_ChangeTag(rotated, PU_PATCH_ROTATED); Z_SetUser(rotated, (void **)(&rotsprite->patches[idx])); - Z_Free(rawconv); rotated->leftoffset = ox; rotated->topoffset = oy; From 8c9fb9f146cae15c30ff53a7d8ceb7e2220ae0ad Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 24 Sep 2025 21:19:26 +0200 Subject: [PATCH 39/59] kill off MSVC support completely delet michealsoft psure this was broken since quite a long time, now since we use quite a bunch of GNU extensions (and actually rely on the cleanup attribute), supporting this in any way is just too much, so remove everything to declutter the codebase --- README.md | 1 + src/apng.h | 2 - src/blua/ldo.c | 8 - src/blua/ldo.h | 6 - src/blua/luaconf.h | 20 -- src/d_clisrv.h | 16 -- src/d_netcmd.c | 2 +- src/d_netcmd.h | 16 -- src/d_ticcmd.h | 8 - src/dedicated/i_system.c | 10 - src/doomdata.h | 8 - src/doomdef.h | 13 +- src/doomtype.h | 46 +---- src/filesrch.c | 281 +--------------------------- src/hardware/hw_defs.h | 8 - src/hardware/hw_draw.c | 8 - src/hardware/hw_md2.c | 2 - src/hardware/hw_md2.h | 4 - src/hardware/r_opengl/r_opengl.h | 8 - src/i_addrinfo.c | 4 - src/i_net.h | 8 - src/lzf.c | 4 - src/m_dllist.h | 4 - src/m_fixed.c | 8 - src/m_misc.c | 2 - src/md5.c | 3 - src/mserv.h | 10 +- src/p_spec.c | 8 - src/r_data.c | 9 - src/r_defs.h | 16 -- src/sdl/CMakeLists.txt | 49 +---- src/sdl/SDL_main/SDL_windows_main.c | 8 - src/sdl/hwsym_sdl.c | 8 - src/sdl/i_system.cpp | 14 -- src/sdl/i_video.c | 9 - src/sdl/mixer_sound.c | 9 - src/sdl/ogl_sdl.c | 8 - src/sdl/sdl_sound.c | 22 +-- src/sdl/sdlmain.h | 4 - src/w_wad.c | 9 - src/w_wad.h | 7 - src/win32/win_dbg.c | 14 -- 42 files changed, 11 insertions(+), 693 deletions(-) diff --git a/README.md b/README.md index 1c0ee936d..2e7e6a19d 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ Check the LUASTUFF file for more information on all the lua things Saturn has. ## Compiling See [SRB2 Wiki/Source code compiling](http://wiki.srb2.org/wiki/Source_code_compiling). The compiling process for SRB2Kart is largely identical to SRB2. +Visual C++ (MSVC) is unsupported ## Disclaimer Kart Krew is in no way affiliated with SEGA or Sonic Team. We do not claim ownership of any of SEGA's intellectual property used in SRB2. diff --git a/src/apng.h b/src/apng.h index 0f22dca6d..8be4708a8 100644 --- a/src/apng.h +++ b/src/apng.h @@ -23,11 +23,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef APNG_H #define APNG_H -#ifndef _MSC_VER #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif -#endif #ifndef _LFS64_LARGEFILE #define _LFS64_LARGEFILE diff --git a/src/blua/ldo.c b/src/blua/ldo.c index ad8a32694..c573dab17 100644 --- a/src/blua/ldo.c +++ b/src/blua/ldo.c @@ -46,10 +46,6 @@ ** ======================================================= */ -#ifdef _MSC_VER -#pragma warning(disable : 4324) -#endif - /* chain list of long jump buffers */ struct lua_longjmp { struct lua_longjmp *previous; @@ -57,10 +53,6 @@ struct lua_longjmp { volatile int status; /* error code */ }; -#ifdef _MSC_VER -#pragma warning(default : 4324) -#endif - void luaD_seterrorobj (lua_State *L, int lerrcode, StkId oldtop) { switch (lerrcode) { case LUA_ERRMEM: { diff --git a/src/blua/ldo.h b/src/blua/ldo.h index baaa1301c..f85058bba 100644 --- a/src/blua/ldo.h +++ b/src/blua/ldo.h @@ -48,12 +48,6 @@ LUAI_FUNC void luaD_reallocCI (lua_State *L, int newsize); LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize); LUAI_FUNC void luaD_growstack (lua_State *L, int n); -#ifdef _MSC_VER - #ifndef ATTRNORETURN - #define ATTRNORETURN __declspec(noreturn) - #endif -#endif - #ifndef ATTRNORETURN #define ATTRNORETURN #endif diff --git a/src/blua/luaconf.h b/src/blua/luaconf.h index 2596838bb..76a798751 100644 --- a/src/blua/luaconf.h +++ b/src/blua/luaconf.h @@ -11,12 +11,8 @@ #include #include -#ifdef _MSC_VER -#define INT32 __int32 -#else #include #define INT32 int32_t -#endif #ifndef __cplusplus #ifndef min // Double-Check with WATTCP-32's cdefs.h @@ -570,9 +566,6 @@ #define luai_numshl(a,b) ((unsigned)(a)<<(unsigned)(b)) #define luai_numshr(a,b) ((unsigned)(a)>>(unsigned)(b)) #define luai_numnot(a) (~((unsigned)(a))) -#ifdef _MSC_VER -#pragma warning(disable : 4244) -#endif #endif @@ -589,24 +582,11 @@ #if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) && !defined(__SSE2__) && \ (defined(__i386) || defined (_M_IX86) || defined(__i386__)) -/* On a Microsoft compiler, use assembler */ -#if defined(_MSC_VER) - -#define lua_number2int(i,d) __asm fld d __asm fistp i -#define lua_number2integer(i,n) lua_number2int(i, n) - -/* the next trick should work on any Pentium, but sometimes clashes - with a DirectX idiosyncrasy */ -#else - union luai_Cast { double l_d; long l_l; }; #define lua_number2int(i,d) \ { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; } #define lua_number2integer(i,n) lua_number2int(i, n) -#endif - - /* this option always works, but may be slow */ #else #define lua_number2int(i,d) ((i)=(int)(d)) diff --git a/src/d_clisrv.h b/src/d_clisrv.h index 7582fdc2c..6c1bf7bd2 100644 --- a/src/d_clisrv.h +++ b/src/d_clisrv.h @@ -133,10 +133,6 @@ void Command_Droprate(void); void Command_Numnodes(void); #endif -#if defined(_MSC_VER) -#pragma pack(1) -#endif - // Client to server packet typedef struct { @@ -176,10 +172,6 @@ typedef struct ticcmd_t cmd, cmd2, cmd3, cmd4; } ATTRPACK client4cmd_pak; -#ifdef _MSC_VER -#pragma warning(disable : 4200) -#endif - // Server to client packet // this packet is too large typedef struct @@ -372,10 +364,6 @@ typedef struct { UINT8 data[0]; // Size is variable using hardware_MAXPACKETLENGTH } ATTRPACK filetx_pak; -#ifdef _MSC_VER -#pragma warning(default : 4200) -#endif - #define MAXAPPLICATION 16 typedef struct @@ -519,10 +507,6 @@ typedef struct } u; // This is needed to pack diff packet types data together } ATTRPACK doomdata_t; -#if defined(_MSC_VER) -#pragma pack() -#endif - #define MAXSERVERLIST (MAXNETNODES-1) typedef struct { diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 9b6c0010a..de96bf150 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -4675,7 +4675,7 @@ static void Got_Addfilecmd(UINT8 **cp, INT32 playernum) return; } - ncs = findfile(filename,md5sum,true); + ncs = findfile(filename, md5sum, true); if (ncs != FS_FOUND || !P_AddWadFile(filename, false)) { diff --git a/src/d_netcmd.h b/src/d_netcmd.h index 098de925e..52f777e2b 100644 --- a/src/d_netcmd.h +++ b/src/d_netcmd.h @@ -266,14 +266,6 @@ typedef enum extern const char *netxcmdnames[MAXNETXCMD - 1]; -#if defined(_MSC_VER) -#pragma pack(1) -#endif - -#ifdef _MSC_VER -#pragma warning(disable : 4214) -#endif - //Packet composition for Command_TeamChange_f() ServerTeamChange, etc. //bitwise structs make packing bits a little easier, but byte alignment harder? //todo: decide whether to make the other netcommands conform, or just get rid of this experiment. @@ -285,10 +277,6 @@ typedef struct { UINT32 scrambled : 1; // value 0 to 1 } ATTRPACK changeteam_packet_t; -#ifdef _MSC_VER -#pragma warning(default : 4214) -#endif - typedef struct { UINT16 l; // liitle endian UINT16 b; // big enian @@ -302,10 +290,6 @@ typedef union { changeteam_value_t value; } ATTRPACK changeteam_union; -#if defined(_MSC_VER) -#pragma pack() -#endif - // add game commands, needs cleanup void D_RegisterServerCommands(void); void D_RegisterClientCommands(void); diff --git a/src/d_ticcmd.h b/src/d_ticcmd.h index dab758f8d..98e4891e3 100644 --- a/src/d_ticcmd.h +++ b/src/d_ticcmd.h @@ -50,10 +50,6 @@ typedef enum #define TICCMD_RECEIVED 1 #define TICCMD_XY 2 -#if defined(_MSC_VER) -#pragma pack(1) -#endif - typedef struct { SINT8 forwardmove; // -MAXPLMOVE to MAXPLMOVE (50) @@ -65,8 +61,4 @@ typedef struct UINT8 latency; // Netgames: how many tics ago was this ticcmd generated from this player's end? } ATTRPACK ticcmd_t; -#if defined(_MSC_VER) -#pragma pack() -#endif - #endif diff --git a/src/dedicated/i_system.c b/src/dedicated/i_system.c index 016359772..c35dc0346 100644 --- a/src/dedicated/i_system.c +++ b/src/dedicated/i_system.c @@ -54,8 +54,6 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T); #include #ifdef __GNUC__ #include -#elif defined (_MSC_VER) -#include #endif #if defined (__unix__) || defined (UNIXCOMMON) #include @@ -66,10 +64,6 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T); #include #endif -#ifdef _MSC_VER -#pragma warning(disable : 4214 4244) -#endif - #if defined (__unix__) || defined(__APPLE__) || (defined (UNIXCOMMON) && !defined (__HAIKU__)) #include #if defined (__linux__) @@ -874,10 +868,6 @@ void I_OutputMsg(const char *fmt, ...) DEFAULTFONTBGR, DEFAULTFONTBGG, DEFAULTFONTBGB, DEFAULTFONTBGA, txt); #endif -#if defined (_WIN32) && defined (_MSC_VER) - OutputDebugStringA(txt); -#endif - len = strlen(txt); #ifdef LOGMESSAGES diff --git a/src/doomdata.h b/src/doomdata.h index 6319238b7..a646686f1 100644 --- a/src/doomdata.h +++ b/src/doomdata.h @@ -57,10 +57,6 @@ enum // Do not use bit five or after, as they are used for object z-offsets. -#if defined(_MSC_VER) -#pragma pack(1) -#endif - // A single Vertex. typedef struct { @@ -188,10 +184,6 @@ typedef struct UINT16 children[2]; } ATTRPACK mapnode_t; -#if defined(_MSC_VER) -#pragma pack() -#endif - // Thing definition, position, orientation and type, // plus visibility flags and attributes. typedef struct diff --git a/src/doomdef.h b/src/doomdef.h index 7e2589cf6..8d7ba2042 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -47,17 +47,6 @@ #define ASMCALL #endif -#ifdef _MSC_VER -#pragma warning(disable : 4127 4152 4213 4514) -#ifdef _WIN64 -#pragma warning(disable : 4306) -#endif -#endif -// warning level 4 -// warning C4127: conditional expression is constant -// warning C4152: nonstandard extension, function/data pointer conversion in expression -// warning C4213: nonstandard extension used : cast on l-value - #ifdef __cplusplus extern "C" { #endif @@ -560,7 +549,7 @@ UINT32 quickncasehash (const char *p, size_t n) #endif #ifdef __cplusplus -#if defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER) +#if defined(__GNUC__) || defined(__clang__) #define restrict __restrict #else #define restrict diff --git a/src/doomtype.h b/src/doomtype.h index 6ad95c94e..81c09c007 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -28,31 +28,6 @@ extern "C" { #endif /* 7.18.1.1 Exact-width integer types */ -#ifdef _MSC_VER -#define UINT8 unsigned __int8 -#define SINT8 signed __int8 - -#define UINT16 unsigned __int16 -#define INT16 __int16 - -#define INT32 __int32 -#define UINT32 unsigned __int32 - -#define INT64 __int64 -#define UINT64 unsigned __int64 - -typedef long ssize_t; - -/* Older Visual C++ headers don't have the Win64-compatible typedefs... */ -#if (_MSC_VER <= 1200) - #ifndef DWORD_PTR - #define DWORD_PTR DWORD - #endif - #ifndef PDWORD_PTR - #define PDWORD_PTR PDWORD - #endif -#endif -#else #define __STDC_LIMIT_MACROS #include @@ -66,7 +41,6 @@ typedef long ssize_t; #define UINT32 uint32_t #define INT64 int64_t #define UINT64 uint64_t -#endif #ifdef __APPLE_CC__ #define DIRECTFULLSCREEN 1 @@ -76,16 +50,7 @@ typedef long ssize_t; /* Strings and some misc platform specific stuff */ -#if defined (_MSC_VER) || defined (__OS2__) - // Microsoft VisualC++ -#ifdef _MSC_VER -#if (_MSC_VER <= 1800) // MSVC 2013 and back - #define snprintf _snprintf -#if (_MSC_VER <= 1200) // MSVC 6.0 and back - #define vsnprintf _vsnprintf -#endif -#endif -#endif +#if defined (__OS2__) #define strncasecmp strnicmp #define strcasecmp stricmp #define inline __inline @@ -270,13 +235,6 @@ typedef int32_t boolean; #endif #define ATTRUNUSED __attribute__((unused)) - -#elif defined (_MSC_VER) - #define ATTRNORETURN __declspec(noreturn) - #define ATTRINLINE __forceinline - #if _MSC_VER > 1200 // >= MSVC 6.0 - #define ATTRNOINLINE __declspec(noinline) - #endif #endif #ifndef FUNCPRINTF @@ -368,7 +326,7 @@ typedef UINT8 bitarray_t; static inline int in_bit_array (const bitarray_t * const array, const int value) { - return (array[value >> 3] & (1<<(value & 7))); + return(array[value >> 3] & (1<<(value & 7))); } static inline void diff --git a/src/filesrch.c b/src/filesrch.c index b7f1a141f..0b112556c 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -30,286 +30,7 @@ #include "z_zone.h" #include "m_menu.h" // Addons_option_Onchange -#if defined (_WIN32) && defined (_MSC_VER) - -#include -#include -#include - -#define SUFFIX "*" -#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) - -#ifndef INVALID_FILE_ATTRIBUTES -#define INVALID_FILE_ATTRIBUTES ((DWORD)-1) -#endif - -struct dirent -{ - long d_ino; /* Always zero. */ - unsigned short d_reclen; /* Always zero. */ - unsigned short d_namlen; /* Length of name in d_name. */ - char d_name[FILENAME_MAX]; /* File name. */ -}; - -/* - * This is an internal data structure. Good programmers will not use it - * except as an argument to one of the functions below. - * dd_stat field is now int (was short in older versions). - */ -typedef struct -{ - /* disk transfer area for this dir */ - struct _finddata_t dd_dta; - - /* dirent struct to return from dir (NOTE: this makes this thread - * safe as long as only one thread uses a particular DIR struct at - * a time) */ - struct dirent dd_dir; - - /* _findnext handle */ -#if _MSC_VER > 1200 - intptr_t dd_handle; -#else - long dd_handle; -#endif - - /* - * Status of search: - * 0 = not started yet (next entry to read is first entry) - * -1 = off the end - * positive = 0 based index of next entry - */ - int dd_stat; - - /* given path for dir with search pattern (struct is extended) */ - CHAR dd_name[1]; -} DIR; - -/* - * opendir - * - * Returns a pointer to a DIR structure appropriately filled in to begin - * searching a directory. - */ - -DIR * -opendir (const CHAR *szPath) -{ - DIR *nd; - DWORD rc; - CHAR szFullPath[MAX_PATH]; - - errno = 0; - - if (!szPath) - { - errno = EFAULT; - return (DIR *) 0; - } - - if (szPath[0] == '\0') - { - errno = ENOTDIR; - return (DIR *) 0; - } - - /* Attempt to determine if the given path really is a directory. */ - rc = GetFileAttributesA(szPath); - if (rc == INVALID_FILE_ATTRIBUTES) - { - /* call GetLastError for more error info */ - errno = ENOENT; - return (DIR *) 0; - } - if (!(rc & FILE_ATTRIBUTE_DIRECTORY)) - { - /* Error, entry exists but not a directory. */ - errno = ENOTDIR; - return (DIR *) 0; - } - - /* Make an absolute pathname. */ - _fullpath (szFullPath, szPath, MAX_PATH); - - /* Allocate enough space to store DIR structure and the complete - * directory path given. */ - nd = (DIR *) malloc (sizeof (DIR) + (strlen(szFullPath) + strlen (SLASH) + - strlen(PATHSEP) + 1) * sizeof (CHAR)); - - if (!nd) - { - /* Error, out of memory. */ - errno = ENOMEM; - return (DIR *) 0; - } - - /* Create the search expression. */ - strcpy (nd->dd_name, szFullPath); - - /* Add on a slash if the path does not end with one. */ - if (nd->dd_name[0] != '\0' && - nd->dd_name[strlen (nd->dd_name) - 1] != PATHSEP[0]) - { - strcat (nd->dd_name, PATHSEP); - } - - /* Add on the search pattern */ - strcat (nd->dd_name, SUFFIX); - - /* Initialize handle to -1 so that a premature closedir doesn't try - * to call _findclose on it. */ - nd->dd_handle = -1; - - /* Initialize the status. */ - nd->dd_stat = 0; - - /* Initialize the dirent structure. ino and reclen are invalid under - * Win32, and name simply points at the appropriate part of the - * findfirst_t structure. */ - nd->dd_dir.d_ino = 0; - nd->dd_dir.d_reclen = 0; - nd->dd_dir.d_namlen = 0; - ZeroMemory(nd->dd_dir.d_name, FILENAME_MAX); - - return nd; -} - -/* - * readdir - * - * Return a pointer to a dirent structure filled with the information on the - * next entry in the directory. - */ -struct dirent * -readdir (DIR * dirp) -{ - errno = 0; - - /* Check for valid DIR struct. */ - if (!dirp) - { - errno = EFAULT; - return (struct dirent *) 0; - } - - if (dirp->dd_stat < 0) - { - /* We have already returned all files in the directory - * (or the structure has an invalid dd_stat). */ - return (struct dirent *) 0; - } - else if (dirp->dd_stat == 0) - { - /* We haven't started the search yet. */ - /* Start the search */ - dirp->dd_handle = _findfirst (dirp->dd_name, &(dirp->dd_dta)); - - if (dirp->dd_handle == -1) - { - /* Whoops! Seems there are no files in that - * directory. */ - dirp->dd_stat = -1; - } - else - { - dirp->dd_stat = 1; - } - } - else - { - /* Get the next search entry. */ - if (_findnext (dirp->dd_handle, &(dirp->dd_dta))) - { - /* We are off the end or otherwise error. - _findnext sets errno to ENOENT if no more file - Undo this. */ - DWORD winerr = GetLastError(); - if (winerr == ERROR_NO_MORE_FILES) - errno = 0; - _findclose (dirp->dd_handle); - dirp->dd_handle = -1; - dirp->dd_stat = -1; - } - else - { - /* Update the status to indicate the correct - * number. */ - dirp->dd_stat++; - } - } - - if (dirp->dd_stat > 0) - { - /* Successfully got an entry. Everything about the file is - * already appropriately filled in except the length of the - * file name. */ - dirp->dd_dir.d_namlen = (unsigned short)strlen (dirp->dd_dta.name); - strcpy (dirp->dd_dir.d_name, dirp->dd_dta.name); - return &dirp->dd_dir; - } - - return (struct dirent *) 0; -} - -/* - * rewinddir - * - * Makes the next readdir start from the beginning. - */ -int -rewinddir (DIR * dirp) -{ - errno = 0; - - /* Check for valid DIR struct. */ - if (!dirp) - { - errno = EFAULT; - return -1; - } - - dirp->dd_stat = 0; - - return 0; -} - -/* - * closedir - * - * Frees up resources allocated by opendir. - */ -int -closedir (DIR * dirp) -{ - int rc; - - errno = 0; - rc = 0; - - if (!dirp) - { - errno = EFAULT; - return -1; - } - - if (dirp->dd_handle != -1) - { - rc = _findclose (dirp->dd_handle); - } - - /* Delete the dir structure. */ - free (dirp); - - return rc; -} -#endif - -static CV_PossibleValue_t addons_cons_t[] = {{0, "Default"}, -#if 1 - {1, "HOME"}, {2, "SRB2"}, -#endif - {3, "CUSTOM"}, {0, NULL}}; - +static CV_PossibleValue_t addons_cons_t[] = {{0, "Default"}, {1, "HOME"}, {2, "SRB2"}, {3, "CUSTOM"}, {0, NULL}}; consvar_t cv_addons_option = {"addons_option", "Default", CV_SAVE|CV_CALL, addons_cons_t, Addons_option_Onchange, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_addons_folder = {"addons_folder", "", CV_SAVE, NULL, NULL, 0, NULL, NULL, 0, 0, NULL}; diff --git a/src/hardware/hw_defs.h b/src/hardware/hw_defs.h index 7788dce53..590e03a63 100644 --- a/src/hardware/hw_defs.h +++ b/src/hardware/hw_defs.h @@ -99,10 +99,6 @@ typedef struct fixed_t x2, y2, z2; } polyvertex_t; -#ifdef _MSC_VER -#pragma warning(disable : 4200) -#endif - // a convex 'plane' polygon, clockwise order typedef struct { @@ -110,10 +106,6 @@ typedef struct polyvertex_t pts[0]; } poly_t; -#ifdef _MSC_VER -#pragma warning(default : 4200) -#endif - // holds extra info for 3D render, for each subsector in subsectors[] typedef struct { diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index 454c9bbf0..a8a2bdfda 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -38,9 +38,6 @@ #define O_BINARY 0 #endif -#if defined(_MSC_VER) -#pragma pack(1) -#endif typedef struct { UINT8 id_field_length ; // 1 @@ -54,9 +51,6 @@ typedef struct UINT8 image_pix_size ; //17 UINT8 image_descriptor; //18 } ATTRPACK TGAHeader; // sizeof is 18 -#if defined(_MSC_VER) -#pragma pack() -#endif static UINT8 softwaretranstogl[11] = { 0, 25, 51, 76,102,127,153,178,204,229,255}; static UINT8 softwaretranstogl_hi[11] = { 0, 51,102,153,204,255,255,255,255,255,255}; @@ -1154,11 +1148,9 @@ void HWR_DrawFill(INT32 x, INT32 y, INT32 w, INT32 h, INT32 color) #ifdef HAVE_PNG -#ifndef _MSC_VER #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif -#endif #ifndef _LFS64_LARGEFILE #define _LFS64_LARGEFILE diff --git a/src/hardware/hw_md2.c b/src/hardware/hw_md2.c index 94b24b25e..364c0e417 100644 --- a/src/hardware/hw_md2.c +++ b/src/hardware/hw_md2.c @@ -47,11 +47,9 @@ #include "../v_video.h" #ifdef HAVE_PNG -#ifndef _MSC_VER #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif -#endif #ifndef _LFS64_LARGEFILE #define _LFS64_LARGEFILE diff --git a/src/hardware/hw_md2.h b/src/hardware/hw_md2.h index 014638f56..62de1f35e 100644 --- a/src/hardware/hw_md2.h +++ b/src/hardware/hw_md2.h @@ -22,10 +22,6 @@ extern "C" { #include "hw_glob.h" #include "hw_model.h" -#if defined(_MSC_VER) -#pragma pack() -#endif - typedef struct { char filename[32]; diff --git a/src/hardware/r_opengl/r_opengl.h b/src/hardware/r_opengl/r_opengl.h index 3b4e2dbd0..397e8702b 100644 --- a/src/hardware/r_opengl/r_opengl.h +++ b/src/hardware/r_opengl/r_opengl.h @@ -27,16 +27,8 @@ extern "C" { #ifdef HAVE_SDL #define _MATH_DEFINES_DEFINED -#ifdef _MSC_VER -#pragma warning(disable : 4214 4244) -#endif - #include "SDL_opengl.h" //Alam_GBC: Simple, yes? -#ifdef _MSC_VER -#pragma warning(default : 4214 4244) -#endif - #else #include diff --git a/src/i_addrinfo.c b/src/i_addrinfo.c index 53421953f..f9d860bd1 100644 --- a/src/i_addrinfo.c +++ b/src/i_addrinfo.c @@ -43,11 +43,7 @@ #ifndef I_getaddrinfo -#if !defined (_MSC_VER) || (_MSC_VER >= 1800) // MSVC 2013 and forward #include -#else -typedef char bool; -#endif #ifdef _WIN32 // it seems windows doesn't define that... maybe some other OS? OS/2 diff --git a/src/i_net.h b/src/i_net.h index bdbad182e..e811908f2 100644 --- a/src/i_net.h +++ b/src/i_net.h @@ -39,10 +39,6 @@ extern "C" { extern INT16 hardware_MAXPACKETLENGTH; -#if defined(_MSC_VER) -#pragma pack(1) -#endif - typedef struct { /// Supposed to be DOOMCOM_ID @@ -95,10 +91,6 @@ typedef struct #define HOLEPUNCH_DATA(d) (holepunch_t *)&(d)->data #endif -#if defined(_MSC_VER) -#pragma pack() -#endif - extern doomcom_t *doomcom; /** \brief return packet in doomcom struct diff --git a/src/lzf.c b/src/lzf.c index 96f8973fc..97c74ff2b 100644 --- a/src/lzf.c +++ b/src/lzf.c @@ -70,12 +70,8 @@ * this is usually a loss, even with glibc's optimized memcpy */ #ifndef USE_MEMCPY -#ifdef _MSC_VER -# define USE_MEMCPY 0 -#else # define USE_MEMCPY 1 #endif -#endif /* * You may choose to pre-set the hash table (might be faster on some diff --git a/src/m_dllist.h b/src/m_dllist.h index 18f351144..84e25fb9d 100644 --- a/src/m_dllist.h +++ b/src/m_dllist.h @@ -25,10 +25,6 @@ #ifndef M_DLLIST_H__ #define M_DLLIST_H__ -#ifdef _MSC_VER -#pragma warning(disable : 4706) -#endif - typedef struct mdllistitem_s { struct mdllistitem_s *next; diff --git a/src/m_fixed.c b/src/m_fixed.c index 0eeab810f..bdb9506c2 100644 --- a/src/m_fixed.c +++ b/src/m_fixed.c @@ -11,14 +11,6 @@ /// \file m_fixed.c /// \brief Fixed point implementation -#if 0 //#ifndef NO_M -#include -#define HAVE_SQRT - #if 0 //#ifndef _WIN32 // MSVCRT does not have *f() functions - #define HAVE_SQRTF - #endif -#endif - #include "doomdef.h" #include "m_fixed.h" #include "tables.h" // ANGLETOFINESHIFT diff --git a/src/m_misc.c b/src/m_misc.c index 0ae536f4f..d43a7bb5c 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -79,11 +79,9 @@ typedef off_t off64_t; #ifdef HAVE_PNG -#ifndef _MSC_VER #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif -#endif #ifndef _LFS64_LARGEFILE #define _LFS64_LARGEFILE diff --git a/src/md5.c b/src/md5.c index 234de8f26..17b5ca52f 100644 --- a/src/md5.c +++ b/src/md5.c @@ -20,9 +20,6 @@ #include #include -#ifdef _MSC_VER -#pragma warning(disable : 4127) -#endif #if defined (STDC_HEADERS) || defined (_LIBC) #include diff --git a/src/mserv.h b/src/mserv.h index 0b4e09bb8..a8de2152f 100644 --- a/src/mserv.h +++ b/src/mserv.h @@ -16,10 +16,6 @@ #include "i_threads.h" -#if defined(_MSC_VER) -#pragma pack(1) -#endif - typedef union { char buffer[16]; // information such as password @@ -50,13 +46,9 @@ typedef struct INT32 hostonly; } ATTRPACK msg_ban_t; -#if defined(_MSC_VER) -#pragma pack() -#endif - // ================================ GLOBALS =============================== #ifdef MASTERSERVER -extern consvar_t cv_masterserver; +extern consvar_t cv_masterserver; #endif extern consvar_t cv_servername; extern consvar_t cv_server_contact; diff --git a/src/p_spec.c b/src/p_spec.c index 430605b77..055a708fe 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -52,10 +52,6 @@ mobj_t *skyboxmo[2]; // This must be updated whenever we up the max flat size - quicker to assume rather than figuring out the sqrt of the specific flat's filesize. #define MAXFLATSIZE (2048< // alloca(sizeof) #endif -#if defined(_MSC_VER) -#pragma pack(1) -#endif - // Not sure if this is necessary, but it was in w_wad.c, so I'm putting it here too -Shadow Hog #include @@ -71,11 +67,6 @@ typedef struct mappatch_t patches[1]; } ATTRPACK maptexture_t; -#if defined(_MSC_VER) -#pragma pack() -#endif - - // Store lists of lumps for F_START/F_END etc. typedef struct { diff --git a/src/r_defs.h b/src/r_defs.h index 4b3121d75..3d49b70a8 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -576,10 +576,6 @@ typedef struct UINT16 children[2]; } node_t; -#if defined(_MSC_VER) -#pragma pack(1) -#endif - // posts are runs of non masked source pixels typedef struct { @@ -587,10 +583,6 @@ typedef struct UINT8 length; // length data bytes follows } ATTRPACK post_t; -#if defined(_MSC_VER) -#pragma pack() -#endif - // column_t is a list of 0 or more post_t, (UINT8)-1 terminated typedef post_t column_t; @@ -669,10 +661,6 @@ typedef struct #endif } patch_t; -#if defined(_MSC_VER) -#pragma pack(1) -#endif - typedef struct { INT16 width; // bounding box size @@ -683,10 +671,6 @@ typedef struct // the [0] is &columnofs[width] } ATTRPACK softwarepatch_t; -#if defined(_MSC_VER) -#pragma pack() -#endif - // Possible alpha types for a patch. enum patchalphastyle {AST_COPY, AST_TRANSLUCENT, AST_ADD, AST_SUBTRACT, AST_REVERSESUBTRACT, AST_MODULATE, AST_OVERLAY}; diff --git a/src/sdl/CMakeLists.txt b/src/sdl/CMakeLists.txt index c767530d9..e4b0d4f37 100644 --- a/src/sdl/CMakeLists.txt +++ b/src/sdl/CMakeLists.txt @@ -92,7 +92,7 @@ if(${SDL2_FOUND}) source_group("Assembly" FILES ${SRB2_ASM_SOURCES} ${SRB2_NASM_SOURCES}) source_group("LUA" FILES ${SRB2_LUA_SOURCES} ${SRB2_LUA_HEADERS}) source_group("LUA\\Interpreter" FILES ${SRB2_BLUA_SOURCES} ${SRB2_BLUA_HEADERS}) - + if(${SRB2_CONFIG_HWRENDER}) set(SRB2_SDL2_TOTAL_SOURCES ${SRB2_SDL2_TOTAL_SOURCES} @@ -110,16 +110,6 @@ if(${SDL2_FOUND}) set(SRB2_SDL2_TOTAL_SOURCES ${SRB2_SDL2_TOTAL_SOURCES} ${SRB2_NASM_SOURCES} ) - if(MSVC) - set(SRB2_SDL2_TOTAL_SOURCES ${SRB2_SDL2_TOTAL_SOURCES} - ${SRB2_NASM_OBJECTS} - ) - set_source_files_properties(${SRB2_NASM_OBJECTS} PROPERTIES GENERATED ON) - else() - list(APPEND SRB2_SDL2_TOTAL_SOURCES ${SRB2_ASM_SOURCES}) - set_source_files_properties(${SRB2_ASM_SOURCES} PROPERTIES LANGUAGE C) - set_source_files_properties(${SRB2_ASM_SOURCES} PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp") - endif() endif() if(${CMAKE_SYSTEM} MATCHES Windows) @@ -204,18 +194,6 @@ if(${SDL2_FOUND}) set(ASM_ASSEMBLER_OBJFORMAT ${CMAKE_ASM_NASM_OBJECT_FORMAT}) set_source_files_properties(${SRB2_NASM_SOURCES} LANGUAGE ASM_NASM) endif() - - if(MSVC) - # using assembler with msvc doesn't work, must do it manually - foreach(ASMFILE ${SRB2_NASM_SOURCES}) - get_filename_component(ASMFILE_NAME ${ASMFILE} NAME_WE) - set(ASMFILE_NAME ${ASMFILE_NAME}.obj) - add_custom_command(TARGET SRB2SDL2 PRE_LINK - COMMAND ${ASM_ASSEMBLER_TEMP} ARGS -f ${ASM_ASSEMBLER_OBJFORMAT} -o ${CMAKE_CURRENT_BINARY_DIR}/${ASMFILE_NAME} ${ASMFILE} - COMMENT "assemble ${ASMFILE_NAME}." - ) - endforeach() - endif() endif() if(${CMAKE_SYSTEM} MATCHES Windows) @@ -227,31 +205,6 @@ if(${SDL2_FOUND}) ) endif() - if(MSVC) - if(${SRB2_CONFIG_USE_INTERNAL_LIBRARIES}) - set(SDL2_MAIN_FOUND ON) - if(${SRB2_SYSTEM_BITS} EQUAL 64) - set(SDL2_MAIN_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/libs/SDL2/x86_64-w64-mingw32/include/SDL2) - set(SDL2_MAIN_LIBRARIES "-L${CMAKE_SOURCE_DIR}/libs/SDL2/x86_64-w64-mingw32/lib -lSDL2main") - else() # 32-bit - set(SDL2_MAIN_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/libs/SDL2/i686-w64-mingw32/include/SDL2) - set(SDL2_MAIN_LIBRARIES "-L${CMAKE_SOURCE_DIR}/libs/SDL2/i686-w64-mingw32/lib -lSDL2main") - endif() - else() - find_package(SDL2_MAIN REQUIRED) - endif() - target_link_libraries(SRB2SDL2 PRIVATE - ${SDL2_MAIN_LIBRARIES} - ) - target_compile_options(SRB2SDL2 PRIVATE - /Umain - /D_CRT_SECURE_NO_WARNINGS # something about string functions. - /D_CRT_NONSTDC_NO_DEPRECATE - /DSDLMAIN - /D_WINSOCK_DEPRECATED_NO_WARNINGS # Don't care - ) - endif() - target_include_directories(SRB2SDL2 PRIVATE ${SDL2_INCLUDE_DIRS} ${SDL2_MIXER_INCLUDE_DIRS} diff --git a/src/sdl/SDL_main/SDL_windows_main.c b/src/sdl/SDL_main/SDL_windows_main.c index f73ef30fc..8b81269ec 100644 --- a/src/sdl/SDL_main/SDL_windows_main.c +++ b/src/sdl/SDL_main/SDL_windows_main.c @@ -107,14 +107,6 @@ OutOfMemory(void) return FALSE; } -#if defined(_MSC_VER) -/* The VC++ compiler needs main/wmain defined */ -# define console_ansi_main main -# if UNICODE -# define console_wmain wmain -# endif -#endif - /* WinMain, main, and wmain eventually call into here. */ static int main_utf8(int argc, char *argv[]) diff --git a/src/sdl/hwsym_sdl.c b/src/sdl/hwsym_sdl.c index 4b1988c6f..a528796eb 100644 --- a/src/sdl/hwsym_sdl.c +++ b/src/sdl/hwsym_sdl.c @@ -25,18 +25,10 @@ #include "hwsym_sdl.h" #include "../doomdef.h" -#ifdef _MSC_VER -#pragma warning(disable : 4214 4244) -#endif - #ifdef HAVE_SDL #include "SDL.h" -#ifdef _MSC_VER -#pragma warning(default : 4214 4244) -#endif - #ifndef NOLOADSO #include "SDL_loadso.h" #endif diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 9ff5b675a..bd3735619 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -55,8 +55,6 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T); #include #ifdef __GNUC__ #include -#elif defined (_MSC_VER) -#include #endif #if defined (__unix__) || defined (UNIXCOMMON) #include @@ -67,10 +65,6 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T); #include #endif -#ifdef _MSC_VER -#pragma warning(disable : 4214 4244) -#endif - #ifdef HAVE_SDL #define _MATH_DEFINES_DEFINED #include "SDL.h" @@ -79,10 +73,6 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T); #include "i_ttf.h" #endif -#ifdef _MSC_VER -#pragma warning(default : 4214 4244) -#endif - #include "SDL_cpuinfo.h" #define HAVE_SDLCPUINFO @@ -974,10 +964,6 @@ void I_OutputMsg(const char *fmt, ...) DEFAULTFONTBGR, DEFAULTFONTBGG, DEFAULTFONTBGB, DEFAULTFONTBGA, txt); #endif -#if defined (_WIN32) && defined (_MSC_VER) - OutputDebugStringA(txt); -#endif - len = strlen(txt); #ifdef LOGMESSAGES diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 7a6cb1743..6fcf51be9 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -24,19 +24,10 @@ #include -#ifdef _MSC_VER -#pragma warning(disable : 4214 4244) -#endif - #ifdef HAVE_SDL #define _MATH_DEFINES_DEFINED #include "SDL.h" -#ifdef _MSC_VER -#include -#pragma warning(default : 4214 4244) -#endif - #ifdef HAVE_TTF #include "i_ttf.h" #endif diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index f6c739ab1..cbc3f5334 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -11,11 +11,9 @@ #ifdef HAVE_LIBGME #ifdef HAVE_ZLIB -#ifndef _MSC_VER #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif -#endif #ifndef _LFS64_LARGEFILE #define _LFS64_LARGEFILE @@ -46,14 +44,7 @@ write netcode into the sound code, OKAY? #include "../z_zone.h" #include "../byteptr.h" -#ifdef _MSC_VER -#pragma warning(disable : 4214 4244) -#endif #include "SDL.h" -#ifdef _MSC_VER -#pragma warning(default : 4214 4244) -#endif - #include "SDL_mixer.h" /* This is the version number macro for the current SDL_mixer version: */ diff --git a/src/sdl/ogl_sdl.c b/src/sdl/ogl_sdl.c index 61ba126b9..0ee886d1e 100644 --- a/src/sdl/ogl_sdl.c +++ b/src/sdl/ogl_sdl.c @@ -17,10 +17,6 @@ /// \file /// \brief SDL specific part of the OpenGL API for SRB2 -#ifdef _MSC_VER -#pragma warning(disable : 4214 4244) -#endif - #ifdef HAVE_SDL #define _MATH_DEFINES_DEFINED @@ -28,10 +24,6 @@ #include "sdlmain.h" -#ifdef _MSC_VER -#pragma warning(default : 4214 4244) -#endif - #include "../doomdef.h" #include "../d_main.h" diff --git a/src/sdl/sdl_sound.c b/src/sdl/sdl_sound.c index 4afd26a04..c986b9b54 100644 --- a/src/sdl/sdl_sound.c +++ b/src/sdl/sdl_sound.c @@ -16,21 +16,14 @@ /// \file /// \brief SDL interface for sound -#include #include "../doomdef.h" -#ifdef _MSC_VER -#pragma warning(disable : 4214 4244) -#endif +#if defined(HAVE_SDL) && SOUND == SOUND_SDL -#if defined(HAVE_SDL) && SOUND==SOUND_SDL +#include #include "SDL.h" -#ifdef _MSC_VER -#pragma warning(default : 4214 4244) -#endif - #ifdef HAVE_MIXER #include /* This is the version number macro for the current SDL_mixer version: */ @@ -220,11 +213,6 @@ static inline Uint16 Snd_LowerRate(Uint16 sr) return sr*2; // just keep it just above the output sample rate } -#ifdef _MSC_VER -#pragma warning(disable : 4200) -#pragma pack(1) -#endif - typedef struct { Uint16 header; // 3? @@ -234,11 +222,6 @@ typedef struct Uint8 data[0]; // data; } ATTRPACK dssfx_t; -#ifdef _MSC_VER -#pragma pack() -#pragma warning(default : 4200) -#endif - // // This function loads the sound data from the WAD lump, // for single sound. @@ -1418,4 +1401,5 @@ static boolean I_StartGMESong(const char *musicname, boolean looping) } #endif +#endif #endif //HAVE_SDL diff --git a/src/sdl/sdlmain.h b/src/sdl/sdlmain.h index ac204ea99..2caafc729 100644 --- a/src/sdl/sdlmain.h +++ b/src/sdl/sdlmain.h @@ -29,11 +29,7 @@ extern SDL_bool framebuffer; #include "../m_fixed.h" // SDL2 stub macro -#ifdef _MSC_VER -#define SDL2STUB() CONS_Printf("SDL2: stubbed: %s:%d\n", __FUNCTION__, __LINE__) -#else #define SDL2STUB() CONS_Printf("SDL2: stubbed: %s:%d\n", __func__, __LINE__) -#endif // So m_menu knows whether to store cv_usejoystick value or string #define JOYSTICK_HOTPLUG diff --git a/src/w_wad.c b/src/w_wad.c index 1cd318368..bbb61db07 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -12,11 +12,9 @@ /// \brief Handles WAD file header, directory, lump I/O #ifdef HAVE_ZLIB -#ifndef _MSC_VER #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif -#endif #ifndef _LFS64_LARGEFILE #define _LFS64_LARGEFILE @@ -577,10 +575,6 @@ static boolean ResFindSignature(FILE* handle, const char endPat[], UINT32 startp return false; } - -#if defined(_MSC_VER) -#pragma pack(1) -#endif typedef struct zend_s { char signature[4]; @@ -628,9 +622,6 @@ typedef struct zlentry_s UINT16 namelen; UINT16 xtralen; } ATTRPACK zlentry_t; -#if defined(_MSC_VER) -#pragma pack() -#endif /** Create a lumpinfo_t array for a PKZip file. */ diff --git a/src/w_wad.h b/src/w_wad.h index e0faedab5..3e0b9e0dc 100644 --- a/src/w_wad.h +++ b/src/w_wad.h @@ -32,19 +32,12 @@ extern "C" { // a raw entry of the wad directory // NOTE: This sits here and not in w_wad.c because p_setup.c makes use of it to load map WADs inside PK3s. -#if defined(_MSC_VER) -#pragma pack(1) -#endif typedef struct { UINT32 filepos; // file offset of the resource UINT32 size; // size of the resource char name[8]; // name of the resource } ATTRPACK filelump_t; -#if defined(_MSC_VER) -#pragma pack() -#endif - // ============================================================== // WAD FILE STRUCTURE DEFINITIONS diff --git a/src/win32/win_dbg.c b/src/win32/win_dbg.c index 4230e962f..abcace792 100644 --- a/src/win32/win_dbg.c +++ b/src/win32/win_dbg.c @@ -602,24 +602,10 @@ LONG WINAPI RecordExceptionInfo(PEXCEPTION_POINTERS data/*, LPCSTR Message, LPST #ifdef _X86_ #ifdef __GNUC__ __asm__("movl %%fs : 4, %%eax": "=a"(pStackTop)); -#elif defined (_MSC_VER) - __asm - { - mov eax, fs:[4] - mov pStackTop, eax - } #endif #elif defined (_AMD64_) #ifdef __GNUC__ __asm__("mov %%gs : 4, %%rax": "=a"(pStackTop)); -#elif defined (_MSC_VER) -/* - __asm - { - mov rax, fs:[4] - mov pStackTop, rax - } -*/ #endif #endif if (pStackTop == NULL) From e524d3edabc7d2f26aa0e939dd27d14ac7187199 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 00:25:15 +0100 Subject: [PATCH 40/59] remove erronous win_main.h include this doesent exist since ages anymore lel --- src/win32/win_dbg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/win32/win_dbg.c b/src/win32/win_dbg.c index abcace792..6edf260b3 100644 --- a/src/win32/win_dbg.c +++ b/src/win32/win_dbg.c @@ -20,9 +20,7 @@ #include -#ifndef HAVE_SDL -#include "win_main.h" -#endif + #include "../doomdef.h" //just for VERSION #include "win_dbg.h" #include "../m_argv.h" //print the parameter in the log From 75cfd382f62a851c049bbc19bd5dd8b786f274a2 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 00:29:05 +0100 Subject: [PATCH 41/59] fix compile without HAVE_THREADS we dont have gammacorrectedpalette --- src/r_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_draw.cpp b/src/r_draw.cpp index 7064424f3..c8a09745a 100644 --- a/src/r_draw.cpp +++ b/src/r_draw.cpp @@ -283,7 +283,7 @@ void R_GenerateBlendTables(void) I_spawn_thread("blend-tables", R_GenerateBlendTables_Thread, state); #else - struct GenerateBlendTables_State state = {pLocalPalette, pGammaCorrectedPalette}; + struct GenerateBlendTables_State state = {pLocalPalette}; R_GenerateBlendTables_Core(&state); #endif } From 7e8f6d759ca396c93676c8fb3ad822b3e6768af6 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 00:29:32 +0100 Subject: [PATCH 42/59] add missing dummy makefile dont think this compiles though --- src/Makefile.d/dummy.mk | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/Makefile.d/dummy.mk diff --git a/src/Makefile.d/dummy.mk b/src/Makefile.d/dummy.mk new file mode 100644 index 000000000..6908de84a --- /dev/null +++ b/src/Makefile.d/dummy.mk @@ -0,0 +1,5 @@ +makedir:=$(makedir)/Dummy + +sources+=$(call List,dummy/Sourcefile) + +NOHW=1 From 3269b62225a55f7ae280355826dc07b1cc1966da Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sun, 30 Mar 2025 11:42:17 -0400 Subject: [PATCH 43/59] curl: add code to check the output of curl_easy_*() --- src/d_netfil.c | 76 ++++++++++++++++++++++++++++++++++++------------ src/http-mserv.c | 53 +++++++++++++++++++++------------ 2 files changed, 93 insertions(+), 36 deletions(-) diff --git a/src/d_netfil.c b/src/d_netfil.c index 6ed52d7d6..20af19591 100644 --- a/src/d_netfil.c +++ b/src/d_netfil.c @@ -120,6 +120,7 @@ file_download_t filedownload; #ifdef HAVE_CURL static CURL *http_handle; +static char curl_errbuf[CURL_ERROR_SIZE]; static CURLM *multi_handle; static UINT32 curl_dlnow; static UINT32 curl_dltotal; @@ -1309,6 +1310,7 @@ static int curlprogress_callback(void *clientp, double dltotal, double dlnow, do void CURLPrepareFile(const char* url, int dfilenum) { HTTP_login *login; + CURLcode cc; #ifdef PARANOIA if (M_CheckParm("-nodownload")) @@ -1317,14 +1319,33 @@ void CURLPrepareFile(const char* url, int dfilenum) if (!multi_handle) { - curl_global_init(CURL_GLOBAL_ALL); - multi_handle = curl_multi_init(); + cc = curl_global_init(CURL_GLOBAL_ALL); + if (cc < 0) + { + I_OutputMsg("libcurl: curl_global_init() returned %d\n", cc); + } + else + { + multi_handle = curl_multi_init(); + } + if (!multi_handle) + { + I_OutputMsg("libcurl: curl_multi_init() failed\n"); + curl_global_cleanup(); + return; + } } http_handle = curl_easy_init(); - if (http_handle && multi_handle) + if (http_handle) { + CURLMcode mc; + + cc = curl_easy_setopt(http_handle, CURLOPT_ERRORBUFFER, curl_errbuf); + if (cc != CURLE_OK) I_OutputMsg("libcurl: CURLOPT_ERRORBUFFER failed\n"); + curl_errbuf[0] = 0x00; + I_mkdir(downloaddir, 0755); curl_curfile = &fileneeded[dfilenum]; @@ -1334,31 +1355,38 @@ void CURLPrepareFile(const char* url, int dfilenum) curl_origfilesize = curl_curfile->currentsize; curl_origtotalfilesize = curl_curfile->totalsize; - curl_easy_setopt(http_handle, CURLOPT_URL, va("%s/%s", url, curl_realname)); + cc = curl_easy_setopt(http_handle, CURLOPT_URL, va("%s/%s", url, curl_realname)); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); // Only allow HTTP and HTTPS #if (LIBCURL_VERSION_MAJOR <= 7) && (LIBCURL_VERSION_MINOR < 85) - curl_easy_setopt(http_handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP|CURLPROTO_HTTPS); + cc = curl_easy_setopt(http_handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP|CURLPROTO_HTTPS); #else - curl_easy_setopt(http_handle, CURLOPT_PROTOCOLS_STR, "http,https"); + cc = curl_easy_setopt(http_handle, CURLOPT_PROTOCOLS_STR, "http,https"); #endif + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); - curl_easy_setopt(http_handle, CURLOPT_USERAGENT, va("SRB2Kart/v%d.%d", VERSION, SUBVERSION)); // Set user agent as some servers won't accept invalid user agents. + // Set user agent, as some servers won't accept invalid user agents. + cc = curl_easy_setopt(http_handle, CURLOPT_USERAGENT, va("SRB2Kart/v%d.%d", VERSION, SUBVERSION)); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); // Authenticate if the user so wishes login = CURLGetLogin(url, NULL); if (login) { - curl_easy_setopt(http_handle, CURLOPT_USERPWD, login->auth); + cc = curl_easy_setopt(http_handle, CURLOPT_USERPWD, login->auth); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); } // Follow a redirect request, if sent by the server. - curl_easy_setopt(http_handle, CURLOPT_FOLLOWLOCATION, 1L); + cc = curl_easy_setopt(http_handle, CURLOPT_FOLLOWLOCATION, 1L); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); - curl_easy_setopt(http_handle, CURLOPT_FAILONERROR, 1L); + cc = curl_easy_setopt(http_handle, CURLOPT_FAILONERROR, 1L); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); - CONS_Printf("Downloading %s from %s\n", curl_realname, url); + CONS_Printf("Downloading addon \"%s\" from %s\n", curl_realname, url); strcatbf(curl_curfile->filename, downloaddir, "/"); curl_curfile->file = fopen(curl_curfile->filename, "wb"); @@ -1377,19 +1405,31 @@ void CURLPrepareFile(const char* url, int dfilenum) return; } - curl_easy_setopt(http_handle, CURLOPT_WRITEDATA, curl_curfile->file); - curl_easy_setopt(http_handle, CURLOPT_WRITEFUNCTION, curlwrite_data); - curl_easy_setopt(http_handle, CURLOPT_NOPROGRESS, 0L); + cc = curl_easy_setopt(http_handle, CURLOPT_WRITEDATA, curl_curfile->file); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); + + cc = curl_easy_setopt(http_handle, CURLOPT_WRITEFUNCTION, curlwrite_data); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); + + cc = curl_easy_setopt(http_handle, CURLOPT_NOPROGRESS, 0L); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); + #ifdef XFERINFOFUNCTION - curl_easy_setopt(http_handle, CURLOPT_XFERINFOFUNCTION, curlprogress_callbackx); + cc = curl_easy_setopt(http_handle, CURLOPT_XFERINFOFUNCTION, curlprogress_callbackx); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); #else - curl_easy_setopt(http_handle, CURLOPT_PROGRESSFUNCTION, curlprogress_callback); + cc = curl_easy_setopt(http_handle, CURLOPT_PROGRESSFUNCTION, curlprogress_callback); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", curl_errbuf); #endif curl_curfile->status = FS_DOWNLOADING; - curl_multi_add_handle(multi_handle, http_handle); - curl_multi_perform(multi_handle, &curl_runninghandles); + mc = curl_multi_add_handle(multi_handle, http_handle); + if (mc != CURLM_OK) I_OutputMsg("libcurl: %s\n", curl_multi_strerror(mc)); + + mc = curl_multi_perform(multi_handle, &curl_runninghandles); + if (mc != CURLM_OK) I_OutputMsg("libcurl: %s\n", curl_multi_strerror(mc)); + curl_starttime = time(NULL); filedownload.current = dfilenum; diff --git a/src/http-mserv.c b/src/http-mserv.c index b79c66946..61d09bfb5 100644 --- a/src/http-mserv.c +++ b/src/http-mserv.c @@ -71,7 +71,8 @@ struct HMS_buffer CURL *curl; char *buffer; int needle; - int end; + int end; + char *errbuf; }; static void @@ -143,6 +144,7 @@ HMS_connect (const char *format, ...) size_t seek; size_t token_length; struct HMS_buffer *buffer; + CURLcode cc; if (! hms_started) { @@ -186,9 +188,7 @@ HMS_connect (const char *format, ...) seek = strlen(hms_api) + 1;/* + '/' */ va_start (ap, format); - url = malloc(seek + vsnprintf(0, 0, format, ap) + - sizeof HMS_QUERY_VERSION - 1 + - token_length + 1); + url = malloc(seek + vsnprintf(0, 0, format, ap) + sizeof HMS_QUERY_VERSION - 1 + token_length + 1); va_end (ap); sprintf(url, "%s/", hms_api); @@ -214,29 +214,48 @@ HMS_connect (const char *format, ...) buffer->end = DEFAULT_BUFFER_SIZE; buffer->buffer = malloc(buffer->end); buffer->needle = 0; + buffer->errbuf = malloc(CURL_ERROR_SIZE); + buffer->errbuf[0] = 0x00; + + cc = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, buffer->errbuf); if (cv_masterserver_debug.value == 2) { - curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); - curl_easy_setopt(curl, CURLOPT_STDERR, logstream); + cc = curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); + + cc = curl_easy_setopt(curl, CURLOPT_STDERR, logstream); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); } if (M_CheckParm("-bindaddr") && M_IsNextParm()) { - curl_easy_setopt(curl, CURLOPT_INTERFACE, M_GetNextParm()); + cc = curl_easy_setopt(curl, CURLOPT_INTERFACE, M_GetNextParm()); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); } - curl_easy_setopt(curl, CURLOPT_URL, url); - curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); + cc = curl_easy_setopt(curl, CURLOPT_URL, url); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); + + cc = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); #ifdef HAVE_IPV6 if (!M_CheckParm("-ipv6")) #endif - curl_easy_setopt(curl, CURLOPT_IPRESOLVE, (long)CURL_IPRESOLVE_V4); + { + cc = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, (long)CURL_IPRESOLVE_V4); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); + } - curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long)cv_masterserver_timeout.value); - curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read); - curl_easy_setopt(curl, CURLOPT_WRITEDATA, buffer); + cc = curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long)cv_masterserver_timeout.value); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); + + cc = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); + + cc = curl_easy_setopt(curl, CURLOPT_WRITEDATA, buffer); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); curl_free(quack_token); free(url); @@ -257,16 +276,14 @@ HMS_do (struct HMS_buffer *buffer) if (cc != CURLE_OK) { Contact_error(); - Blame( - "From curl_easy_perform: %s\n", - curl_easy_strerror(cc) - ); + Blame("From curl_easy_perform: %s\n", buffer->errbuf); return 0; } buffer->buffer[buffer->needle] = '\0'; - curl_easy_getinfo(buffer->curl, CURLINFO_RESPONSE_CODE, &status); + cc = curl_easy_getinfo(buffer->curl, CURLINFO_RESPONSE_CODE, &status); + if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); if (status != 200) { From 4613ec48b33416002e4cbd818a7eb65e02fe6442 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sun, 30 Mar 2025 11:43:10 -0400 Subject: [PATCH 44/59] curl: add code to check the output of curl_multi_*() --- src/d_netfil.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/d_netfil.c b/src/d_netfil.c index 20af19591..112c9e9c3 100644 --- a/src/d_netfil.c +++ b/src/d_netfil.c @@ -1471,14 +1471,15 @@ void CURLGetFile(void) { if (curl_runninghandles) { - curl_multi_perform(multi_handle, &curl_runninghandles); + mc = curl_multi_perform(multi_handle, &curl_runninghandles); + if (mc != CURLM_OK) I_OutputMsg("libcurl: %s\n", curl_multi_strerror(mc)); /* wait for activity, timeout or "nothing" */ mc = curl_multi_wait(multi_handle, NULL, 0, 1000, NULL); if (mc != CURLM_OK) { - CONS_Alert(CONS_WARNING, "curl_multi_wait() failed, code %d.\n", mc); + CONS_Alert(CONS_WARNING, "curl_multi_wait() failed: %s.\n", curl_multi_strerror(mc)); continue; } @@ -1536,7 +1537,8 @@ void CURLGetFile(void) Z_Free(filename); curl_curfile->file = NULL; filedownload.remaining--; - curl_multi_remove_handle(multi_handle, e); + mc = curl_multi_remove_handle(multi_handle, e); + if (mc != CURLM_OK) I_OutputMsg("libcurl: %s\n", curl_multi_strerror(mc)); curl_easy_cleanup(e); if (!filedownload.remaining) @@ -1547,7 +1549,8 @@ void CURLGetFile(void) if (!filedownload.remaining || !filedownload.http_running) { - curl_multi_cleanup(multi_handle); + mc = curl_multi_cleanup(multi_handle); + if (mc != CURLM_OK) I_OutputMsg("libcurl: %s\n", curl_multi_strerror(mc)); curl_global_cleanup(); multi_handle = NULL; } From 2c73593fcdf97352d715817b59c577cfae212b2c Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 03:43:28 +0200 Subject: [PATCH 45/59] ensure "rawconv" is nulled before reuse otherwise there might be some leftovers from earlier calls --- src/r_patchrotation.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/r_patchrotation.c b/src/r_patchrotation.c index bea963342..15a54d88e 100644 --- a/src/r_patchrotation.c +++ b/src/r_patchrotation.c @@ -241,6 +241,10 @@ void RotatedPatch_DoRotation(rotsprite_t *rotsprite, patch_t *patch, INT32 angle rawconv = Z_Calloc(size * sizeof(UINT16), PU_STATIC, NULL); conv_capacity = size; } + else + { + memset(rawconv, 0, conv_capacity * sizeof(UINT16)); + } src = &rawdst[(miny * newwidth) + minx]; dest = rawconv; From f48fdda3f319539fd6550ffde25a8bf81030fbd0 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 04:43:31 +0200 Subject: [PATCH 46/59] fixup STATIC_OPENGL probably should handle the fbo stuff a bit differently not sure tho in which context STATIC_OPENGL may be ever used though --- src/Makefile.d/features.mk | 2 + src/hardware/r_opengl/r_opengl.c | 127 ++++++++++++++++--------------- 2 files changed, 66 insertions(+), 63 deletions(-) diff --git a/src/Makefile.d/features.mk b/src/Makefile.d/features.mk index d79a3816b..1b0bb5eca 100644 --- a/src/Makefile.d/features.mk +++ b/src/Makefile.d/features.mk @@ -18,8 +18,10 @@ ifndef NOHW opts+=-DHWRENDER ifndef NOSCREENFBO +ifndef STATIC_OPENGL opts+=-DUSE_FBO_OGL endif +endif sources+=$(call List,hardware/Sourcefile) endif diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index d013dc873..92efc19d3 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -145,10 +145,9 @@ enum typedef struct { - GLuint fboobj; - GLuint tex; - GLuint rboobj; - + GLuint fboobj; // actual Framebuffer Object + GLuint rboobj; // Renderbuffer Object + GLuint tex; // Framebuffer texture boolean init; } fboobj_t; @@ -295,7 +294,6 @@ static void GL_MSG_Error(const char *format, ...) /* 1.0 functions */ /* Miscellaneous */ #define pglClearColor glClearColor -//glClear #define pglColorMask glColorMask #define pglAlphaFunc glAlphaFunc #define pglBlendFunc glBlendFunc @@ -305,6 +303,7 @@ static void GL_MSG_Error(const char *format, ...) #define pglEnable glEnable #define pglDisable glDisable #define pglGetFloatv glGetFloatv +#define pglPolygonMode glPolygonMode /* Depth Buffer */ #define pglClearDepth glClearDepth @@ -318,6 +317,7 @@ static void GL_MSG_Error(const char *format, ...) #define pglPushMatrix glPushMatrix #define pglPopMatrix glPopMatrix #define pglLoadIdentity glLoadIdentity +#define pglMultMatrixf glMultMatrixf #define pglMultMatrixd glMultMatrixd #define pglRotatef glRotatef #define pglScalef glScalef @@ -347,8 +347,8 @@ static void GL_MSG_Error(const char *format, ...) /* Texture mapping */ #define pglTexEnvi glTexEnvi #define pglTexParameteri glTexParameteri +#define pglTexImage1D glTexImage1D #define pglTexImage2D glTexImage2D -#define pglTexImage3D glTexImage3D #define pglTexSubImage2D glTexSubImage2D /* 1.1 functions */ @@ -595,77 +595,77 @@ static PFNglDebugMessageCallback pglDebugMessageCallback; boolean SetupGLfunc(void) { #ifndef STATIC_OPENGL -#define GETOPENGLFUNC(func, proc) \ - func = GetGLFunc(#proc); \ - if (!func) \ +#define GetGLfunc(func) \ + p##func = GetGLFunc(#func); \ + if (!p##func) \ { \ - GL_MSG_Warning("failed to get OpenGL function: %s", #proc); \ + GL_MSG_Warning("failed to get OpenGL function: %s", #func); \ } \ - GETOPENGLFUNC(pglClearColor, glClearColor) + GetGLfunc(glClearColor) - GETOPENGLFUNC(pglClear, glClear) - GETOPENGLFUNC(pglColorMask, glColorMask) - GETOPENGLFUNC(pglAlphaFunc, glAlphaFunc) - GETOPENGLFUNC(pglBlendFunc, glBlendFunc) - GETOPENGLFUNC(pglCullFace, glCullFace) - GETOPENGLFUNC(pglPolygonOffset, glPolygonOffset) - GETOPENGLFUNC(pglScissor, glScissor) - GETOPENGLFUNC(pglEnable, glEnable) - GETOPENGLFUNC(pglDisable, glDisable) - GETOPENGLFUNC(pglGetFloatv, glGetFloatv) - GETOPENGLFUNC(pglGetIntegerv, glGetIntegerv) - GETOPENGLFUNC(pglGetString, glGetString) - GETOPENGLFUNC(pglPolygonMode, glPolygonMode) + GetGLfunc(glClear) + GetGLfunc(glColorMask) + GetGLfunc(glAlphaFunc) + GetGLfunc(glBlendFunc) + GetGLfunc(glCullFace) + GetGLfunc(glPolygonOffset) + GetGLfunc(glScissor) + GetGLfunc(glEnable) + GetGLfunc(glDisable) + GetGLfunc(glGetFloatv) + GetGLfunc(glGetIntegerv) + GetGLfunc(glGetString) + GetGLfunc(glPolygonMode) - GETOPENGLFUNC(pglClearDepth, glClearDepth) - GETOPENGLFUNC(pglDepthFunc, glDepthFunc) - GETOPENGLFUNC(pglDepthMask, glDepthMask) - GETOPENGLFUNC(pglDepthRange, glDepthRange) + GetGLfunc(glClearDepth) + GetGLfunc(glDepthFunc) + GetGLfunc(glDepthMask) + GetGLfunc(glDepthRange) - GETOPENGLFUNC(pglMatrixMode, glMatrixMode) - GETOPENGLFUNC(pglViewport, glViewport) - GETOPENGLFUNC(pglPushMatrix, glPushMatrix) - GETOPENGLFUNC(pglPopMatrix, glPopMatrix) - GETOPENGLFUNC(pglLoadIdentity, glLoadIdentity) - GETOPENGLFUNC(pglMultMatrixf, glMultMatrixf) - GETOPENGLFUNC(pglRotatef, glRotatef) - GETOPENGLFUNC(pglScalef, glScalef) - GETOPENGLFUNC(pglTranslatef, glTranslatef) + GetGLfunc(glMatrixMode) + GetGLfunc(glViewport) + GetGLfunc(glPushMatrix) + GetGLfunc(glPopMatrix) + GetGLfunc(glLoadIdentity) + GetGLfunc(glMultMatrixf) + GetGLfunc(glRotatef) + GetGLfunc(glScalef) + GetGLfunc(glTranslatef) - GETOPENGLFUNC(pglColor4ubv, glColor4ubv) + GetGLfunc(glColor4ubv) - GETOPENGLFUNC(pglVertexPointer, glVertexPointer) - GETOPENGLFUNC(pglNormalPointer, glNormalPointer) - GETOPENGLFUNC(pglTexCoordPointer, glTexCoordPointer) - GETOPENGLFUNC(pglDrawArrays, glDrawArrays) - GETOPENGLFUNC(pglDrawElements, glDrawElements) - GETOPENGLFUNC(pglEnableClientState, glEnableClientState) - GETOPENGLFUNC(pglDisableClientState, glDisableClientState) + GetGLfunc(glVertexPointer) + GetGLfunc(glNormalPointer) + GetGLfunc(glTexCoordPointer) + GetGLfunc(glDrawArrays) + GetGLfunc(glDrawElements) + GetGLfunc(glEnableClientState) + GetGLfunc(glDisableClientState) - GETOPENGLFUNC(pglShadeModel, glShadeModel) - GETOPENGLFUNC(pglLightfv, glLightfv) - GETOPENGLFUNC(pglLightModelfv, glLightModelfv) - GETOPENGLFUNC(pglMaterialfv, glMaterialfv) - GETOPENGLFUNC(pglMateriali, glMateriali) + GetGLfunc(glShadeModel) + GetGLfunc(glLightfv) + GetGLfunc(glLightModelfv) + GetGLfunc(glMaterialfv) + GetGLfunc(glMateriali) - GETOPENGLFUNC(pglPixelStorei, glPixelStorei) - GETOPENGLFUNC(pglReadPixels, glReadPixels) + GetGLfunc(glPixelStorei) + GetGLfunc(glReadPixels) - GETOPENGLFUNC(pglTexEnvi, glTexEnvi) - GETOPENGLFUNC(pglTexParameteri, glTexParameteri) - GETOPENGLFUNC(pglTexImage1D, glTexImage1D) - GETOPENGLFUNC(pglTexImage2D, glTexImage2D) - GETOPENGLFUNC(pglTexSubImage2D, glTexSubImage2D) + GetGLfunc(glTexEnvi) + GetGLfunc(glTexParameteri) + GetGLfunc(glTexImage1D) + GetGLfunc(glTexImage2D) + GetGLfunc(glTexSubImage2D) - GETOPENGLFUNC(pglGenTextures, glGenTextures) - GETOPENGLFUNC(pglDeleteTextures, glDeleteTextures) - GETOPENGLFUNC(pglBindTexture, glBindTexture) + GetGLfunc(glGenTextures) + GetGLfunc(glDeleteTextures) + GetGLfunc(glBindTexture) - GETOPENGLFUNC(pglCopyTexImage2D, glCopyTexImage2D) - GETOPENGLFUNC(pglCopyTexSubImage2D, glCopyTexSubImage2D) + GetGLfunc(glCopyTexImage2D) + GetGLfunc(glCopyTexSubImage2D) -#undef GETOPENGLFUNC +#undef GetGLfunc #endif return true; } @@ -838,6 +838,7 @@ void SetupGLFunc4(void) /* 1.2 funcs */ GetGLfunc(glTexImage3D); + /* 1.3 funcs */ GetGLfunc(glActiveTexture); GetGLfunc(glMultiTexCoord2f); From 76560f4179b5596d95fb7d95a3b88b7d38f3221d Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 04:59:06 +0200 Subject: [PATCH 47/59] enable fbo prints for ogllog file --- src/hardware/r_opengl/r_opengl.c | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 92efc19d3..811f61c40 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -912,6 +912,7 @@ void SetupGLFunc4(void) pglRenderbufferStorage && pglFramebufferRenderbuffer) { supportFBO = fbocheck; + GL_DBG_Printf("\nFBO: ARB extensions found\n"); } } else if (fbocheck == FBO_EXT || fbocheck == FBO_EXT_STENCIL) // uh oh only support for EXT prefix fbos... @@ -949,25 +950,16 @@ void SetupGLFunc4(void) pglFramebufferRenderbuffer = pglFramebufferRenderbufferEXT; supportFBO = fbocheck; + + if (fbocheck == FBO_EXT) + GL_DBG_Printf("\nFBO: EXT extensions found, no stencil\n"); + else if (fbocheck == FBO_EXT_STENCIL) + GL_DBG_Printf("\nFBO: EXT extensions with packed depth-stencil\n"); } } } - - /*switch (supportFBO) - { - case FBO_ARB: - GL_DBG_Printf("\nFBO: ARB extensions found\n"); - break; - case FBO_EXT: - GL_DBG_Printf("\nFBO: EXT extensions found, no stencil\n"); - break; - case FBO_EXT_STENCIL: - GL_DBG_Printf("\nFBO: EXT extensions with packed depth-stencil\n"); - break; - case FBO_NONE: - GL_DBG_Printf("\nFBO: No framebuffer object support\n"); - break; - }*/ + else + GL_DBG_Printf("\nFBO: No framebuffer object support\n"); #endif #undef GetGLfunc } From 9b26f1fdcbe4dc38d8b26d0b982398f0e854cbc6 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 16:04:17 +0200 Subject: [PATCH 48/59] make the game fail loud if some critical gl function cant be loaded also add safety to the portal stencil stuff, if that fails. everything gl2.0 and newer is not critical and will just prevent some effects from working so that does not need to error loudly TODO: perhaps actually port renderer switching so this instead will fallback to software if smth fails this late during gl initalization --- src/hardware/hw_main.cpp | 2 +- src/hardware/r_opengl/r_opengl.c | 104 +++++++++++++++++-------------- src/hardware/r_opengl/r_opengl.h | 2 + src/sdl/ogl_sdl.c | 7 +-- 4 files changed, 63 insertions(+), 52 deletions(-) diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 8dec512dc..d634ed5d9 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -2203,7 +2203,7 @@ void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom static inline boolean HWR_UsePortals(void) { - return cv_glportals.value && gl_maphasportals; + return supportstencil && cv_glportals.value && gl_maphasportals; } // From PrBoom: diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 811f61c40..5bd9268ad 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -35,13 +35,10 @@ #include "r_opengl.h" #include "r_vbo.h" -#include "../hw_batching.h" #include "../hw_clip.h" #include "../hw_main.h" #include "../hw_shaders.h" -#include "../../f_finale.h" -#include "../../r_local.h" // For rendertimefrac, used for the leveltime shader uniform #include "../../i_video.h" #ifdef GLDEBUGMESSAGE @@ -167,6 +164,9 @@ GL_DEPTH_STENCIL_ATTACHMENT GL_DEPTH_ATTACHMENT_EXT static void GL_Framebuffer_DeleteAttachments(void); #endif +// needed for glportals +boolean supportstencil = false; + // Sryder: NextTexAvail is broken for these because palette changes or changes to the texture filter or antialiasing // flush all of the stored textures, leaving them unavailable at times such as between levels // These need to start at 0 and be set to their number, and be reset to 0 when deleted so that Intel GPUs @@ -244,7 +244,6 @@ FUNCPRINTF void GL_DBG_Printf(const char *format, ...) // Returns : // -----------------+ - static void GL_MSG_Warning(const char *format, ...) { char str[4096] = ""; @@ -600,6 +599,7 @@ boolean SetupGLfunc(void) if (!p##func) \ { \ GL_MSG_Warning("failed to get OpenGL function: %s", #func); \ + return false; \ } \ GetGLfunc(glClearColor) @@ -730,8 +730,6 @@ static INT32 gl_enable_screen_textures = 2; static GLint gl_portal_stencil_level = 0; -static INT32 gl_portal_mode = HWD_PORTAL_NORMAL; - // 13062019 typedef enum { @@ -827,13 +825,17 @@ static int GLFramebuffer_CheckExt(void) } #endif + void SetupGLFunc4(void) { +// critical functions for operation #define GetGLfunc(func) \ p##func = GetGLFunc(#func); \ if (!p##func) \ { \ - GL_MSG_Warning("failed to get OpenGL function: %s", #func); \ + I_Error("Failed to get critical OpenGL function: %s. Possible reasons include:\n" \ + "- GPU vendor has dropped OpenGL support on your GPU and OS. (Old GPU?)\n" \ + "- GPU drivers are missing or broken. You may need to update your drivers.", #func); \ } \ /* 1.2 funcs */ @@ -851,6 +853,15 @@ void SetupGLFunc4(void) GetGLfunc(glBufferData); GetGLfunc(glDeleteBuffers); GetGLfunc(glColorPointer); +#undef GetGLfunc + +// noncritical functions for operation +#define GetGLfunc(func) \ + p##func = GetGLFunc(#func); \ + if (!p##func) \ + { \ + GL_MSG_Warning("failed to get OpenGL function: %s", #func); \ + } \ /* 2.0 funcs */ GetGLfunc(glBlendEquation); @@ -885,7 +896,23 @@ void SetupGLFunc4(void) GetGLfunc(glDebugMessageCallback); #endif + if (pglStencilFuncSeparate && pglStencilOpSeparate) + { + supportstencil = true; + } +#undef GetGLfunc + #ifdef USE_FBO_OGL +#define GetGLfunc(func) \ + p##func = GetGLFunc(#func); \ + if (!p##func) \ + { \ + GL_MSG_Warning("failed to get OpenGL FBO function: %s\n", #func); \ + GL_DBG_Printf("\nFBO: No framebuffer object support\n"); \ + supportFBO = false; \ + return; \ + } \ + const int fbocheck = GLFramebuffer_CheckExt(); if (fbocheck != FBO_NONE) @@ -903,17 +930,7 @@ void SetupGLFunc4(void) GetGLfunc(glRenderbufferStorage); GetGLfunc(glFramebufferRenderbuffer); - // check if ALL functions are availible - // what a mouthful - if (pglGenFramebuffers && pglBindFramebuffer && - pglDeleteFramebuffers && pglFramebufferTexture2D && - pglCheckFramebufferStatus && pglGenRenderbuffers && - pglBindRenderbuffer && pglDeleteRenderbuffers && - pglRenderbufferStorage && pglFramebufferRenderbuffer) - { - supportFBO = fbocheck; - GL_DBG_Printf("\nFBO: ARB extensions found\n"); - } + GL_DBG_Printf("\nFBO: ARB extensions found\n"); } else if (fbocheck == FBO_EXT || fbocheck == FBO_EXT_STENCIL) // uh oh only support for EXT prefix fbos... { @@ -928,40 +945,31 @@ void SetupGLFunc4(void) GetGLfunc(glRenderbufferStorageEXT); GetGLfunc(glFramebufferRenderbufferEXT); - // check if ALL functions are availible - // what a mouthful - if (pglGenFramebuffersEXT && pglBindFramebufferEXT && - pglDeleteFramebuffersEXT && pglFramebufferTexture2DEXT && - pglCheckFramebufferStatusEXT && pglGenRenderbuffersEXT && - pglBindRenderbufferEXT && pglDeleteRenderbuffersEXT && - pglRenderbufferStorageEXT && pglFramebufferRenderbufferEXT) - { - // remapping galore huehue - // do this so we dont have to dupe half our code - pglGenFramebuffers = pglGenFramebuffersEXT; - pglBindFramebuffer = pglBindFramebufferEXT; - pglDeleteFramebuffers = pglDeleteFramebuffersEXT; - pglFramebufferTexture2D = pglFramebufferTexture2DEXT; - pglCheckFramebufferStatus = pglCheckFramebufferStatusEXT; - pglGenRenderbuffers = pglGenRenderbuffersEXT; - pglBindRenderbuffer = pglBindRenderbufferEXT; - pglDeleteRenderbuffers = pglDeleteRenderbuffersEXT; - pglRenderbufferStorage = pglRenderbufferStorageEXT; - pglFramebufferRenderbuffer = pglFramebufferRenderbufferEXT; + // remapping galore huehue + // do this so we dont have to dupe half our code + pglGenFramebuffers = pglGenFramebuffersEXT; + pglBindFramebuffer = pglBindFramebufferEXT; + pglDeleteFramebuffers = pglDeleteFramebuffersEXT; + pglFramebufferTexture2D = pglFramebufferTexture2DEXT; + pglCheckFramebufferStatus = pglCheckFramebufferStatusEXT; + pglGenRenderbuffers = pglGenRenderbuffersEXT; + pglBindRenderbuffer = pglBindRenderbufferEXT; + pglDeleteRenderbuffers = pglDeleteRenderbuffersEXT; + pglRenderbufferStorage = pglRenderbufferStorageEXT; + pglFramebufferRenderbuffer = pglFramebufferRenderbufferEXT; - supportFBO = fbocheck; - - if (fbocheck == FBO_EXT) - GL_DBG_Printf("\nFBO: EXT extensions found, no stencil\n"); - else if (fbocheck == FBO_EXT_STENCIL) - GL_DBG_Printf("\nFBO: EXT extensions with packed depth-stencil\n"); - } + if (fbocheck == FBO_EXT) + GL_DBG_Printf("\nFBO: EXT extensions found, no stencil\n"); + else if (fbocheck == FBO_EXT_STENCIL) + GL_DBG_Printf("\nFBO: EXT extensions with packed depth-stencil\n"); } + + supportFBO = fbocheck; } else GL_DBG_Printf("\nFBO: No framebuffer object support\n"); -#endif #undef GetGLfunc +#endif } boolean GL_InitShaders(void) @@ -2633,7 +2641,9 @@ void GL_SetSpecialState(hwdspecialstate_t IdState, INT32 Value) break; case HWD_SET_PORTAL_MODE: - gl_portal_mode = Value; + if (!supportstencil) + break; + switch (Value) { case HWD_PORTAL_NORMAL: diff --git a/src/hardware/r_opengl/r_opengl.h b/src/hardware/r_opengl/r_opengl.h index 397e8702b..4cf2b2e46 100644 --- a/src/hardware/r_opengl/r_opengl.h +++ b/src/hardware/r_opengl/r_opengl.h @@ -64,6 +64,8 @@ extern FILE *gllogstream; FUNCPRINTF void GL_DBG_Printf(const char *format, ...); +extern boolean supportstencil; + void *GetGLFunc(const char *proc); boolean SetupGLfunc(void); void SetupGLFunc4(void); diff --git a/src/sdl/ogl_sdl.c b/src/sdl/ogl_sdl.c index 0ee886d1e..4465c6094 100644 --- a/src/sdl/ogl_sdl.c +++ b/src/sdl/ogl_sdl.c @@ -98,11 +98,10 @@ boolean VID_LoadOGLAPI(void) if (SDL_GL_LoadLibrary(OGLLibname) != 0) { - CONS_Alert(CONS_ERROR, "Could not load OpenGL Library: %s\n" - "Falling back to Software mode.\n", SDL_GetError()); + CONS_Alert(CONS_ERROR, "Could not load OpenGL Library: %s\n" "Falling back to Software mode.\n", SDL_GetError()); if (!M_CheckParm("-OGLlib")) CONS_Printf("If you know what is the OpenGL library's name, use -OGLlib\n"); - return 0; + return false; } #endif return true; @@ -206,7 +205,7 @@ boolean OglSdlSurface(INT32 w, INT32 h) char videodriver[4] = {'S','D','L',0}; if (supportFBO && strstr((const char*)gl_renderer, "NVIDIA") && (*strncpy(videodriver, SDL_GetCurrentVideoDriver(), sizeof(videodriver)-1) != '\0') - && (strncasecmp("x11",videodriver,4) == 0)) + && (strncasecmp("x11", videodriver, 4) == 0)) xwaylandcrap = true; #endif #endif From 3c8bdd78620764b8134ca3fa79a336eb609cf29b Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sat, 29 Mar 2025 14:00:52 -0400 Subject: [PATCH 49/59] SDL2: use SDL_GetSystemRAM() to get total RAM --- src/sdl/i_system.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index bd3735619..3045380d4 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -2687,7 +2687,13 @@ size_t I_GetFreeMem(size_t *total) #else // Guess 48 MB. if (total) + { +#if SDL_VERSION_ATLEAST(2,0,1) + *total = SDL_GetSystemRAM(); +#else *total = 48<<20; +#endif + } return 48<<20; #endif } From 4a5449905b28f34a13250c6bfc624630caff59f2 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 21:33:56 +0200 Subject: [PATCH 50/59] cleanup broken/old stuff TODO: fix cmake --- .gitlab-ci.yml | 436 ---- .travis.yml | 712 ------ Doxyfile | 269 --- SRB2.cbp | 2136 ------------------ Srb2.dev | 3033 -------------------------- appveyor.yml | 133 -- debian-template/README.Debian | 70 - debian-template/README.source | 46 - debian-template/changelog | 5 - debian-template/compat | 1 - debian-template/control | 51 - debian-template/copyright | 27 - debian-template/docs | 4 - debian-template/rules | 172 -- debian-template/source/format | 1 - debian-template/source/options | 11 - debian-template/srb2.desktop | 10 - debian_template.sh | 166 -- deployer/appveyor/deployer.bat | 195 -- deployer/travis/deployer.sh | 157 -- deployer/travis/deployer_build.sh | 190 -- deployer/travis/deployer_defaults.sh | 105 - deployer/travis/deployer_dput.sh | 133 -- deployer/travis/deployer_ftp.sh | 137 -- doc/Doublescan.txt | 93 - doc/Item Ranges.txt | 212 -- doc/Linedef Ranges.txt | 223 -- doc/SSN-Todo.xls | Bin 13824 -> 0 bytes doc/Sector Ranges.txt | 78 - doc/faq.txt | 307 --- doc/manual/manual.htm | 68 - doc/rules.txt | 39 - doc/source.txt | 240 -- doc/specials.html | 1992 ----------------- srb2banner.png | Bin 156839 -> 0 bytes src/doomdef.h | 1 - 36 files changed, 11453 deletions(-) delete mode 100644 .gitlab-ci.yml delete mode 100644 .travis.yml delete mode 100644 Doxyfile delete mode 100644 SRB2.cbp delete mode 100644 Srb2.dev delete mode 100644 appveyor.yml delete mode 100644 debian-template/README.Debian delete mode 100644 debian-template/README.source delete mode 100644 debian-template/changelog delete mode 100644 debian-template/compat delete mode 100644 debian-template/control delete mode 100644 debian-template/copyright delete mode 100644 debian-template/docs delete mode 100644 debian-template/rules delete mode 100644 debian-template/source/format delete mode 100644 debian-template/source/options delete mode 100644 debian-template/srb2.desktop delete mode 100644 debian_template.sh delete mode 100644 deployer/appveyor/deployer.bat delete mode 100644 deployer/travis/deployer.sh delete mode 100644 deployer/travis/deployer_build.sh delete mode 100644 deployer/travis/deployer_defaults.sh delete mode 100644 deployer/travis/deployer_dput.sh delete mode 100644 deployer/travis/deployer_ftp.sh delete mode 100644 doc/Doublescan.txt delete mode 100644 doc/Item Ranges.txt delete mode 100644 doc/Linedef Ranges.txt delete mode 100644 doc/SSN-Todo.xls delete mode 100644 doc/Sector Ranges.txt delete mode 100644 doc/faq.txt delete mode 100644 doc/manual/manual.htm delete mode 100644 doc/rules.txt delete mode 100644 doc/source.txt delete mode 100644 doc/specials.html delete mode 100644 srb2banner.png diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 636831aee..000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,436 +0,0 @@ -default: - image: debian:stable-slim - -stages: # List of stages for jobs, and their order of execution - - build - -variables: - GIT_STRATEGY: clone - GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/$CI_PROJECT_PATH - -.job_template: &job_build # This job runs in the build stage, which runs first. - - stage: build - - cache: - - key: ccache-$CI_PROJECT_PATH_SLUG-$CI_JOB_NAME_SLUG - fallback_keys: - - cache-$CI_PROJECT_PATH_SLUG-$CI_DEFAULT_BRANCH - - cache-$CI_PROJECT_PATH_SLUG-default - paths: - - ccache - - ccache_statslog - - - key: apt-$CI_JOB_IMAGE - paths: - - apt-cache - unprotect: true - - before_script: - - - | - # debconf - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment" - - export DEBIAN_FRONTEND="noninteractive" - - export DEBIAN_PRIORITY="low" - - export DEBCONF_NONINTERACTIVE_SEEN="true" - - | - # debconf - echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K" - - - | - # dpkg_aa - echo -e "\e[0Ksection_start:`date +%s`:dpkg_aa[collapsed=true]\r\e[0KAdding architectures to dpkg" - - dpkg --add-architecture i386 - - dpkg --add-architecture amd64 - - dpkg --add-architecture arm64 - - | - # dpkg_aa - echo -e "\e[0Ksection_end:`date +%s`:dpkg_aa\r\e[0K" - - - | - # apt_conf - echo -e "\e[0Ksection_start:`date +%s`:apt_conf[collapsed=true]\r\e[0KSetting up APT conf" - - export APT_CACHE_DIR=`pwd`/apt-cache - - mkdir --parents --verbose $APT_CACHE_DIR/partial/ - - touch /etc/apt/apt.conf.d/99build - - | - # apt.conf - echo Adding options to apt.conf':' - - | - # APT::Install-Recommends - echo APT::Install-Recommends "false"\; | tee --append /etc/apt/apt.conf.d/99build - - | - # quit - echo quiet "1"\; | tee --append /etc/apt/apt.conf.d/99build - - | - # APT::Get::Assume-Yes - echo APT::Get::Assume-Yes "true"\; | tee --append /etc/apt/apt.conf.d/99build - - | - # Dir::Cache::Archives - echo Dir::Cache::Archives "$APT_CACHE_DIR"\; | tee --append /etc/apt/apt.conf.d/99build - - | - # apt_conf - echo -e "\e[0Ksection_end:`date +%s`:apt_conf\r\e[0K" - - - | - # apt_update - echo -e "\e[0Ksection_start:`date +%s`:apt_update[collapsed=true]\r\e[0KUpdating APT listing" - - apt-get update - - | - # apt_update - echo -e "\e[0Ksection_end:`date +%s`:apt_update\r\e[0K" - - - - | - # apt_pre - echo -e "\e[0Ksection_start:`date +%s`:apt_pre[collapsed=true]\r\e[0KInstalling pre packages" - - apt-get install apt-utils - - | - # apt_pre - echo -e "\e[0Ksection_end:`date +%s`:apt_pre\r\e[0K" - - - - | - # apt_upgrade - echo -e "\e[0Ksection_start:`date +%s`:apt_upgrade[collapsed=true]\r\e[0KUpdating existing packages" - - apt-get upgrade - - | - # apt_update - echo -e "\e[0Ksection_end:`date +%s`:apt_upgrade\r\e[0K" - - - - | - # apt_common - echo -e "\e[0Ksection_start:`date +%s`:apt_common[collapsed=true]\r\e[0KInstalling common packages" - - apt-get install make git ccache - - | - # apt_common - echo -e "\e[0Ksection_end:`date +%s`:apt_common\r\e[0K" - - - - | - # ccache_config - echo -e "\e[0Ksection_start:`date +%s`:ccache_config[collapsed=true]\r\e[0KSetting up ccache config" - - mkdir --parents --verbose ~/.ccache/ - - touch ~/.ccache/ccache.conf - - | - # cache.conf - echo Adding ccache configution option - - | - # base_dir - echo base_dir = $PWD | tee --append ~/.ccache/ccache.conf - - | - # cache_dir - echo cache_dir = $PWD/ccache | tee --append ~/.ccache/ccache.conf - - | - # compiler_check - echo compiler_check = content | tee --append ~/.ccache/ccache.conf - - | - # stats_log - echo stats_log = $PWD/ccache_statslog | tee --append ~/.ccache/ccache.conf - - | - # max_size - echo max_size = 50M | tee --append ~/.ccache/ccache.conf - - | - # ccache_config - echo -e "\e[0Ksection_end:`date +%s`:ccache_config\r\e[0K" - - - - | - # cache_reset - echo -e "\e[0Ksection_start:`date +%s`:ccache_reset[collapsed=true]\r\e[0KResetting ccache statistics" - - ccache --zero-stats - - ccache --show-stats - - | - # ccache_reset - echo -e "\e[0Ksection_end:`date +%s`:ccache_reset\r\e[0K" - - after_script: - - - | - # apt_clean - echo -e "\e[0Ksection_start:`date +%s`:apt_clean[collapsed=true]\r\e[0KCleaning of unneeded APT packages" - - apt-get autoclean - - | - # apt_clean - echo -e "\e[0Ksection_end:`date +%s`:apt_clean\r\e[0K" - - - - | - # ccache_stats - echo -e "\e[0Ksection_start:`date +%s`:ccache_stats[collapsed=true]\r\e[0Kccache statistics:" - - ccache --show-stats --verbose - - ccache --show-log-stats --verbose - - | - # ccahe_stats - echo -e "\e[0Ksection_end:`date +%s`:ccache_stats\r\e[0K" - -Debian testing GCC: - <<: *job_build - image: debian:testing-slim - - allow_failure: true - - artifacts: - paths: - - "bin/" - - "src/comptime.h" - expose_as: "Debian GCC testing" - name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-testing-gcc" - - variables: - CC: gcc - - script: - - - | - # apt_toolchain - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - apt-get install gcc - - | - # apt_toolchain - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - - - - | - # apt_development - echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages" - - apt-get install libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev libopenmpt-dev - - | - # apt_development - echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K" - - - - | - # make - echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2" - - make --directory=src --keep-going CCACHE=1 ERRORMODE=1 NONX86=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 NONX86=1 - - | - # make - echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K" - -Windows x86: - <<: *job_build - - artifacts: - paths: - - "bin/" - - "src/comptime.h" - name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-Win32" - - variables: - PREFIX: i686-w64-mingw32 - - script: - - - | - # apt_toolchain - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - apt-get install gcc-mingw-w64-i686-win32 - - | - # apt_toolchain - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - - - - | - # make - echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2" - - make --directory=src --keep-going CCACHE=1 ERRORMODE=1 MINGW=1 SDL=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 MINGW=1 SDL=1 - - | - # make - echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K" - -Debian stable:amd64: - <<: *job_build - - artifacts: - paths: - - "bin/" - - "src/comptime.h" - expose_as: "Debian amd64" - name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-x86-64" - - variables: - CC: x86_64-linux-gnu-gcc - OBJCOPY: x86_64-linux-gnu-objcopy - OBJDUMP: x86_64-linux-gnu-objdump - PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig - - script: - - - | - # apt_toolchain - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - apt-get install gcc-x86-64-linux-gnu || apt-get install gcc - - | - # apt_toolchain - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - - - - | - # apt_development - echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages" - - apt-get install libsdl2-mixer-dev:amd64 libpng-dev:amd64 libcurl4-openssl-dev:amd64 libgme-dev:amd64 libopenmpt-dev:amd64 - - | - # apt_development - echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K" - - - - | - # make - echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2" - - make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1 - - | - # make - echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K" - -Debian stable:i386: - <<: *job_build - - artifacts: - paths: - - "bin/" - - "src/comptime.h" - expose_as: "Debian i386" - name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-i686" - - variables: - CC: i686-linux-gnu-gcc - OBJCOPY: i686-linux-gnu-objcopy - OBJDUMP: i686-linux-gnu-objdump - PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig - - script: - - - | - # apt_toolchain - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - apt-get install gcc-i686-linux-gnu || apt-get install gcc - - | - # apt_toolchain - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - - - - | - # apt_development - echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages" - - apt-get install libsdl2-mixer-dev:i386 libpng-dev:i386 libcurl4-openssl-dev:i386 libgme-dev:i386 libopenmpt-dev:i386 - - | - # apt_development - echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K" - - - - | - # make - echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2" - - make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX=1 - - | - # make - echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K" - -Debian stable:arm64: - <<: *job_build - - artifacts: - paths: - - "bin/" - - "src/comptime.h" - expose_as: "Debian arm64" - name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-aarch64" - - variables: - CC: aarch64-linux-gnu-gcc - OBJCOPY: aarch64-linux-gnu-objcopy - OBJDUMP: aarch64-linux-gnu-objdump - PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig - - script: - - - | - # apt_toolchain - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - apt-get install gcc-aarch64-linux-gnu || apt-get install gcc - - | - # apt_toolchain - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - - - - | - # apt_development - echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages" - - apt-get install libsdl2-mixer-dev:arm64 libpng-dev:arm64 libcurl4-openssl-dev:arm64 libgme-dev:arm64 libopenmpt-dev:arm64 - - | - # apt_development - echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K" - - - - | - # make - echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2" - - make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1 ERRORMODE=1 NONX86=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1 NONX86=1 - - | - # make - echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K" - -Windows x64: - <<: *job_build - - artifacts: - paths: - - "bin/" - - "src/comptime.h" - expose_as: "Win64" - name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-Win64" - - variables: - PREFIX: x86_64-w64-mingw32 - - script: - - - | - # apt_toolchain - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - apt-get install gcc-mingw-w64-x86-64-win32 - - | - # apt_toolchain - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - - - - | - # make - echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2" - - make --directory=src --keep-going CCACHE=1 ERRORMODE=1 MINGW64=1 SDL=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 MINGW64=1 SDL=1 - - | - # make - echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K" - -Debian stable Clang: - <<: *job_build - - allow_failure: true - - artifacts: - paths: - - "bin/" - - "src/comptime.h" - expose_as: "Debian Clang" - name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-clang" - - variables: - CC: clang - WFLAGS: -Wno-cast-align - - script: - - - | - # apt_toolchain - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - apt-get install clang - - | - # apt_toolchain - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - - - - | - # apt_development - echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages" - - apt-get install libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev libopenmpt-dev - - | - # apt_development - echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K" - - - - | - # make - echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2" - - make --directory=src --keep-going CCACHE=1 ERRORMODE=1 NONX86=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 NONX86=1 - - | - # make - echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K" - -Debian testing Clang: - extends: Debian stable Clang - - image: debian:testing-slim - - artifacts: - paths: - - "bin/" - - "src/comptime.h" - expose_as: "Debina Clang testing" - name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-testing-clang" - - variables: - CC: clang - WFLAGS: -Wno-cast-align -Wno-deprecated-non-prototype diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 663498901..000000000 --- a/.travis.yml +++ /dev/null @@ -1,712 +0,0 @@ -# Travis-CI Config -# -# You may use the Deployer to upload packages and builds to external servers. -# See deployer/travis/deployer_defaults.sh for environment variables to configure. - -language: c -sudo: required -dist: trusty - -matrix: - include: -################################ -# Test Buildbots -# Deployer does not operate on these. See Deployer Buildbots, below. -# These bots are disabled when a deployment is triggered by 'deployer' branch name AND DPL_TERMINATE_TESTS=1. -# These bots remain enabled when a deployment is triggered by release tag. -################################ - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.4 - compiler: gcc-4.4 - env: GCC44=1 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #gcc-4.4 (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7 - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.6 - compiler: gcc-4.6 - env: GCC46=1 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #gcc-4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2) 4.6.4 - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.7 - compiler: gcc-4.7 - env: GCC47=1 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #gcc-4.7 - - os: linux - compiler: gcc - env: GCC48=1 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.8 - compiler: gcc-4.8 - env: GCC48=1 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-7 - compiler: gcc-7 - env: WFLAGS="-Wno-tautological-compare -Wno-error=implicit-fallthrough -Wno-implicit-fallthrough" GCC72=1 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #gcc-7 (Ubuntu 7.2.0-1ubuntu1~14.04) 7.2.0 20170802 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-8 - compiler: gcc-8 - env: WFLAGS="-Wno-tautological-compare -Wno-error=implicit-fallthrough -Wno-implicit-fallthrough -Wno-error=format-overflow -Wno-error=format-truncation" GCC81=1 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #gcc-8 (Ubuntu 7.2.0-1ubuntu1~14.04) 8.1.0 - - os: linux - compiler: clang - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #clang version 3.5.0 (tags/RELEASE_350/final) - - os: linux - addons: - apt: - sources: - - llvm-toolchain-precise-3.5 - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - clang-3.5 - compiler: clang-3.5 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #Ubuntu clang version 3.5.0-4ubuntu2~trusty2 (tags/RELEASE_350/final) (based on LLVM 3.5.0) - - os: linux - addons: - apt: - sources: - - llvm-toolchain-precise-3.6 - - ubuntu-toolchain-r-test - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - clang-3.6 - compiler: clang-3.6 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #Ubuntu clang version 3.6.2-svn240577-1~exp1 (branches/release_36) (based on LLVM 3.6.2) - - os: linux - addons: - apt: - sources: - - llvm-toolchain-precise-3.7 - - ubuntu-toolchain-r-test - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - clang-3.7 - compiler: clang-3.7 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #Ubuntu clang version 3.7.1-svn253571-1~exp1 (branches/release_37) (based on LLVM 3.7.1) - - os: linux - addons: - apt: - sources: - - llvm-toolchain-precise-3.8 - - ubuntu-toolchain-r-test - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - clang-3.8 - compiler: clang-3.8 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #clang version 3.8.1-svn271127-1~exp1 (branches/release_38) - - os: linux - addons: - apt: - sources: - - llvm-toolchain-precise-3.9 - - ubuntu-toolchain-r-test - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - clang-3.9 - compiler: clang-3.9 - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #clang version 3.9.X -# - os: linux -# addons: -# apt: -# sources: -# - llvm-toolchain-precise-4.0 -# - ubuntu-toolchain-r-test -# packages: -# - libsdl2-mixer-dev -# - libpng-dev -# - libgl1-mesa-dev -# - libgme-dev -# - p7zip-full -# - clang-4.0 -# compiler: clang-4.0 -# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -# #clang version 4.0.X -# - os: linux -# addons: -# apt: -# sources: -# - llvm-toolchain-precise-5.0 -# - ubuntu-toolchain-r-test -# packages: -# - libsdl2-mixer-dev -# - libpng-dev -# - libgl1-mesa-dev -# - libgme-dev -# - p7zip-full -# - clang-5.0 -# compiler: clang-5.0 -# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -# #clang version 5.0.X -# - os: osx -# osx_image: beta-xcode6.1 -# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -# #Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) -# - os: osx -# osx_image: beta-xcode6.2 -# compiler: gcc -# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -# #Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) -## - os: osx -## osx_image: beta-xcode6.3 -## if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -## #I think xcode.6.3 VM is broken, it does not boot -# - os: osx -# osx_image: xcode6.4 -# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -# #Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) -# - os: osx -# osx_image: xcode7 -# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -# #Apple LLVM version 7.0.0 (clang-700.0.72) -# - os: osx -# osx_image: xcode7.1 -# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -# #Apple LLVM version 7.0.0 (clang-700.1.76) -# - os: osx -# osx_image: xcode7.2 -# if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ -# #Apple LLVM version 7.0.2 (clang-700.1.81) -# - os: osx -# osx_image: xcode7.3 -# #Apple LLVM version 7.3.0 (clang-703.0.31) -# - os: osx -# osx_image: xcode7.3 -# #Apple LLVM version 7.3.0 (clang-703.0.31) - - os: osx - if: env(DPL_ENABLED) != "1" OR env(DPL_TERMINATE_TESTS) != "1" OR NOT branch =~ /^.*deployer.*$/ - #Default: macOS 10.13 and Xcode 9.4.1 - - -################################ -# Deployer Buildbots - OSX -################################ - - os: osx - if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - AND env(DPL_TERMINATE_MAIN) != "1" - env: - - _DPL_JOB_ENABLED=1 - - _DPL_JOB_NAME=osx - - _DPL_FTP_TARGET=1 - - _DPL_PACKAGE_BINARY=1 - #Apple LLVM version 7.3.0 (clang-703.0.31) - - -################################ -# Deployer Buildbots - Linux assets -# Set DPL_TERMINATE_ASSETS to disable all of these -# List Ubuntu LTS next, newest to oldest -# Then list non-LTS, newest to oldest -################################ - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.8 - compiler: gcc-4.8 - dist: xenial - if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - AND env(DPL_TERMINATE_ASSETS) != "1" - env: - - _DPL_JOB_ENABLED=1 - - _DPL_JOB_NAME=bionic-asset - - _DPL_DPUT_TARGET=1 - - _DPL_PACKAGE_SOURCE=1 - - _DPL_PACKAGE_MAIN=0 - - _DPL_PACKAGE_ASSET=1 - - PACKAGE_DISTRO=bionic - #- PACKAGE_SUBVERSION=~18.04bionic - #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - - ################################ - # The below asset bots produce packages that occupy too much space. - # It would be nice if the asset files were not included in the source package itself, - # so these can deploy to each Ubuntu target without manual intervention. - # - # Currently, to get around Launchpad's space limitation, - # copy the packages from *one* bot and the space usage is not increased. - ################################ - # - os: linux - # addons: - # apt: - # packages: - # - libsdl2-mixer-dev - # - libpng-dev - # - libgl1-mesa-dev - # - libgme-dev - # - p7zip-full - # - gcc-4.8 - # compiler: gcc-4.8 - # dist: trusty - # if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - # AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - # AND env(DPL_TERMINATE_ASSETS) != "1" - # env: - # - _DPL_JOB_ENABLED=1 - # - _DPL_JOB_NAME=trusty-asset - # - _DPL_DPUT_TARGET=1 - # - _DPL_PACKAGE_SOURCE=1 - # - _DPL_PACKAGE_MAIN=0 - # - _DPL_PACKAGE_ASSET=1 - # - PACKAGE_DISTRO=trusty - # #- PACKAGE_SUBVERSION=~14.04trusty - # #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - # - os: linux - # addons: - # apt: - # packages: - # - libsdl2-mixer-dev - # - libpng-dev - # - libgl1-mesa-dev - # - libgme-dev - # - p7zip-full - # - gcc-4.8 - # compiler: gcc-4.8 - # dist: xenial - # if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - # AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - # AND env(DPL_TERMINATE_ASSETS) != "1" - # env: - # - _DPL_JOB_ENABLED=1 - # - _DPL_JOB_NAME=disco-asset - # - _DPL_DPUT_TARGET=1 - # - _DPL_PACKAGE_SOURCE=1 - # - _DPL_PACKAGE_MAIN=0 - # - _DPL_PACKAGE_ASSET=1 - # - PACKAGE_DISTRO=disco - # #- PACKAGE_SUBVERSION=~19.04disco - # #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - # - os: linux - # addons: - # apt: - # packages: - # - libsdl2-mixer-dev - # - libpng-dev - # - libgl1-mesa-dev - # - libgme-dev - # - p7zip-full - # - gcc-4.8 - # compiler: gcc-4.8 - # dist: xenial - # if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - # AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - # AND env(DPL_TERMINATE_ASSETS) != "1" - # env: - # - _DPL_JOB_ENABLED=1 - # - _DPL_JOB_NAME=cosmic-asset - # - _DPL_DPUT_TARGET=1 - # - _DPL_PACKAGE_SOURCE=1 - # - _DPL_PACKAGE_MAIN=0 - # - _DPL_PACKAGE_ASSET=1 - # - PACKAGE_DISTRO=cosmic - # #- PACKAGE_SUBVERSION=~18.10cosmic - # #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - # - os: linux - # addons: - # apt: - # packages: - # - libsdl2-mixer-dev - # - libpng-dev - # - libgl1-mesa-dev - # - libgme-dev - # - p7zip-full - # - gcc-4.8 - # compiler: gcc-4.8 - # dist: xenial - # if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - # AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - # AND env(DPL_TERMINATE_ASSETS) != "1" - # env: - # - _DPL_JOB_ENABLED=1 - # - _DPL_JOB_NAME=xenial-asset - # - _DPL_DPUT_TARGET=1 - # - _DPL_PACKAGE_SOURCE=1 - # - _DPL_PACKAGE_MAIN=0 - # - _DPL_PACKAGE_ASSET=1 - # - PACKAGE_DISTRO=xenial - # #- PACKAGE_SUBVERSION=~16.04xenial - # #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - - -################################ -# Deployer Buildbots - Linux binaries -# List Ubuntu LTS, newest to oldest -# Then list non-LTS, newest to oldest -################################ - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.8 - compiler: gcc-4.8 - dist: xenial - if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - AND env(DPL_TERMINATE_MAIN) != "1" - env: - - _DPL_JOB_ENABLED=1 - - _DPL_JOB_NAME=focal - - _DPL_DPUT_TARGET=1 - - _DPL_PACKAGE_SOURCE=1 - - PACKAGE_DISTRO=focal - - PACKAGE_SUBVERSION=~20.04focal - #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.8 - compiler: gcc-4.8 - dist: xenial - if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - AND env(DPL_TERMINATE_MAIN) != "1" - env: - - _DPL_JOB_ENABLED=1 - - _DPL_JOB_NAME=bionic - - _DPL_DPUT_TARGET=1 - - _DPL_PACKAGE_SOURCE=1 - - PACKAGE_DISTRO=bionic - - PACKAGE_SUBVERSION=~18.04bionic - #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.8 - compiler: gcc-4.8 - dist: xenial - if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - AND env(DPL_TERMINATE_MAIN) != "1" - env: - - _DPL_JOB_ENABLED=1 - - _DPL_JOB_NAME=xenial - - _DPL_DPUT_TARGET=1 - - _DPL_PACKAGE_SOURCE=1 - - PACKAGE_DISTRO=xenial - - PACKAGE_SUBVERSION=~16.04xenial - #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.8 - compiler: gcc-4.8 - dist: trusty - if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - AND env(DPL_TERMINATE_MAIN) != "1" - env: - - _DPL_JOB_ENABLED=1 - - _DPL_JOB_NAME=trusty - - _DPL_DPUT_TARGET=1 - - _DPL_PACKAGE_SOURCE=1 - - PACKAGE_DISTRO=trusty - - PACKAGE_SUBVERSION=~14.04trusty - #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - - os: linux - addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - libcurl4-openssl-dev - - p7zip-full - - gcc-4.8 - compiler: gcc-4.8 - dist: xenial - if: env(DPL_ENABLED) = "1" AND (env(_DPL_JOB_ENABLED) = "1" OR env(DPL_JOB_ENABLE_ALL) = "1") - AND (branch =~ /^.*deployer.*$/ OR (tag IS present AND env(DPL_TAG_ENABLED) = "1")) - AND env(DPL_TERMINATE_MAIN) != "1" - env: - - _DPL_JOB_ENABLED=1 - - _DPL_JOB_NAME=eoan - - _DPL_DPUT_TARGET=1 - - _DPL_PACKAGE_SOURCE=1 - - PACKAGE_DISTRO=eoan - - PACKAGE_SUBVERSION=~19.10eoan - #gcc-4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5 - allow_failures: - - compiler: clang-3.5 - - compiler: clang-3.6 - - compiler: clang-3.7 - - compiler: clang-3.8 - - compiler: clang-3.9 - - compiler: clang-4.0 - - compiler: clang-5.0 - - -cache: - apt: true - ccache: true - directories: - - $HOME/srb2_cache - - -addons: - apt: - packages: - - libsdl2-mixer-dev - - libpng-dev - - libgl1-mesa-dev - - libgme-dev - - zlib1g-dev - - libcurl4-openssl-dev - - p7zip-full - homebrew: - taps: - - mazmazz/srb2 - packages: - - sdl2_mixer - - game-music-emu - - p7zip - - cmake - - curl - update: true - - - -before_install: - # Initialize Deployer defaults - - . ./deployer/travis/deployer_defaults.sh - - # Initialize Deployer; check if Deployer is enabled - # This needs to be run in the current shell so that $__DPL_ACTIVE is set for this session - - . ./deployer/travis/deployer.sh - - # Also check if we should now terminate -- see `deployer.sh` for conditions. - # This should never happen on non-release buildbots when Deployer is not triggered. - - if [[ "$__DPL_TRY_TERMINATE_EARLY" == "1" ]]; then - if [[ "$__DPL_ACTIVE" != "1" ]]; then - echo "Exiting early because this job is not deploying."; - exit; - fi; - fi - - # If we're triggered by release tag, force ASSET_FILES_OPTIONAL_GET=1 - - if [[ "$__DPL_TAG_ELIGIBLE" = "1" ]]; then - ASSET_FILES_OPTIONAL_GET=1; - fi; - - -install: - # Install OS X library dependencies via Homebrew - # Do this differently for release buildbots: - # * `brew install --build-bottle` builds libraries for x86_64's lowest common denominator CPU, core2 - # * `sdl2_mixer` requires options from the formula tap https://github.com/mazmazz/homebrew-srb2 - # * `brew postinstall` runs post-install scripts after building a bottle - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$__DPL_ACTIVE" == "1" ]]; then - brew install --build-bottle sdl2 game-music-emu; - brew install --build-bottle mazmazz/srb2/sdl2_mixer --with-flac --with-mpg123; - brew postinstall sdl2 game-music-emu mazmazz/srb2/sdl2_mixer; - fi; - fi - - mkdir -p $HOME/srb2_cache - - -before_script: - # OLDPWD is root repo folder - - OLDPWD=$PWD - - __ASSET_DIRECTORY="$OLDPWD/assets/installer" - - mkdir -p "$__ASSET_DIRECTORY" - - cd "$HOME/srb2_cache" - - # Get stat command so we know what the cached archive date is. - # stat is different for OSX - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - STATCMD="stat -f %m"; - else - STATCMD="stat -c %y"; - fi - - # Get asset files (required for MD5) - # See `deployer_defaults.sh` for asset download path - - if [[ "$ASSET_ARCHIVE_PATH" != "" ]]; then - if [ -f "$(basename $ASSET_ARCHIVE_PATH)" ]; then - echo "$(basename $ASSET_ARCHIVE_PATH) cache date -- $($STATCMD $(basename $ASSET_ARCHIVE_PATH))"; - fi; - wget --verbose --server-response -N "$ASSET_ARCHIVE_PATH"; - 7z x "$(basename $ASSET_ARCHIVE_PATH)" -o"$__ASSET_DIRECTORY" -aos; - fi; - - # Get optional files too - - if [[ "$__DPL_ACTIVE" == "1" ]] && [[ "$ASSET_FILES_OPTIONAL_GET" == "1" ]] && [[ "$ASSET_ARCHIVE_OPTIONAL_PATH" != "" ]]; then - if [ -f "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH)" ]; then - echo "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH) cache date -- $($STATCMD $(basename $ASSET_ARCHIVE_OPTIONAL_PATH))"; - fi; - wget --verbose --server-response -N "$ASSET_ARCHIVE_OPTIONAL_PATH"; - 7z x "$(basename $ASSET_ARCHIVE_OPTIONAL_PATH)" -o"$__ASSET_DIRECTORY" -aos; - fi; - - # Go back to root repo folder - - cd "$OLDPWD" - - # Prepare CMake asset lists - - SRB2_ASSET_HASHED=$(echo ${ASSET_FILES_HASHED// /\;}) - - SRB2_ASSET_DOCS=$(echo ${ASSET_FILES_DOCS// /\;}) - - SRB2_ASSET_DIRECTORY="$__ASSET_DIRECTORY" - - # Prepare CMake - - mkdir build - - cd build - - mkdir package - - export CFLAGS="-Wall -W -Werror $WFLAGS" - - export CCACHE_COMPRESS=true - # If OS X, set -march=core2 to build compatible binaries with old Macs - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - export CFLAGS="${CFLAGS} -march=core2"; - fi; - - cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/bin -DCPACK_PACKAGE_DIRECTORY=$PWD/package - -DSRB2_ASSET_HASHED="${SRB2_ASSET_HASHED}" -DSRB2_ASSET_DOCS="${SRB2_ASSET_DOCS}" - -DSRB2_ASSET_DIRECTORY="${SRB2_ASSET_DIRECTORY}" - -DCPACK_PACKAGE_DESCRIPTION_SUMMARY="${PROGRAM_NAME}" - -DCPACK_PACKAGE_VENDOR="${PROGRAM_VENDOR}" - -DSRB2_SDL2_EXE_NAME="${PROGRAM_FILENAME}" - -script: - # Build our Makefile from Cmake! - - if [[ "$__DPL_ACTIVE" == "1" ]]; then - . ../deployer/travis/deployer_build.sh; - else - make -k; - fi; - -after_success: - # Run the upload scripts - # These do nothing if Deployer is not triggered - - . ../deployer/travis/deployer_ftp.sh - - . ../deployer/travis/deployer_dput.sh diff --git a/Doxyfile b/Doxyfile deleted file mode 100644 index eb8c6ae9e..000000000 --- a/Doxyfile +++ /dev/null @@ -1,269 +0,0 @@ -# Doxyfile 1.4.3 - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- -PROJECT_NAME = SRB2 -PROJECT_NUMBER = 1.09 -OUTPUT_DIRECTORY = ./doc/SRB2 -CREATE_SUBDIRS = YES -OUTPUT_LANGUAGE = English -USE_WINDOWS_ENCODING = YES -BRIEF_MEMBER_DESC = YES -REPEAT_BRIEF = YES -ABBREVIATE_BRIEF = "The $name class" \ - "The $name widget" \ - "The $name file" \ - is \ - provides \ - specifies \ - contains \ - represents \ - a \ - an \ - the -ALWAYS_DETAILED_SEC = NO -INLINE_INHERITED_MEMB = NO -FULL_PATH_NAMES = YES -STRIP_FROM_PATH = -STRIP_FROM_INC_PATH = -SHORT_NAMES = NO -JAVADOC_AUTOBRIEF = NO -MULTILINE_CPP_IS_BRIEF = NO -DETAILS_AT_TOP = NO -INHERIT_DOCS = YES -DISTRIBUTE_GROUP_DOC = NO -SEPARATE_MEMBER_PAGES = NO -TAB_SIZE = 8 -ALIASES = -OPTIMIZE_OUTPUT_FOR_C = YES -OPTIMIZE_OUTPUT_JAVA = NO -SUBGROUPING = YES -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- -EXTRACT_ALL = YES -EXTRACT_PRIVATE = YES -EXTRACT_STATIC = YES -EXTRACT_LOCAL_CLASSES = YES -EXTRACT_LOCAL_METHODS = NO -HIDE_UNDOC_MEMBERS = NO -HIDE_UNDOC_CLASSES = NO -HIDE_FRIEND_COMPOUNDS = NO -HIDE_IN_BODY_DOCS = NO -INTERNAL_DOCS = NO -CASE_SENSE_NAMES = NO -HIDE_SCOPE_NAMES = NO -SHOW_INCLUDE_FILES = YES -INLINE_INFO = YES -SORT_MEMBER_DOCS = YES -SORT_BRIEF_DOCS = NO -SORT_BY_SCOPE_NAME = NO -GENERATE_TODOLIST = YES -GENERATE_TESTLIST = YES -GENERATE_BUGLIST = YES -GENERATE_DEPRECATEDLIST= YES -ENABLED_SECTIONS = -MAX_INITIALIZER_LINES = 30 -SHOW_USED_FILES = YES -SHOW_DIRECTORIES = YES -FILE_VERSION_FILTER = -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- -QUIET = NO -WARNINGS = YES -WARN_IF_UNDOCUMENTED = YES -WARN_IF_DOC_ERROR = YES -WARN_NO_PARAMDOC = NO -WARN_FORMAT = "$file:$line: $text" -WARN_LOGFILE = -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- -INPUT = ./src -FILE_PATTERNS = *.c \ - *.cc \ - *.cxx \ - *.cpp \ - *.c++ \ - *.d \ - *.java \ - *.ii \ - *.ixx \ - *.ipp \ - *.i++ \ - *.inl \ - *.h \ - *.hh \ - *.hxx \ - *.hpp \ - *.h++ \ - *.idl \ - *.odl \ - *.cs \ - *.php \ - *.php3 \ - *.inc \ - *.m \ - *.mm \ - *.dox -RECURSIVE = YES -EXCLUDE = ./src/sdl/IMG_xpm.c \ - ./src/sdl/SRB2DC/scramble.c -EXCLUDE_SYMLINKS = NO -EXCLUDE_PATTERNS = */src/hardware/*/* \ - */src/sdl/SDL_main/* \ - */src/*/*_private.h \ - */src/sdl/*/*help.? \ - */src/md5.? \ - */src/sdl/filter/* -EXAMPLE_PATH = -EXAMPLE_PATTERNS = * -EXAMPLE_RECURSIVE = NO -IMAGE_PATH = -INPUT_FILTER = -FILTER_PATTERNS = -FILTER_SOURCE_FILES = YES -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- -SOURCE_BROWSER = NO -INLINE_SOURCES = NO -STRIP_CODE_COMMENTS = YES -REFERENCED_BY_RELATION = NO -REFERENCES_RELATION = NO -#USE_HTAGS = NO -VERBATIM_HEADERS = YES -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- -ALPHABETICAL_INDEX = NO -COLS_IN_ALPHA_INDEX = 5 -IGNORE_PREFIX = -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- -GENERATE_HTML = YES -HTML_OUTPUT = html -HTML_FILE_EXTENSION = .html -HTML_HEADER = -HTML_FOOTER = -HTML_STYLESHEET = -HTML_ALIGN_MEMBERS = YES -GENERATE_HTMLHELP = NO -CHM_FILE = -HHC_LOCATION = -GENERATE_CHI = NO -BINARY_TOC = NO -TOC_EXPAND = NO -DISABLE_INDEX = NO -ENUM_VALUES_PER_LINE = 4 -GENERATE_TREEVIEW = YES -TREEVIEW_WIDTH = 250 -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- -GENERATE_LATEX = NO -LATEX_OUTPUT = latex -LATEX_CMD_NAME = latex -MAKEINDEX_CMD_NAME = makeindex -COMPACT_LATEX = NO -PAPER_TYPE = a4wide -EXTRA_PACKAGES = -LATEX_HEADER = -PDF_HYPERLINKS = NO -USE_PDFLATEX = NO -LATEX_BATCHMODE = NO -LATEX_HIDE_INDICES = NO -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- -GENERATE_RTF = NO -RTF_OUTPUT = rtf -COMPACT_RTF = NO -RTF_HYPERLINKS = NO -RTF_STYLESHEET_FILE = -RTF_EXTENSIONS_FILE = -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- -GENERATE_MAN = NO -MAN_OUTPUT = man -MAN_EXTENSION = .3 -MAN_LINKS = YES -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- -GENERATE_XML = NO -XML_OUTPUT = xml -XML_SCHEMA = -XML_DTD = -XML_PROGRAMLISTING = YES -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- -GENERATE_AUTOGEN_DEF = NO -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- -GENERATE_PERLMOD = NO -PERLMOD_LATEX = NO -PERLMOD_PRETTY = YES -PERLMOD_MAKEVAR_PREFIX = -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- -ENABLE_PREPROCESSING = YES -MACRO_EXPANSION = NO -EXPAND_ONLY_PREDEF = NO -SEARCH_INCLUDES = YES -INCLUDE_PATH = -INCLUDE_FILE_PATTERNS = -PREDEFINED = DOXYGEN \ - HWRENDER \ - DIRECTFULLSCREEN \ - HW3SOUND \ - LOGMESSAGES \ - WALLSPLATS \ - FLOORSPLATS -EXPAND_AS_DEFINED = -SKIP_FUNCTION_MACROS = YES -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- -TAGFILES = -GENERATE_TAGFILE = -ALLEXTERNALS = NO -EXTERNAL_GROUPS = YES -PERL_PATH = /usr/bin/perl -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- -CLASS_DIAGRAMS = YES -HIDE_UNDOC_RELATIONS = YES -HAVE_DOT = NO -CLASS_GRAPH = YES -COLLABORATION_GRAPH = YES -GROUP_GRAPHS = YES -UML_LOOK = NO -TEMPLATE_RELATIONS = NO -INCLUDE_GRAPH = YES -INCLUDED_BY_GRAPH = YES -CALL_GRAPH = NO -GRAPHICAL_HIERARCHY = YES -DIRECTORY_GRAPH = YES -DOT_IMAGE_FORMAT = png -DOT_PATH = -DOTFILE_DIRS = -MAX_DOT_GRAPH_WIDTH = 1024 -MAX_DOT_GRAPH_HEIGHT = 1024 -MAX_DOT_GRAPH_DEPTH = 1000 -DOT_TRANSPARENT = NO -DOT_MULTI_TARGETS = NO -GENERATE_LEGEND = YES -DOT_CLEANUP = YES -#--------------------------------------------------------------------------- -# Configuration::additions related to the search engine -#--------------------------------------------------------------------------- -SEARCHENGINE = NO diff --git a/SRB2.cbp b/SRB2.cbp deleted file mode 100644 index e5be4f5e0..000000000 --- a/SRB2.cbp +++ /dev/null @@ -1,2136 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Srb2.dev b/Srb2.dev deleted file mode 100644 index 204021263..000000000 --- a/Srb2.dev +++ /dev/null @@ -1,3033 +0,0 @@ -[Project] -FileName=Srb2.dev -Name=Srb2 -Ver=3 -IsCpp=0 -Type=0 -UnitCount=279 -Folders=B_Bot,BLUA,D_Doom,F_Frame,G_Game,H_Hud,Hw_Hardware,Hw_Hardware/r_opengl,I_Interface,I_Interface/Dummy,I_Interface/SDL,I_Interface/Win32,LUA,M_Misc,P_Play,R_Rend,S_Sounds,W_Wad -CommandLine= -CompilerSettings=00000000000100000111e1 -PchHead=-1 -PchSource=-1 -ProfilesCount=10 -ProfileIndex=2 - -[Unit1] -FileName=src\hardware\hw3dsdrv.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit2] -FileName=src\hardware\hw3sound.c -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit3] -FileName=src\hardware\hw3sound.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit4] -FileName=src\hardware\hw_bsp.c -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit5] -FileName=src\hardware\hw_cache.c -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit6] -FileName=src\hardware\hw_data.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit7] -FileName=src\hardware\hw_defs.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit8] -FileName=src\hardware\hw_draw.c -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit9] -FileName=src\hardware\hw_drv.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit10] -FileName=src\hardware\hw_glide.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit11] -FileName=src\hardware\hw_glob.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit12] -FileName=src\hardware\hw_light.c -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit13] -FileName=src\hardware\hw_light.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit14] -FileName=src\hardware\hw_main.c -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit15] -FileName=src\hardware\hw_main.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit16] -FileName=src\hardware\hw_md2.c -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit17] -FileName=src\hardware\hw_md2.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit18] -FileName=src\hardware\hw_trick.c -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit19] -FileName=src\d_clisrv.c -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit20] -FileName=src\d_clisrv.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit21] -FileName=src\d_event.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit23] -FileName=src\d_main.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit24] -FileName=src\d_net.c -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit25] -FileName=src\d_net.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit26] -FileName=src\d_netcmd.c -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit27] -FileName=src\d_netcmd.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit28] -FileName=src\d_netfil.c -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit29] -FileName=src\d_netfil.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit30] -FileName=src\d_player.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit31] -FileName=src\d_think.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit32] -FileName=src\d_ticcmd.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit33] -FileName=src\m_argv.c -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit34] -FileName=src\m_argv.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit35] -FileName=src\m_bbox.c -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit36] -FileName=src\m_bbox.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit37] -FileName=src\m_cheat.c -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit38] -FileName=src\m_cheat.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit39] -FileName=src\m_fixed.c -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit40] -FileName=src\m_fixed.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit41] -FileName=src\m_menu.c -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit42] -FileName=src\m_menu.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit44] -FileName=src\m_misc.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit45] -FileName=src\m_random.c -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit46] -FileName=src\m_random.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit47] -FileName=src\m_swap.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit48] -FileName=src\p_ceilng.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit49] -FileName=src\p_enemy.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit50] -FileName=src\p_fab.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit51] -FileName=src\p_floor.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit52] -FileName=src\p_inter.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit53] -FileName=src\p_lights.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit54] -FileName=src\p_local.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit55] -FileName=src\p_map.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit56] -FileName=src\p_maputl.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit57] -FileName=src\p_maputl.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit58] -FileName=src\p_mobj.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit59] -FileName=src\p_mobj.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit60] -FileName=src\p_pspr.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit61] -FileName=src\p_saveg.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit62] -FileName=src\p_saveg.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit63] -FileName=src\p_setup.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit64] -FileName=src\p_setup.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit65] -FileName=src\p_sight.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit66] -FileName=src\p_spec.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit67] -FileName=src\p_spec.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit68] -FileName=src\p_telept.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit69] -FileName=src\p_tick.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit70] -FileName=src\p_tick.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit71] -FileName=src\p_user.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit72] -FileName=src\r_bsp.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit73] -FileName=src\r_bsp.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit74] -FileName=src\r_data.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit75] -FileName=src\r_data.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit76] -FileName=src\r_defs.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit77] -FileName=src\r_draw.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit78] -FileName=src\r_draw.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit80] -FileName=src\r_draw8.c -Folder=R_Rend -Compile=0 -CompileCpp=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit81] -FileName=src\r_local.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit82] -FileName=src\r_main.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit83] -FileName=src\r_main.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit84] -FileName=src\r_plane.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit85] -FileName=src\r_plane.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit86] -FileName=src\r_segs.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit87] -FileName=src\r_segs.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit88] -FileName=src\r_sky.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit89] -FileName=src\r_sky.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit90] -FileName=src\r_splats.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit91] -FileName=src\r_splats.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit92] -FileName=src\r_state.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit93] -FileName=src\r_things.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit94] -FileName=src\r_things.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit95] -FileName=src\am_map.c -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit96] -FileName=src\am_map.h -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit97] -FileName=src\byteptr.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit98] -FileName=src\command.c -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit99] -FileName=src\command.h -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit100] -FileName=src\console.c -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit101] -FileName=src\console.h -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit102] -FileName=src\dehacked.c -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit103] -FileName=src\dehacked.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit104] -FileName=src\Doomdata.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit105] -FileName=src\Doomdef.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit106] -FileName=src\Doomstat.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit107] -FileName=src\Doomtype.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit108] -FileName=src\F_finale.c -Folder=F_Frame -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit109] -FileName=src\F_finale.h -Folder=F_Frame -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit110] -FileName=src\F_wipe.c -Folder=F_Frame -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit111] -FileName=src\filesrch.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit112] -FileName=src\g_game.c -Folder=G_Game -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit113] -FileName=src\g_game.h -Folder=G_Game -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit114] -FileName=src\g_input.c -Folder=G_Game -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit115] -FileName=src\g_input.h -Folder=G_Game -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit116] -FileName=src\g_state.h -Folder=G_Game -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit117] -FileName=src\hu_stuff.c -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit118] -FileName=src\hu_stuff.h -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit119] -FileName=src\i_joy.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit120] -FileName=src\i_net.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit121] -FileName=src\i_sound.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit122] -FileName=src\i_system.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit123] -FileName=src\i_tcp.c -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit124] -FileName=src\i_tcp.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit125] -FileName=src\i_video.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit126] -FileName=src\info.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit127] -FileName=src\info.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit128] -FileName=src\keys.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit129] -FileName=src\md5.c -Folder=W_Wad -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit130] -FileName=src\md5.h -Folder=W_Wad -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit131] -FileName=src\mserv.c -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit132] -FileName=src\mserv.h -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit133] -FileName=src\s_sound.c -Folder=S_Sounds -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit134] -FileName=src\s_sound.h -Folder=S_Sounds -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit135] -FileName=src\screen.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit136] -FileName=src\screen.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit137] -FileName=src\sounds.c -Folder=S_Sounds -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit138] -FileName=src\sounds.h -Folder=S_Sounds -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit139] -FileName=src\st_stuff.c -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit140] -FileName=src\st_stuff.h -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit141] -FileName=src\tables.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit142] -FileName=src\tables.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit143] -FileName=src\v_video.c -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit144] -FileName=src\v_video.h -Folder=R_Rend -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit145] -FileName=src\w_wad.c -Folder=W_Wad -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit146] -FileName=src\w_wad.h -Folder=W_Wad -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit147] -FileName=src\Z_zone.c -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit148] -FileName=src\Z_zone.h -Folder=D_Doom -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit152] -FileName=src\y_inter.h -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit153] -FileName=src\y_inter.c -Folder=H_Hud -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit154] -FileName=src\hardware\hw_dll.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit155] -FileName=src\hardware\hws_data.h -Folder=Hw_Hardware -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit159] -FileName=src\lzf.h -Folder=W_Wad -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit160] -FileName=src\lzf.c -Folder=W_Wad -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit161] -FileName=src\p_polyobj.h -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit162] -FileName=src\p_polyobj.c -Folder=P_Play -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit163] -FileName=src\m_queue.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit164] -FileName=src\m_dllist.h -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit165] -FileName=src\m_queue.c -Folder=M_Misc -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit166] -FileName=src\dummy\i_cdmus.c -Folder=I_Interface/Dummy -Compile=0 -CompileCpp=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit167] -FileName=src\dummy\i_main.c -Folder=I_Interface/Dummy -Compile=0 -CompileCpp=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit168] -FileName=src\dummy\i_net.c -Folder=I_Interface/Dummy -Compile=0 -CompileCpp=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit169] -FileName=src\dummy\i_sound.c -Folder=I_Interface/Dummy -Compile=0 -CompileCpp=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit170] -FileName=src\dummy\i_system.c -Folder=I_Interface/Dummy -Compile=0 -CompileCpp=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit171] -FileName=src\dummy\i_video.c -Folder=I_Interface/Dummy -Compile=0 -CompileCpp=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit172] -FileName=src\filesrch.c -Folder=I_Interface -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit173] -FileName=src\win32\afxres.h -Folder=I_Interface/Win32 -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit174] -FileName=src\win32\dx_error.c -Folder=I_Interface/Win32 -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit175] -FileName=src\win32\dx_error.h -Folder=I_Interface/Win32 -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit176] -FileName=src\win32\fabdxlib.c -Folder=I_Interface/Win32 -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit177] -FileName=src\win32\fabdxlib.h -Folder=I_Interface/Win32 -Compile=1 -CompileCpp=0 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[VersionInfo] -Major=1 -Minor=1 -Release=1 -Build=1 -LanguageID=1033 -CharsetID=1252 -CompanyName= -FileVersion=0.1 -FileDescription=Developed using the Dev-C++ IDE -InternalName= -LegalCopyright= -LegalTrademarks= -OriginalFilename=wLegacy.exe -ProductName=wLegacy -ProductVersion=0.1 -AutoIncBuildNrOnRebuild=0 -AutoIncBuildNrOnCompile=0 - -[Unit181] -FileName=src\win32\resource.h -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit182] -FileName=src\win32\win_cd.c -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit22] -FileName=src\d_main.c -Folder=D_Doom -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= -CompileCpp=0 - -[Unit158] -FileName=src\string.c -CompileCpp=0 -Folder=M_Misc -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit183] -FileName=src\win32\win_dbg.c -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit184] -FileName=src\win32\win_dbg.h -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit185] -FileName=src\win32\win_dll.c -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit186] -FileName=src\win32\win_dll.h -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit187] -FileName=src\win32\win_main.c -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit188] -FileName=src\win32\win_main.h -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit189] -FileName=src\win32\win_net.c -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit190] -FileName=src\win32\win_snd.c -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit191] -FileName=src\win32\win_sys.c -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit43] -FileName=src\m_misc.c -CompileCpp=0 -Folder=M_Misc -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Profile1] -ProfileName=Dummy Release -Type=1 -ObjFiles= -Includes= -Libs= -ResourceIncludes= -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-DNDEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-Os_@@_-g_@@_-DNONET_@@_-DNOROPENGL_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_BLUA_@@_ -CppCompiler=-Os_@@_-g_@@_ -Linker= -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=0000000000100000011000 -Icon= -ExeOutput=bin\Dummy\Release -ObjectOutput=objs\Dummy\Release -OverrideOutput=1 -OverrideOutputName=srb2dummy.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=0 -CompilerType=0 - -[Profile2] -ProfileName=Dummy Debug -Type=1 -ObjFiles= -Includes= -Libs= -ResourceIncludes= -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-D_DEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-O0_@@_-g_@@_-DNONET_@@_-DNOROPENGL_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_BLUA_@@_ -CppCompiler=-O0_@@_-g_@@_ -Linker= -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=0000000000000010011000 -Icon= -ExeOutput=bin\Dummy\Debug -ObjectOutput=objs\Dummy\Debug -OverrideOutput=1 -OverrideOutputName=srb2dummy.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=0 -CompilerType=0 - -[Unit192] -FileName=src\win32\win_vid.c -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit193] -FileName=src\win32\Srb2win.rc -CompileCpp=0 -Folder=I_Interface/Win32 -Compile=1 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit194] -FileName=src\sdl\dosstr.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit195] -FileName=src\sdl\endtxt.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit196] -FileName=src\sdl\endtxt.h -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= -CompileCpp=0 - -[Profile3] -ProfileName=Win32/DirectX Release -Type=0 -ObjFiles= -Includes=libs/libpng-src;libs/zlib;libs/gme/include;libs/fmodex/inc;libs -Libs=libs/libpng-src/projects;libs/zlib/win32;libs/miniupnpc/mingw32;libs/gme/win32;libs/gme/win32;libs/fmodex/lib -ResourceIncludes=src/win32 -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-DNDEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-Os_@@_-g_@@_-gdwarf-2_@@_-D_WINDOWS_@@_-DHAVE_PNG_@@_-DNOROPENGL_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_MINIUPNPC_@@_-DSTATIC_MINIUPNPC_@@_-DHAVE_BLUA_@@_-DHAVE_LIBGME_@@_ -CppCompiler=-Os_@@_-g_@@_-gdwarf-2_@@_ -Linker=-lgdi32_@@_-ldinput_@@_-ldxguid_@@_-lwinmm_@@_-lpng32_@@_-lz32_@@_-lminiupnpc_@@_-lws2_32_@@_-liphlpapi_@@_-mwindows_@@_-lgme.dll_@@_-lfmodex_@@_ -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=00000000001000000110e1 -Icon= -ExeOutput=bin\Mingw\Release -ObjectOutput=objs\Mingw\Release -OverrideOutput=1 -OverrideOutputName=srb2win.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=0 -CompilerType=0 - -[Profile4] -ProfileName=Win32/DirectX Debug -Type=0 -ObjFiles= -Includes=libs/libpng-src;libs/zlib;libs/gme/include;libs/fmodex/inc;libs -Libs=libs/libpng-src/projects;libs/zlib/win32;libs/miniupnpc/mingw32;libs/gme/win32;libs/fmodex/lib -ResourceIncludes=src/win32 -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-D_DEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-O0_@@_-g_@@_-gdwarf-2_@@_-D_WINDOWS_@@_-DHAVE_PNG_@@_-DNOROPENGL_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_MINIUPNPC_@@_-DSTATIC_MINIUPNPC_@@_-DHAVE_BLUA_@@_-DHAVE_LIBGME_@@_ -CppCompiler=-O0_@@_-g_@@_-gdwarf-2_@@_ -Linker=-lgdi32_@@_-ldinput_@@_-ldxguid_@@_-lwinmm_@@_-lpng32_@@_-lz32_@@_-lminiupnpc_@@_-lws2_32_@@_-liphlpapi_@@_-mconsole_@@_-lgme.dll_@@_-lfmodex_@@_ -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=00000000000000100110e1 -Icon= -ExeOutput=bin\Mingw\Debug -ObjectOutput=objs\Mingw\Debug -OverrideOutput=1 -OverrideOutputName=srb2win.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=0 -CompilerType=0 - -[Unit197] -FileName=src\sdl\hwsym_sdl.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit198] -FileName=src\sdl\hwsym_sdl.h -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit199] -FileName=src\sdl\i_cdmus.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit200] -FileName=src\sdl\i_main.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit201] -FileName=src\sdl\i_net.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit202] -FileName=src\sdl\sdl_sound.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit203] -FileName=src\sdl\i_system.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit204] -FileName=src\sdl\i_video.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit205] -FileName=src\sdl\IMG_xpm.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit206] -FileName=src\sdl\ogl_sdl.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit207] -FileName=src\sdl\ogl_sdl.h -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit208] -FileName=src\sdl\sdlmain.h -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit209] -FileName=src\hardware\r_opengl\ogl_win.c -CompileCpp=0 -Folder=Hw_Hardware/r_opengl -Compile=0 -Link=0 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit210] -FileName=src\hardware\r_opengl\r_opengl.c -CompileCpp=0 -Folder=Hw_Hardware/r_opengl -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit211] -FileName=src\hardware\r_opengl\r_opengl.h -CompileCpp=0 -Folder=Hw_Hardware/r_opengl -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Profile5] -ProfileName=Win32/SDL Release -Type=0 -ObjFiles= -Includes=libs/libpng-src;libs/zlib;libs -Libs=libs/libpng-src/projects;libs/zlib/win32;libs/miniupnpc/mingw32 -ResourceIncludes=src/win32 -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-DNDEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-Os_@@_-g_@@_-gdwarf-2_@@_-DUSE_WGL_SWAP_@@_-DDIRECTFULLSCREEN_@@_-DHAVE_SDL_@@_-DHWRENDER_@@_-DHW3SOUND_@@_-DHAVE_MIXER_@@_-DHAVE_PNG_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_MINIUPNPC_@@_-DSTATIC_MINIUPNPC_@@_-DHAVE_BLUA_@@_ -CppCompiler=-Os_@@_-g_@@_-gdwarf-2_@@_ -Linker=-lSDL_@@_-lSDL_Mixer_@@_-lpng32_@@_-lz32_@@_-lminiupnpc_@@_-lws2_32_@@_-liphlpapi_@@_-mconsole_@@_ -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=00000000001000000110e1 -Icon= -ExeOutput=bin\Mingw\SDL\Release -ObjectOutput=objs\Mingw\SDL\Release -OverrideOutput=1 -OverrideOutputName=srb2sdl.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=0 -CompilerType=0 - -[Unit212] -FileName=src\lua_baselib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit213] -FileName=src\lua_hooklib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit214] -FileName=src\lua_infolib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit215] -FileName=src\lua_libs.h -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit216] -FileName=src\lua_hook.h -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Profile6] -ProfileName=Win32/SDL Debug -Type=0 -ObjFiles= -Includes=libs/libpng-src;libs/zlib;libs -Libs=libs/libpng-src/projects;libs/zlib/win32;libs/miniupnpc/mingw32 -ResourceIncludes=src/win32 -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-D_DEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-O0_@@_-g_@@_-gdwarf-2_@@_-DUSE_WGL_SWAP_@@_-DDIRECTFULLSCREEN_@@_-DHAVE_SDL_@@_-DHWRENDER_@@_-DHW3SOUND_@@_-DHAVE_MIXER_@@_-DHAVE_PNG_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_MINIUPNPC_@@_-DSTATIC_MINIUPNPC_@@_-DHAVE_BLUA_@@_ -CppCompiler=-O0_@@_-g_@@_-gdwarf-2_@@_ -Linker=-lSDL_@@_-lSDL_Mixer_@@_-lpng32_@@_-lz32_@@_-lminiupnpc_@@_-lws2_32_@@_-liphlpapi_@@_-mconsole_@@_ -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=00000000000000100110e1 -Icon= -ExeOutput=bin\Mingw\SDL\Debug -ObjectOutput=objs\Mingw\SDL\Debug -OverrideOutput=1 -OverrideOutputName=srb2sdl.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=0 -CompilerType=0 - -[Profile7] -ProfileName=Win64/DirectX Release -Type=0 -ObjFiles= -Includes=libs/libpng-src;libs/zlib;libs -Libs=libs/libpng-src/projects;libs/zlib/win32;libs/miniupnpc/mingw64 -ResourceIncludes=src/win32 -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-DNDEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-Os_@@_-g_@@_-D_WINDOWS_@@_-DHAVE_PNG_@@_-DNOROPENGL_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_MINIUPNPC_@@_-DSTATIC_MINIUPNPC_@@_-DHAVE_BLUA_@@_ -CppCompiler=-Os_@@_-g_@@_ -Linker=-lgdi32_@@_-ldinput_@@_-ldxguid_@@_-lwinmm_@@_-lpng64_@@_-lz64_@@_-lminiupnpc_@@_-lws2_32_@@_-liphlpapi_@@_-mwindows_@@_ -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=00000000001000000110tb -Icon= -ExeOutput=bin\Mingw64\Release -ObjectOutput=objs\Mingw64\Release -OverrideOutput=1 -OverrideOutputName=srb2win.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=9 -CompilerType=0 - -[Profile8] -ProfileName=Win64/DirectX Debug -Type=0 -ObjFiles= -Includes=libs/libpng-src;libs/zlib;libs -Libs=libs/libpng-src/projects;libs/zlib/win32;libs/miniupnpc/mingw64 -ResourceIncludes=src/win32 -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-D_DEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-O0_@@_-g_@@_-D_WINDOWS_@@_-DHAVE_PNG_@@_-DNOROPENGL_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_MINIUPNPC_@@_-DSTATIC_MINIUPNPC_@@_-DHAVE_BLUA_@@_ -CppCompiler=-O0_@@_-g_@@_ -Linker=-lgdi32_@@_-ldinput_@@_-ldxguid_@@_-lwinmm_@@_-lpng64_@@_-lz64_@@_-lminiupnpc_@@_-lws2_32_@@_-liphlpapi_@@_-mconsole_@@_ -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=00000000000000100110tb -Icon= -ExeOutput=bin\Mingw64\Debug -ObjectOutput=objs\Mingw64\Debug -OverrideOutput=1 -OverrideOutputName=srb2win.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=9 -CompilerType=0 - -[Profile9] -ProfileName=Win64/SDL Release -Type=0 -ObjFiles= -Includes=libs/libpng-src;libs/zlib;libs -Libs=libs/libpng-src/projects;libs/zlib/win32;libs/miniupnpc/mingw64 -ResourceIncludes=src/win32 -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-DNDEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-Os_@@_-g_@@_-DUSE_WGL_SWAP_@@_-DDIRECTFULLSCREEN_@@_-DHAVE_SDL_@@_-DHWRENDER_@@_-DHW3SOUND_@@_-DHAVE_MIXER_@@_-DHAVE_PNG_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_MINIUPNPC_@@_-DSTATIC_MINIUPNPC_@@_-DHAVE_BLUA_@@_ -CppCompiler=-Os_@@_-g_@@_ -Linker=-lSDL_@@_-lSDL_Mixer_@@_-lpng64_@@_-lz64_@@_-lminiupnpc_@@_-lws2_32_@@_-liphlpapi_@@_-mconsole_@@_ -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=00000000001000000110tb -Icon= -ExeOutput=bin\Mingw64\SDL\Release -ObjectOutput=objs\Mingw64\SDL\Release -OverrideOutput=1 -OverrideOutputName=srb2sdl.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=9 -CompilerType=0 - -[Profile10] -ProfileName=Win64/SDL Debug -Type=0 -ObjFiles= -Includes=libs/libpng-src;libs/zlib;libs -Libs=libs/libpng-src/projects;libs/zlib/win32;libs/miniupnpc/mingw64 -ResourceIncludes=src/win32 -MakeIncludes=comptime.mk;cpdebug.mk -Compiler=-D_DEBUG_@@_-fno-exceptions_@@_-DSTDC_HEADERS_@@_-Wall_@@_-O0_@@_-g_@@_-DUSE_WGL_SWAP_@@_-DDIRECTFULLSCREEN_@@_-DHAVE_SDL_@@_-DHWRENDER_@@_-DHW3SOUND_@@_-DHAVE_MIXER_@@_-DHAVE_PNG_@@_-D__USE_MINGW_ANSI_STDIO=0_@@_-DHAVE_MINIUPNPC_@@_-DSTATIC_MINIUPNPC_@@_-DHAVE_BLUA_@@_ -CppCompiler=-O0_@@_-g_@@_ -Linker=-lSDL_@@_-lSDL_Mixer_@@_-lpng64_@@_-lz64_@@_-lminiupnpc_@@_-lws2_32_@@_-liphlpapi_@@_-mconsole_@@_ -PreprocDefines=NORMALSRB2_@@_ -CompilerSettings=00000000000000100110tb -Icon= -ExeOutput=bin\Mingw64\SDL\Debug -ObjectOutput=objs\Mingw64\SDL\Debug -OverrideOutput=1 -OverrideOutputName=srb2sdl.exe -HostApplication= -CommandLine= -UseCustomMakefile=0 -CustomMakefile= -IncludeVersionInfo=0 -SupportXPThemes=0 -CompilerSet=9 -CompilerType=0 - -[Unit217] -FileName=src\lua_mathlib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit218] -FileName=src\lua_mobjlib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit219] -FileName=src\lua_script.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit220] -FileName=src\lua_script.h -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit221] -FileName=src\blua\lapi.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit222] -FileName=src\blua\lauxlib.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit223] -FileName=src\blua\lcode.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit224] -FileName=src\blua\ldebug.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit225] -FileName=src\blua\ldo.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit226] -FileName=src\blua\lfunc.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit227] -FileName=src\blua\lgc.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit228] -FileName=src\blua\llex.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit229] -FileName=src\blua\llimits.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit230] -FileName=src\blua\lmem.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit231] -FileName=src\blua\lobject.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit232] -FileName=src\blua\lopcodes.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit233] -FileName=src\blua\lparser.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit234] -FileName=src\blua\lstate.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit235] -FileName=src\blua\lstring.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit236] -FileName=src\blua\ltable.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit237] -FileName=src\blua\ltm.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit238] -FileName=src\blua\lua.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit239] -FileName=src\blua\luaconf.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit240] -FileName=src\blua\lualib.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit241] -FileName=src\blua\lundump.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit242] -FileName=src\blua\lvm.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit243] -FileName=src\blua\lzio.h -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit244] -FileName=src\blua\lapi.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit245] -FileName=src\blua\lauxlib.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit246] -FileName=src\blua\lbaselib.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit247] -FileName=src\blua\lcode.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit248] -FileName=src\blua\ldebug.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit249] -FileName=src\blua\ldo.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit250] -FileName=src\blua\ldump.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit251] -FileName=src\blua\lfunc.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit252] -FileName=src\blua\lgc.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit253] -FileName=src\blua\linit.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit254] -FileName=src\blua\llex.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit255] -FileName=src\blua\lmem.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit256] -FileName=src\blua\lobject.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit257] -FileName=src\blua\lopcodes.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit258] -FileName=src\blua\lparser.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit259] -FileName=src\blua\lstate.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit260] -FileName=src\blua\lstring.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit261] -FileName=src\blua\lstrlib.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit262] -FileName=src\blua\ltable.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit263] -FileName=src\blua\ltablib.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit264] -FileName=src\blua\ltm.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit265] -FileName=src\blua\lundump.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit266] -FileName=src\blua\lvm.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit267] -FileName=src\blua\lzio.c -CompileCpp=0 -Folder=BLUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit268] -FileName=src\lua_playerlib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit269] -FileName=src\comptime.c -CompileCpp=0 -Folder=D_Doom -Compile=1 -Link=1 -Priority=1001 -OverrideBuildCmd=1 -BuildCmd=$(CC) -c src/comptime.c -o $@ $(CFLAGS) -DCOMPVERSION - -[Unit270] -FileName=src\b_bot.c -CompileCpp=0 -Folder=B_Bot -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit271] -FileName=src\b_bot.h -CompileCpp=0 -Folder=B_Bot -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit272] -FileName=src\m_cond.c -CompileCpp=0 -Folder=M_Misc -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit273] -FileName=src\m_cond.h -CompileCpp=0 -Folder=M_Misc -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit178] -FileName=src\lua_consolelib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit179] -FileName=src\lua_thinkerlib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit180] -FileName=src\lua_maplib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit274] -FileName=src\sdl\mixer_sound.c -CompileCpp=0 -Folder=I_Interface/SDL -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit275] -FileName=src\m_anigif.c -CompileCpp=0 -Folder=M_Misc -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit276] -FileName=src\m_anigif.h -CompileCpp=0 -Folder=M_Misc -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit277] -FileName=src\lua_hudlib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit278] -FileName=src\lua_skinlib.c -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= - -[Unit279] -FileName=src\lua_hud.h -CompileCpp=0 -Folder=LUA -Compile=1 -Link=1 -Priority=1000 -OverrideBuildCmd=0 -BuildCmd= diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 61e15c9ed..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,133 +0,0 @@ -version: 1.3.{branch}-{build} -os: MinGW - -environment: - CC: ccache - CCACHE_CC: i686-w64-mingw32-gcc - CCACHE_CC_64: x86_64-w64-mingw32-gcc - WINDRES: windres - # c:\mingw-w64 i686 has gcc 6.3.0, so use c:\msys64 7.3.0 instead - MINGW_SDK: c:\msys64\mingw32 - # c:\msys64 x86_64 has gcc 8.2.0, so use c:\mingw-w64 7.3.0 instead - MINGW_SDK_64: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64 - CFLAGS: -Wall -W -Werror -Wno-error=implicit-fallthrough -Wimplicit-fallthrough=3 -Wno-tautological-compare -Wno-error=suggest-attribute=noreturn - UPX_ZIP: upx391w - UPX_URL: http://upx.sourceforge.net/download/upx391w.zip - CCACHE_EXE: ccache.exe - CCACHE_URL: http://alam.srb2.org/ccache.exe - CCACHE_COMPRESS: true - CCACHE_DIR: C:\Users\appveyor\.ccache - # Disable UPX by default. The user can override this in their Appveyor project settings - NOUPX: 1 - ############################## - # DEPLOYER VARIABLES - # DPL_ENABLED=1 builds installers for branch names starting with `deployer`. - # DPL_TAG_ENABLED=1 will also build installers for release tags. DPL_ENABLED=1 must also be set. - # Set these in the Appveyor project settings - ############################## - DPL_ENABLED: 0 - DPL_TAG_ENABLED: 0 - DPL_INSTALLER_NAME: srb2kart-v13 - # Asset handling is barebones vs. Travis Deployer. We operate on 7z only. - # Include the README files and the OpenGL batch in the main and patch archives. - # The x86/x64 archives contain the DLL binaries. - ASSET_ARCHIVE_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-assets.7z - ASSET_ARCHIVE_PATCH_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-patch-assets.7z - ASSET_ARCHIVE_X86_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-x86-assets.7z - ASSET_ARCHIVE_X64_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-x64-assets.7z - ASSET_ARCHIVE_OPTIONAL_PATH: https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-optional-assets.7z - # This is overridden to 1 for release tag builds - ASSET_FILES_OPTIONAL_GET: 0 - # For patches, also include the X86/X64 DLLs. - PACKAGE_PATCH_DLL_GET: 0 - # Delete all asset downloads so they can be redownloaded - ASSET_CLEAN: 0 - -cache: -- upx391w.zip -- ccache.exe -- C:\Users\appveyor\.ccache -- C:\Users\appveyor\srb2_cache - -install: -- if [%CONFIGURATION%] == [SDL64] ( set "X86_64=1" ) -- if [%CONFIGURATION%] == [SDL64] ( set "CONFIGURATION=SDL" ) -- if [%X86_64%] == [1] ( set "MINGW_SDK=%MINGW_SDK_64%" ) -- if [%X86_64%] == [1] ( set "CCACHE_CC=%CCACHE_CC_64%" ) - -- if not exist "%UPX_ZIP%.zip" appveyor DownloadFile "%UPX_URL%" -FileName "%UPX_ZIP%.zip" -- 7z x -y "%UPX_ZIP%.zip" -o%TMP% >null -- robocopy /S /xx /ns /nc /nfl /ndl /np /njh /njs "%TMP%\%UPX_ZIP%" "%MINGW_SDK%\bin" upx.exe || exit 0 - -- if not exist "%CCACHE_EXE%" appveyor DownloadFile "%CCACHE_URL%" -FileName "%CCACHE_EXE%" -- ccache -M 99M -- xcopy /Y /V /I ccache.exe "%MINGW_SDK%\bin" - -configuration: -- SDL -#- SDL64 - -before_build: -- set "Path=%MINGW_SDK%\bin;%Path%" -- if [%X86_64%] == [1] ( x86_64-w64-mingw32-gcc --version ) else ( i686-w64-mingw32-gcc --version ) -- mingw32-make --version -- if not [%NOUPX%] == [1] ( upx -V ) -- ccache -V -- ccache -s -- if [%NOUPX%] == [1] ( set "NOUPX=NOUPX=1" ) else ( set "NOUPX=" ) -- if defined [%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%] ( set "COMMIT=%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%" ) else ( set "COMMIT=%APPVEYOR_REPO_COMMIT%" ) -- cmd: git rev-parse --short %COMMIT%>%TMP%/gitshort.txt -- cmd: set /P GITSHORT=<%TMP%/gitshort.txt -# for pull requests, take the owner's name only, if this isn't the same repo of course -- set "REPO=%APPVEYOR_REPO_BRANCH%" -- if not [%APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME%] == [] ( if not [%APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME%] == [%APPVEYOR_REPO_NAME%] ( for /f "delims=/" %%a in ("%APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME%") do set "REPO=%%a-%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH%" ) ) -- set "EXENAME=EXENAME=srb2win-%REPO%-%GITSHORT%.exe" -- set "SRB2_MFLAGS=-C src WARNINGMODE=1 CCACHE=1 NOOBJDUMP=1 %NOUPX% %EXENAME%" -- if [%X86_64%] == [1] ( set "MINGW_FLAGS=MINGW64=1 X86_64=1 GCC81=1" ) else ( set "MINGW_FLAGS=MINGW=1 GCC91=1" ) -- set "SRB2_MFLAGS=%SRB2_MFLAGS% %MINGW_FLAGS% %CONFIGURATION%=1" - -build_script: -- cmd: mingw32-make.exe %SRB2_MFLAGS% clean -- cmd: mingw32-make.exe %SRB2_MFLAGS% ERRORMODE=1 -k - -after_build: -- if [%X86_64%] == [1] ( - set "BUILD_PATH=bin\Mingw64\Release" - ) else ( - set "BUILD_PATH=bin\Mingw\Release" - ) -- if [%X86_64%] == [1] ( set "CONFIGURATION=%CONFIGURATION%64" ) -- ccache -s -- set BUILD_ARCHIVE=%REPO%-%GITSHORT%-%CONFIGURATION%.7z -- set BUILDSARCHIVE=%REPO%-%CONFIGURATION%.7z -- cmd: 7z a %BUILD_ARCHIVE% %BUILD_PATH% -xr!.gitignore -- appveyor PushArtifact %BUILD_ARCHIVE% -- cmd: copy %BUILD_ARCHIVE% %BUILDSARCHIVE% -- appveyor PushArtifact %BUILDSARCHIVE% -############################## -# DEPLOYER SCRIPT -############################## -- if [%DPL_ENABLED%] == [1] ( call "deployer\appveyor\deployer.bat" ) - -test: off - -#deploy: -# - provider: FTP -# protocol: ftps -# host: -# secure: NsLJEPIBvmwCOj8Tg8RoRQ== -# username: -# secure: ejxi5mvk7oLYu7QtbYojajEPigMy0mokaKhuEVuDZcA= -# password: -# secure: Hbn6Uy3lT0YZ88yFJ3aW4w== -# folder: appveyor -# application: -# active_mode: false -# on: -# branch: master -# appveyor_repo_tag: true - - -on_finish: -#- cmd: echo xfreerdp /u:appveyor /cert-ignore +clipboard /v:: -#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) diff --git a/debian-template/README.Debian b/debian-template/README.Debian deleted file mode 100644 index 3aa52787e..000000000 --- a/debian-template/README.Debian +++ /dev/null @@ -1,70 +0,0 @@ -srb2 for Debian ---------------- - -SRB2 Debian package! -Hi there, to rebuild these packages just use debuild in the root source directory (not /src!). -You can build these with or without a key if you want, but if you want to put these on a repo, -generate your own GnuPG key as per the https://help.ubuntu.com/community/GnuPrivacyGuardHowto -instructions and pass the -k command to debuild. Make sure you export the key footprint -and give them to your users to install with apt-key add. Thanks! - - -- Callum Dickinson Fri, 26 Nov 2010 18:25:31 +1300 - ---------------- - - -Templating - -Note that you MUST run [repo-root]/debian_template.sh before running debuild -on these scripts! debian_template.sh fills these template files with working values. - -You should also set PACKAGE_NAME_EMAIL="John Doe " to match -the identity of the key you will use to sign the package. - - -Building for Launchpad PPA - -Use these steps to prepare building a source package for Launchpad: - - 1. cd [repo-root] - 2. git reset --hard; git clean -fd; git clean -fx; - * Resets your repo folder to a committed state and removes untracked files - * If you built srb2-data in the assets/ folder, MAKE SURE THAT FOLDER DOES NOT HAVE ASSETS, - OR THEY MAY BE INCLUDED IN THE MAIN SOURCE PACKAGE! - -Build the source package: - - 1. source [repo-root]/debian_template.sh - * Initializes defaults for the package variables and fills in templates. - 2. debuild -S (builds the source package for Launchpad) - - -Signing for Launchpad PPA - -First, follow Callum's instructions to generate a GnuPG key with your identity. You will need -to publish the fingerprint of that key to Ubuntu's key server. - - https://help.ubuntu.com/community/GnuPrivacyGuardHowto#Uploading_the_key_to_Ubuntu_keyserver - -Next, you will have to add that key fingerprint to your Launchpad account. Go to your Launchpad -profile and click the yellow Edit button next to "OpenPGP keys". Once you add the key, you can -upload signed source packages and publish them onto your PPA. - -IF YOU UPLOAD A PACKAGE and Launchpad does NOT send you a confirmation or rejection email, that -means your key is not set up correctly with your Launchpad account. - -Finally, if your packages have not already been signed, follow these steps: - - 1. cd .. - * Packages are located in the parent folder of where debuild was called - 2. debsign "srb2_[version]_source.changes" - * You may need to specify -k [key-fingerprint] - - -Uploading for Launchpad PPA - -Follow the instructions at to upload -to your PPA and have Launchpad build your binary deb packages. - - - -- Marco Zafra Mon, 26 Nov 2018 21:13:00 -0500 diff --git a/debian-template/README.source b/debian-template/README.source deleted file mode 100644 index f63a42cac..000000000 --- a/debian-template/README.source +++ /dev/null @@ -1,46 +0,0 @@ -srb2 for Debian ---------------- - -Here it is! SRB2 v2.1.2 source code! - -GNU/Linux -~~~ - -Dependencies: - SDL 1.2.7 or better (from libsdl.org) - SDL_Mixer 1.2.2(.7 for file-less music playback) (from libsdl.org) - Nasm (use NOASM=1 if you don't have it or have an non-i386 system, I think) - libPNG 1.2.7 - Zlib 1.2.3 - The Xiph.org libogg and libvorbis libraries - The OpenGL headers (from Mesa, usually shipped with your X.org or XFree - installation, so you needn't worry, most likely) - GCC 3.x toolchain and binutils - GNU Make - -Build instructions: - -make -C src LINUX=1 - -Build instructions for non-X86 devices (such as X64): - -make -C src LINUX=1 NONX86=1 - -Build instructions to build for Wii Linux/SRB2Wii on a PowerPC system, -follow cross-compiling instructions for cross-compiling on a x86 system: - -make -C src LINUX=1 WIILINUX=1 - -Build instructions to build for Pandora (Linux) on a ARM system, -follow cross-compiling instructions for cross-compiling on a x86 system: - -make -C src PANDORA=1 - -------------------------------------------------------------------------------- - -binaries will turn in up in bin/ - -note: read the src/makefile for more options - -- Sonic Team Junior -http://www.srb2.org diff --git a/debian-template/changelog b/debian-template/changelog deleted file mode 100644 index fb08908cd..000000000 --- a/debian-template/changelog +++ /dev/null @@ -1,5 +0,0 @@ -${PACKAGE_NAME} (${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}) ${PACKAGE_DISTRO}; urgency=${PACKAGE_URGENCY} - - * ${PROGRAM_NAME} v${PROGRAM_VERSION} program build - - -- ${PACKAGE_NAME_EMAIL} ${__PACKAGE_DATETIME} diff --git a/debian-template/compat b/debian-template/compat deleted file mode 100644 index 7f8f011eb..000000000 --- a/debian-template/compat +++ /dev/null @@ -1 +0,0 @@ -7 diff --git a/debian-template/control b/debian-template/control deleted file mode 100644 index 4db1d8752..000000000 --- a/debian-template/control +++ /dev/null @@ -1,51 +0,0 @@ -# SRB2 Debian package control file. - -Source: ${PACKAGE_NAME} -Section: games -Priority: extra -Maintainer: ${PACKAGE_GROUP_NAME_EMAIL} -Build-Depends: debhelper (>= 7.0.50~), - libsdl2-dev, - libsdl2-mixer-dev, - libpng-dev | libpng16-dev | libpng12-dev (>= 1.2.7), - zlib1g-dev, - libgme-dev, - libcurl4-openssl-dev, - libglu1-dev | libglu-dev, - libosmesa6-dev | libgl-dev, - nasm [i386] -Standards-Version: 3.8.4 -Homepage: ${PACKAGE_WEBSITE} - -Package: ${PACKAGE_NAME} -Architecture: any -Depends: ${SHLIBS_DEPENDS}, ${MISC_DEPENDS}, - ${PACKAGE_NAME}-data (>> ${PACKAGE_ASSET_MINVERSION}), ${PACKAGE_NAME}-data (<< ${PACKAGE_ASSET_MAXVERSION}), - libsdl2-2.0-0, - libsdl2-mixer-2.0-0, - zlib1g, - libgme0, - libcurl4, - libpng | libpng16-16 | libpng12-0 -Description: A cross-platform 3D Sonic fangame - Sonic Robo Blast 2 is a 3D open-source Sonic the Hedgehog - fangame built using a modified version of the Doom Legacy - port of Doom. SRB2 is closely inspired by the original - Sonic games from the Sega Genesis, and attempts to recreate - the design in 3D. It features tons of levels, enemies, speed, - and quite a lot of the fun that the original Sonic games provided. - - -Package: ${PACKAGE_NAME}-dbg -Architecture: any -# FIXME: should be Depends: ${SHLIBS_DEPENDS}, ${MISC_DEPENDS}, srb2-data (= 2.1.14), srb2 but dh_shlibdeps is being an asshat -Depends: libc6, ${MISC_DEPENDS}, ${PACKAGE_NAME}-data (>> ${PACKAGE_ASSET_MINVERSION}), ${PACKAGE_NAME}-data (<< ${PACKAGE_ASSET_MAXVERSION}), ${PACKAGE_NAME} -Description: A cross-platform 3D Sonic fangame - Sonic Robo Blast 2 is a 3D open-source Sonic the Hedgehog - fangame built using a modified version of the Doom Legacy - port of Doom. SRB2 is closely inspired by the original - Sonic games from the Sega Genesis, and attempts to recreate - the design in 3D. It features tons of levels, enemies, speed, - and quite a lot of the fun that the original Sonic games provided. - This is a debug binary; its symbols will be loaded by gdb - when the user starts the game with gdb for debugging. diff --git a/debian-template/copyright b/debian-template/copyright deleted file mode 100644 index cc47c453b..000000000 --- a/debian-template/copyright +++ /dev/null @@ -1,27 +0,0 @@ -This work was packaged for Debian by: - - ${PACKAGE_NAME_EMAIL} ${__PACKAGE_DATETIME} - -It was downloaded from: - - ${PACKAGE_WEBSITE} - -Upstream Author(s): - - ${PACKAGE_GROUP_NAME_EMAIL} - -Copyright: - - Copyright (C) 1998-2018 by Sonic Team Junior - -License: - - GNU General Public License, version 2 - -The Debian packaging is: - - Copyright (C) 2010 Callum Dickinson - Copyright (C) 2010-2018 by Sonic Team Junior - -and is licensed under the GPL version 2, -see "/usr/share/common-licenses/GPL-2". diff --git a/debian-template/docs b/debian-template/docs deleted file mode 100644 index dba2cd4c8..000000000 --- a/debian-template/docs +++ /dev/null @@ -1,4 +0,0 @@ -README.md -assets/README.txt -assets/LICENSE.txt -assets/LICENSE-3RD-PARTY.txt diff --git a/debian-template/rules b/debian-template/rules deleted file mode 100644 index 0a77624cb..000000000 --- a/debian-template/rules +++ /dev/null @@ -1,172 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- - -############################################################################# -# -# GNU Make Debian package makefile for SRB2 -# -# Copyright (C) 1998-2010 by Callum Dickinson -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# This file most likely will not need to be modified to make -# branches of SRB2 capable of making their own Debian packages, -# instead look at the /debian/control file for configuration. -# -############################################################################# - -############################################################################# -# -# !!!!!!!!!! DEPLOYER NOTE !!!!!!!!!! -# -# Variables to be templated are curly-braced ${PACKAGE_INSTALL_PATH} -# Variables used by the rules script are parenthese'd $(PKGDIR) -# See [repo-root]/debian_template.sh -# -############################################################################# - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# user/group of to-be-installed files -ROOT_USER := 0 -ROOT_GROUP := 0 - -# determine cross-compile (may need some work) -CROSS_COMPILE_BUILD := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -CROSS_COMPILE_HOST := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -CROSS_COMPILE := $(shell test "$(CROSS_COMPILE_BUILD)" != "$(CROSS_COMPILE_HOST)" && echo "$(CROSS_COMPILE_HOST)") - -MKDIR = mkdir -p -MAKE = make -INSTALL = install -o $(ROOT_USER) -g $(ROOT_GROUP) -m 644 -MV = mv -RM = rm -rf -STRIPARGS = --strip-unneeded -ifdef CROSS_COMPILE -STRIP = $(CROSS_COMPILE_HOST)-strip $(STRIPARGS) -else -STRIP = strip $(STRIPARGS) -endif -DIR := $(shell pwd) - -# FIXME: hate hate hate head/tail hack :( -CONTROLF = $(DIR)/debian/control -PACKAGE = ${PACKAGE_NAME} -DBGPKG = ${PACKAGE}-dbg -TITLE = ${PROGRAM_NAME} -SECTION = Games/Action -EXENAME = ${PROGRAM_FILENAME} -DBGNAME = debug/$(EXENAME) - -PKGDIR = $(shell echo "${PACKAGE_INSTALL_PATH}" | sed -e 's/^\///') -DBGDIR = usr/lib/debug/$(PKGDIR) -LINKDIR = $(shell echo "${PACKAGE_LINK_PATH}" | sed -e 's/^\///') -PIXMAPS_DIR = usr/share/pixmaps -DESKTOP_DIR = usr/share/applications -PREFIX = $(shell test "$(CROSS_COMPILE_BUILD)" != "$(CROSS_COMPILE_HOST)" && echo "PREFIX=$(CROSS_COMPILE_HOST)") -OS = LINUX=1 -NONX86 = $(shell test "`echo $(CROSS_COMPILE_HOST) | grep 'i[3-6]86'`" || echo "NONX86=1") -MAKEARGS = $(OS) $(NONX86) $(PREFIX) EXENAME=$(EXENAME) DBGNAME=$(DBGNAME) NOOBJDUMP=1 # SDL_PKGCONFIG=sdl2 PNG_PKGCONFIG=libpng -MENUFILE1 = ?package($(PACKAGE)):needs="X11" section="$(SECTION)" -MENUFILE2 = title="$(TITLE)" command="/$(PKGDIR)/$(PACKAGE)" -BINDIR := $(DIR)/bin/Linux/Release - -# FIXME pkg-config dir hacks -# Launchpad doesn't need this; it actually makes i386 builds fail due to cross-compile -# export PKG_CONFIG_LIBDIR = /usr/lib/$(CROSS_COMPILE_HOST)/pkgconfig -LDFLAGS += "-Wl,-rpath=/usr/lib/$(CROSS_COMPILE_HOST)" - -# Some libgme-dev packages don't use pkg-config yet, so include the linker flag ourselves -PKG_CONFIG?=pkg-config -LIBGME_PKGCONFIG?=libgme -LIBGME_LDFLAGS?=$(shell $(PKG_CONFIG) $(LIBGME_PKGCONFIG) --libs) - -ifeq ($(LIBGME_LDFLAGS),) -MAKEARGS += LIBGME_LDFLAGS=-lgme -endif - -build: - $(MKDIR) $(BINDIR)/debug - $(MAKE) -C $(DIR)/src $(MAKEARGS) - $(STRIP) $(BINDIR)/$(EXENAME) - -binary-indep: - # only here to kill Lintian warning - echo "no need to do any arch-independent stuff" - -binary-arch: - # create ddirs - $(MKDIR) $(DIR)/debian/tmp/$(PKGDIR) $(DIR)/debian/tmp/$(DBGDIR) - $(MKDIR) $(DIR)/debian/tmp/$(PKGDIR) $(DIR)/debian/tmp/$(DESKTOP_DIR) - $(MKDIR) $(DIR)/debian/tmp/$(PKGDIR) $(DIR)/debian/tmp/$(PIXMAPS_DIR) - # install main binaries - $(INSTALL) $(BINDIR)/$(EXENAME) $(DIR)/debian/tmp/$(PKGDIR)/$(PACKAGE) - $(INSTALL) $(BINDIR)/$(DBGNAME) $(DIR)/debian/tmp/$(DBGDIR)/$(PACKAGE) - # Install desktop file and banner image - $(INSTALL) $(DIR)/srb2.png $(DIR)/debian/tmp/usr/share/pixmaps/${PROGRAM_FILENAME}.png - $(INSTALL) $(DIR)/debian/srb2.desktop $(DIR)/debian/tmp/usr/share/applications/${PROGRAM_FILENAME}.desktop - # add compiled binaries to include-binaries - echo $(BINDIR)/$(EXENAME) >> $(DIR)/debian/source/include-binaries - echo $(BINDIR)/$(EXENAME) >> $(DIR)/debian/source/include-binaries - # Generate install folder files - echo $(PKGDIR) > $(DIR)/debian/$(PACKAGE).install - echo $(DESKTOP_DIR) >> $(DIR)/debian/$(PACKAGE).install - echo $(PIXMAPS_DIR) >> $(DIR)/debian/$(PACKAGE).install - echo $(DBGDIR) > $(DIR)/debian/$(DBGPKG).install -# Launchpad only calls binary-arch, so just move everything up -#binary: binary-arch - # Generate .desktop specifications - echo "`echo '$(MENUFILE1)\\'`" > $(DIR)/debian/menu - echo " `echo '$(MENUFILE2)'`" >> $(DIR)/debian/menu - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - # dh_installexamples - dh_install --sourcedir=$(DIR)/debian/tmp - dh_installmenu - # dh_installdebconf - # dh_installlogrotate - # dh_installemacsen - # dh_installpam - # dh_installmime - # dh_python - # dh_installinit - # dh_installcron - # dh_installinfo - # dh_installman - dh_link $(PKGDIR)/$(EXENAME) $(LINKDIR)/$(EXENAME) - dh_compress - dh_fixperms - # dh_perl - # dh_makeshlibs - dh_installdeb - -dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-arch - -clean: - $(MAKE) -C $(DIR)/src $(MAKEARGS) clean cleandep - $(RM) $(BINDIR)/* - $(RM) $(DIR)/debian/$(PACKAGE)/* - $(RM) $(DIR)/debian/$(DBGPKG)/* - $(RM) $(DIR)/debian/tmp/* - $(RM) $(DIR)/debian/$(PACKAGE).install - $(RM) $(DIR)/debian/$(DBGPKG).install - $(RM) $(DIR)/debian/menu - $(RM) $(DIR)/debian/files - $(RM) $(DIR)/debian/source/include-binaries - -.PHONY: all clean binary binary-indep build diff --git a/debian-template/source/format b/debian-template/source/format deleted file mode 100644 index 89ae9db8f..000000000 --- a/debian-template/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (native) diff --git a/debian-template/source/options b/debian-template/source/options deleted file mode 100644 index 9532ff202..000000000 --- a/debian-template/source/options +++ /dev/null @@ -1,11 +0,0 @@ -tar-ignore = "assets/*.srb" -tar-ignore = "assets/*.pk3" -tar-ignore = "assets/*.dta" -tar-ignore = "assets/*.wad" -tar-ignore = "assets/*.kart" -tar-ignore = "assets/debian/${PACKAGE_NAME}-data/*" -tar-ignore = "assets/debian/tmp/*" -tar-ignore = "*.obj" -tar-ignore = "*.dep" -tar-ignore = ".git/*" -tar-ignore = ".git*" diff --git a/debian-template/srb2.desktop b/debian-template/srb2.desktop deleted file mode 100644 index 07c7906e0..000000000 --- a/debian-template/srb2.desktop +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Name=${PROGRAM_NAME} -Comment=${PROGRAM_DESCRIPTION} -Encoding=UTF-8 -Exec=${PACKAGE_INSTALL_PATH}/${PROGRAM_FILENAME} -Icon=/usr/share/pixmaps/${PROGRAM_FILENAME}.png -Terminal=false -Type=Application -StartupNotify=false -Categories=Application;Game; diff --git a/debian_template.sh b/debian_template.sh deleted file mode 100644 index c1af3c19f..000000000 --- a/debian_template.sh +++ /dev/null @@ -1,166 +0,0 @@ -#!/bin/bash - -# Deployer for Travis-CI -# Debian package templating -# -# Call this script BEFORE running debuild! -# source ./debian_template.sh [clean] [main/asset] -# -# Before running this script, -# you should also set PACKAGE_NAME_EMAIL="John Doe " to match -# the identity of the key you will use to sign the package. -# - -# Get script's actual path -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" - -# Recursive function for directory crawling -# $1 = Directory root to crawl -# $2 = Code to eval on file -# $3 = Code to eval on directory -# Exposes $dirtails, $dirlevel, and $dirtailname -dirlevel=0 # initialize -dirtails=() - -# Utility function to make dira/dirb/dirc string -makedirtailname () { - dirtailname="" - for tail in $dirtails; do - if [[ "$dirtailname" == "" ]]; then - dirtailname="/$tail"; - else - dirtailname="$dirtailname/$tail"; - fi; - done; -} - -evaldirectory () { - if [ -d "$1" ]; then - # Set contextual variables - # dirtails is an array of directory basenames after the crawl root - if (( $dirlevel > 0 )); then - dirtails+=( "$(basename $1)" ); - else - dirtails=(); - fi; - dirlevel=$((dirlevel+1)); - - # Generate directory path after the crawl root - makedirtailname; - - # Eval our directory with the latest contextual info - # Don't eval on root - if (( $dirlevel > 1 )) && [[ "$3" != "" ]]; then - eval "$3"; - fi; - - # Iterate entries - for name in $1/*; do - if [ -d "$name" ]; then - # Name is a directory, but don't eval yet - # Recurse so our vars are updated - evaldirectory "$name" "$2" "$3"; - - # Decrement our directory level and remove a dirtail - unset 'dirtails[ ${#dirtails[@]}-1 ]'; - dirlevel=$((dirlevel-1)); - makedirtailname; - else - # Name is a file - if [ -f "$name" ] && [[ "$2" != "" ]]; then - eval "$2"; - fi; - fi; - done; - - # Reset our variables; we're done iterating - if (( $dirlevel == 1 )); then - dirlevel=0; - fi; - fi; -} - -# -# Initialize package parameter defaults -# -if [[ "$__DEBIAN_PARAMETERS_INITIALIZED" != "1" ]]; then - . ${DIR}/deployer/travis/deployer_defaults.sh; -fi; - -# Clean up after ourselves; we only expect to run this script once -# during buildboting -__DEBIAN_PARAMETERS_INITIALIZED=0 - -# for envsubst -export __PACKAGE_DATETIME="$(date '+%a, %d %b %Y %H:%M:%S %z')" -export __PACKAGE_DATETIME_DIGIT="$(date -u '+%Y%m%d%H%M%S')" - -if [[ "$PACKAGE_REVISION" == "" ]]; then - PACKAGE_REVISION="-$__PACKAGE_DATETIME_DIGIT"; - __PACKAGE_REVISION_BY_DATE=1; - export PACKAGE_REVISION=${PACKAGE_REVISION}; # for envsubst -fi; - -# -# Clean the old debian/ directories -# -if [[ "$1" == "clean" ]]; then - toclean=$2; -else - toclean=$1; -fi; - -if [[ "$toclean" == "" ]] || [[ "$toclean" == "main" ]]; then - echo "Cleaning main package scripts"; - if [[ ! -f ${DIR}/debian ]]; then - rm -rf ${DIR}/debian; - fi; -fi; -if [[ "$toclean" == "" ]] || [[ "$toclean" == "asset" ]]; then - echo "Cleaning asset package scripts"; - if [[ ! -f ${DIR}/assets/debian ]]; then - rm -rf ${DIR}/assets/debian; - fi; -fi; - -# -# Make new templates -# -if [[ "$1" != "clean" ]]; then - totemplate=$1; - - # HACK: ${shlibs:Depends} in the templates make the templating fail - # So just define replacemment variables - export SHLIBS_DEPENDS=${SHLIBS_DEPENDS}; - export MISC_DEPENDS=${MISC_DEPENDS}; - export DEBFILEVAR='$$file'; # used in assets/debian/rules - - # Package parameters are exported for envsubst in deployer_defaults.sh - - if [[ "$totemplate" == "" ]] || [[ "$totemplate" == "main" ]]; then - echo "Generating main package scripts"; - fromroot=${DIR}/debian-template; - toroot=${DIR}/debian; - mkdir ${toroot}; - - evaldirectory ${fromroot} \ - "cat \$name | envsubst > ${toroot}\${dirtailname}/\$( basename \$name )" \ - "mkdir \"${toroot}\${dirtailname}\""; - fi; - - if [[ "$totemplate" == "" ]] || [[ "$totemplate" == "asset" ]]; then - echo "Generating asset package scripts"; - fromroot=${DIR}/assets/debian-template; - toroot=${DIR}/assets/debian; - mkdir ${toroot}; - - # Root dir to crawl; file eval; directory eval - evaldirectory ${fromroot} \ - "cat \$name | envsubst > ${toroot}\${dirtailname}/\$( basename \$name )" \ - "mkdir \"${toroot}\${dirtailname}\""; - fi; -fi; - -if [[ "$__DPL_ACTIVE" != "1" ]] && [[ "$__PACKAGE_REVISION_BY_DATE" == "1" ]]; then - unset PACKAGE_REVISION; # so we can reset the date on subsequent runs -fi; diff --git a/deployer/appveyor/deployer.bat b/deployer/appveyor/deployer.bat deleted file mode 100644 index fae388590..000000000 --- a/deployer/appveyor/deployer.bat +++ /dev/null @@ -1,195 +0,0 @@ -@setlocal enableextensions enabledelayedexpansion - -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -: Appveyor Deployer -: See appveyor.yml for default variables -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -: Evaluate whether we should be deploying -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -if not [%DPL_ENABLED%] == [1] ( - echo Deployer is not enabled... - exit /b -) - -: Don't do DD installs because fmodex DLL handling is not implemented. -if [%CONFIGURATION%] == [DD] ( - echo Deployer does not support DD builds... - exit /b -) - -if [%CONFIGURATION%] == [DD64] ( - echo Deployer does not support DD builds... - exit /b -) - -: Substring match from https://stackoverflow.com/questions/7005951/batch-file-find-if-substring-is-in-string-not-in-a-file -: The below line says "if deployer is NOT in string" -: Note that APPVEYOR_REPO_BRANCH for pull request builds is the BASE branch that PR is merging INTO -if x%APPVEYOR_REPO_BRANCH:deployer=%==x%APPVEYOR_REPO_BRANCH% ( - if not [%APPVEYOR_REPO_TAG%] == [true] ( - echo Deployer is enabled but we are not in a release tag or a 'deployer' branch... - exit /b - ) else ( - if not [%DPL_TAG_ENABLED%] == [1] ( - echo Deployer is not enabled for release tags... - exit /b - ) - ) -) - -: Release tags always get optional assets (music.dta) -if [%APPVEYOR_REPO_TAG%] == [true] ( - set "ASSET_FILES_OPTIONAL_GET=1" -) - -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -: Get asset archives -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -if exist "C:\Users\appveyor\srb2_cache\archives\" ( - if [%ASSET_CLEAN%] == [1] ( - echo Cleaning asset archives... - rmdir /s /q "C:\Users\appveyor\srb2_cache\archives" - ) -) - -if not exist "C:\Users\appveyor\srb2_cache\archives\" mkdir "C:\Users\appveyor\srb2_cache\archives" - -goto EXTRACT_ARCHIVES - -:::::::::::::::::::::::::::::::: -: ARCHIVE_NAME_PARTS -: Call this like a function. %archivepath% is the path to extract parts from. -:::::::::::::::::::::::::::::::: - -for %%a in (%archivepath%) do ( - set "file=%%~fa" - set "filepath=%%~dpa" - set "filename=%%~nxa" -) - -set "localarchivepath=C:\Users\appveyor\srb2_cache\archives\%filename%" - -goto EOF - -:::::::::::::::::::::::::::::::: -: EXTRACT_ARCHIVES -:::::::::::::::::::::::::::::::: - -set "archivepath=%ASSET_ARCHIVE_PATH%" -call :ARCHIVE_NAME_PARTS -set "ASSET_ARCHIVE_PATH_LOCAL=%localarchivepath%" -if not exist "%localarchivepath%" appveyor DownloadFile "%ASSET_ARCHIVE_PATH%" -FileName "%localarchivepath%" - -set "archivepath=%ASSET_ARCHIVE_PATCH_PATH%" -call :ARCHIVE_NAME_PARTS -set "ASSET_ARCHIVE_PATCH_PATH_LOCAL=%localarchivepath%" -if not exist "%localarchivepath%" appveyor DownloadFile "%ASSET_ARCHIVE_PATCH_PATH%" -FileName "%localarchivepath%" - -if not [%X86_64%] == [1] ( - set "archivepath=%ASSET_ARCHIVE_X86_PATH%" - call :ARCHIVE_NAME_PARTS - set "ASSET_ARCHIVE_X86_PATH_LOCAL=!localarchivepath!" - if not exist "!localarchivepath!" appveyor DownloadFile "%ASSET_ARCHIVE_X86_PATH%" -FileName "!localarchivepath!" -) - -if [%X86_64%] == [1] ( - set "archivepath=%ASSET_ARCHIVE_X64_PATH%" - call :ARCHIVE_NAME_PARTS - set "ASSET_ARCHIVE_X64_PATH_LOCAL=!localarchivepath!" - if not exist "!localarchivepath!" appveyor DownloadFile "%ASSET_ARCHIVE_X64_PATH%" -FileName "!localarchivepath!" -) - -if [%ASSET_FILES_OPTIONAL_GET%] == [1] ( - set "archivepath=%ASSET_ARCHIVE_OPTIONAL_PATH%" - call :ARCHIVE_NAME_PARTS - set "ASSET_ARCHIVE_OPTIONAL_PATH_LOCAL=!localarchivepath!" - if not exist "!localarchivepath!" appveyor DownloadFile "%ASSET_ARCHIVE_OPTIONAL_PATH%" -FileName "!localarchivepath!" -) - -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -: Build the installers -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -mkdir "assets\installer" -mkdir "assets\patch" - -7z x -y "%ASSET_ARCHIVE_PATH_LOCAL%" -o"assets\installer" >null -7z x -y "%ASSET_ARCHIVE_PATCH_PATH_LOCAL%" -o"assets\patch" >null - -: Copy optional files to full installer (music.dta) -if [%ASSET_FILES_OPTIONAL_GET%] == [1] ( - 7z x -y "%ASSET_ARCHIVE_OPTIONAL_PATH_LOCAL%" -o"assets\installer" >null -) - -: Copy EXE -- BUILD_PATH is from appveyor.yml -robocopy /S /ns /nc /nfl /ndl /np /njh /njs "%BUILD_PATH%" "assets\installer" /XF "*.debug" ".gitignore" -robocopy /S /ns /nc /nfl /ndl /np /njh /njs "%BUILD_PATH%" "assets\patch" /XF "*.debug" ".gitignore" - -: Are we building DD? (we were supposed to exit earlier!) -if [%CONFIGURATION%] == [DD] ( set "DPL_INSTALLER_NAME=%DPL_INSTALLER_NAME%-DD" ) -if [%CONFIGURATION%] == [DD64] ( set "DPL_INSTALLER_NAME=%DPL_INSTALLER_NAME%-DD" ) - -: If we are not a release tag, suffix the filename -if not [%APPVEYOR_REPO_TAG%] == [true] ( - set "INSTALLER_SUFFIX=-%APPVEYOR_REPO_BRANCH%-%GITSHORT%-%CONFIGURATION%" -) else ( - set "INSTALLER_SUFFIX=" -) - -if not [%X86_64%] == [1] ( goto X86_INSTALL ) - -:::::::::::::::::::::::::::::::: -: X64_INSTALL -:::::::::::::::::::::::::::::::: - -: Extract DLL binaries -7z x -y "%ASSET_ARCHIVE_X64_PATH_LOCAL%" -o"assets\installer" >null -if [%PACKAGE_PATCH_DLL_GET%] == [1] ( - 7z x -y "!ASSET_ARCHIVE_X64_PATH_LOCAL!" -o"assets\patch" >null -) - -: Build the installer -7z a -sfx7z.sfx "%DPL_INSTALLER_NAME%-x64-Installer%INSTALLER_SUFFIX%.exe" .\assets\installer\* - -: Build the patch -7z a "%DPL_INSTALLER_NAME%-x64-Patch%INSTALLER_SUFFIX%.zip" .\assets\patch\* - -: Upload artifacts -appveyor PushArtifact "%DPL_INSTALLER_NAME%-x64-Installer%INSTALLER_SUFFIX%.exe" -appveyor PushArtifact "%DPL_INSTALLER_NAME%-x64-Patch%INSTALLER_SUFFIX%.zip" - -: We only do x86 OR x64, one at a time, so exit now. -goto EOF - -:::::::::::::::::::::::::::::::: -: X86_INSTALL -:::::::::::::::::::::::::::::::: - -: Extract DLL binaries -7z x -y "%ASSET_ARCHIVE_X86_PATH_LOCAL%" -o"assets\installer" >null -if [%PACKAGE_PATCH_DLL_GET%] == [1] ( - 7z x -y "!ASSET_ARCHIVE_X86_PATH_LOCAL!" -o"assets\patch" >null -) - -: Build the installer -7z a -sfx7z.sfx "%DPL_INSTALLER_NAME%-Installer%INSTALLER_SUFFIX%.exe" .\assets\installer\* - -: Build the patch -7z a "%DPL_INSTALLER_NAME%-Patch%INSTALLER_SUFFIX%.zip" .\assets\patch\* - -: Upload artifacts -appveyor PushArtifact "%DPL_INSTALLER_NAME%-Installer%INSTALLER_SUFFIX%.exe" -appveyor PushArtifact "%DPL_INSTALLER_NAME%-Patch%INSTALLER_SUFFIX%.zip" - -: We only do x86 OR x64, one at a time, so exit now -goto EOF - -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -: EOF -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: - -endlocal diff --git a/deployer/travis/deployer.sh b/deployer/travis/deployer.sh deleted file mode 100644 index c88155d21..000000000 --- a/deployer/travis/deployer.sh +++ /dev/null @@ -1,157 +0,0 @@ -#!/bin/bash - -# Deployer for Travis-CI -# Initialization -# -# Performs validity checks to ensure that Deployer is allowed to run -# e.g., is an FTP hostname specified? Are we whitelisted by OSNAMES and BRANCHES? -# -# Set these environment variables in your Travis-CI settings, where they are stored securely. -# See other shell scripts for more options. -# -# DPL_ENABLED = 1 (leave blank to disable) -# DPL_TAG_ENABLED = 1 (run Deployer on all tags) -# DPL_JOB_ENABLE_ALL = 1 (run Deployer on all jobs; leave blank to act on specific jobs, see below) -# DPL_JOBNAMES = name1,name2 (whitelist of job names to allow uploading; leave blank to upload from all jobs) -# DPL_OSNAMES = osx (whitelist of OS names to allow uploading; leave blank to upload from all OSes) -# DPL_BRANCHES = master,branch1,branch2 (whitelist of branches to upload; leave blank to upload all branches) -# -# To enable Deployer on specific jobs, set _DPL_JOB_ENABLED=1 for that job. Example: -# - matrix: -# - os: osx -# env: -# - _DPL_JOB_ENABLED=1 -# -# DO NOT set __DPL_ACTIVE, because that would bypass these validity checks. - -# Validate Deployer state -if [[ "$DPL_ENABLED" == "1" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then - # Test for base eligibility: - # Are we in a deployer branch? Or - # Are we in a release tag AND DPL_TAG_ENABLED=1? - if [[ $TRAVIS_BRANCH == *"deployer"* ]]; then - __DPL_BASE_ELIGIBLE=1; - __DPL_TERMINATE_EARLY_ELIGIBLE=1; - fi; - - if [[ "$TRAVIS_TAG" != "" ]] && [[ "$DPL_TAG_ENABLED" == "1" ]]; then - __DPL_BASE_ELIGIBLE=1; - __DPL_TAG_ELIGIBLE=1; - __DPL_TERMINATE_EARLY_ELIGIBLE=1; - fi; - - # Logging message for trigger word - if [[ "$__DPL_TAG_ELIGIBLE" != "1" ]] && [[ "$DPL_TRIGGER" != "" ]]; then - echo "Testing for trigger $DPL_TRIGGER, commit message: $TRAVIS_COMMIT_MESSAGE"; - echo "[${DPL_TRIGGER}]"; - echo "[${DPL_TRIGGER}-${_DPL_JOB_NAME}]"; - echo "[${DPL_TRIGGER}-${TRAVIS_OS_NAME}]"; - fi; - - # - # Search for the trigger word - # Force enable if release tags are eligible - # - if [[ "$__DPL_TAG_ELIGIBLE" == "1" ]] || [[ "$DPL_TRIGGER" == "" ]] \ - || [[ $TRAVIS_COMMIT_MESSAGE == *"[$DPL_TRIGGER]"* ]] \ - || [[ $TRAVIS_COMMIT_MESSAGE == *"[${DPL_TRIGGER}-${_DPL_JOB_NAME}]"* ]] \ - || [[ $TRAVIS_COMMIT_MESSAGE == *"[${DPL_TRIGGER}-${TRAVIS_OS_NAME}]"* ]]; then - # - # Whitelist by branch name - # Force enable if release tags are eligible - # - if [[ "$__DPL_TAG_ELIGIBLE" == "1" ]] || [[ "$DPL_BRANCHES" == "" ]] || [[ $DPL_BRANCHES == *"$TRAVIS_BRANCH"* ]]; then - # Set this so we only early-terminate builds when we are specifically deploying - # Trigger string and branch are encompassing conditions; the rest are job-specific - # This check only matters for deployer branches and when DPL_TERMINATE_TESTS=1, - # because we're filtering non-deployer jobs. - # - # __DPL_TRY_TERMINATE_EARLY is invalidated in .travis.yml if __DPL_ACTIVE=1 - if [[ "$__DPL_TERMINATE_EARLY_ELIGIBLE" == "1" ]] && [[ "$DPL_TERMINATE_TESTS" == "1" ]]; then - __DPL_TRY_TERMINATE_EARLY=1; - fi; - - # - # Is the job enabled for deployment? - # - if [[ "$DPL_JOB_ENABLE_ALL" == "1" ]] || [[ "$_DPL_JOB_ENABLED" == "1" ]]; then - # - # Whitelist by job names - # - if [[ "$DPL_JOBNAMES" == "" ]] || [[ "$_DPL_JOB_NAME" == "" ]] || [[ $DPL_JOBNAMES == *"$_DPL_JOB_NAME"* ]]; then - # - # Whitelist by OS names - # - if [[ "$DPL_OSNAMES" == "" ]] || [[ $DPL_OSNAMES == *"$TRAVIS_OS_NAME"* ]]; then - # Base Deployer is eligible for becoming active - - # Are we building for Linux? - if [[ "$_DPL_PACKAGE_BINARY" == "1" ]] || [[ "$_DPL_PACKAGE_SOURCE" == "1" ]]; then - if [[ "$_DPL_PACKAGE_MAIN" == "1" ]] || [[ "$_DPL_PACKAGE_ASSET" == "1" ]]; then - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - __DPL_DEBIAN_ACTIVE=1; - fi; - fi; - fi; - - # Now check for deployment targets - if [[ "$_DPL_FTP_TARGET" == "1" ]] && [[ "$DPL_FTP_HOSTNAME" != "" ]]; then - if [[ "$TRAVIS_OS_HOST" == "linux" ]] && [[ "$DPL_FTP_PROTOCOL" == "ftp" ]]; then - echo "Non-secure FTP will not work on Linux Travis-CI jobs!"; - echo "Try SFTP or another target. Details:"; - echo "https://blog.travis-ci.com/2018-07-23-the-tale-of-ftp-at-travis-ci"; - else - if [[ "$__DPL_DEBIAN_ACTIVE" == "1" ]] || [[ "$_DPL_PACKAGE_BINARY" == "1" ]] || [[ "$_DPL_BINARY" == "1" ]]; then - echo "Deployer FTP target is enabled"; - __DPL_FTP_ACTIVE=1; - else - echo "Deployer FTP target cannot be enabled: You must specify _DPL_PACKAGE_BINARY=1,"; - echo "and/or _DPL_BINARY=1 in your job's environment variables."; - fi; - fi; - fi; - - if [[ "$_DPL_DPUT_TARGET" == "1" ]] && [[ "$__DPL_DEBIAN_ACTIVE" == "1" ]] \ - && [[ "$DPL_DPUT_INCOMING" != "" ]]; then - if [[ "$DPL_DPUT_METHOD" == "ftp" ]]; then - echo "DPUT will not work with non-secure FTP on Linux Travis-CI jobs!"; - echo "Try SFTP or another method for DPUT. Details:"; - echo "https://blog.travis-ci.com/2018-07-23-the-tale-of-ftp-at-travis-ci"; - else - echo "Deployer DPUT target is enabled"; - __DPL_DPUT_ACTIVE=1; - fi; - fi; - - # If any deployment targets are active, then so is the Deployer at large - if [[ "$__DPL_FTP_ACTIVE" == "1" ]] || [[ "$__DPL_DPUT_ACTIVE" == "1" ]]; then - __DPL_ACTIVE=1; - fi; - fi; - fi; - fi; - fi; - else - if [[ "$DPL_TRIGGER" != "" ]]; then - echo "Testing for global trigger [$DPL_TRIGGER, commit message: $TRAVIS_COMMIT_MESSAGE"; - fi; - if [[ "$DPL_TRIGGER" != "" ]] && [[ $TRAVIS_COMMIT_MESSAGE == *"[$DPL_TRIGGER"* ]]; then - if [[ "$__DPL_TAG_ELIGIBLE" == "1" ]] || [[ "$DPL_BRANCHES" == "" ]] || [[ $DPL_BRANCHES == *"$TRAVIS_BRANCH"* ]]; then - # This check only matters for deployer branches and when DPL_TERMINATE_TESTS=1, - # because we're filtering non-deployer jobs. - if [[ "$__DPL_TERMINATE_EARLY_ELIGIBLE" == "1" ]] && [[ "$DPL_TERMINATE_TESTS" == "1" ]]; then - # Assume that some job received the trigger, so mark this for early termination - __DPL_TRY_TERMINATE_EARLY=1; - fi; - fi; - fi; - fi; -fi; - -if [[ "$__DPL_TRY_TERMINATE_EARLY" == "1" ]] && [[ "$__DPL_ACTIVE" != "1" ]]; then - echo "Deployer is active in another job"; -fi; - -if [[ "$__DPL_TRY_TERMINATE_EARLY" != "1" ]] && [[ "$__DPL_ACTIVE" != "1" ]]; then - echo "Deployer is not active"; -fi; diff --git a/deployer/travis/deployer_build.sh b/deployer/travis/deployer_build.sh deleted file mode 100644 index 3817f025d..000000000 --- a/deployer/travis/deployer_build.sh +++ /dev/null @@ -1,190 +0,0 @@ -#!/bin/bash - -# Deployer for Travis-CI -# Build Script -# -# Builds the required targets depending on which sub-modules are enabled - -if [[ "$__DPL_FTP_ACTIVE" == "1" ]] || [[ "$__DPL_DPUT_ACTIVE" == "1" ]]; then - if [[ "$__DPL_DEBIAN_ACTIVE" == "1" ]]; then - echo "Building Debian package(s)" - - sudo apt-get install devscripts debhelper fakeroot secure-delete expect; - - # Build source packages first, since they zip up the entire source folder, - # binaries and all - if [[ "$_DPL_PACKAGE_MAIN" == "1" ]]; then - . ../debian_template.sh main; - OLDPWD=$PWD; # [repo]/build - cd ..; # repo root - - if [[ "$_DPL_PACKAGE_SOURCE" == "1" ]]; then - echo "Building main source Debian package"; - expect <(cat < key.asc; - echo "$DPL_PGP_KEY_PASSPHRASE" > phrase.txt; - gpg --import key.asc; - - if [[ "$_DPL_PACKAGE_MAIN" == "1" ]]; then - echo "Signing main package(s)"; - - PACKAGEFILENAME=${PACKAGE_NAME}_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - PACKAGEDBGFILENAME=${PACKAGE_NAME}-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGENIGHTLYDBGFILENAME=${PACKAGE_NAME}-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHDBGFILENAME=${PACKAGE_NAME}-patch-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHNIGHTLYDBGFILENAME=${PACKAGE_NAME}-patch-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - - PACKAGEFILENAMES=( - $PACKAGEFILENAME - $PACKAGEDBGFILENAME - #$PACKAGENIGHTLYFILENAME - #$PACKAGENIGHTLYDBGFILENAME - #$PACKAGEPATCHFILENAME - #$PACKAGEPATCHDBGFILENAME - #$PACKAGEPATCHNIGHTLYFILENAME - #$PACKAGEPATCHNIGHTLYDBGFILENAME - ); - - # Main packages are in parent of root repo folder - OLDPWD=$PWD; # [repo]/build - cd ../..; # parent of repo root - - for n in ${PACKAGEFILENAMES}; do - for f in ./$n*.changes; do - debsign --no-re-sign -p"gpg --passphrase-file $OLDPWD/phrase.txt --batch" "$f"; - done; - done; - - cd $OLDPWD; - fi; - - if [[ "$_DPL_PACKAGE_ASSET" == "1" ]]; then - echo "Signing asset package(s)"; - - PACKAGEFILENAME=${PACKAGE_NAME}-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - - PACKAGEFILENAMES=( - $PACKAGEFILENAME - #$PACKAGENIGHTLYFILENAME - #$PACKAGEPATCHFILENAME - #$PACKAGEPATCHNIGHTLYFILENAME - ) - - # Asset packages are in root repo folder - OLDPWD=$PWD; # [repo]/build - cd ..; # repo root - - for n in ${PACKAGEFILENAMES}; do - for f in ./$n*.changes; do - debsign --no-re-sign -p"gpg --passphrase-file $OLDPWD/phrase.txt --batch" "$f"; - done; - done; - - cd $OLDPWD; - fi; - - # Delete the keys :eyes: - srm key.asc; - srm phrase.txt; - fi; - fi; - - # all other OSes - if [[ "$TRAVIS_OS_NAME" != "linux" ]]; then - # - # Check for binary building - # - if [[ "$_DPL_BINARY" == "1" ]]; then - echo "Building a Binary"; - make -k; - fi; - - # - # Check for package building - # - if [[ "$_DPL_PACKAGE_BINARY" == "1" ]]; then - echo "Building a Package"; - - # Make an OSX package; superuser is required for library bundling - # - # HACK: OSX packaging can't write libraries to .app package unless we're superuser - # because the original library files don't have WRITE permission - # Bug may be sidestepped by using CHMOD_BUNDLE_ITEMS=TRUE - # But I don't know where this is set. Not `cmake -D...` because this var is ignored. - # https://cmake.org/Bug/view.php?id=9284 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - sudo make -k package; - else - # Some day, when Windows is supported, we'll just make a standard package - make -k package; - fi; - fi; - fi; -fi; diff --git a/deployer/travis/deployer_defaults.sh b/deployer/travis/deployer_defaults.sh deleted file mode 100644 index 9b853a80a..000000000 --- a/deployer/travis/deployer_defaults.sh +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash - -# Deployer for Travis-CI -# Default Variables -# -# Here are all of the user-set variables used by Deployer. -# See the "Cross-platform deployment" page on SRB2 Wiki for documentation. - -# Core Parameters -: ${DPL_ENABLED} # Enable Deployer behavior; must be set for any deployment activity -: ${DPL_TAG_ENABLED} # Trigger Deployer for all tag releases -: ${DPL_JOB_ENABLE_ALL} # Enable all jobs for deployment -: ${DPL_TERMINATE_TESTS} # Terminate all build test jobs (used in .travis.yml) -: ${DPL_TRIGGER} # Use a [word] in the commit message to trigger Deployer -: ${DPL_JOBNAMES} # Trigger Deployer by job name -: ${DPL_OSNAMES} # Trigger Deployer by OS name (osx,linux) -: ${DPL_BRANCHES} # Trigger Deployer by git branch name - -# Job Parameters -: ${_DPL_JOB_ENABLED} # Enable Deployer for this specific job. DPL_ENABLED must be set too. -: ${_DPL_JOB_NAME} # Identifier for the job, used for logging and trigger word matching -: ${_DPL_FTP_TARGET} # Deploy to FTP -: ${_DPL_DPUT_TARGET} # Deploy to DPUT -: ${_DPL_PACKAGE_SOURCE} # Build packages into a Source distribution. Linux only. -: ${_DPL_PACKAGE_BINARY} # Build packages into a Binary distribution. -: ${_DPL_PACKAGE_MAIN:=1} # Build main installation package. Linux only; OS X assumes this. -: ${_DPL_PACKAGE_ASSET} # Build asset installation package. Linux only. - -# Asset File Parameters -: ${ASSET_ARCHIVE_PATH:=https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-assets.7z} -: ${ASSET_ARCHIVE_OPTIONAL_PATH:=https://github.com/mazmazz/Kart-Public/releases/download/kart_assets/srb2kart-v102-optional-assets.7z} -: ${ASSET_FILES_HASHED:=srb2.srb patch.kart gfx.kart textures.kart chars.kart maps.kart} -: ${ASSET_FILES_DOCS:=README.txt HISTORY.txt LICENSE.txt LICENSE-3RD-PARTY.txt} -: ${ASSET_FILES_OPTIONAL_GET:=0} - -# FTP Parameters -: ${DPL_FTP_PROTOCOL} -: ${DPL_FTP_USER} -: ${DPL_FTP_PASS} -: ${DPL_FTP_HOSTNAME} -: ${DPL_FTP_PORT} -: ${DPL_FTP_PATH} - -# DPUT Parameters -: ${DPL_DPUT_DOMAIN:=ppa.launchpad.net} -: ${DPL_DPUT_METHOD:=sftp} -: ${DPL_DPUT_INCOMING} -: ${DPL_DPUT_LOGIN:=anonymous} -: ${DPL_SSH_KEY_PRIVATE} # Base64-encoded private key file. Used to sign repository uploads -: ${DPL_SSH_KEY_PASSPHRASE} # Decodes the private key file. - -# Package Parameters -: ${PACKAGE_NAME:=srb2kart} -: ${PACKAGE_VERSION:=1.0.2} -: ${PACKAGE_SUBVERSION} # Highly recommended to set this to reflect the distro series target (e.g., ~18.04bionic) -: ${PACKAGE_REVISION} # Defaults to UTC timestamp -: ${PACKAGE_INSTALL_PATH:=/usr/games/SRB2Kart} -: ${PACKAGE_LINK_PATH:=/usr/games} -: ${PACKAGE_DISTRO:=trusty} -: ${PACKAGE_URGENCY:=high} -: ${PACKAGE_NAME_EMAIL:=Kart Krew } -: ${PACKAGE_GROUP_NAME_EMAIL:=Kart Krew } -: ${PACKAGE_WEBSITE:=} - -: ${PACKAGE_ASSET_MINVERSION:=1.0.1} # Number this the version BEFORE the actual required version, because we do a > check -: ${PACKAGE_ASSET_MAXVERSION:=1.0.3} # Number this the version AFTER the actual required version, because we do a < check - -: ${PROGRAM_NAME:=Sonic Robo Blast 2 Kart} -: ${PROGRAM_VENDOR:=Kart Krew} -: ${PROGRAM_VERSION:=1.0.2} -: ${PROGRAM_DESCRIPTION:=A kart racing mod based on the 3D Sonic the Hedgehog fangame Sonic Robo Blast 2.} -: ${PROGRAM_FILENAME:=srb2kart} - -: ${DPL_PGP_KEY_PRIVATE} # Base64-encoded private key file. Used to sign Debian packages -: ${DPL_PGP_KEY_PASSPHRASE} # Decodes the private key file. - -# Export Asset and Package Parameters for envsubst templating - -export ASSET_ARCHIVE_PATH="${ASSET_ARCHIVE_PATH}" -export ASSET_ARCHIVE_OPTIONAL_PATH="${ASSET_ARCHIVE_OPTIONAL_PATH}" -export ASSET_FILES_HASHED="${ASSET_FILES_HASHED}" -export ASSET_FILES_DOCS="${ASSET_FILES_DOCS}" -export ASSET_FILES_OPTIONAL_GET="${ASSET_FILES_OPTIONAL_GET}" - -export PACKAGE_NAME="${PACKAGE_NAME}" -export PACKAGE_VERSION="${PACKAGE_VERSION}" -export PACKAGE_SUBVERSION="${PACKAGE_SUBVERSION}" # in case we have this -export PACKAGE_REVISION="${PACKAGE_REVISION}" -export PACKAGE_ASSET_MINVERSION="${PACKAGE_ASSET_MINVERSION}" -export PACKAGE_ASSET_MAXVERSION="${PACKAGE_ASSET_MAXVERSION}" -export PACKAGE_INSTALL_PATH="${PACKAGE_INSTALL_PATH}" -export PACKAGE_LINK_PATH="${PACKAGE_LINK_PATH}" -export PACKAGE_DISTRO="${PACKAGE_DISTRO}" -export PACKAGE_URGENCY="${PACKAGE_URGENCY}" -export PACKAGE_NAME_EMAIL="${PACKAGE_NAME_EMAIL}" -export PACKAGE_GROUP_NAME_EMAIL="${PACKAGE_GROUP_NAME_EMAIL}" -export PACKAGE_WEBSITE="${PACKAGE_WEBSITE}" - -export PROGRAM_NAME="${PROGRAM_NAME}" -export PROGRAM_VERSION="${PROGRAM_VERSION}" -export PROGRAM_DESCRIPTION="${PROGRAM_DESCRIPTION}" -export PROGRAM_FILENAME="${PROGRAM_FILENAME}" - -# This file is called in debian_template.sh, so mark our completion so we don't run it again -__DEBIAN_PARAMETERS_INITIALIZED=1 diff --git a/deployer/travis/deployer_dput.sh b/deployer/travis/deployer_dput.sh deleted file mode 100644 index 863a928cd..000000000 --- a/deployer/travis/deployer_dput.sh +++ /dev/null @@ -1,133 +0,0 @@ -#!/bin/bash - -# Deployer for Travis-CI -# DPUT uploader (e.g., Launchpad PPA) -# - -if [[ "$__DPL_DPUT_ACTIVE" == "1" ]]; then - # Install APT dependencies - # paramiko required for ssh - sudo apt-get install python-paramiko expect dput; # python-pip - #pip install paramiko; - - # Output the DPUT config - # Dput only works if you're using secure FTP, so that's what we default to. - cat > "./dput.cf" << EOM -[deployer] -fqdn = ${DPL_DPUT_DOMAIN} -method = ${DPL_DPUT_METHOD} -incoming = ${DPL_DPUT_INCOMING} -login = ${DPL_DPUT_LOGIN} -allow_unsigned_uploads = 0 -EOM - - # Output SSH config - # Don't let SSH prompt us for untrusted hosts - cat >> "./ssh_config" << EOM - -Host * - StrictHostKeyChecking no - UserKnownHostsFile=/dev/null - PubKeyAuthentication yes - IdentityFile ${PWD}/key.private - IdentitiesOnly yes -EOM - sudo sh -c "cat < ${PWD}/ssh_config >> /etc/ssh/ssh_config"; - - # Get the private key - echo "$DPL_SSH_KEY_PRIVATE" | base64 --decode > key.private; - chmod 700 ./key.private; - - if [[ "$_DPL_PACKAGE_MAIN" == "1" ]]; then - PACKAGEFILENAME=${PACKAGE_NAME}_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - PACKAGEDBGFILENAME=${PACKAGE_NAME}-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGENIGHTLYDBGFILENAME=${PACKAGE_NAME}-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHDBGFILENAME=${PACKAGE_NAME}-patch-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHNIGHTLYDBGFILENAME=${PACKAGE_NAME}-patch-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - - PACKAGEFILENAMES=( - $PACKAGEFILENAME - $PACKAGEDBGFILENAME - #$PACKAGENIGHTLYFILENAME - #$PACKAGENIGHTLYDBGFILENAME - #$PACKAGEPATCHFILENAME - #$PACKAGEPATCHDBGFILENAME - #$PACKAGEPATCHNIGHTLYFILENAME - #$PACKAGEPATCHNIGHTLYDBGFILENAME - ); - - # Main packages are in parent of root repo folder - OLDPWD=$PWD; # [repo]/build - cd ../..; - - # Enter passphrase if required - for n in ${PACKAGEFILENAMES}; do - for f in $n*.changes; do - # Binary builds also generate source builds, so exclude the source - # builds if desired - if [[ "$_DPL_PACKAGE_SOURCE" != "1" ]]; then - if [[ "$f" == *"_source"* ]] || [[ "$f" == *".tar.xz"* ]]; then - continue; - fi; - fi; - - expect <(cat < "commit.txt"; - echo "Job ID $TRAVIS_JOB_ID" >> "commit.txt"; - echo "" >> "commit.txt"; - echo "Commit $TRAVIS_COMMIT" >> "commit.txt"; - echo "$TRAVIS_COMMIT_MESSAGE" >> "commit.txt"; - echo "" >> "commit.txt"; - - # Initialize FTP parameters - if [[ "$DPL_FTP_PORT" == "" ]]; then - DPL_FTP_PORT=21; - fi; - if [[ "$DPL_FTP_PROTOCOL" == "" ]]; then - DPL_FTP_PROTOCOL=ftp; - fi; - __DPL_FTP_LOCATION=$DPL_FTP_PROTOCOL://$DPL_FTP_HOSTNAME:$DPL_FTP_PORT/$DPL_FTP_PATH/$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH/$TRAVIS_JOB_ID-$TRAVIS_JOB_NUMBER-$JOBNAME; - - # Upload to FTP! - echo "Uploading to FTP..."; - curl --ftp-create-dirs -T "commit.txt" -u $DPL_FTP_USER:$DPL_FTP_PASS "$__DPL_FTP_LOCATION/commit.txt"; - - if [[ "$__DPL_DEBIAN_ACTIVE" == "1" ]]; then - if [[ "$_DPL_PACKAGE_MAIN" == "1" ]]; then - PACKAGEFILENAME=${PACKAGE_NAME}_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - PACKAGEDBGFILENAME=${PACKAGE_NAME}-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGENIGHTLYDBGFILENAME=${PACKAGE_NAME}-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHDBGFILENAME=${PACKAGE_NAME}-patch-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHNIGHTLYDBGFILENAME=${PACKAGE_NAME}-patch-nightly-dbg_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - - PACKAGEFILENAMES=( - $PACKAGEFILENAME - $PACKAGEDBGFILENAME - #$PACKAGENIGHTLYFILENAME - #$PACKAGENIGHTLYDBGFILENAME - #$PACKAGEPATCHFILENAME - #$PACKAGEPATCHDBGFILENAME - #$PACKAGEPATCHNIGHTLYFILENAME - #$PACKAGEPATCHNIGHTLYDBGFILENAME - ); - - # Main packages are in parent of root repo folder - OLDPWD=$PWD; # [repo]/build - cd ../..; - - for n in ${PACKAGEFILENAMES}; do - for f in ./$n*; do - # Binary builds also generate source builds, so exclude the source - # builds if desired - if [[ "$_DPL_PACKAGE_SOURCE" != "1" ]]; then - if [[ "$f" == *"_source"* ]] || [[ "$f" == *".tar.xz"* ]]; then - continue; - fi; - fi; - curl --ftp-create-dirs -T "$f" -u $DPL_FTP_USER:$DPL_FTP_PASS "$__DPL_FTP_LOCATION/package/main/$f"; - done; - done; - - # Go back to [repo]/build folder - cd $OLDPWD; - fi; - - if [[ "$_DPL_PACKAGE_ASSET" == "1" ]]; then - PACKAGEFILENAME=${PACKAGE_NAME}-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGENIGHTLYFILENAME=${PACKAGE_NAME}-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHFILENAME=${PACKAGE_NAME}-patch-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - #PACKAGEPATCHNIGHTLYFILENAME=${PACKAGE_NAME}-patch-nightly-data_${PACKAGE_VERSION}${PACKAGE_SUBVERSION}${PACKAGE_REVISION}; - - PACKAGEFILENAMES=( - $PACKAGEFILENAME - #$PACKAGENIGHTLYFILENAME - #$PACKAGEPATCHFILENAME - #$PACKAGEPATCHNIGHTLYFILENAME - ) - - # Asset packages are in root repo folder - OLDPWD=$PWD; # [repo]/build - cd ..; - - for n in ${PACKAGEFILENAMES}; do - for f in ./$n*; do - # Binary builds also generate source builds, so exclude the source - # builds if desired - if [[ "$_DPL_PACKAGE_SOURCE" != "1" ]]; then - if [[ "$f" == *"_source"* ]] || [[ "$f" == *".tar.xz"* ]]; then - continue; - fi; - fi; - curl --ftp-create-dirs -T "$f" -u $DPL_FTP_USER:$DPL_FTP_PASS "$__DPL_FTP_LOCATION/package/asset/$f"; - done; - done; - - # Go back to [repo]/build folder - cd $OLDPWD; - fi; - else - if [[ "$_DPL_BINARY" == "1" ]]; then - find bin -type f -exec curl -u $DPL_FTP_USER:$DPL_FTP_PASS --ftp-create-dirs -T {} $__DPL_FTP_LOCATION/{} \;; - fi; - - if [[ "$_DPL_PACKAGE_BINARY" == "1" ]]; then - sudo rm -r package/_CPack_Packages - find package -type f -exec curl -u $DPL_FTP_USER:$DPL_FTP_PASS --ftp-create-dirs -T {} $__DPL_FTP_LOCATION/{} \;; - fi; - fi; -fi diff --git a/doc/Doublescan.txt b/doc/Doublescan.txt deleted file mode 100644 index 5e492ec89..000000000 --- a/doc/Doublescan.txt +++ /dev/null @@ -1,93 +0,0 @@ - ================================================================ - How to add Low-res modes to your XF86Config under Linux MANUALLY - ================================================================ - - I TAKE NO RESPONSIBILITY FOR ANY DAMAGE DONE TO YOUR EQUIPMENT!!! - - This document explains how to add low-res modes like 320x200 to your - X-Server configuration, because some new setup tools for the X-Server - do not support this. ONLY RECOMMENDED FOR USERS WHO KNOW WHAT THEY DO! - - I do not take any responsibility for damage done to your monitor, your - videocard, your harddisk, your cat, your dog or anything else!!! - IMPORTANT IS, THAT YOUR "HorizSync" AND "VertRefresh" VALUES REALLY - MATCH YOUR MONITOR! OTHERWISE YOUR MONITOR CAN BLOW UP!!! - - OK, if you have read up to here, you either know what you do or really - die-hard want those low-res modes. Here is what to do: - Look up your XF86Config. Is is either in /etc or in /etc/X11. Here is - what you have to add to the definition of your modeslines: - -# Low-res Doublescan modes -# If your chipset does not support doublescan, you get a 'squashed' -# resolution like 320x400. - -# 320x200 @ 70 Hz, 31.5 kHz hsync, 8:5 aspect ratio -Modeline "320x200" 12.588 320 336 384 400 200 204 205 225 Doublescan -# 320x240 @ 60 Hz, 31.5 kHz hsync, 4:3 aspect ratio -Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 Doublescan -# 320x240 @ 72 Hz, 36.5 kHz hsync -Modeline "320x240" 15.750 320 336 384 400 240 244 246 262 Doublescan -# 400x300 @ 56 Hz, 35.2 kHz hsync, 4:3 aspect ratio -ModeLine "400x300" 18 400 416 448 512 300 301 302 312 Doublescan -# 400x300 @ 60 Hz, 37.8 kHz hsync -Modeline "400x300" 20 400 416 480 528 300 301 303 314 Doublescan -# 400x300 @ 72 Hz, 48.0 kHz hsync -Modeline "400x300" 25 400 424 488 520 300 319 322 333 Doublescan - - If your video card only supports a specific set of discrete dotclocks - (RAMDAC) you may have to replace the dotclocks given here by one of the - specified (e.g in the first modeline the dotclock is 12.588 MHz). I believe - that nowadays all cards and monitors should work with these settings, but - if you have outdated hardware you better check the frequencies yourself. If - there is any uncertainty, please check the "XFree86 Video Timings HOWTO". - - - Then have a look at the section "Screen" with the appropriate driver - (usually either "svga" or "accel"). Under Subsection "Display" there - are modes for the given color depth. Add the desired modes. As an - example I give you my screens definition here with low-res modes in - 16 bit color depth: - -Section "Screen" - Driver "accel" - Device "3D Charger" - Monitor "Iiyama Pro 450" - DefaultColorDepth 16 - - Subsection "Display" - Depth 8 - Modes "1280x1024" "1024x768" "800x600" "640x480" - ViewPort 0 0 - Virtual 1280 1024 - EndSubsection - Subsection "Display" - Depth 16 - Modes "1152x864" "1024x768" "800x600" "640x480" "400x300" "320x200" <- THIS IS ACTUALLY WHAT YOU WANT!!! - ViewPort 0 0 ^^^^^^^^^^^^^^^^^^^ - Virtual 1152 864 - EndSubsection - Subsection "Display" - Depth 24 - Modes "800x600" "640x480" - ViewPort 0 0 - Virtual 800 600 - EndSubsection - Subsection "Display" - Depth 32 - Modes "800x600" "640x480" - ViewPort 0 0 - Virtual 800 600 - EndSubsection -EndSection - - Once again: important is, that you edit the correct Screen section. - If you use the SVGA Server and edit the ACCEL Server, you might - wonder where your new modes have gone. - - If everything went fine and you want to say thank you, just write - to "metzgermeister@users.sourceforge.net". If your monitor blew - up and you want to kill me, find me playing Legacy or Q3A on the net - and frag me (with your second monitor, hehe). - - - metzgermeister diff --git a/doc/Item Ranges.txt b/doc/Item Ranges.txt deleted file mode 100644 index 60251e547..000000000 --- a/doc/Item Ranges.txt +++ /dev/null @@ -1,212 +0,0 @@ -1-99 : Player Starts - 1 - Player 1 Start 1 - 2 - Player 2 Start 2 - 3 - Player 3 Start 3 - 4 - Player 4 Start 4 - 5 - Player 5 Start 4001 - 6 - Player 6 Start 4002 - 7 - Player 7 Start 4003 - 8 - Player 8 Start 4004 - 9 - Player 9 Start 4005 - 10 - Player 10 Start 4006 - 11 - Player 11 Start 4007 - 12 - Player 12 Start 4008 - 13 - Player 13 Start 4009 - 14 - Player 14 Start 4010 - 15 - Player 15 Start 4011 - 16 - Player 16 Start 4012 - 17 - Player 17 Start 4013 - 18 - Player 18 Start 4014 - 19 - Player 19 Start 4015 - 20 - Player 20 Start 4016 - 21 - Player 21 Start 4017 - 22 - Player 22 Start 4018 - 23 - Player 23 Start 4019 - 24 - Player 24 Start 4020 - 25 - Player 25 Start 4021 - 26 - Player 26 Start 4022 - 27 - Player 27 Start 4023 - 28 - Player 28 Start 4024 - 29 - Player 29 Start 4025 - 30 - Player 30 Start 4026 - 31 - Player 31 Start 4027 - 32 - Player 32 Start 4028 - 33 - Player Match Start 11 - 34 - Red Team Start 87 - 35 - Blue Team Start 89 - 36 - Tag start New - -100 - 199 : Enemies - 100 - Blue Crawla 3004 - 101 - Red Crawla 9 - 102 - GFZ Fish 58 - 103 - Gold Buzz 5005 - 104 - Red Buzz 5006 - 105 - Jetty-Syn Bomber 3005 - 106 - Jetty-Syn Gunner 22 - 107 - Crawla Commander 21 - 108 - Deton 71 - 109 - Skim 56 - 110 - THZ Turret 2004 - 111 - Pop-up Turret 42 - -200 - 299 : Bosses and their associated items (if any) - 200 - Boss 1 16 - 201 - Boss 2 2008 - 290 - Boss Fly Point 17 - 291 - EggTrap Center 2049 - -300 - 399 : Collectibles - 300 - Ring 2014 - 301 - Homing Ring 69 - 302 - Rail Ring 3003 - 303 - Infinity Ring 80 - 304 - Automatic Ring 26 - 305 - Explosion Ring 54 - 306 - Red CTF Flag 31 - 307 - Blue CTF Flag 34 - 308 - Special Stage Token 2013 - 309 - Emerald 1 420 - 310 - Emerald 2 421 - 311 - Emerald 3 422 - 312 - Emerald 4 423 - 313 - Emerald 5 424 - 314 - Emerald 6 425 - 315 - Emerald 7 426 - 316 - Hunting Emerald 1 64 - 317 - Hunting Emerald 2 3002 - 318 - Hunting Emerald 3 3001 - -400 - 499 : Boxes - 400 - Super Ring Box 2011 - 401 - Grey Ring Box 2012 - 402 - Ring Shield Box 48 - 403 - Fire Shield Box 2002 - 404 - Bomb Shield Box 2018 - 405 - Jump Shield Box 35 - 406 - Water Shield Box 2028 - 407 - Sneaker Box 25 - 408 - Invincibility Box 2022 - 409 - 1-Up Box 41 - 410 - Eggman Box 2005 - 411 - Mixup Box 78 - 412 - Question Box 3000 - -500 - 599 : Interactive Objects (friendly or otherwise - includes springs) - 500 - Bubble Patch 33 - 501 - Level End Sign 86 - 502 - Starpost 3006 - 520 - Spike Ball -1 - 521 - Special Stage Spike Ball 23 - 522 - Ceiling Spike 67 - 523 - Floor Spike 68 - 540 - Fan 32 - 541 - Steam Riser 30 - 550 - Yellow Spring 28 - 551 - Red Spring 79 - 552 - Blue Spring 5004 - 553 - Yellow Spring Down 65 - 554 - Red Spring Down 66 - 555 - Yellow Diagonal Spring 2015 - 556 - Red Diagonal Spring 38 - 557 - Yellow Diag Spring Down 20 - 558 - Red Diag Spring Down 39 - -600 - 699 : Special placement patterns - 600 - Vertical Rigns - Stack of 5 (suitable for Yellow Spring) 84 - 601 - Vertical Rings - Stack of 5 (suitable for Red Spring) 44 - 602 - Diagonal rings (5) 76 - 603 - Diagonal rings (10) 77 - 604 - A ring of rings 47 - 605 - A BIGGER ring of rings 2007 - 606 - A ring of wing items 2048 - 607 - A BIGGER ring of wing items 2010 - 608 - A ring of rings and wings (alternating) 2046 - 609 - A BIGGER ring of rings and wings (alternating) 2047 - -700 - 799 : Powerup indicators/environmental effects/miscellany - 700 - Ambient Water 1a (S) 2026 - 701 - Ambient Water 1b (S) 2024 - 702 - Ambient Water 2a (M) 2023 - 703 - Ambient Water 2b (M) 2045 - 704 - Ambient Water 3a (L) 83 - 705 - Ambient Water 3b (L) 2019 - 706 - Ambient Water 4a (XL) 2025 - 707 - Ambient Water 4b (XL) 27 - 708 - Random Ambient 1 14 - 709 - Random Ambient 2 43 - 750 - Chaos Spawner 8 - 751 - Teleport Point 5003 - 752 - Alternate View Point 5007 - 753 - Zoom Tube Waypoint 18 - 754 - Pusher 5001 - 755 - Puller 5002 - 756 - Street Light 2003 - -800 - 899 : Greenflower Scenery - 800 - Flower 1 36 - 801 - Flower 2 70 - 802 - Flower 3 73 - 804 - Berry Bush 74 - 805 - Bush 75 - -900 - 999 : Techno Hill Scenery - 900 - THZ Plant 2035 - 901 - Alarm 2006 - -1000 - 1099 : Deep Sea Scenery - 1000 - Gargoyle 81 - -1100 - 1199 : Castle Eggman Scenery - 1100 - Ceiling Chain 49 - 1101 - Torch Flame 24 - 1102 - Eggman Statue 52 - 1103 - CEZ Flower 2001 - -1200 - 1299 : Arid Canyon Scenery -1300 - 1399 : Red Volcano Scenery -1400 - 1499 : Dark City Scenery -1500 - 1599 : Doom Ship Scenery -1600 - 1699 : Egg Rock/Final Fight Scenery -1700 - 1799 : NiGHTS Items - 1700 - Axis 72 - 1701 - Axis Transfer (Normal) 61 - 1702 - Axis Transfer (Line) 46 - 1703 - Nights Drone 60 - 1704 - Nights Bumper 82 - 1705 - Hoop 57 - 1706 - Nights Wing 37 - 1707 - Super Loop Powerup 3007 - 1708 - Drill Refill Powerup 3008 - 1709 - Helper Powerup 3009 - 1710 - Egg Capsule 40 - -1800 - 1849 : Mario Items - 1800 - Coin 10005 - 1801 - Goomba 10000 - 1802 - Blue Goomba 10001 - 1803 - FireFlower 50 - 1804 - Shell 10 - 1805 - Puma 29 - 1806 - Koopa 19 - 1807 - Axe 12 - 1808 - Mario Bush 1 10002 - 1809 - Mario Bush 2 10003 - 1810 - Toad 10004 - -1850 - 1899 : Christmas Items - 1850 - Xmas Pole 5 - 1851 - Candy Cane 13 - 1852 - Snowman 6 - -1900 - 1999 : Misc Scenery - 1900 - Stalagmite 0 - 1901 - Stalagmite 1 - 1902 - Stalagmite 2 - 1903 - Stalagmite 3 - 1904 - Stalagmite 4 - 1905 - Stalagmite 5 - 1906 - Stalagmite 6 - 1907 - Stalagmite 7 - 1908 - Stalagmite 8 - 1909 - Stalagmite 9 diff --git a/doc/Linedef Ranges.txt b/doc/Linedef Ranges.txt deleted file mode 100644 index 81fa695a0..000000000 --- a/doc/Linedef Ranges.txt +++ /dev/null @@ -1,223 +0,0 @@ - Description OldNum NewNum Description - Old Water 14 Removed - - Level Parameters/Misc: - Per-Sector Gravity 64 1 - Custom Exit 71 2 - Zoom Tube Parameters 18 3 - Speed Pad 65 4 - Camera Scanner 63 5 - Disable Linedef 73 6 - Flat Alignment 66 7 - Sector Special Parameters New 8 - Mace Parameters New 9 - Sprite Cull Height New 10 - Rope Hang Parameters New 11 - Rock Spawner Parameters New 12 - - PolyObjects - Marks first line in PolyObject New 20 - Explicitly includes a PolyObject line New 21 - PolyObject: Parameters New 22 - PolyObject: Waving Flag New 31 - - Level-Load Effects: - Instant Floor Lower 26 50 - Instant Ceiling Raise 24 51 - Continuously Falling Sector 88 52 - Continuous Floor/Ceiling Mover 2 53 - Continuous Floor Mover 3 54 - Continuous Ceiling Mover 4 55 - Continuous Two-Speed Floor/Ceiling Mover 6 56 - Continuous Two-Speed Floor Mover 7 57 - Continuous Two-Speed Ceiling Mover 8 58 - Activate Floating Platform 232 59 - Activate Floating Platform (Adjustable Speed) 233 60 - Crusher 1 (Ceiling to Floor) 43 61 - Crusher 2 (Floor to Ceiling) 50 62 - Fake Floor/Ceiling 242 63 - Appearing/Disappearing FOF New 64 - Bridge Thinker New 65 - - Floor Over Floors: - "Floor Over Floor: Solid, Opaque, Shadowcasting " 25 100 - "Floor Over Floor: Solid, Opaque, Non-Shadowcasting " 33 101 - "Floor Over Floor: Solid, Translucent " 44 102 - "Floor Over Floor: Solid, Sides Only " 69 103 - "Floor Over Floor: Solid, No Sides " 51 104 - "Floor Over Floor: Solid, Invisible " 57 105 - - "Floor Over Floor: Water, Opaque " 48 120 - "Floor Over Floor: Water, Translucent " 45 121 - "Floor Over Floor: Water, Opaque, No Sides " 75 122 - "Floor Over Floor: Water, Translucent, No Sides " 74 123 - - "Floor Over Floor: Platform, Opaque " 59 140 - "Floor Over Floor: Platform, Translucent " 81 141 - "Floor Over Floor: Platform, Translucent, No Sides " 77 142 - - Floor Over Floor: Bobbing (Air) 38 150 - Floor Over Floor: Adjustable Bobbing (Air) 68 151 - Floor Over Floor: Reverse Adjustable Bobbing (Air) 72 152 - - "Floor Over Floor: Floating, Bobbing " 34 160 - - Floor Over Floor: Crumbling (Respawn) 36 170 - Floor Over Floor: Crumbling (No Respawn) 35 171 - "Floor Over Floor: Crumbling (Respawn), Platform " 79 172 - "Floor Over Floor: Crumbling (No Respawn), Platform " 80 173 - "Floor Over Floor: Crumbling (Respawn), Platform, Translucent " 82 174 - "Floor Over Floor: Crumbling (No Respawn), Platform, Translucent " 83 175 - "Floor Over Floor: Crumbling (Respawn), Floating, Bobbing " 39 176 - "Floor Over Floor: Crumbling (No Respawn), Floating, Bobbing " 1 177 - "Floor Over Floor: Crumbling (Respawn), Floating " 37 178 - "Floor Over Floor: Crumbling (No Respawn), Floating " 42 179 - "Floor Over Floor: Crumbling (Respawn), Bobbing (Air) " 40 180 - - "Floor Over Floor: Rising Platform, Solid, Opaque, Shadowcasting " 89 190 - "Floor Over Floor: Rising Platform, Solid, Opaque, Non-Shadowcasting " 90 191 - "Floor Over Floor: Rising Platform, Solid, Translucent " 91 192 - "Floor Over Floor: Rising Platform, Solid, Invisible " 94 193 - "Floor Over Floor: Rising Platform, Platform, Opaque " 92 194 - "Floor Over Floor: Rising Platform, Platform, Translucent " 93 195 - - Floor Over Floor: Light Block 49 200 - Floor Over Floor: Half Light Block 47 201 - Floor Over Floor: Fog Block 46 202 - - "Floor Over Floor: Intangible, Opaque " 62 220 - "Floor Over Floor: Intangible, Translucent " 52 221 - "Floor Over Floor: Intangible, Sides Only " 67 222 - "Floor Over Floor: Intangible, Invisible " 58 223 - - Floor Over Floor: Mario Block 41 250 - Floor Over Floor: Thwomp Block 54 251 - Floor Over Floor: Shatter Block 76 252 - "Floor Over Floor: Shatter Block, Translucent " 86 253 - Floor Over Floor: Bustable Block 55 254 - Floor Over Floor: Spin Bust Block 78 255 - "Floor Over Floor: Spin Bust Block, Translucent " 84 256 - Floor Over Floor: Quicksand Block 56 257 - Floor Over Floor: Laser Block 53 258 - Floor Over Floor: Custom 87 259 - - Linedef Executor Triggers: - Trigger Linedef Executor (Continuous) 96 300 - Trigger Linedef Executor (Each Time) 97 301 - Trigger Linedef Executor (Once) 98 302 - Trigger Linedef Executor (Ring Count - Continuous) 95 303 - Trigger Linedef Executor (Ring Count - Once) 99 304 - Trigger Linedef Executor (Character Ability - Continuous) 19 305 - Trigger Linedef Executor (Character Ability - Each Time) 20 306 - Trigger Linedef Executor (Character Ability - Once) 21 307 - "Trigger Linedef Executor (Race Only, Once) " 9 308 - Trigger Linedef Executor (CTF Red Team - Continuous) 10 309 - Trigger Linedef Executor (CTF Red Team - Each Time) 11 310 - Trigger Linedef Executor (CTF Blue Team - Continuous) 12 311 - Trigger Linedef Executor (CTF Blue Team - Each Time) 13 312 - Trigger Linedef Executor (No More Enemies - Once) 15 313 - Trigger Linedef Executor (# of Pushables - Continuous) New 314 - Trigger Linedef Executor (# of Pushables - Once) New 315 - Trigger Linedef Executors (PolyObject - Land On) New 316 - Trigger Linedef Executor (Level Load) New 399 - - Linedef Executor Options: - Linedef Executor: Set Tagged Sector's Floor Height/Pic 101 400 - Linedef Executor: Set Tagged Sector's Ceiling Height/Pic 102 401 - Linedef Executor: Set Tagged Sector's Light Level 103 402 - Linedef Executor: Move Tagged Sector's Floor 106 403 - Linedef Executor: Move Tagged Sector's Ceiling 107 404 - Linedef Executor: Lower Floor by Line 108 405 - Linedef Executor: Raise Floor by Line 109 406 - Linedef Executor: Lower Ceiling by Line 110 407 - Linedef Executor: Raise Ceiling by Line 111 408 - Linedef Executor: Change Calling Sector's Tag 112 409 - Linedef Executor: Change Front Sector's Tag 114 410 - Linedef Executor: Stop Plane Movement 116 411 - Linedef Executor: Teleport Player to Tagged Sector 104 412 - Linedef Executor: Change Music 105 413 - Linedef Executor: Play SFX 115 414 - Linedef Executor: Run Script 113 415 - Linedef Executor: Start Adjustable Fire Flicker 119 416 - Linedef Executor: Start Adjustable Glowing Light 120 417 - Linedef Executor: Start Adjustable Strobe Flash (unsynchronized) New 418 - Linedef Executor: Start Adjustable Strobe Flash (synchronized) New 419 - Linedef Executor: Fade Light Level 117 420 - Linedef Executor: Stop Lighting Effect 118 421 - Linedef Executor: Cut-Away View 121 422 - Linedef Executor: Change Sky 123 423 - Linedef Executor: Change Weather 124 424 - Linedef Executor: Change Object State 125 425 - Linedef Executor: Stop Object 122 426 - Linedef Executor: Award Score 126 427 - Linedef Executor: Start Platform Movement 127 428 - Linedef Executor: Crush Ceiling Once New 429 - Linedef Executor: Crush Floor Once New 430 - Linedef Executor: Crush Floor & Ceiling Once New 431 - Linedef Executor: Enable 2D Mode New 432 - Linedef Executor: Disable 2D Mode New 433 - Linedef Executor: Award Custom Power New 434 - Linedef Executor: Stop Conveyor New 435 - Linedef Executor: Start Conveyor New 436 - Linedef Executor: Disable Player Movement New 437 - - Linedef Executor: Execute Linedef Executor New 450 - - Linedef Executor: PolyObject: Door Slide New 480 - Linedef Executor: PolyObject: Door Swing New 481 - Linedef Executor: PolyObject: Move XY New 482 - Linedef Executor: PolyObject: Move XY w/ override New 483 - Linedef Executor: PolyObject: Rotate Right New 484 - Linedef Executor: PolyObject: Rotate Right w/ override New 485 - Linedef Executor: PolyObject: Rotate Left New 486 - Linedef Executor: PolyObject: Rotate Left w/ override New 487 - Linedef Executor: PolyObject: Start waypoint movement New 488 - Linedef Executor: PolyObject: Make Invisible New 489 - Linedef Executor: PolyObject: Make Visible New 490 - - Scrollers/Pushers: - Scroll Wall First Side Left 100 500 - Scroll Wall First Side Opposite Direction 85 501 - Scroll Wall According to Linedef 254 502 - Acc Scroll Wall According to Linedef 218 503 - Disp Scroll Wall According to Linedef 249 504 - Scroll Texture by Offsets 255 505 - - Scroll Floor Texture 251 510 - Acc Scroll Floor Texture 215 511 - Disp Scroll Floor Texture 246 512 - Scroll Ceiling Texture 250 513 - Acc Scroll Ceiling Texture 214 514 - Disp Scroll Ceiling Texture 245 515 - - Carry Objects on Floor (no scroll) 252 520 - Acc Carry Objects on Floor 216 521 - Disp Carry Objects on Floor 247 522 - Carry Objects on Ceiling 203 523 - Acc Carry Objects on Ceiling 205 524 - Disp Carry Objects on Ceiling 201 525 - - Scroll Floor Texture and Carry Objects 253 530 - Acc Scroll Floor Texture and Carry Objects 217 531 - Disp Scroll Floor Texture and Carry Objects 248 532 - Scroll Ceiling Texture and Carry Objects 202 533 - Acc Scroll Ceiling Texture and Carry Objects 204 534 - Disp Scroll Ceiling Texture and Carry Objects 200 535 - - Friction 223 540 - Horizontal Wind 224 541 - Upwards Wind 229 542 - Downwards Wind 230 543 - Horizontal Current 225 544 - Upwards Current 227 545 - Downwards Current 228 546 - Boom Push/Pull Thing 226 547 - - Lighting: - Floor Lighting 213 600 - Ceiling Lighting 5 601 - Adjustable Pulsating Light 60 602 - Adjustable Flickering Light 61 603 - Adjustable Blinking Light (unsynchronized) New 604 - Adjustable Blinking Light (synchronized) New 605 - Colormap 16 606 diff --git a/doc/SSN-Todo.xls b/doc/SSN-Todo.xls deleted file mode 100644 index c468b34764f0b1a7ebcb3f552aeb8fd4cd56fb76..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13824 zcmeHOU2IfE6#nk*Zo4f|+R{Shr@3ws`bTL?0%!wWNU35dV8KvBNm<%$XlPloyAVh) zt^#kEXfW}miIRZEi2sT{_)rog_&_u!L?t{FXA09_*%Un=N zGiKr}^QT^TMW#EQ-&%nf1`);(?q%vcj8WsbUUqI$mR<)dsXdH7>_C-oHvE_Y1m^~; z8>*|DdTU#IYP?8KZI$m)uG-l->6^PE{abP~1yO)GnM{pMx%DtERn12L!5eekP}_Lc zC8$FS&?`-;bG(*~M|)~i&{NwwE(k6NvfaHkp0;D#JTpqY@@c(ZVO5=7vI57zRTF$J5)ZbH`)i}YD&I^TM+Fl$ z#&$=TGR``}L-7bx%kdVbGIiZfrn%n00OecoHhW`j#$23m77)WNTyYMnDXiwN35}#C z^b(?0Y(^I%=+`_ojNQ6S56g_9T<7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/Sector Ranges.txt deleted file mode 100644 index 42760e133..000000000 --- a/doc/Sector Ranges.txt +++ /dev/null @@ -1,78 +0,0 @@ -Removed: - - Buttons 1-20 690-709 - - Button 21 (THZ2 A/740 B/741 D/742 E/745 710 - - Close Door Blazing (Tag 743) 711 - - Raise Ceiling to Highest (Tag 744) 981 - - THZ2 Slime Raise (B/712 W713 P714 D715 S716) 986 - -Stuff to Remove/Change: - - Light Blinks On Every 0.5 Seconds 2 Add Linedef Combine - - Light Blinks On Every 1 Second 3 Add Linedef Combine - - Light Pulses Smoothly 8 Remove - - Light Blinks On Every 0.5 Seconds (Sync) 12 Add Linedef Combine - - Lights Blinks On Every 1 Second (Sync) 13 Add Linedef Combine - - Light Flickers Like Fire 17 Remove - ? - Damage (Fire) and Current 519 Remove (convert to combination) - ? - Damage (Water) and Current 984 Remove (convert to combination) - -Section 1: - 1 - Damage (Generic) 11 - 2 - Damage (Water) 983 - 3 - Damage (Fire) 7 - 4 - Damage (Electrical) 18 - 5 - Spikes 4 - 6 - Death Pit (Camera Mod) 16 - 7 - Death Pit (No Camera Mod) 5 - 8 - Instant Kill 10 - 9 - Ring Drainer (Floor Touch) 978 - 10 - Ring Drainer (No Floor Touch) 980 - 11 - Special Stage Damage 9 - 12 - Space Countdown 6 - 13 - Ramp Sector (Increase step-up) 992 - 14 - Non-Ramp Sector (Don't step-down) 996 - 15 - Bouncy Sector (FOF Control Only) 14 - -Section 2: << 4 - 1 - Trigger Linedef Exec (Pushable Objects) 971 - 2 - Trigger LD Exec (Anywhere in Sec/All Pls) 972 - 3 - Trigger Linedef Exec (Floor Touch/All Pls) 973 - 4 - Trigger Linedef Exec (Anywhere in Sec) 974 - 5 - Trigger Linedef Exec (Floor Touch) 975 - 6 - Trigger Linedef Exec (Emerald Check) 967 - 7 - Trigger Linedef Exec (NiGHTS Mare) 968 - 8 - Check for linedef executor on FOFs (ANY) 970 - 9 - Egg Trap Capsule 666 - 10 - Special Stage Time/Rings, Par 990 - 11 - Custom Global Gravity 991 - -Section 3: << 8 - 1 - Ice/Sludge (required?!) 256 - 2 - Wind/Current (required?!) 512 - 3 - Ice/Sludge and Wind/Current 768 - 4 - Conveyor Belt 985 - 5 - Speed Pad (No Spin) 976 - 6 - Speed Pad (Spin) 977 - 7 - Bustable Block Sprite Parameter 1500-1515 - 8 - " - 9 - " - 10 - " - 11 - " - 12 - " - 13 - " - 14 - " - 15 - " - -Section 4: << 12 - 1 - Starpost Activator 993 - 2 - Special Stage Goal Combine 33 - 2 - Exit Sector Combine 982 - 2 - No Tag Zone Combine 987 - 2 - CTF: Flag Return Combine 995 - 3 - CTF: Red Team Base 988 - 4 - CTF: Blue Team Base 989 - 5 - Fan Sector 997 - 6 - Super Sonic Transform 969 - 7 - Spinner 979 - 8 - Zoom Tube Start 998 - 9 - Zoom Tube End 999 - 10 - Finish Line 994 \ No newline at end of file diff --git a/doc/faq.txt b/doc/faq.txt deleted file mode 100644 index 26c75bbad..000000000 --- a/doc/faq.txt +++ /dev/null @@ -1,307 +0,0 @@ - SRB2 - Release v1.09, ? 2005. - - Last Updated: June 2005 - - Original game & sources by: Id Software. - Additions: (c)1998 by: Fabrice Denis & Boris Pereira - (c)1999 by: Fabrice Denis, Boris Pereira & Thierry Van Elsuwe - (c)2000 by: Boris Pereira & Thierry Van Elsuwe - (c)2004 By: AJ, Graue, Alam Arias, Logan Arias & Andrew Clunis - - Special thanks to Steven McGranahan, Lee Killough, Robert Bäuml and Bell Kin for - their large contribution and to other DooM LEGACY & SRB2 Team members. - - Web site: http://www.SRB2.org/ - e-mail: none@none.com - - OpenGL specific: - Web site: http://legacy.newdoom.com/gl - - - ----------------------------------------------------------------------- - F.A.Q. - ----------------------------------------------------------------------- - - - If you have any trouble with SRB2, you might find a solution - here. - - If you find a solution to a problem that was not listed here, - please tell us so that we can update the FAQ and help other people! - - Mail your hardware/software problems to: - - None@none.com subject: FAQ - - - -------- - CONTENTS - -------- - - [0] Miscellaneous - [1] Mouse/Joystick/Keyboard - [2] Video - [3] Sound - [4] Network - [5] Troubleshooting - - - ----------------- - [0] MISCELLANEOUS - ----------------- - - * under win95 or OS/2, I don't have enough memory. How can i handle with ? - - Tell win95 to put more dpmi memory for your dos box. - Or use the -mb option. - - - - --------------------------- - [1] MOUSE/JOYSTICK/KEYBOARD - --------------------------- - - * My mouse/joystick does not work in SRB2. - - First, check that the mouse/joystick is activated : go at the - console and type either 'use_mouse' (or use the respective - menuitem) or 'use_joystick'. - - If it tells '0' or off than the mouse/joystick is not used, - set the variable to 1. eg: 'use_mouse 1'. - - For the joystick, different values will support different - types of joystick, check the console documentation for the - command 'use_joystick' for more. - - Even if the mouse or joystick is activated, you have to - set up the contols into the Setup Controls menu. That is: - tell what use you will make of the mouse/joystick buttons. - - - --------- - [2] VIDEO - --------- - - - * Where are the other video modes ? I have only '320x200' in the - Video Modes menu. - - DOS - --- - - SRB2 adds new video modes only if a VESA2 (or better) driver - is present. The VESA2 driver is a standard of 'talking' between a - program and the huge amount of different graphics cards - available today. - - If you don't have a VESA2 driver, you can download UNIVBE, or - SMART DISPLAY DOCTOR from - - http://www.scitechsoft.com/products/ent/free_titles.html - - or if you have an S3 based card, you can download the free - software called 'S3VBE'. - - ftp://ftp.externet.hu/pub/mirror/sac/graph/s3vbe318.zip - ftp://ftp.digsys.bg/pub/simtelnet/msdos/graphics/s3vbe318.zip - http://www.filesearching.com/cgi-bin/s?q=s3vbe318.zip - http://www.google.com/search?q=s3vbe318.zip - - * The game doesn't restore the video mode I have chosen the last time - I played SRB2. - - The current video mode has to be made the 'default' so that it is - saved to the config : press the key 'D' on the Video Options menu - to set the current video mode the default. - - * I have some problems with OpenGL mode - - Have a look at the FAQ for OpenGL on the glLegacy web site: - - http://www.doomnation.com/gllegacy/faqe.htm - - # Linux: I only have a 1024x768 (or 800x600, 1280x1024, ...) resolution - in fullscreen mode under X and SRB2 is really really slow. Can I - have lower resolutions like 320x200 in fullscreen mode as well? - - Probably yes. SRB2 can only use the resolutions offered by the - X-Server. So if all fullscreen modes have a very high resolution you - have to modify /etc/XF86Config (or /etc/X11/XF86Config). Use XF86Setup - (or the appropriate tool coming with your distribution - sax, - xf86config, ...) to do this. - If you do not succeed there, you can enter them manually into your - XF86Config file. ONLY RECOMMENDED FOR USERS WHO KNOW WHAT THEY DO! - For a short guide on how to do this, have a look at the file - "Doublescan.txt". - In case of doubt consult the XFree86-HOWTO (or ask your system - administrator :). - - # Linux: I cannot have any fullscreen modes at all! - - You have only modes above 1024x768 in your XF86Config. Proceed as - described above. - - # Linux: After a certain idle time my screensaver jams the display of - SRB2. I can still operate SRB2, but I do not see what's happening - and the screensaver won't go away. - - You probably have KDE. The KDE screensaver does not obey the screensaver - rules (at least mine, version 1.1). The solution is to deactivate the - KDE screensaver and use another screensaver (like the xscreensaver, - e.g.). But the hell, when you started SRB2 you should have played it - as well and not left it alone!!! - - --------- - [3] SOUND - --------- - - + DOS:I can't have CD audio music, why ? - - Make sure that the MSCDEX driver version 2.0 or later is loaded. - If it says 'MSCDEX version xxx' at game startup, and you still - don't hear the cd music, then probably your card doesn't respond - when SRB2 tries to set the cd volume. If so, make sure your sound - card's mixer have the cd volume set up so that you can hear something. - - + When the CD plays, the game is very 'jerky'. It doesn't do that when - I type 'cd off' in the console. - - You have an old/bad cd driver, that can take up to a second to - respond to cd driver commands. Either get the latest version of - your driver, or turn cd update off. Check 'cd_udpate' in the - console documentation for more. - - * DOS:How can I *ALWAYS* disable the sounds or music of the game ? - - Edit the allegro.cfg file and set digicard/midicard to 0 (none) - - * DOS:My sterero sound is reversed, how can I set it the right way ? - - Change the console variable 'stereoreverse' to either 1 or 0. - Or, you can edit the allegro.cfg file, and set the 'flip_pan' variable. - - - * DOS:The sounds are too 'slow', or 'low-pitched' - - It seems to be a problem of the auto-detection of some 8bit sound - cards. You will have to set manually the 'sb_freq' value in the - allegro.cfg file to a lower value : 11906, 16129. - - * DOS:SRB2 doesn't play any sound/music, but I have a sound - blaster genuine/compatible card. - - If you have a genuine or compatible SoundBlaster card, it is very - important that you set the BLASTER environment variable. - - If you are playing under DOS, and never installed your sound card - under DOS, run the setup of your sound card for DOS. - - Check if the BLASTER variable was set: type 'SET' under dos - (or DOSbox) - - Do you see something like 'BLASTER=A220 I5 D1 ...' ? - - Yes? If you don't hear sounds/music, then tweak the settings in the - allegro.cfg file until you get something, first try changing the - type of the sound card, it is not always properly detected. - - No? You have to set this variable in order that your sound card is - detected. Run the setup that was shipped with your sound card, and - make sure you run the setup for DOS too, it will usually add a - line of the type 'SET BLASTER=... ...' in the autoexec.bat file. - - - * DOS:How can I have better midi music on my 8bit sound card ? - - Use the DIGMID driver, it is supported in SRB2. - - What the hell is this? Well, the Gravis Ultrasound uses digital - samples to play midi music. On a simple 8bit card, you can use digital - samples too, which will sound usually better than what is output - by the poor fm synthesis chip of 8bit cards. - - You will need to get a Gravis Ultrasound patch set, you can find - several ones for free on internet, it consists of a bunch of '.pat' - files which are the digital samples to play the midi instruments - (eg: piano, conga, guitar, ect.). - - Check the Allegro homepage for some links to GUS patches: - http://alleg.sourceforge.net/digmid.html - http://alleg.sourceforge.net/ - http://www.talula.demon.co.uk/allegro/digmid.html - http://www.talula.demon.co.uk/allegro/ - - Now to activate the DIGMID driver: - - Set the 'midi_card' value to 8 (DIGMID) in the allegro.cfg file. - Make sure you leave the 'digi_voices' blank, or set it to a low - value, because the midi music will use digital voices. - At the end of the allegro.cfg file, set the 'patches' value - to the path, where you have installed a Gravis Ultrasound midi - patch set. eg: patches = d:\music\midipat\ - - # Linux: CD music does not work or only works when run as root. - - We do not encourage you to run SRB2 as root (you never know - what SRB2 can do to your system - it's a mighty piece of code :). - There is a common problem with ATAPI CD-rom drives, which are - treated as harddisks. Usually there is a link /dev/cdrom pointing to - device hd[b,c,d]. As harddisks are not supposed to be read directly - via this device (especially not by a common user), there are no read - permissions for "all". For CD-roms you can savely set read permissions - unless you are very paranoid. Assuming your CD-rom drive is /dev/hdc, - set permissions with "chmod +r /dev/hdc" (as root). SCSI CD-rom drives - should not have this problem. But if they do, proceed as described - with ATAPI drives. - - # Linux: The CD music volume is not set properly. - - Go to the console and type "jigglecdvolume 1". - - ----------- - [4] NETWORK - ----------- - - * Where can I find Internet servers ? - - For the moment there is one public server. - http://srb2.servegame.org/ Master server web page - srb2.servegame.org:28910 current Master Server - - * When I start SRB2 with -server or -connect it say : - "BinToPort: Address already in use (EADDRINUSE)" - - It appears only when SRB2 crashes or when you leave with ctrl-break. - use -udpport 12345 (or any other free slot) on both sides (client and - server). - - This can also happens when there is already a SRB2 running on your - computer if you whant to try two SRB2 running on the same computer - use -clientport 12345 (or any other free slot). Then the second will - connect to the first one. - - * Do you use the tcp protocol ? - - No, we use the udp protocol which is faster, but don't worry udp is a - part of the internet protocol. - - - ------------------- - [5] Troubleshooting - ------------------- - - # Linux: SRB2 is hung in fullscreen mode and won“t let me leave. - What shall I do? - - Some people press the reset button, but hey, we are not in the - stoneage of operating systems! There are two "proper" ways to - get out: kill your X-Server. You can usually do this by pressing - "CTRL-ALT-BACKSPACE". But if you have other open applications with - important data (probably hacked away on your diploma thesis for 3 - weeks without saving once) you can also kill SRB2 directly. Press - "CTRL-ALT-F2" and you will get to a console. Log in, type - "killall llxSRB2" and switch back to the X-Server with "CTRL-ALT-F7". - Some X-Server crash on this procedure - blame the X-Server for the - loss of 3 weeks work on your diploma thesis :) diff --git a/doc/manual/manual.htm b/doc/manual/manual.htm deleted file mode 100644 index 3fea1b66f..000000000 --- a/doc/manual/manual.htm +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Sonic Robo Blast 2 Manual - - - - - - - -

- SONIC -
- ROBO BLAST 2 -

-

- Manual -

- - - -
- -
- -
-
-

- - - -

- - diff --git a/doc/rules.txt b/doc/rules.txt deleted file mode 100644 index 4bbb8cdc1..000000000 --- a/doc/rules.txt +++ /dev/null @@ -1,39 +0,0 @@ -SVN-RULES - -- As you can see, there is sub-directory in the repository, one for eatch - platform (djgpp (dos),win32,SDL) the root directory is for all platform, - so take care of the order we have put in. -- do not commit/upload tests of bugged code, try to fix a maximum of know - bugs and update know bugs list in source.txt. If you must commit your source - make your code in #ifdef so we can disable it -- SRB2 is a modification of doom/Doom Legacy source. We allow additionnal feature - and visual addition. -- Maximize communications between members, do not impose your changes, if your - are not sure about a feature/change, talk about it in irc://irc.esper.net/srb2 chat room. - -CODE-RULES - -- We use no tab, 4 space indent, and tab size 8 (in case some tab have filtred - and for makefile) -- Self documented code, variable and function must have a name that help - understand the code, so do not call variable and function a,b, a2, ... -- the usage of extern in a c file is prohibited, except for declaration of a - function with body (so it is like public keyword in c++) - Also function protos haren't allowed for external function, put it un the - corresponding h file. -- Try to minimize #ifdef usage for : - - code readability - - the main code is for all port so if something is good for a platform all - platform can benefit by this feature -- Take care of platform dependent code, we would like to have code that work - on Dos, Win32, SDL, ... little and big endian, software/Glide/OpenGl. - -GOOD PRACTICE - -- Try to put as mush static variable and function on module so it help to - understand the role of the varaible/function in the module also this - help the compiler to optimize -- minimise global variable -- make a log of your work, so you don't need to put a lot of comment in - the code, this will also help us to update the what's new section of doc - when doing final release diff --git a/doc/source.txt b/doc/source.txt deleted file mode 100644 index 5926d95fb..000000000 --- a/doc/source.txt +++ /dev/null @@ -1,240 +0,0 @@ - -1. Compile SRB2 -2. Explanation of the code - 2.1 The memory model - 2.2 Hardware Texture model - -1. Compile SRB2 -================= - -DOS ---- - -need: -- djgpp 2.03 (http://www.delorie.com/djgpp/) -- allegro 3.12 (http://alleg.sourceforge.net/index.html) -( -- libsocket 0.7.4 (beta 4) or better - for use with Winsock 1.1 (example Windows 3.1) - (http://www.phekda.freeserve.co.uk/richdawe/lsck/lsck.htm) - OR -- Wattcp-32 v2.2 dev.rel 6 or better - For use with a packet driver - (http://www.bgnett.no/~giva/) - (http://groups.yahoo.com/group/watt-32/) - (http://groups.yahoo.com/group/watt-32/files/v2.2/) -) -- bcd 1.03 (inlcude in this package) -- gcc 2.95.2 is recommended -- nasm 0.98 (or better) (http://nasm.sourceforge.net/) - -compile: -make -make WATTCP=1 (to make a Wattcp-32 version) - -debug: -when craching SRB2 will return eip -type make asm, then you will have a 8 megs srb2.s (a assembler file) -the you can find the faulting instruction and function - ------------------------------------------------------------------------- - -Linux/SDL ------ - -need: -- tested with gcc 2.95 and 3.X. -- SDL 1.2 -- SDL_mixer 1.2 -- ibogg and libvorbis (http://Xiph.org/) -- nasm 0.98 (or better)(http://nasm.sourceforge.net/) only with 2.95, else add CC30=1 - -compile -make LINUX=1 - -debug: -gdb ? - ------------------------------------------------------------------------- - -Win32 ------ - -need : -- glide 3.x sdk (optional) (http://www.3dfx.com) -- directx6 sdk (or higher) (http://www.micosoft.com/directx) -- nasm 0.98 (or better) (http://nasm.sourceforge.net/) -- use src\win32\wLegacy.dsp -- VC6 should also work with VC5, and VS.NET 200X - -debug: -press on "step over" with the release version (there is some debug info -on it). Then change the eip in the regster window when you will type -enter the edi will go to the faulting instruction. don't forget that -you can follow the stack for calls. -You can also use trace with the debug version but add -win and -nomouse. - ------------------------------------------------------------------------- - -Win32/minGW/SDL ------ - -need: -- tested with gcc 2.95 and 3.X. -- can also use Dev-C++ 5.0 beta 9 (4.9.9.0) from http://www.bloodshed.net/dev/devcpp.html -- SDL 1.2 -- SDL_mixer 1.2 - -compile -make minGW=1 SDL=1 -or use src\SDL\Win32SDL.dev with Dev-C++ 4.9.9.0 or later - -debug: -gdb ? - ------------------------------------------------------------------------- - -WinCE/SDL WIP ------ - -need: -- ActiveSync 3.8 - http://www.microsoft.com/windowsmobile/downloads/activesync38.mspx - -- ActiveSync 3.7.1, if 3.8 isn't available for your language - http://www.microsoft.com/windowsmobile/downloads/activesync37.mspx - -- eMbedded Visual Tools 3.0 - 2002 Edition - http://www.microsoft.com/downloads/details.aspx?FamilyID=f663bf48-31ee-4cbe-aac5-0affd5fb27dd - -- Pocket PC 2000 SDK - http://www.microsoft.com/downloads/details.aspx?FamilyID=bb3f4d7b-de2a-4e1a-a175-26a68c301ac4 - -- Pocket PC 2002 SDK (eMVT 3.0 2002 Ed. comes with this) - http://www.microsoft.com/downloads/details.aspx?FamilyID=2dbee84a-bd94-4167-b817-2b2e548b2e92 - -- Pocket PC 2002 SDK Emulator Images (eMVT 3.0 2002 Ed. comes with this) - http://www.microsoft.com/downloads/details.aspx?FamilyID=25f4de97-ae80-477a-9df1-496b85b3d3e3 - -- eMbedded Visual C++ 4.0 - http://www.microsoft.com/downloads/details.aspx?familyid=1DACDB3D-50D1-41B2-A107-FA75AE960856 - -- eMbedded Visual C++ 4.0 SP3 (Win CE 4.0-4.2) - http://www.microsoft.com/downloads/details.aspx?FamilyID=5bb36f3e-5b3d-419a-9610-2fe53815ae3b - - OR - -- eMbedded Visual C++ 4.0 SP4 (No SH3 support,Win CE 4.0-5.0 support) - http://www.microsoft.com/downloads/details.aspx?FamilyID=4a4ed1f4-91d3-4dbe-986e-a812984318e5 - -- eMbedded Visual C++ 4.0 Update 5625 (SP4 only) - http://www.microsoft.com/downloads/details.aspx?FamilyID=aa282a6d-6f57-436d-8c10-0ec02d94f5b1 - -- Windows CE: Standard Software Development Kit - http://www.microsoft.com/downloads/details.aspx?familyid=a08f6991-16b0-4019-a174-0c40e6d25fe7 - -- SDK for Windows Mobile 2003-based Pocket PCs - http://www.microsoft.com/downloads/details.aspx?FamilyId=9996B314-0364-4623-9EDE-0B5FBB133652 - -- Emulator Images for Windows Mobile 2003 Second Edition software for Pocket PC - http://www.microsoft.com/downloads/details.aspx?familyid=5C53E3B5-F2A2-47D7-A41D-825FD68EBB6C - -- Microsoft Device Emulator 1.0 Community Preview - http://beta.microsoft.com Use Guest ID "MSDEVICE" to access the Community Preview website - -- Windows CE Utilities for Visual Studio .NET 2003 Add-on Pack 1.1 - (if you also have VS 2003 installed, you need this to install Win CE 5.0 SDK, else no need) - http://www.microsoft.com/downloads/details.aspx?FamilyId=7EC99CA6-2095-4086-B0CC-7C6C39B28762 - -- Windows CE 5.0: Standard Software Development Kit (eMC++ 4 SP4 only) - http://www.microsoft.com/downloads/details.aspx?FamilyID=fa1a3d66-3f61-4ddc-9510-ae450e2318c3 - -- SDL 1.27 (use patch and zip in tools\SDL1.2.7_CE) - -compile -use src\SDL\WinCE\SRB2CE.vcw - -debug: -? - - -2. Explanation of the code -========================== - - 2.1 The memory model (original) (z_zone.c) (by BP) - -------------------- - - SRB2 allocate a heap of 6/32/48 megs at begining and provide a Z_Malloc function - to allocate in this heap. - - Z_Malloc( int size,int tag,void* user ) - - size is the size in byte - tag can be : PU_STATIC allocated static (like malloc do) - call Z_Free to free it - PU_LEVEL same as static but the zone is "tagged" with the - tag PU_LEVEL, when calling - Z_FreeTag (PU_LEVEL, PU_LEVEL) all zone tagged - with PU_LEVEL are freed (at the end of the level) - PU_CACHE this one _can_ be freed automatiquely by one other - call to Z_Malloc. the *user point to a pointer - to this zone so when freed automatiquely the - pointer is set to NULL so eatch time you use it - you must check if the pointer is not NULL and - reload it. - - (...) - - 2.2 Hardware Texture model (by BP) - -------------------------- - - Eatch texture/patch/flats/pic in SRB2 are converted to hardware texture at - runtime (the GlideMipmap_s structure (hw_data.h)). I will call hardware - texture a gr_texture so there is no confusion. - - To remind you : - - Texture are set of patch and are associate to linedefs (walls) can be - upper, lower or middle texture. It can have hole on it. - - patch are sprites (the doom patch are run of vertical lines) - - flats are used for floors and ceiling of sectors and have size of 64x64 - it can't have hole on it - - pic are new legacy format for picture, it can only handle plain texture - like flats it is now used for hud in full screen for the main picture - of legacy and for coronas (the format was extended to handle 32 bit color - or intensity + alpha, not all are implemented at this time) - - Since patch, flat and pic are basic structure represented by only one lump in - the wad, the wad loader allocate for eatch lump a GlideMipmap_s (cache3Dfx) - and init data field to NULL. Since the data structure is allocated in - PU_3DFXCACHE (like PU_CACHE) the data will be initilised when needed - (hw_cache.c). - - The GlideMipmap_s structures for textures are initialized on - HWR_PrepLevelCache (hw_cache.c) it is called in P_SetupLevel (load level) - the number of textures is computed with TEXTURE1, TEXTURE2 lumps since this - can be changed in runtime in SRB2 (load a wad while runing) it must be - reallocated. Well, at this time it is realloceted at eatch level start. We - can do better, since numtextures change only when a wad is loaded. - - The 3dfx driver use glide3, it load gr_texture in gr_texture memory of the - card in fifo order when there is no more place it remove the first gr_texture, - the downloaded field of GlideMipmap_s go to false and when needed it is - reloaded in gr_texture memory. In OpenGl, since OpenGl keep texture in there - own memory and handle gr_texture memory of the card we no more need to - redownload it but if we not free time to time gr_texture memory in opengl, - it will get alot of memory, so the gr_texture memory is cleared at eatch - new level (same time of texture reallocation). Opengl and 3dfx link the - loaded gr_texture with the nextmipmap field of GlideMipmap_s so before clear - textures of the heap we MUST free gr_texture memory of OpenGl or 3dfx ! - - SRB2 can also draw patch with a differant colormap (thanks to Hurdler). - When needed it create the same gr_texture but just with a differant colormap. - This one is linked with the original in the GlideMipmap_s with the - nextcolormap field. - - So when a polygone with a gr_texture must be drawn, first we check if the - gr_textures is not allready loaded in hadware memory (downloaded field) if - not then we check if gr_texture data is there (not grabbed by z_malloc - function) if not we must recompute it eatch type of gr_texture (texture, - patch, flat, pic have there own methode) the we can send the gr_texture - to 3dfx or OpenGl. diff --git a/doc/specials.html b/doc/specials.html deleted file mode 100644 index 2cc840632..000000000 --- a/doc/specials.html +++ /dev/null @@ -1,1992 +0,0 @@ - - - - -Sonic Robo Blast II - Specials Reference Document - - - - -

SRB2 Specials Reference Document

- -

Last updated May 27, 2008

- -

For v1.1 Private Beta

- -

This is the SRB2 Specials Reference Document. It is designed to be the ultimate -reference for effects used in SRB2. As such, it is rather technical in areas and quite -concise, and is not something a beginner with level design should be dealing with.

- -

Thing Types

- -

In general, thing bitsets have 4 flags and 3 digits for their height. The bitset is -0xAAAB, where AAA is the object's height above ground, and B are the Easy, Normal, Hard, -and Deaf flags. To get the bitset on a normal object, multiply the height desired by 16, -and then add the existant B. Some objects use 32 as this number, and they will be noted. -Objects that multiply by 16 can be placed up to 4095 units in the air, while objects that -multiply by 32 can be placed up to 2047 units in the air. - -

    -
  • Player Starts
      -

      1 - Player 01 Start

      -

      This is the start for the first player in single player mode, cooperative mode, or race - mode. This start must be placed on every map, as it is what the game defaults to if the - start it is attempting to find isn't there. If there is no Player 1 Start on the map, and - the game is confused over where to spawn the player, the game will crash outright.

      -

      The Deaf tag will make the player spawn from the ceiling, and the object needs to be - multiplied by 32 to give height, not 16.

      -

      2 - Player 02 Start

      -

      This is the start for the second player in cooperative and race mode.

      -

      The Deaf tag will make the player spawn from the ceiling, and the object needs to be - multiplied by 32 to give height, not 16.

      -

      3 - Player 03 Start

      -

      See Thing 2 for more information.

      -

      4 - Player 04 Start

      -

      See Thing 2 for more information.

      -

      5 - Player 05 Start

      -

      See Thing 2 for more information.

      -

      6 - Player 06 Start

      -

      See Thing 2 for more information.

      -

      7 - Player 07 Start

      -

      See Thing 2 for more information.

      -

      8 - Player 08 Start

      -

      See Thing 2 for more information.

      -

      9 - Player 09 Start

      -

      See Thing 2 for more information.

      -

      10 - Player 10 Start

      -

      See Thing 2 for more information.

      -

      11 - Player 11 Start

      -

      See Thing 2 for more information.

      -

      12 - Player 12 Start

      -

      See Thing 2 for more information.

      -

      13 - Player 13 Start

      -

      See Thing 2 for more information.

      -

      14 - Player 14 Start

      -

      See Thing 2 for more information.

      -

      15 - Player 15 Start

      -

      See Thing 2 for more information.

      -

      16 - Player 16 Start

      -

      See Thing 2 for more information.

      -

      17 - Player 17 Start

      -

      See Thing 2 for more information.

      -

      18 - Player 18 Start

      -

      See Thing 2 for more information.

      -

      19 - Player 19 Start

      -

      See Thing 2 for more information.

      -

      20 - Player 20 Start

      -

      See Thing 2 for more information.

      -

      21 - Player 21 Start

      -

      See Thing 2 for more information.

      -

      22 - Player 22 Start

      -

      See Thing 2 for more information.

      -

      23 - Player 23 Start

      -

      See Thing 2 for more information.

      -

      24 - Player 24 Start

      -

      See Thing 2 for more information.

      -

      25 - Player 25 Start

      -

      See Thing 2 for more information.

      -

      26 - Player 26 Start

      -

      See Thing 2 for more information.

      -

      27 - Player 27 Start

      -

      See Thing 2 for more information.

      -

      28 - Player 28 Start

      -

      See Thing 2 for more information.

      -

      29 - Player 29 Start

      -

      See Thing 2 for more information.

      -

      30 - Player 30 Start

      -

      See Thing 2 for more information.

      -

      31 - Player 31 Start

      -

      See Thing 2 for more information.

      -

      32 - Player 32 Start

      -

      See Thing 2 for more information.

      -

      33 - Player Match Start

      -

      This is the start for players in Match and Chaos modes. They should also be placed in - Capture the Flag maps as well. There should be 32 of these in a map to assure proper - randomization. While it's unelegant, they can be stacked on top of each other without - negative effect.

      -

      The Deaf tag will make the player spawn from the ceiling, and the object needs to be - multiplied by 32 to give height, not 16.

      -

      34 - CTF Team Start (Red)

      -

      This is the start for players on the red team in Capture the Flag mode. There should be - 32 of these in a map to assure proper randomization. While it's unelegant, they can be - stacked on top of each other without negative effect.

      -

      The Deaf tag will make the player spawn from the ceiling, and the object needs to be - multiplied by 32 to give height, not 16.

      -

      35 - CTF Team Start (Blue)

      -

      This is the start for players on the blue team in Capture the Flag mode. There should - be 32 of these in a map to assure proper randomization. While it's unelegant, they can be - stacked on top of each other without negative effect.

      -

      The Deaf tag will make the player spawn from the ceiling, and the object needs to be - multiplied by 32 to give height, not 16.

      -

       

      -
    -
  • -
  • Enemies
      -

      100 - Crawla (Blue)

      -

      These are the blue ground enemies found in the one player stages. They can't move off - of cliffs and are exceedingly slow.

      -

      101 - Crawla (Red)

      -

      These are the red ground enemies found in the one player stages. They can't move off - cliffs and are relatively slow.

      -

      102 - Stupid Dumb Unnamed RoboFish (tm)

      -

      This is the little fish in Greenflower Zone. The angle determines the jump height, with - 0 being the old jump style. Note that the jump height is based on force, not units, so - experimentation will be necessary to get the correct height.

      -

      103 - Yellow Buzz

      -

      This enemy flies at a moderate speed directly at the player.

      -

      104 - Red Buzz

      -

      This enemy flies at a relatively high speed directly at the player.

      -

      105 - Jetty-Syn Bomber

      -

      This is a highly mobile flying enemy with a bomb that it drops on the player from - directly above. It is considered highly difficult to kill, and should only be used in - situations where the stage is supposed to be difficult.

      -

      106 - Jetty-Syn Gunner

      -

      This is a highly mobile flying enemy with a gun that it fires at the player with high - accuracy. It is considered highly difficult to kill, and should only be used in situations - where the stage is supposed to be difficult.

      -

      107 - Crawla Commander

      -

      This is the grey floating enemy in the opening room of Techno Hill Zone Act 2. It is - quite fast and will start bouncing after taking the first hit. It is significantly - challenging, although a spindash will kill it given time.

      -

      108 - Deton

      -

      This is the red spherical enemy in Techno Hill Zone Act 2. Upon seeing the player, it - makes a mad dash straight for them. With the exception of the Armageddon - Shield, Detons are invincible, and must be avoided by running behind a wall or another - enemy.

      -

      109 - Skim

      -

      This is an enemy that floats on the surface of the water, dropping bombs into the water - below. It is not currently used in any of the Single Player stages, but it is fully - operational. The designer does not have to put them on the surface of the water, they know - where it is.

      -

      110 - THZ Turret

      -

      This is the turret from Techno Hill Zone Act 2. It fires large bursts of laser fire at - the player with high accuracy. It is invincible unless it is somehow dipped into water.

      -

      111 - Popup Turret

      -

      This is a small turret that pops up now and then and shoots. The object's angle is a - value defining the delay between shooting.

      -

      112 - Sharp

      -

      This is a blue enemy with spikes on top if it. It starts off by slowly chasing the player, - then it fades to red and runs after the player, and is invincible until it fades back to red.

      -

      113 – Jet Jaw

      -

      This is an underwater enemy that tries to bite at the player, which can be found in - Deep Sea Zone.

      -

      114 – Snailer

      -

      This is an incomplete enemy.

      -

      115 – Bird Aircraft Strike Hazard (B.A.S.H.)

      -

      This is the red vulture-like enemy in Arid Canyon Zone. If it sees a player, it lifts off and - charges at him. Collision with a wall will send it plummeting.

      -

      116 – Pointy

      -

      This is the orbinaut enemy that has spikes circling around it. None of the single player stages - currently use him. You have to place him in a map by using a WAD editor, he can't be placed using - objectplace.

      -

      117 – Robo-Hood

      -

      This is the green enemy from Castle Eggman Zone, which shoots arrows at the player.

      -

      118 – CastleBot FaceStabber

      -

      This is the large grey enemy from Castle Eggman Zone. It slowly trudges towards the player, - and if the player in range, lunges at them with his sword.

      -

      119 – Egg Guard

      -

      This is the enemy from Castle Eggman Zone that wields a protective shield.

      -

      120 – Green Snapper

      -

      This is the green turtle enemy from Arid Canyon Zone. This enemy behaves exactly like a blue - crawla does. The circumference of its shell is covered with spikes, so the only way to destroy it - is by jumping on top of it.

      -

      121 – Minus

      -

      This is the digging enemy from Arid Canyon Zone. It burrows underground towards the player, and - once it's directly underneath, it bursts out from under the ground, jumping up and hurting the player.

      -

       

      -
    -
  • -
  • Bosses and their associated items (if any)
      -

      200 - Egg Mobile (Boss 1)

      -

      The boss of Greenflower Zone and Castle Eggman Zone. He moves around firing at the - player, and after taking six hits, he dashes at the player.

      -

      Giving the boss the Deaf flag will make him have spikeballs, like CEZ3, and giving him - the Multi flag will make the level end when he is dead. To place him above ground, - multiply by 32 to give height, not 16.

      -

      201 - Egg Slimer (Boss 2)

      -

      This is the boss of Techno Hill Zone. It requires an axis point at the center to - function, and it goes in a circle around the axis point dropping slime. After 6 hits, he - stops going in a circle, and bouncing at the player, spewing a lot more slime.

      -

      The Multi flag will make the level end when he is dead.

      -

      202 - Sea Egg (Boss 3)

      -

      This is the boss of Deep Sea Zone. More information will be supplied later.

      -

      The Multi flag will make the level end when he is dead.

      -

      203 - Eggscalibur (Boss 4)

      -

      This is the boss of Castle Eggman Zone. More information will be supplied later.

      -

      The Multi flag will make the level end when he is dead.

      -

      290 - Boss Flypoint

      -

      This is the location the boss will fly to after being killed.

      -

      291 - Egg Capsule Center

      -

       

      -
    -
  • -
  • Collectibles
      -

      300 - Ring

      -

      This is a normal ring. Pick this up to get one ring.

      -

      Giving the deaf tag to a ring will cause it to float 31 units above the ground. This - does stack with bitsets, allowing rings to be a total of 4127 units above the ground at - maximum.

      -

      301 - Bounce Ring

      -

      Picking this up gives you more ammo for this particular ring weapon. You cannot fire - the weapon, however, if you do not have the associated panel. -

      302 - Rail Ring

      -

      See thing #301.

      -

      304 - Automatic Ring

      -

      See thing #301.

      -

      305 - Explosion Ring

      -

      See thing #301.

      -

      306 - Scatter Ring

      -

      See thing #301.

      -

      307 - Grenade Ring

      -

      See thing #301.

      -

      310 - CTF Flag (Red)

      -

      This is the red team's flag in capture the flag mode. If the blue team takes this to - their team base (sector type 16384), they score a point.

      -

      311 - CTF Flag (Blue)

      -

      This is the blue team's flag in capture the flag mode. If the red team takes this to - their team base (sector type 12288), they score a point.

      -

      312 - Special Stage Token

      -

      This token gives the player a chance at the special stage after the current stage has - ended. If more than one token is collected, the player gets that many chances at the - special stages, continuing until they run out of tokens or have all the emeralds.

      -

      313 - Emerald 1 (Green)

      -

      This object gives the player the first emerald as a pickup object, instead of by - completing a special stage.

      -

      314 - Emerald 2 (Orange)

      -

      This object gives the player the second emerald as a pickup object, instead of by - completing a special stage.

      -

      315 - Emerald 3 (Pink)

      -

      This object gives the player the third emerald as a pickup object, instead of by - completing a special stage.

      -

      316 - Emerald 4 (Blue)

      -

      This object gives the player the fourth emerald as a pickup object, instead of by - completing a special stage.

      -

      317 - Emerald 5 (Red)

      -

      This object gives the player the fifth emerald as a pickup object, instead of by - completing a special stage.

      -

      318 - Emerald 6 (Light Blue)

      -

      This object gives the player the sixth emerald as a pickup object, instead of by - completing a special stage.

      -

      319 - Emerald 7 (Grey)

      -

      This object gives the player the seventh emerald as a pickup object, instead of by - completing a special stage.

      -

      320 - Emerald Hunt Location

      -

      This is one of the three emeralds to be used in Hunting mode.

      -

      323 - Emerald Spawn

      -

      Spawn location for emeralds in Match mode.

      -

      330 - Bounce Ring Panel

      -

      This is a match weapon panel. The Bounce Ring throws a slow ring that will bounce when - it hits walls.

      -

      Giving the deaf tag to a panel will cause it to float 31 units above the ground. This - does stack with bitsets, allowing panels to be a total of 4127 units above the ground at - maximum.

      -

      331 - Rail Ring Panel

      -

      This is a match weapon panel. The Rail Ring gives the player an instantaneous shot, that - strikes its target the instant its fired, however there is a long downtime between shots. - Being shot by a rail ring causes more kickback than normal.

      -

      Giving the deaf tag to a panel will cause it to float 31 units above the ground. This - does stack with bitsets, allowing panels to be a total of 4127 units above the ground at - maximum.

      -

      332 - Automatic Ring Panel

      -

      This is a match weapon panel. The Automatic Ring gives the player a fire rate of 17.5 - rings per second.

      -

      Giving the deaf tag to a panel will cause it to float 31 units above the ground. This - does stack with bitsets, allowing panels to be a total of 4127 units above the ground at - maximum.

      -

      333 - Explosion Ring Panel

      -

      This is a match weapon panel. The Explosion Ring throws a slow ring that explodes into - many fragments upon striking a wall or another player. Being struck directly by the - Explosion Ring causes more kickback than usual.

      -

      Giving the deaf tag to a panel will cause it to float 31 units above the ground. This - does stack with bitsets, allowing panels to be a total of 4127 units above the ground at - maximum.

      -

      334 - Scatter Ring Panel

      -

      This is a match weapon panel. The Scatter Ring throws 5 rings in a plus-shape.

      -

      Giving the deaf tag to a panel will cause it to float 31 units above the ground. This - does stack with bitsets, allowing panels to be a total of 4127 units above the ground at - maximum.

      -

      335 - Grenade Ring Panel

      -

      This is a match weapon panel. The Grenade Ring throws a grenade that will explode - if an opposing player gets too close to it. It will also explode automatically after a - while if left untouched.

      -

      Giving the deaf tag to a panel will cause it to float 31 units above the ground. This - does stack with bitsets, allowing panels to be a total of 4127 units above the ground at - maximum.

      -

       

      -
    -
  • -
  • Boxes
      -

      400 - Super Ring (10 Rings)

      -

      This monitor gives the player ten rings.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      402 - Attraction Shield

      -

      Also known as the yellow shield and god shield, this shield protects the player from a - single hit, then disappears. It also attracts all normal rings, spilled or on the map to - the player with the shield. It also protects the player from electric damage.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      403 - Force Shield

      -

      Also known as the blue shield, this shield protects the player from two hits, then - disappears. If the spin  button is pressed while jumping, it is also possible to - reflect many projectiles.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      404 - Armageddon Shield

      -

      Also known as the black shield, this shield protects the player from a single hit, - triggering upon a hit. The shield can also be triggered by jumping, and then hitting the - spin key in midair. When the shield is triggered, a flash of light damages everything - within a large radius, destroying the shield in the process.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      405 - Whirlwind Shield

      -

      This shield protects the player from a single hit, then disappears. If the player does - a jump-spin, they will do a second jump in midair, making the maximum height that the - player can jump with the shield 224.

      -

      Versions of SRB2 previous to 1.09 had the Basic Shield in this object number, so make - sure to note that if the player loads the map in an older version, that is what they will - see.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      406 - Elemental Shield

      -

      Also known as the green  shield, this shield protects the player from a single - hit, then disappears. While this shield is active, the player cannot drown. It also - protects the player from water, fire, and other damage. When the player with this shield - spin-dashes, it leaves a trail of fire, which deals fire damage to any enemy that touches - it.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      407 - Super Sneakers

      -

      This is a monitor powerup that gives the player about 2x running speed for 20 seconds.

      -

      408 - Invincibility

      -

      This is a monitor powerup that prevents all damage to the player for 20 seconds.

      -

      409 - Extra Life

      -

      This powerup monitor features the player's face, and provides an extra life when - struck.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      410 - Eggman

      -

      This monitor damages the player if they strike it.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      411 - Teleporter

      -

      This monitor mixes up all locations of players, teleporting them to the location of a - random other player. It has no effect in Single Player or in multiplayer modes while only - one player is in the game.

      -

      If monitors are given the Deaf tag, they will respawn as a random monitor type (not a ? - monitor) from the weighted table in modes that support respawn. Elsewise, they will - respawn as the same monitor.

      -

      412 - Random Box

      -

      Destroy this monitor and you will get a random powerup, like the boxes in Sonic 2 race - mode.

      -

      413 - Gravity Boots Box

      -

      Destroy this monitor and the gravity will be flipped for a short time.

      -

       

      -
    -
  • -
  • Interactive Objects (friendly or otherwise)
      -

      500 - Air Bubble Patch

      -

      This is the air bubble patch used underwater to give players air. It spawns big bubbles - randomly which replenish the player's air.

      -

      501 - End Level Sign

      -

      This is the sign at the end of the stage. When the player enters the Exit - Sector, this sign will start to spin, and end on the face of the player. This sign - does not make the stage end, it's just a visual effect for it.

      -

      502 - Star Post

      -

      Star Posts allow the player to respawn after dying at a point other than the beginning - of the stage. There can be up to 32 Star Posts in a map, and they work with the bitsets.

      -

      Instead of controlling the difficulty and deaf flags, the final digit of the bitset - determines the number of the Star Post. 0x0000 is the first one and 0x000f is the - sixteenth one. Note that since this overwrites all of the difficulty flags, they will - appear in all difficulties, even though 0x0000 would normally mean it wouldn't appear in - any difficulty level.

      -

      520 - Spikeball

      -

      Just like thing 521, except they do normal damage to the player on - contact.

      -

      521 - Spikeball (Special Stage)

      -

      These are the spikeballs used in the special stages. They harm the player for damage on - contact, but only if they are carrying rings.

      -

      522 - Ceiling Spike

      -

      This is a downward pointing spike for use on the ceiling. Touching the pointy end of - the spike deals damage to the player.

      -

      By default, it attaches itself to the ceiling, and the height part of the bitset - measures how far down from the ceiling, instead of up from the floor.

      -

      523 - Floor Spike

      -

      This is a upward pointing spike for use on the floor. Touching the pointy end of the - spike deals damage to the player.

      -

      524 - Big Floating Mine

      -

      When you get close, this mine will start to follow you. Touches you, and it explodes.

      -

      540 - THZ Fan

      -

      This is the fan used inside the secret passage in Techno Hill Zone Act 1. It pushes the - player slowly up until it reaches the maximum height it can. The maximum height is - determined by the angle, measured in normal fracunits (It can go above 360 just fine).

      -

      541 - THZ Gas Jet

      -

      This is the gas jet used at the end of Techno Hill Zone Act 1. It launches the player - straight up on regular intervals about the same height as a yellow spring pointing up.

      -

      550 - Yellow Spring (Up)

      -

      This is a yellow spring pointing straight up. It has a medium amount of force behind - it.

      -

      551 - Red Spring (Up)

      -

      This is a red spring pointing straight up. It has a large amount of force behind it.

      -

      552 - Blue Spring

      -

      This is a blue spring pointing straight up. It has a small amount of force behind it. - The intent is for this spring to be used underwater. It has about the same effect - underwater as a yellow spring does above water.

      -

      553 - Yellow Spring (Down)

      -

      This is a yellow spring pointing straight down. It has a medium amount of force behind - it.

      -

      554 - Red Spring (Down)

      -

      This is a red spring pointing straight down. It has a large amount of force behind it.

      -

      555 - Yellow Spring (Diagonal Up)

      -

      This is a yellow spring pointing upwards and in the direction the thing is facing. It - has a medium amount of force behind it. When the player touches this spring, he will - automatically turn to face the direction the spring is launching the player.

      -

      556 - Red Spring (Diagonal Up)

      -

      This is a red spring pointing upwards and in the direction the thing is facing. It has - a large amount of force behind it. When the player touches this spring, he will - automatically turn to face the direction the spring is launching the player.

      -

      557 - Yellow Spring (Diagonal Down)

      -

      This is a yellow spring pointing downwards and in the direction the thing is facing. It - has a medium amount of force behind it. When the player touches this spring, he will - automatically turn to face the direction the spring is launching the player.

      -

      558 - Red Spring (Diagonal Down)

      -

      This is a red spring pointing downward and in the direction the thing is facing. It has - a large amount of force behind it. When the player touches this spring, he will - automatically turn to face the direction the spring is launching the player.

      -

       

      -
    -
  • -
  • Special placement patterns
      -

      600 - 5 Vertical Rings (Yellow Spring)

      -

      This is a chain of five rings intended to be used with thing 550. - Do not use ring chain objects in any mode where items respawn, because ring chains do not - respawn. Use bitsets to create chains in any mode with item respawn.

      -

      601 - 5 Vertical Rings (Red Spring)

      -

      This is a chain of five rings intended to be used with thing 551. - Do not use ring chain objects in any mode where items respawn, because ring chains do not - respawn. Use bitsets to create chains in any mode with item respawn.

      -

      602 - 5 Diagonal Rings (Yellow Spring)

      -

      This is a chain of five rings intended to be used with thing 555. - Do not use ring chain objects in any mode where items respawn, because ring chains do not - respawn. Use bitsets to create chains in any mode with item respawn.

      -

      603 - 10 Diagonal Rings (Red Spring)

      -

      This is a chain of ten rings intended to be used with thing 556. Do - not use ring chain objects in any mode where items respawn, because ring chains do not - respawn. Use bitsets to create chains in any mode with item respawn.

      -

      604 - Nights: Circle of Rings

      -

      605 - Nights: Circle of Rings (Big)

      -

      606 - Nights: Circle of Wing Logos

      -

      607 - Nights: Circle of Wing Logos (Big)

      -

      608 - Nights: Circle of Rings and Wings

      -

      609 - Nights: Circle of Rings and Wings (Big)

      -

       

      -
    -
  • -
  • Powerup indicators/environmental effects/miscellany
      -

      700 - Ambient Water SFX 1A (Small)

      -

      701 - Ambient Water SFX 1B (Small)

      -

      702 - Ambient Water SFX 2A (Medium)

      -

      703 - Ambient Water SFX 2B (Medium)

      -

      704 - Ambient Water SFX 3A (Large)

      -

      705 - Ambient Water SFX 3B (Large)

      -

      706 - Ambient Water SFX 4A (Extra Large)

      -

      707 - Ambient Water SFX 4B (Extra Large)

      -

      708 - Random Ambience 1

      -

      709 - Random Ambience 2

      -

      750 - Chaos Mode Enemy Spawn

      -

      This is where the enemies spawn from in Chaos mode. There should be around 12 of these - points on a map with Chaos support.

      -

      751 - Teleport Destination

      -

      This is the thing to be used with linedef type 412, the linedef - executor that teleports a player. This thing is where the player will spawn in the tagged - sector.

      -

      752 - Alternate View Point

      -

      This is the thing to be used with linedef type 422, the linedef - executor that changes the camera view. This thing is where the camera will be moved to in - the tagged sector.

      -

      753 - Zoom Tube Waypoint

      -

      Waypoints for zoom tubes. Think of Sonic 2's Metropolis Zone, Sonic 3 & Knuckles's - Death Egg Zone, and Lava Reef Zone. The lower byte of the ANGLE field specifies the - waypoint's number in the sequence, and the upper byte specifies the sequence that the - waypoint belongs to. These are used in conjunction with sector type 32768 - and 36864.

      -

      754 - Push

      -

      755 - Pull

      -

      756 - Street Light Source

      -

      This produces a light in OpenGL. It is used in Starlit Warehouse Zone, one of the match - stages, as the street lights.

      -

      760 - PolyObject Anchor

      -

      This is the first of the two points used to set up 'how much to move' a polyobject by - when creating it. Angle is the PolyObject ID#.

      -

      761 - PolyObject SpawnPoint

      -

      This is the second of the two points used to set up 'how much to move' a polyobject by - when creating it. Angle is the PolyObject ID#.

      -

      762 - PolyObject SpawnPoint Crush

      -

      This is the second of the two points used to set up 'how much to move' a polyobject by - when creating it. Angle is the PolyObject ID#. This item tells the PolyObject that it - should hurt the player.

      -

       

      -
    -
  • -
  • Greenflower Scenery
      -

      800 - GFZ Flower (Normal)

      -

      This is a scenery object from Greenflower Zone. It is the orange flower seen all - throughout GFZ and most GFZ-themed custom maps.

      -

      801 - GFZ Sunflower

      -

      This is a scenery object from Greenflower Zone. It is the large blue sunflower seen all - throughout GFZ and most GFZ-themed custom maps.

      -

      802 - GFZ Budding Flower

      -

      This is a scenery object from Greenflower Zone. It is the small purple flower seen all - throughout GFZ and most GFZ-themed custom maps.

      -

      804 - Berry Bush

      -

      This is a scenery object from Greenflower Zone. It is the green bush with red berries - seen all throughout GFZ and most GFZ-themed custom maps.

      -

      805 - Bush

      -

      This is a scenery object from Greenflower Zone. It is the green bush without the - berries seen all throughout GFZ and most GFZ-themed custom maps.

      -

       

      -
    -
  • -
  • Techno Hill Scenery
      -

      900 - THZ Flower

      -

      This is a scenery object from Techno Hill Zone Act 1. It is the metallic white flower.

      -

      901 - THZ Alarm

      -

      This is a scenery object from Techno Hill Zone Act 2. It is the little alarm in the - passage with the first Star Post. It creates noise, but the red visual effect in THZ2 was - done with a colormap, not this object.

      -

       

      -
    -
  • -
  • Deep Sea Scenery
      -

      1000 - Gargoyle

      -

      Pushable gargoyle. Can be stood on top of as well.

      -

      Giving this the Deaf tag will prevent it from being pushable.

      -

      1001 - Seaweed

      -

      Animated seaweed. Intangible scenery.

      -

      1002 - Dripping Water

      -

      Water dripping from the ceiling. ANGLE value specifies start delay.

      -

       

      -
    -
  • -
  • Castle Eggman Scenery
      -

      1100 - Hanging Chain

      -

      This is a scenery object from Castle Eggman, a dungeon chain hanging from the ceiling.

      -

      By default, it attaches itself to the ceiling, and the height part of the bitset - measures how far down from the ceiling, instead of up from the floor.

      -

      1101 - CEZ Torch

      -

      This is the torch used in Castle Eggman Zone. It produces light in OpenGL, and it harms - the player for fire damage on contact.

      -

      1102 - Eggman Statue

      -

      This is the large Eggman statue in Castle Eggman Zone.

      -

      1103 - CEZ Flower

      -

      This is a scenery object from Castle Eggman Zone. It is the decaying flower.

      -

       

      -
    -
  • -
  • Arid Canyon Scenery
      -

      1200 – Big Tumbleweed

      -

      A large moveable tumbleweed that rolls along the floor.

      -

      1201 – Little Tumbleweed

      -

      A small movable tumbleweed that rolls along the floor.

      -

      1202 – Rock Spawner

      -

      An object which randomly spawns falling rocks, which damage the player on impact.
      - Description on how to use goes here.

      -
    -
  • -
  • Red Volcano Scenery
      -

      1300 – Horizontal Flame Jet

      -

      A stready stream of flames comes out horizontally.

      -

      1301 – Vertial Flame Jet

      -

      A stready stream of flames comes out vertially.

      -
    -
  • -
  • Dark City Scenery
      -
    -
  • -
  • Doom Ship Scenery
      -
    -
  • -
  • Egg Rock / Final Fight Scenery
      -
    -
  • -
  • NiGHTS Items
      -

      1700 - Nights: Axis

      -

      Lower 10 bits: Axis number in the mare (0-based) Upper 6 bits: Mare that axis belongs - to (0-based). ANGLE value determines the size of the axis to rotate around. If 16384 is - added to the ANGLE value, the axis will be inverted.

      -

      1701 - Nights: Axis Transfer (Normal)

      -

      1702 - Nights: Axis Transfer Line

      -

      1703 - Nights: Ideya Drone

      -

      Angle value sets the NiGHTS timer, in seconds.

      -

      1704 - Nights: Bumper

      -

      Lower 4 bits of the flags specify the angle of the bumper in 30 degree increments.

      -

      1705 - Nights: Hoop

      -

      1706 - Nights: Wing Logo

      -

      1707 - Nights: Super Loop

      -

      1708 - Nights: Drill Refill

      -

      1709 - Nights: Helper

      -

      1710 - Nights: Egg Capsule

      -

      The capsule you need to collect rings to break in NiGHTS. The value of its ANGLE field - determines how many rings you need to break it. Just like the axis points, the upper bits - (value >> 10) determine the mare it belongs to. For example, an angle value of 1024 - means it belongs to mare 1 (2nd mare, it's zero based), and requires 0 rings to break. - 1030 would be mare 1, and 6 rings to break. 2048 would be mare 2, no rings.

      -

       

      -
    -
  • -
  • Mario Items
      -

      1800 - Coin

      -

      This is a coin, which is essentially a ring with Mario graphics and sound effects.

      -

      1801 - Overworld Goomba

      -

      These are the enemies in Mario Koopa Blast 1, and are essentially Crawlas with a Mario - graphic.

      -

      1802 - Underworld Goomba

      -

      These are the enemies in Mario Koopa Blast 2, and are essentially Crawlas with a Mario - graphic.

      -

      1803 - Fire Flower

      -

      This is the powerup from the Mario Koopa Blast stages. It changes the player to a white - palette, and allows the player to throw fireballs with the fire button. The fireballs fly - in a Mario-style bounce trajectory until they hit an enemy or a wall.

      -

      1804 - Koopa Shell

      -

      This is the Koopa Shell in Mario Koopa Blast 1. It will bounce around, striking enemies - and players.

      -

      1805 - Puma (Mario Jumping Fireball)

      -

      This is the fireball used in Mario Koopa Blast 3. The angle determines the jump height, - with 0 being the old jump style. Note that the jump height is based on force, not units, - so experimentation will be necessary to get the correct height.

      -

      1806 - King Bowser

      -

      1807 - Axe

      -

      The axe used to defeat Bowser in the third Mario level.

      -

      1808 - Bush (Short)

      -

      This is a scenery object from Mario Koopa Blast

      -

      1809 - Bush (Tall)

      -

      This is a scenery object from Mario Koopa Blast

      -

      1810 - Toad

      -

      This is Toad at the end of Mario Koopa Blast 3.

      -

       

      -
    -
  • -
  • Xmas Items
      -

      1850 - Xmas Pole

      -

      X-Mas scenery object. Looks like a little barber shop pole.

      -

      1851 - Candy Cane

      -

      X-Mas scenery object. Looks like a candy cane.

      -

      Note that Mystic Realm 4 replaces this object with the Sonic 1 palm tree, so any maps - loaded while Mystic Realm 4 is loaded will overwrite the image, making any candy canes - look like palm trees, which can look kinda stupid.

      -

      1852 - Snowman

      -

      X-Mas scenery object. Pushable snowman with a happy face. Can be stood on top of as - well. Acts the same as thing 1000.

      -

      Giving this the Deaf tag will prevent it from being pushable.

      -

       

      -
    -
  • -

    Linedef Types

    -

    Lines may have flags applied to them. The following is a reference of their values. - Unless specified otherwise in a line type, the flags behave as follows:

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NAMEVALUEDESCRIPTION
    EFFECT61Special use flag #6.
    BLOCKMONSTERS2Prevents an enemy from crossing the line. May not work for especially - speedy enemies.
    TWOSIDED4Flag used to indicate if a line is two sided. Do not modify.
    DONTPEGTOP8Unpeg upper texture. Good for moving floors.
    DONTPEGBOTTOM16Unpeg bottom texture. Good for moving ceilings.
    EFFECT132Special use flag #1.
    NOCLIMB64Don't allow Knuckles to climb on this wall.
    EFFECT2128Special use flag #2.
    EFFECT3256Special use flag #3.
    EFFECT4512Special use flag #4.
    EFFECT51024Special use flag #5.
    NOSONIC2048Disable line special if playing as Sonic (Single Player Only).
    NOTAILS4096Disable line special if playing as Tails (Single Player Only).
    NOKNUX8192Disable line special if playing as Knuckles (Single Player Only).
    BOUNCY16384Bounce the player off this line.
    TFERLINE32768Use this on a FOF line special to define the texture & offsets for - each side of the FOF. The control sector must have at LEAST the same # of sides as the - target sector(s).
    -

    -
  • Level Parameters / Miscellany
      -

      1 - Per-Sector Gravity

      -

      Sets the gravity of the tagged sector or sectors, as a percentage of global gravity - (which can be set separately using sector type 176). The floor height - of the control sector is used. If it is 1000, then the target sector will have 100% - gravity. If it is 500, the target sector will have 50% of the global gravity. Negative - values work as well, but players can't jump down; they'll get stuck to the ceiling, unless - the NOCLIMB flag is checked.

      -

      You can apply this special to the control sector of an intangible FOF to change the - gravity only inside that FOF.

      -

      2 - Custom Exit

      -

      Tag this to an Exit Sector (type 8192) to exit to a custom level, - overriding the one set in the map header. The map number you go to is indicated by the - front sector's floor. Additionally, if the control linedef's bitset is set to disallow - climbing (with the NOCLIMB attribute, whose value is 64), skip the - score tally screen when switching to the new map.

      -

      If the control linedef has the BLOCKMONSTERS flag set, - this effect does something super complicated and fun, going to a different level depending - on whether the player has all emeralds or not. If the player has seven emeralds, the - linedef's front sector's ceiling height will be used. Otherwise, go to the map number - indicated by the linedef's front sector's floor. That's only if you set the BLOCKMONSTERS flag.

      -

      If the EFFECT4 flag is set, the linedef's front side x offset - will be used as the new gametype after the map change, providing it is in range (from 0 to - 4, inclusive).

      -

      3 - Zoom Tube Parameters

      -

      X length = speed. Y length = waypoint sequence #. See sector type 32768 - for more information.

      -

      4 - Speed Pad

      -

      Creates a speed pad. The linedef direction and indicates the direction of the pad. The - target sector must have type 1280 or 1536 for - this to work.

      -

      If the EFFECT4 flag is set, you will not be teleported to the - center of the sector when the speed pad is activated.

      -

      5 - Camera Scanner

      -

      Modifies camera position while the player is in the target sector. The floor and - ceiling of the control sector and the angle of the control linedef are the values for - CAM_HEIGHT, CAM_DIST, and CAM_ROTATE, respectively. Camera position is reset when the - player steps outside the sector.

      -

      6 - Disable Linedef

      -

      Disables any linedef specials that share the same tag. Will be used in the future to - check if a particular level has been previously cleared or not.

      -

      7 - Flat Alignment

      -

      Aligns floor and/or ceiling flats. The x alignment is specified by the control - linedef's x distance (the difference between the x values of its two vertices), and the y - alignment is specified by the control linedef's y distance.

      -

      By default, works on both the floor and ceiling (however, note that skies cannot be - "aligned" ;). Adding the NOCLIMB flag to the linedef will - align the floor only, while the BLOCKMONSTERS flag will make - it align the ceiling only.

      -

      8 - Sector Special Parameters

      -

      Sets special behavior of a sector's type depending on the flag(s) checked:

      -

      NOCLIMB - Special only operates when touching ceiling

      -

      EFFECT4 - Special operates when touching either the floor or the - ceiling

      -

      EFFECT3 - Special operates by just touching the sector, rather - than having to be inside of it.

      -

      9 - Chain Parameters

      -

      Sets special behavior of a moving chain as such:

      -

      x length - # of links on the chain

      -

      y length - Overall speed (0-15)

      -

      X offset - Rotation speed on the X axis (0-15)

      -

      Y offset - Rotation speed on the Z axis (0-15)

      -

      floorheight - angle to start at (0-15)

      -

      ceilingheight - maximum rotation speed

      -

      10 - Culling Plane

      -

      Set like line 1, this creates an invisible plane in the sector. If - your view is above this plane, lots of things drawn below the height of this plane will be - discarded, and if your view is below the plane, a lot of things drawn above the height of - the plane will be discarded. This is to tell the game to not draw stuff that you aren't - going to see anyway. Do note that the view doesn't have to be in the current sector, you - can also be viewing from the side, which may be undesirable. To prevent this problem, you - can check the NOCLIMB flag, which will allow you to 'group' a set - of sectors to one control sector in which the culling will only take effect. For example, - you have a control sector set up for culling, and have two culling lines in the control - sector, tagged to sectors 'A' and 'B'. If the player is in sector 'A' or 'B', the culling - will occur, but if the player is in sector 'C', it will not.

      -

      11 - Rope Hang Parameters

      -

      X length = speed. Y length = waypoint sequence #.

      -

      EFFECT1 - Don't wrap movement

      -

      See sector type 45056 for more information.

      -

      12 - Rock Spawn Parameters

      -

      Sets special behavior of a rock spawner (#1202) as such:

      -

      length - momentum strength

      -

      line angle - momentum angle

      -

      X offset - # of tics to wait until another is spawned

      -

      Y offset - Rock crumble sprite to use (0-15)

      -

      NOCLIMB - add some randomization to the momentum

      -

       

      -

      13 - Heat Wave

      -

      Applies a heat effect to the screen. Tag this to a sector, or to the control sector of a FOF.

      -

       

      -
    -
  • -
  • Level Parameters / Miscellany
      -

      20 - Marks first line in PolyObject

      -

      Explain here.

      -

      21 - Explicitly include a PolyObject line

      -

      Explain here.

      -

      30 - PolyObject Parameters

      -

      Explain here.

      -

       

      -
    -
  • -
  • Level-Load Effects
      -

      50 - Instant Floor Lower

      -

      Makes the floor instantly lower on level load to be at the same height as the lowest - floor of any bordering sector.

      -

      51 - Instant Ceiling Raise

      -

      Makes the ceiling instantly rise on level load to be the same height as the highest - ceiling of any bordering sector.

      -

      52 - Continuously Falling Sector

      -

      Requires two control sectors. Sector continuously falls until its ceiling reaches the - floor of the line's back sector, then returns to its original position and keeps falling. - Linedef length determines speed. Good for things like intermittently falling lava. If the NOCLIMB flag is set, it falls upwards, instead of downwards.

      -

      53 - Continuous Floor/Ceiling Mover

      -

      Must be a two-sided linedef, tagged to another sector on the map. The tagged sector's - floor and ceiling will move, first so that they're equal to the floor and ceiling of the - linedef's front sector, then so they're equal to the floor and ceiling of the linedef's - back sector, then the front sector again, and so on.

      -

      The speed of the movement is determined by the linedef's length and uses the same units - as linetype 60.

      -

      54 - Continuous Floor Mover

      -

      Like linetype 53, but only moves the floor, not the ceiling. Can be - used to replace floating platforms in some cases, where only the floor was desired to - move.

      -

      55 - Continuous Ceiling Mover

      -

      Like linetype 53, but only moves the ceiling, not the floor.

      -

      56 - Continuous Two-Speed Floor/Ceiling Mover

      -

      Must be a two-sided linedef, tagged to another sector on the map. The tagged sector's - floor and ceiling will move, first so that they're equal to the floor and ceiling of the - linedef's front sector, then so they're equal to the floor and ceiling of the linedef's - back sector, then the front sector again, and so on.

      -

      The speed of the movement is determined by the linedef's x distance (the first way, - towards the front sector) and y distance (the second way, towards the back sector), using - the same units as linetype 60.

      -

      Unlike linetype 53, this effect does not slow down when it reaches - the end of its movement. Instead, it changes instantly from going in one direction to - going in the other. It's designed for making more sophisticated crushers than the crusher - type allows (i.e. crushers with varying rise/crush speeds, FOF crushers, crushers with - different start points).

      -

      57 - Continuous Two-Speed Floor Mover

      -

      Like linetype 56, but only moves the floor, not the ceiling.

      -

      58 - Continuous Two-Speed Ceiling Mover

      -

      Like linetype 56, but only moves the ceiling, not the floor.

      -

      59 - Activate Floating Platform

      -

      This is used to make floating platforms (that move up and down) as well as moving - water. In fact, you can use this to make any type of block move vertically. The way it - works is somewhat confusing - You use three control sectors, all connected by at least one - linedef. Easiest thing to do is make three square sectors together in a row. One of the - linedefs on the middle sector should contain the Floor Over Floor line special that you - want. This will be the Floor Over Floor control sector. The other two sectors represent - the bottommost position you want the Floor Over Floor to reach, and the topmost position - you want the Floor Over Floor to reach. The 59 line can be on any of these sectors, as - long as you tag it to the middle one. If you still don't understand, look at Greenflower - Zone Act 2. If the NOCLIMB flag is set, the platform will begin - moving upwards, rather than downwards.

      -

      60 - Activate Floating Platform (Adjustable Speed)

      -

      Speed is indicated by linedef length; one unit of speed here is 0.25 fracunits per tic. - (Floating platforms made with type 59 move at 2 fracunits per tic.) - Aside from the linedef length controlling speed, works exactly like linedef type 59.

      -

      61 - Crusher 1 (Ceiling to Floor)

      -

      The crush motion is from the ceiling to the floor. Linedef length indicates crusher - speed. See also linetype 62, Crusher 2.

      -

      62 - Crusher 2 (Floor to Ceiling)

      -

      Like linetype 61, Crusher 1, except that it starts in a different - place, not synchronised with any crushers that use the Crusher 1 type. The highest ceiling - this crusher reaches will be the highest ceiling height of any bordering sector.

      -

      63 - Fake Floor

      -

      Creates two fake planes, fake floor and fake ceiling. Main textures are not affected, - but as far as above/below textures and floor/ceiling flats are concerned, the floor and - ceiling height are those of the control sector. As far as collisions, walking, etc. are - concerned, the floor and ceiling flats are whatever they normally would be.

      -

      Fake floor is useful for railings (THZRAIL and WOODRAIL; see THZ2 for examples) and - snow effects (making a fake floor of snow just a few units above normal floor, so it looks - like the player's feet are buried in the snow).

      -

      64 - Appearing/Disappearing FOF

      -

      Tag this to any FOF line and this will cause it to appear and disappear - intermittently. The line's X length is the amount of time (in tics) that the FOF will - appear, and Y length is the amount of time (in tics) that the FOF will disappear. The - control sector's floor height allows you to specify an offset (in tics) of how much time - will pass before the appearing/disappearing kicks in.

      -

       

      -
    -
  • -
  • Floor-Over-Floors (FOFs)
      -

      100 - Floor Over Floor: Solid, Opaque, Shadowcasting

      -

      This is just a regular old FOF. As with any block, the ceiling of the control sector is - the top of the block, and the floor of the control sector is the bottom. - "Shadowcasting" means that the light value used in the control sector is used - for the area below where the actual FOF appears, as opposed to above it.

      - -

      101 - Floor Over Floor: Solid, Opaque, Non-Shadowcasting

      -

      See notes for 100. "Non-shadowcasting" means that the - light value you set in the control sector will be used for the area above the FOF, instead - of below it.

      - -

      102 - Floor Over Floor: Solid, Translucent

      -

      Useful for windows. The GLASSTEX texture is good for this purpose. You can change the - alpha value of the translucency by setting the control linedef's Above texture to a # - followed by a three-digit decimal number, 000 to 255. #000 is most transparent, #255 is - most opaque. Note that in software mode, there are actually only ten different values that - serve as a 'best guess'.

      - -

      103 - Floor Over Floor: Solid, Sides Only

      -

      A solid FOF that renders sides only, not planes (floor and ceiling). You were supposed - to be able to use it to place railings (THZRAIL, WOODRAIL, etc.) on FOFs. It doesn't work - for that, because the railings use a different kind of transparency and software mode - won't draw them on FOFs. So this one is going on the list of useless effects, right next - to linetype 104.

      - -

      104 - Floor Over Floor: Solid, No Sides

      -

      Like a 3D floor of type 101, except that sides are not drawn. - Supposedly a little bit faster than a normal 3D floor. You can use it when the sides - wouldn't be visible anyway.

      -

      This type of 3D floor will have shadows if and only if you set the control linedef's NOCLIMB flag.

      - -

      105 - Floor Over Floor: Solid, Invisible

      -

      For making invisible walls and other strange effects.

      - -
      -

      120 - Floor Over Floor: Water, Opaque

      -

      This one looks exactly like linetype 100 ingame, but is a block of - water instead of solid.

      -

      The block will have the attribute of linetype 200 if the NOCLIMB flag is set.

      -

      To use the light level of the target sector, utilize the EFFECT4 - flag.

      -

      If this is used as lava (Fire Damage), and you set the BLOCKMONSTERS - flag, you can still pass through the lava.

      - -

      121 - Floor Over Floor: Water, Translucent

      -

      This one looks exactly like linetype 102 ingame, but is a block of - water instead of solid.

      -

      The block will have the attribute of linetype 200 if the NOCLIMB flag is set.

      -

      To use the light level of the target sector, utilize the EFFECT4 - flag.

      -

      If this is used as lava (Fire Damage), and you set the BLOCKMONSTERS - flag, you can still pass through the lava.

      - -

      122 - Floor Over Floor: Water, Opaque, No Sides

      -

      Like linetype 120, but doesn't render sides.

      -

      The block will have the attribute of linetype 200 if the NOCLIMB flag is set.

      -

      To use the light level of the target sector, utilize the EFFECT4 - flag.

      -

      If this is used as lava (Fire Damage), and you set the BLOCKMONSTERS - flag, you can still pass through the lava.

      - -

      123 - Floor Over Floor: Water, Translucent, No Sides

      -

      Like linetype 121, but doesn't render sides. Most of the time this - won't make a difference. It can be useful, however, for windows that have water on one - side and not on the other.

      -

      The block will have the attribute of linetype 200 if the NOCLIMB flag is set.

      -

      To use the light level of the target sector, utilize the EFFECT4 - flag.

      -

      If this is used as lava (Fire Damage), and you set the BLOCKMONSTERS - flag, you can still pass through the lava.

      - -
      -

      140 - Floor Over Floor: Intangible from Bottom, Opaque

      -

      This sector type is solid from the top and walls, but is not solid from the bottom. - This allows the designer to create one-way passages as well as simulate 2D design by - having platforms that players can jump up to from below.

      -

      This type of 3D floor will have shadows unless you set the control linedef's NOCLIMB flag.

      - -

      141 - Floor Over Floor: Intangible from Bottom, Translucent

      -

      A copy of linetype 140 that is also translucent.

      - -

      142 - Floor Over Floor: Intangible from Bottom, Translucent, No - Sides

      -

      A platform you can jump up through, like linetype 140 (and decides - the same way whether to have shadows or not), with translucency and that doesn't render - sides. Alpha value supported the same way as linetype 102.

      - -
      -

      150 - Floor Over Floor: Bobbing (Air)

      -

      FOF that moves down 16 units when you step on, then returns to its former position when - you step off. The control sector must be connected to another sector with the same floor - and ceiling height. This seemingly redundant sector is used for resetting the heights. (If - you forget to put it in, the bobbing floor when stepped on will go down, keep going down, - and never stop or come back up.) See also linetypes 151 and 152. This linedef is obsolete. Please use linetype 190-195.

      - -

      151 - Floor Over Floor: Adjustable Bobbing (Air)

      -

      Like linetype 150, except that instead of the floor moving down 16 - units when you step on it, it moves down the number of units of the control linedef's - length. This linedef is obsolete. Please use linetype 190-195.

      - -

      152 - Floor Over Floor: Reverse Bobbing (Air)

      -

      Like linetype 151, except in reverse. The platform goes up - when you step on it and back down when you step off. This linedef is obsolete. - Please use linetype 190-195.

      - -
      -

      160 - Floor Over Floor: Floating, Bobbing

      -

      Bobs and floats in water. The floating part means that if the water moves or rises, - this platform will rise with it.

      - -
      -

      170 - Floor Over Floor: Crumbling (Respawn)

      -

      Crumbles and falls away, then reappears 15 seconds later.

      - -

      171 - Floor Over Floor: Crumbling (No Respawn)

      -

      Crumbles and falls away and never comes back.

      - -

      172 - Floor Over Floor: Crumbling (Respawn)

      -

      A copy of linetype 140 that also crumbles when stood on and - reappears after 15 seconds.

      - -

      173 - Floor Over Floor: Crumbling (No Respawn)

      -

      A copy of linetype 172 that stays gone forever after crumbling.

      - -

      174 - Floor Over Floor: Intangible from Bottom, Crumbling - (Respawn), Translucent

      -

      A copy of linetype 141 that also crumbles when stood on and - reappears after 15 seconds.

      - -

      175 - Floor Over Floor: Intangible from Bottom, Crumbling (No - Respawn), Translucent

      -

      A copy of linetype 174 that stays gone forever after crumbling.

      - -

      176 - Floor Over Floor: Crumbling (Respawn), Floating, Bobbing

      -

      Crumbles and falls, then floats on water, then bobs when you step on it.

      - -

      177 - Floor Over Floor: Crumbling (No Respawn), Floating, Bobbing

      -

      Crumbles and falls, then floats on water, then bobs when you step on it. Unlike - linetype 176, does not return to its former position.

      - -

      178 - Floor Over Floor: Crumbling (Respawn), Floating

      -

      Crumbles and falls, then floats on water, then reappears up in the air 15 seconds - later.

      - -

      179 - Floor Over Floor: Crumbling (No Respawn), Floating

      -

      Crumbles and falls, then spends the rest of its days floating on water, never to - reappear up in the air.

      - -

      180 - Floor Over Floor: Crumbling (Respawn), Bobbing (Air)

      -

      Bobs, crumbles, and falls when stepped on.

      - -
      -

      190 - Floor Over Floor: Rising Platform, Solid, Opaque, - Shadowcasting

      -

      Just like 100, except when a player steps on it, it will rise up to - the control sector's highest adjacent sector. You set the control sectors for this up like - special 59. Linedef length controls speed like 60. - If the NOCLIMB flag is set, it will require the player to spindash - to raise the platform.

      -

      191 - Floor Over Floor: Rising Platform, Solid, Opaque, - Non-Shadowcasting

      -

      Just like 101, except when a player steps on it, it will rise up to - the control sector's highest adjacent sector. You set the control sectors for this up like - special 59. Linedef length controls speed like 60. - If the NOCLIMB flag is set, it will require the player to spindash - to raise the platform.

      -

      192 - Floor Over Floor: Rising Platform, Solid, Translucent

      -

      Just like 102, except when a player steps on it, it will rise up to - the control sector's highest adjacent sector. You set the control sectors for this up like - special 59. Linedef length controls speed like 60. - If the NOCLIMB flag is set, it will require the player to spindash - to raise the platform.

      -

      193 - Floor Over Floor: Rising Platform, Solid, Invisible

      -

      Just like 105, except when a player steps on it, it will rise up to - the control sector's highest adjacent sector. You set the control sectors for this up like - special 59. Linedef length controls speed like 60. - If the NOCLIMB flag is set, it will require the player to spindash - to raise the platform.

      -

      194 - Floor Over Floor: Rising Platform, Intangible from Bottom, - Opaque

      -

      Just like 140, except when a player steps on it, it will rise up to - the control sector's highest adjacent sector. You set the control sectors for this up like - special 59. Linedef length controls speed like 60. - If the NOCLIMB flag is set, it will require the player to spindash - to raise the platform.

      -

      195 - Floor Over Floor: Rising Platform, Intangible from Bottom, - Translucent

      -

      Just like 141, except when a player steps on it, it will rise up to - the control sector's highest adjacent sector. You set the control sectors for this up like - special 59. Linedef length controls speed like 60. - If the NOCLIMB flag is set, it will require the player to spindash - to raise the platform.

      -
      -

      200 - Floor Over Floor: Light Block

      -

      Like a half light block, but it's really an actual block. That is, the light only comes - down to the control sector's floor, not to the bottom of the level (as with linetype 201.

      - -

      201 - Floor Over Floor: Half Light Block

      -

      Light blocks can be used to set color maps and light values. The light value of the - control sector will be used and any colormap attached to it will be used also. Note that - only the ceiling of the control sector is used; the light goes all the way down to the - bottom of the level. If this isn't what you want, consider using linedef type 200 instead.

      - -

      202 - Floor Over Floor: Fog Block

      -

      Creates a block of colored fog. Attach a colormap (linetype 606) to - the control sector for the fog block; otherwise you won't see anything out of the - ordinary.

      - -
      -

      220 - Floor Over Floor: Intangible, Opaque

      -

      Like opaque water, but not swimmable. Good for a snow effect on - FOFs. Can also be used to make hidden rooms, like you would normally do by setting a Main - texture.

      - -

      221 - Floor Over Floor: Intangible, Translucent

      -

      See linedef type 102 for how to adjust the translucency, making the - 3D floor more transparent or more opaque.

      -

      This type of 3D floor will have shadows if and only if you set the control linedef's NOCLIMB flag.

      - -

      222 - Floor Over Floor: Intangible, Sides Only

      -

      An intangible FOF that renders sides only, not planes (floor and ceiling). It renders - both inside sides and outside sides. You can use it to place sector borders (GFZGRASS, - etc.) on FOFs.

      - -

      223 - Floor Over Floor: Intangible, Invisible

      -

      Useful for setting effects, such as wind and gravity.

      - -
      -

      250 - Floor Over Floor: Mario Block

      -

      Like a normal FOF, except that the control linedef's Above texture is used after the - block has been hit (the Main texture is used before this). Any things in the control - sector will pop out the top of the block in the order in which they were placed. Rings - will be obtained and the effects of monitors will begin as soon as the block has been hit.

      - -

      251 - Floor Over Floor: Thwomp Block

      -

      The thwomps are the crazy platforms with faces in Mario Koopa Blast 3. They can crush - you, but you can also ride on them.

      -

      Control sector is set up like a normal FOF. When a player steps - underneath the thwomp, it will crush down to the floor. You don't need to tell it where - the floor is. It knows.

      - -

      252 - Floor Over Floor: Shatter Block

      -

      Like the bustable block, linetype 254, except that it shatters on - any sort of contact, whether it's a spindash or not (and whether you're Knuckles or not).

      -

      If the NOCLIMB flag is set, the block is only shatterable from - the bottom, like some things you spring up and break in Launch Base Zone from Sonic 3.

      - -

      253 - Floor Over Floor: Shatter Block, Translucent

      -

      Translucent version of 252 supporting alpha values.

      - -

      254 - Floor Over Floor: Bustable Block

      -

      Bustable blocks can be destroyed by spindashing. Additionally, Knuckles can destroy - them by walking or jumping into them, since he is very strong. If the NOCLIMB - flag is set, only Knuckles can break the block.

      - -

      255 - Floor Over Floor: Spin Bust Block

      -

      Like the bustable block, linetype 254, set off in a different way. - To break, jump onto it or fall down onto it while spinning. Similar to blocks found in - Marble Zone, as well as the ice cubes that would encase buttons and monitors in parts of - Ice Cap Zone.

      - -

      256 - Floor Over Floor: Spin Bust Block, Translucent

      -

      Translucent version of 255 supporting alpha values.

      -

      257 - Floor Over Floor: Quicksand Block

      -

      It's set up like any block. You can, of course, sink and die in it. X length of the - linedef determines sink speed, Y length determines how "sludgy" movement in the - quicksand is.

      - -

      258 - Floor Over Floor: Laser Block

      -

      Creates a blinking FOF that zaps you if you touch it. You can set the flats and texture - to whatever you want. For a red laser like in THZ2, use REDFLR for the flats and REDWALL - for the texture.

      -

      You can also make other colors using BLUEFLR/BLUWALL (blue laser), GREENFLR/GRNWALL - (green laser), and YELFLR/YELWALL (yellow laser). Of course, those colors of lasers are - very expensive, so Eggman doesn't have nearly as many of them. He usually goes with the - cheap red lasers.

      - -

      259 - Floor Over Floor: Custom

      -

      Place the appropriate flag values in hex (do not include the 0x in front of it) in the - line's UPPER TEXTURE field on the 2nd side of the linedef.

      -
    -
  • -
  • Linedef Executor Triggers
      -

      300 - Trigger Linedef Executor (Continuous)

      -

      Triggers linedef executor in the control sector when a player touches the tagged - sector's floor or steps in the sector (depending on the sector special used). The linedef - executor will keep being triggered over and over again as long as a player is there, hence - the word "continuous" in this linetype's name. Tagged sector must have one of - the Trigger Linedef Executor types for this to work.

      -

      301 - Trigger Linedef Executor (Each Time)

      -

      Like 300, except that it only gets triggered once for each time you - fall or jump onto the floor. Tagged sector must have one of the Trigger - Linedef Executor types for this to work.

      -

      302 - Trigger Linedef Executor (Once)

      -

      Like 300, except that after that linedef executor executes its - linedefs, it's done. It's over. The linedefs will never be executed again.

      -

      303 - Trigger Linedef Executor (Ring Count - Continuous)

      -

      Triggers linedef executor in the control sector when a player touches the tagged - sector's floor or steps in the sector (depending on the sector special used). The linedef - executor will keep being triggered over and over again as long as a player is there, hence - the word "continuous" in this linetype's name. Tagged sector must have one of - the Trigger Linedef Executor types for this to work. Executor will be - triggered depending on how many rings the player has:

      -

      No flags -> Runs if (rings = line length)

      -

      NOCLIMB -> Runs if (rings <= line length)

      -

      BLOCKMONSTERS -> Runs if (rings >= line length)

      -

      EFFECT4 -> Takes the rings of ALL players into account.

      -

      304 - Trigger Linedef Executor (Ring Count - Once)

      -

      Like 303, except that after that linedef executor executes its - linedefs, it's done. It's over. The linedefs will never be executed again.

      -

      305 - Trigger Linedef Executor (Character Ability - Once)

      -

      Like linetype 302, but is only activated when the character's - ability number matches the linedef length by multiples of 10. For example:

      -

      0-9 = Charability 0

      -

      10-19 = Charability 1

      -

      20-29 = Charability 2

      -

      etc...

      -

      306 - Trigger Linedef Executor (Character Ability - Continuous)

      -

      Like 300, but only triggers when the character's ability number - matches the linedef length by multiples of 10. See linetype 305 for a - futher description.

      -

      307 - Trigger Linedef Executor (Character Ability - Each Time)

      -

      Like 301, but only triggers when the character's ability number - matches the linedef length by multiples of 10. See linetype 305 for a - futher description.

      -

      308 - Trigger Linedef Executor (Race Only, Once)

      -

      Like linetype 302, but is only activated when the gametype is Race. - Useful for doing things like opening doors, pre-solving puzzles, etc. to make race - smoother.

      -

      309 - Trigger Linedef Executor (CTF Red Team - Continuous)

      -

      Like 300, but only triggers if you are in CTF and on the red team.

      -

      310 - Trigger Linedef Executor (CTF Red Team - Each Time)

      -

      Like 301, but only triggers if you are in CTF and on the red team.

      -

      311 - Trigger Linedef Executor (CTF Blue Team - Continuous)

      -

      Like 300, but only triggers if you are in CTF and on the blue team.

      -

      312 - Trigger Linedef Executor (CTF Blue Team - Each Time)

      -

      Like 301, but only triggers if you are in CTF and on the blue team.

      -

      313 - Trigger Linedef Executor (No More Enemies - Once)

      -

      Like linetype 302, but is only activated when no more objects of - type MF_ENEMY exist in its tagged area. Think "destroy all enemies in this room for - the door to open to go to the next room". Tag this to a control sector. It will go - through the lines of the control sector, checking for any lines of type 223 - and checking inside the area occupied by the invisible intangible FOF to see if any - enemies exist. If no alive enemies are in all of the type 223 FOFs, - the linedef executor is run once. The line length is the tag number of the linedef - executor trigger to run.

      -

      314 - Trigger Linedef Executor (# of Pushables - Continuous)

      -

      Like 300, but only triggers if the number of pushable objects in - the sector compared to the line length is:

      -

      No flags -> Runs if (# pushables = line length)

      -

      NOCLIMB -> Runs if (# pushables >= line length)

      -

      EFFECT4 -> Runs if (# pushables < line length)

      -

      315 - Trigger Linedef Executor (# of Pushables - Once)

      -

      Like 314, but only triggers once.

      -

      316 - Trigger Linedef Executor (PolyObject - Land On)

      -

      This will trigger every time you land on the polyobject. Line's tag # is 32000 + the - PolyObject ID #. You must also flag the PolyObject Start (#20) line with NOCLIMB to tell the game it has a linedef executor associated with it.

      -

      So if you had a PolyObject with an ID of 1, this line would have a tag of 32001.

      -

       

      -
    -
  • -
  • Linedef Executor Options
      -

      400 - Linedef Executor: Set Tagged Sector's Floor Height/Pic

      -

      When executed, instantly changes the tagged sector's floor height and flat to the floor - height and flat of the linedef's front sector.

      -

      401 - Linedef Executor: Set Tagged Sector's Ceiling Height/Pic

      -

      When executed, instantly changes the tagged sector's ceiling height and flat to the - ceiling height and flat of the linedef's front sector.

      -

      402 - Linedef Executor: Set Tagged Sector's Light Level

      -

      When executed, instantly changes the tagged sector's light level to that of the - linedef's front sector. Floor and ceiling light settings done with linetypes 601 and 600 are transferred as well; colormaps are - not.

      -

      If there is a lighting effect active in the target sector or sectors at the time (glow, - fade, strobe, flicker), it will be stopped.

      -

      403 - Linedef Executor: Move Tagged Sector's Floor

      -

      When executed, starts moving the tagged sector's floor until it is at the same height - as the linedef's front sector's floor. Speed is indicated in the same units used by - linetype 60.

      -

      If the line used has NOCLIMB flag, the floor flat will change - after the move, to that on the front sector's floor. This is like what linetype 400 does.

      -

      If the line used has BLOCKMONSTERS flag, another linedef - executor will be run when the floor movement is finished. (If multiple sectors finish at - different times, it goes by the lowest numbered sector, but you should probably try to - avoid this scenario.) The tag of the new linedef executor to run is specified by the X - alignment on the front side of the line. The tag number you use must be positive, and this - functionality cannot be combined with changing the floor flat using the NOCLIMB - flag. Running a linedef executor will take precedence over changing the floor flat.

      -

      404 - Linedef Executor: Move Tagged Sector's Ceiling

      -

      When executed, starts moving the tagged sector's ceiling until it is at the same height - as the linedef's front sector's ceiling. Speed is indicated in the same units used by - linetype 60.

      -

      If the line used has NOCLIMB flag, the ceiling flat will change - after the move, to that on the front sector's ceiling. This is like what linetype 401 does.

      -

      If the line used has BLOCKMONSTERS flag, another linedef - executor will be run when the ceiling movement is finished. (If multiple sectors finish at - different times, it goes by the lowest numbered sector, but you should probably try to - avoid this scenario.) The tag of the new linedef executor to run is specified by the X - alignment on the front side of the line. The tag number you use must be positive, and this - functionality cannot be combined with changing the ceiling flat using the NOCLIMB flag. Running a linedef executor will take precedence over - changing the ceiling flat.

      -

      405 - Linedef Executor: Lower Floor by Line

      -

      Speed is indicated by x distance; amount to lower is indicated by y distance.

      -

      406 - Linedef Executor: Raise Floor by Line

      -

      Speed is indicated by x distance; amount to raise is indicated by y distance.

      -

      407 - Linedef Executor: Lower Ceiling by Line

      -

      Speed is indicated by x distance; amount to lower is indicated by y distance.

      -

      408 - Linedef Executor: Raise Ceiling by Line

      -

      Speed is indicated by x distance; amount to raise is indicated by y distance.

      -

      409 - Linedef Executor: Change Calling Sector's Tag

      -

      Changes the tag of the calling sector; that is, the sector on the map that activated - this linedef executor. The new tag is the linedef's length.

      -

      410 - Linedef Executor: Change Front Sector's Tag

      -

      Changes the tag of the linedef's front sector. The new tag is the linedef's length.

      -

      411 - Linedef Executor: Stop Plane Movement

      -

      Stops any and all floor, ceiling, or elevator movement in the tagged sector or sectors.

      -

      412 - Linedef Executor: Teleport Player to Tagged Sector

      -

      The player who triggered the linedef executor will be teleported to the tagged sector. - The player's exact X, Y, Z, and angle are determined by a teleport destination thing, type - 751, somewhere in the tagged sector.

      -

      If the BLOCKMONSTERS flag is used, it won't flash and make - the teleport sound effects. If the NOCLIMB flag is used, it won't - reset the angle to the angle of the teleport destination thing, and if the EFFECT4 flag is used, it will not kill your acceleration/speed upon - teleport.

      -

      413 - Linedef Executor: Change Music

      -

      Linedef length indicates the music slot to use. If the linedef's NOCLIMB - flag is set, play the music once, otherwise loop it.

      -

      If the player dies and goes back to a starpost, the beginning of the level, or the - appropriate multiplayer start, the map music from before will be restored. The linedef - flag BLOCKMONSTERS can be set to change this behavior, and - retain the new music even after dying.

      -

      If the linedef length isn't a valid music slot, the music is stopped.

      -

      414 - Linedef Executor: Play SFX

      -

      Plays a sound effect. The line length is the sound number to use. The list of sound - effects can be found in sounds.h. The origin of the sound depends on which linedef flags - are set:

        -
      • NOCLIMB : The sound is played from nowhere, but only for the - player who triggered it.
      • -
      • EFFECT4: The sound is played from nowhere for everyone.
      • -
      • BLOCKMONSTERS: The sound is played from the center of the - sector that triggered the linedef executor.
      • -
      -

      Otherwise, the sound is played from the location of the player or thing who triggered - it.

      -

      415 - Linedef Executor: Run Script

      -

      Runs a script, the same kind of script you can run on level load with the level header - scriptname attribute. The script that will be run should have a lumpname of the form SCRxxyyy, - where xx is the two-digit map number and yyy is the linedef's sector's floor - height in decimal, with leading zeroes as necessary (or 000 if the floor height exceeds - 999 fracunits). For instance, if the linedef is in MAP31 and the floor of its sector is - 337 fracunits, the script named SCR31337 will be run.

      -

      416 - Linedef Executor: Start Adjustable Fire Flicker

      -

      Essentially a copy of linetype 603 that waits to activate until the - linedef executor is triggered. It does have an extra feature, though. If you use a - two-sided linedef with the NOCLIMB flag, the linedef's back sector - will be used as the maximum light level, allowing you to set the target sector (or - sectors) at a different starting light level entirely.

      -

      417 - Linedef Executor: Start Adjustable Glowing Light

      -

      Essentially a copy of linetype 602 that waits to activate until the - linedef executor is triggered. It does have an extra feature, though. If you use a - two-sided linedef with the NOCLIMB flag, the linedef's back sector - will be used as the maximum light level, allowing you to set the target sector (or - sectors) at a different starting light level entirely.

      -

      418 - Linedef Executor: Start Adjustable Blinking Light - (unsynchronized)

      -

      Essentially a copy of linetype 604 that waits to activate until the - linedef executor is triggered. It does have an extra feature, though. If you use a - two-sided linedef with the NOCLIMB flag, the linedef's back sector - will be used as the maximum light level, allowing you to set the target sector (or - sectors) at a different starting light level entirely.

      -

      419 - Linedef Executor: Start Adjustable Blinking Light - (synchronized)

      -

      Essentially a copy of linetype 605 that waits to activate until the - linedef executor is triggered. It does have an extra feature, though. If you use a - two-sided linedef with the NOCLIMB flag, the linedef's back sector - will be used as the maximum light level, allowing you to set the target sector (or - sectors) at a different starting light level entirely.

      -

      420 - Linedef Executor: Fade Light Level

      -

      When executed, gradually fades the tagged sector's light level to that of the linedef's - front sector. Floor and ceiling light settings done with linetypes 601 - and 600 are not affected or used.

      -

      If there is a lighting effect already active in the target sector or sectors at the - time (glow, other fade, strobe, flicker), it will be halted in favor of this one.

      -

      Linedef length in fracunits indicates speed. Fading from 224 to 64 with a linedef - length of 4 will take 40 fracunits (224 - 64 = 160, 160 / 4 = 40). There are 35 fracunits - in a second.

      -

      421 - Linedef Executor: Stop Lighting Effect

      -

      Stops any lighting effects active in the tagged sector or sectors: glow, fade, strobe, - flicker, etc. The light level, whatever it is at the moment this script line is run, will - be preserved until a new lighting effect or light level change is used.

      -

      Note that the lighting effects will all stop other lighting effects when activated. In - other words, you only need to use this when you really want the lighting effect to stop, - not when you want one effect to stop and another to start.

      -

      422 - Linedef Executor: Cut-Away View

      -

      Cuts away to a view from a different place for a moment. Only works for linedef - executors triggered by a player. Tag the line to a sector with an alt view thing (map - thing type 5007) in it at the proper location with the proper Z and angle. The line length - indicates how long to stay in this view, in tics.

      -

      By giving the linedef a NOCLIMB flag, you can adjust the - vertical viewing angle from the cut-away view. Set the x offset on the linedef's front - side to an integer -90 to 90. In software mode the range of viewing angles is actually - about -68 to 68. This is in degrees.

      -

      423 - Linedef Executor: Change Sky

      -

      Changes sky to the # of the control sector's floorheight. This only affects the player - who activates it. If you'd like it to affect all players, make sure you check the NOCLIMB flag.

      -

      424 - Linedef Executor: Change Weather

      -

      Changes weather to the control sector's floorheight in powers of 10.

      -

      Example:

      -
      - - - - - - - - - - - - - - - - - - - - -
      Linedef LengthWeather Type
      10None
      20Snow
      30Rain
      40Storm
      -

      (higher numbers reserved for future use)

      -

      This only affects the player who activates it. If you'd like it to affect all players, - make sure you check the NOCLIMB flag.

      -

      425 - Linedef Executor: Change Object State

      -

      Changes the animation frame of the activating object to the state # indicated by the - length of the control linedef. Be careful how you use this.

      -

      426 - Linedef Executor: Stop Object

      -

      Makes the object that triggered the linedef executor stop moving, after being sent to - the center of the sector it's in (only if NOCLIMB flag is set), on - the floor. Although it comes to a complete stop, the object can begin moving right away - again. If the object is a player, the player will stop jumping, spinning, or anything - else.

      -

      427 - Linedef Executor: Award Score

      -

      Adds to the score of the player who activated it. Control sector's floorheight = points - to award. This even works with negative values.

      -

      428 - Linedef Executor: Start Platform Movement

      -

      Starts a moving platform in the nature of linetype 59 or 60. If the NOCLIMB flag is set, the platform will - begin moving upwards. Otherwise, it will start moving downwards. Speed of movement is set - just like with linetype 60.

      -

      429 - Linedef Executor: Crush Ceiling Once

      -

      Ceiling moves down to the floor, then back up. Speed is determined by line length - - every 16 units equals 1 FRACUNIT/tic.

      -

      430 - Linedef Executor: Crush Floor Once

      -

      Floor moves up to the ceiling, then back down. Speed is determined by line length - - every 16 units equals 1 FRACUNIT/tic.

      -

      431 - Linedef Executor: Crush Floor And Ceiling Once

      -

      Floor and ceiling meet in the middle and then return, sandwiching anything that's - inbetween. Speed is determined by line length - every 16 units equals 1 FRACUNIT/tic.

      -

      432 - Linedef Executor: Enable 2D Mode

      -

      Turns on 2D mode within the level. You'll probably only want to use this with a zoom - tube or teleport to guarantee that the player is in the correct position when it switches.

      -

      433 - Linedef Executor: Disable 2D Mode

      -

      Turns off 2D mode within the level.

      -

      434 - Linedef Executor: Award Custom Power

      -

      Awards (or removes!) a power to the calling player.

      -

      X length: Power Index + 1

      -

      Y length: Power Duration (in 35ths of a second)

      -

      435 - Linedef Executor: Change Scroller Direction

      -

      Changes direction of a scroller (conveyor, texture). Also changes speed if this is not - an accelerative/displacement scroller.

      -

      436 - Linedef Executor: Shatter Block

      -

      Shatters a FOF - of any type. Parameters are as follows:

      -

      Texture X Offset: Tag # of FOF target sector

      -

      Texture Y Offset: Tag # of FOF control sector

      -

      Note that the FOF should only have one target sector.

      -

      437 - Linedef Executor: Disable Player Control

      -

      Disables the controls of the player that triggered the linedef executor. If the - NOCLIMB flag is set, they will be able to jump, however.

      -

      Giving the front texture of the linedef an X offset will make the effect last that amount - of time, in tics. Otherwise, it ends immediately, so you would need to use a continuous - trigger.

      -

      438 - Linedef Executor: Set Object's Scale

      -

      Length of this line determines the scale size of an object, in percentage. Note that there is a max of 400%.

      -

      450 - Linedef Executor: Execute Linedef Executor

      -

      Just what it says. Can be used for recursion. Be careful, because you CAN make a loop - out of this that will freeze the game.

      -

      Tag is the linedef executor trigger tag to run.

      -

      488 - Linedef Executor: PolyObject - Move by Waypoints

      -

      Moves a polyobject along a sequence of Zoom Tube waypoints.

      -

      Texture X offset: Speed (8 = 1 FRACUNIT).

      -

      Texture Y offset: Sequence # of Zoom Tube waypoints.

      -

      The movement also depends on which linedef flags are set:

        -
      • EFFECT1 : Moves from highest waypoint # to lowest waypoint #.
      • -
      • EFFECT2 : Comes back the way it came when the end is reached.
      • -
      • EFFECT3 : Wrap around the waypoints.
      • -
      • EFFECT4:  Continuously move (used with EFFECT2 or EFFECT3).
      • -
      -

       

      -
    -
  • -
  • Scrollers / Pushers
      -

      500 - Scroll Wall First Side Left

      -

      501 - Scroll Wall First Side Opposite Direction

      -

      502 - Scroll Wall According to Linedef

      -

      503 - Acc Scroll Wall According to Linedef

      -

      Accelerative scrolling version of 502.

      -

      504 - Disp Scroll Wall According to Linedef

      -

      Displacement scrolling version of 502.

      -

      505 - Scroll Texture by Offsets

      -
      -

      510 - Scroll Floor Texture

      -

      Linedef length and direction indicate speed and direction.

      -

      511 - Acc Scroll Floor Texture

      -

      Accelerative scrolling version of 510.

      -

      512 - Disp Scroll Floor Texture

      -

      Displacement scrolling version of 510.

      -

      513 - Scroll Ceiling Texture

      -

      Linedef length and direction indicate speed and direction.

      -

      514 - Acc Scroll Ceiling Texture

      -

      Accelerative scrolling version of 513.

      -

      515 - Disp Scroll Ceiling Texture

      -

      Displacement scrolling version of 513.

      -
      -

      520 - Carry Objects on Floor

      -

      Like linedef type 530, without scrolling the floor texture, so the - floor doesn't look like it's moving.

      -

      521 - Acc Carry Objects on Floor

      -

      Accelerative scrolling version of 520.

      -

      522 - Disp Carry Objects on Floor

      -

      Displacement scrolling version of 520.

      -

      523 - Carry Objects on Ceiling

      -

      For FOF conveyor belts. Like 533, except without the scrolling to - accompany it.

      -

      524 - Acc Carry Objects on Ceiling

      -

      Accelerative scrolling version of 523. Untested.

      -

      525 - Disp Carry Objects on Ceiling

      -

      Displacement scrolling version of 523. Untested.

      -
      -

      530 - Scroll Floor Texture and Carry Objects

      -

      Used for conveyor belts, in conjunction with sector type 1024 - (Conveyor Belt). Linedef length and direction indicate conveyor speed and direction, - respectively. This can also be used to convey items on the underneath of a FOF. See Egg - Rock Zone for an example.

      -

      531 - Acc Scroll Floor Texture and Carry Objects

      -

      Accelerative scrolling version of 530.

      -

      532 - Disp Scroll Floor Texture and Carry Objects

      -

      Displacement scrolling version of 530.

      -

      533 - Scroll Ceiling Texture and Carry Objects

      -

      For conveyor belts on the top of FOFs, or for conveying items on a ceiling. Tag this to - the FOF control sector and give the FOF control sector a type of 1024, - Conveyor Belt. For realism you might also want to scroll the control sector's floor - texture in the opposite direction (see linetype 510).

      -

      534 - Acc Scroll Ceiling Texture and Carry Objects

      -

      Accelerative scrolling version of 533. Untested.

      -

      535 - Disp Scroll Ceiling Texture and Carry Objects

      -

      Displacement scrolling version of 533. Untested.

      -
      -

      540 - Friction

      -

      Linedef lengths greater than 100 indicate slippery ice, while linedef lengths less than - 100 can be used for sludge, with extra friction.

      -

      If you want friction on a FOF, tag this line to the control sector of the FOF. - Otherwise, tag it to the sector of desired destination.

      -

      541 - Wind

      -

      Speed and direction are indicated by linedef length and direction. The target sector - should be of type 512, Wind/Current. If being used in a 3D Floor, put - the 512/768 sector type in the control sector, not the target sector. Also tag the line to - the control sector, and not the target sector.

      -

      Special flags:

      -

      NOCLIMB -> Only this pusher will affect the object - the - object can't have multiple 'pushings' due to being on the edge of a sector, etc.

      -

      EFFECT4 -> Player will go into slide with limited control - (similar to the water and oil slides in Labyrinth and Oil Ocean).

      -

      542 - Upwards Wind

      -

      The length of the linedef is the wind speed. The target sector will need type 512 or 768. If being used in a 3D Floor, put the - 512/768 sector type in the control sector, not the target sector. Also tag the line to the - control sector, and not the target sector.

      -

      NOCLIMB/EFFECT4 flags operate the same as for line 541.

      -

      543 - Downwards Wind

      -

      Wind speed is determined by the linedef's length. Type 512 or 768 must be applied to the target sector. If being used in a 3D Floor, - put the 512/768 sector type in the control sector, not the target sector. Also tag the - line to the control sector, and not the target sector.

      -

      NOCLIMB/EFFECT4 flags operate the same as for line 541.

      -

      544 - Current

      -

      Speed and direction are indicated by linedef length and direction. The target sector - should have type 512, Wind/Current. If being used in a 3D Floor, put - the 512/768 sector type in the control sector, not the target sector. Also tag the line to - the control sector, and not the target sector.

      -

      NOCLIMB/EFFECT4 flags operate the same as for line 541.

      -

      545 - Upwards Current

      -

      Linedef length indicates speed. Target sector needs sector type 512 - or 768. If being used in a 3D Floor, put the 512/768 sector type in - the control sector, not the target sector. Also tag the line to the control sector, and - not the target sector.

      -

      NOCLIMB/EFFECT4 flags operate the same as for line 541.

      -

      546 - Downwards Current

      -

      Speed is indicated by linedef length. Assign a type of 512 or 768 to the target sector. If being used in a 3D Floor, put the 512/768 - sector type in the control sector, not the target sector. Also tag the line to the control - sector, and not the target sector.

      -

      NOCLIMB/EFFECT4 flags operate the same as for line 541.

      -

      547 - Boom Push/Pull Thing

      -

      Creates a "point pusher," or a point that pushes you away or pulls you toward - it if you get close enough. Tag the linedef to a sector with type 512, - Wind/Current, and with a thing on it of type 5001 (push) or 5002 (pull). The control - linedef's length indicates pushing/pulling strength; if length is L, the effect fades away - to nothing when you are 2L away from the point.

      -

      If you want to create multiple point pushers/pullers, you'll need to have them in - different target sectors, but they can share the same tag.

      -

      NOCLIMB/EFFECT4 flags operate the same as for line 541.

      -

       

      -
    -
  • -
  • Lighting
      -

      600 - Floor Lighting

      -

      Sets the lighting for the floor only. The control sector's light value will be used for - the target sector's floor. Also see type 601.

      -

      601 - Ceiling Lighting

      -

      Sets the lighting of the ceiling only. The light value of the control sector will be - used for the target sector's ceiling. Also see type 600.

      -

      602 - Adjustable Pulsating Light

      -

      Linedef length indicates glow speed. The normal speed would be a linedef 32 units long.

      -

      The control sector (the linedef's front sector) is used to get what will be the minimum - light level for this effect, while the target sector's light level ends up being the - maximum.

      -

      603 - Adjustable Flickering Light

      -

      Linedef length indicates flicker speed. Normal speed would be a 16 fracunit long - linedef. A longer linedef means more time in between flickers.

      -

      The control sector (the linedef's front sector) is used to get what will be the minimum - light level for this effect, while the target sector's light level ends up being the - maximum.

      -

      604 - Adjustable Blinking Light (unsynchronized)

      -

      Line's X length is time for the light to be off, and Y length is the time for the light - to be on.

      -

      The control sector (the linedef's front sector) is used to get what will be the minimum - light level for this effect, while the target sector's light level ends up being the - maximum.

      -

      605 - Adjustable Blinking Light (synchronized)

      -

      Line's X length is time for the light to be off, and Y length is the time for the light - to be on.

      -

      The control sector (the linedef's front sector) is used to get what will be the minimum - light level for this effect, while the target sector's light level ends up being the - maximum.

      -

      606 - Colormap

      -

      Sets a colormap. Tag the linedef to the sector or sectors affected by the colormap. The - control linedef's front Above texture is used to determine the colormap. The format is - #rrggbba, where rr, gg, and bb are two hexadecimal digits for determining each color: red, - blue, and green. The a stands for alpha, and is a number or letter indicating the - translucency; from A-Z and 0-9, with A being most transparent and 9 being most opaque.

      -

      It does not generally matter what sector the colormap linedef belongs to. However, it - should not belong to the same sector as another colormap, as this can cause problems.

      -
    -
  • -

    Sector Types

    -

    You can apply up to four different types to one sector, provided that you only choose - ONE from EACH category. Add the numbers together to obtain the final value to use in level - editors.

    -
  • Section 1
      -

      1 - Damage (Generic)

      -

      This special hurts, period. It doesn't matter whether you have a liquid shield, fire - shield, attraction shield, or whatever else; step on one of these and suffer.

      -

      2 - Damage (Water)

      -

      Also known as Slime Hurt. Stepping here will be painful, as in shield/ring/life loss - (depending on how you are equipped), unless you happen to have the liquid shield.

      -

      3 - Damage (Fire)

      -

      Stepping here will hurt, unless you happen to have a fire shield.

      -

      4 - Damage (Electrical)

      -

      Hurts players whenever they're in the sector, unless they have the attraction shield.

      -

      Usage tip: Give the sector a floor flat that looks electrical and looks like it could - hurt you.

      -

      5 - Spikes

      -

      Making spikes using sectors is rather tedious and difficult. You can use things instead - (Floor Spike and Ceiling Spike). But the sector - version DOES look cooler. ;)

      -

      6 - Death Pit (Camera Modifications)

      -

      Used for bottomless pits. You'll probably want the sector's floor flat to be either - F_SKY1 (falling from the sky) or PIT (falling into a pit of complete blackness). The - camera modifications keep the camera from following you all the way down, for a Sonic - Adventure-style pit death. If you don't like the camera modifications, use sector type 5.

      -

      7 - Death Pit (No Camera Modifications)

      -

      For bottomless pits. Use if the camera modifications of sector type 6 - are not to your taste.

      -

      8 - Instant Kill

      -

      Die right away if you even step into this sector. No need to touch the floor as with - those sissy death pits.

      -

      9 - Ring Drainer (Floor Touch)

      -

      Lose one ring per 15 tics while touching the floor.

      -

      10 - Ring Drainer (No Floor Touch)

      -

      Like sector type 9, but doesn't require touching floor.

      -

      11 - Special Stage Damage

      -

      If you have rings and no shield, and you step on it, you only lose 10 rings, maximum. - It's just like the special stages!

      -

      12 - Space Countdown

      -

      In space, you have no chance to survive make your time, ha ha ha. Starts an immediate - five-second countdown, like when you drown.

      -

      13 - Ramp Sector

      -

      Doubles the step-up height of the player. Default step-up height is 24 fracunits, but - with this, it becomes 48. Useful for steps and other things if your players seem to be - getting 'stopped' by the stairs while moving quickly.

      -

      14 - Non-Ramp Sector (Don't step down)

      -

      Removes the 'step-down' that a player will normally do when moving to a nearby sector.

      -

      15 - Bouncy Sector (FOF Control Only)

      -

      Use this on a 3D floor's control sector to make it bouncy. Players will bounce off the - top of it. If the 3D floor's control line has the BOUNCY flag set, the linedef length sets - the minimum bounce force. Otherwise, you will slowly come to a stop.

      -

       

      -
    -
  • -
  • Section 2
      -

      16 - Trigger Linedef Executor (Pushable Objects)

      -

      Works like 80 but with a pushable object (gargoyle or snowman) - touching the floor rather than a player.

      -

      32 - Trigger Linedef Executor (Anywhere in Sector) (All Players)

      -

      Sector type 64 with the added requirement that all players who don't - have a game over need to be in the sector, not just one player. Currently does not work in - FOFs.

      -

      48 - Trigger Linedef Executor (Floor Touch) (All Players)

      -

      Sector type 80 with the added requirement that all players who don't - have a game over need to be in the sector, not just one player.

      -

      64 - Trigger Linedef Executor (Anywhere in Sector)

      -

      Like sector type 80, but you don't have to be touching the floor to - do the triggering. You could be flying high in the air. You should also use this one for - linedef executors triggered by FOFs.

      -

      80 - Trigger Linedef Executor (Floor Touch)

      -

      Required for any of the Linedef Executor Triggers to work in - the sector.

      -

      96 - Trigger Linedef Executor (Emerald Check)

      -

      Sector type 64 which will only execute if you have all 7 chaos - emeralds.

      -

      112 - Trigger Linedef Executor (NiGHTS Mare)

      -

      Like sector type 64, but this is only triggered if you are in a - NiGHTS map, and checks what mare you're on using the following format, depending on what - flags you have set for this line:

      -

      No flags -> Runs if (current mare = line length)

      -

      NOCLIMB -> Runs if (current mare <= line length)

      -

      BLOCKMONSTERS -> Runs if (current mare >= line - length)

      -

      128 - Check for linedef executor on 3D Floors (ANY object)

      -

      For any item to detect sector type 16 on a 3D floor, the target - sector on the map must have this type. This allows you to have any kind of object trigger - a linedef executor.

      -

      144 - Egg Trap Capsule

      -

      160 - Special Stage Time/Rings, Par

      -

      For special stages, floor height is time limit in seconds, and ceiling height is rings - required in seconds. If the ceiling height is 0, there is no ring requirement, only a time - limit to find an exit.

      -

      176 - Custom Global Gravity

      -

      Floor height sets global gravity. 500 is normal. 1000 is twice the normal gravity, 250 - is half. You can also set per-sector gravity with linetype 1. This can - also be adjusted in realtime, for some really cool effects.

      -

       

      -
    -
  • -
  • Section 3
      -

      256 - Ice/Sludge

      -

      See linedef type 540.

      -

      512 - Wind/Current

      -

      See linedef types 541 and 544.

      -

      768 - Ice/Sludge and Wind/Current

      -

      Combination of sector specials 256 and 512.

      -

      1024 - Conveyor Belt

      -

      See linedef type 520.

      -

      1280 - Speed Pad (No Spin)

      -

      See linedef type 4.

      -

      1536 - Speed Pad (Spin)

      -

      See linedef type 4. This type of speed pad forces you into a spin.

      -

      1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840 - Bustable - Block Sprite Parameter

      -

      Used in a control sector of a bustable block. Chooses which debris sprite to spawn.

      -

      1792 = ROIA

      -

      2048 = ROIB

      -

      2304 = ROIC

      -

      2560 = ROID

      -

      2816 = ROIE

      -

      3072 = ROIF

      -

      3328 = ROIG

      -

      3584 = ROIH

      -

      3840 = ROII

      -

       

      -
    -
  • -
  • Section 4
      -

      4096 - Starpost Activator

      -

      Whenever a player steps in the sector, a starpost in that sector will be searched for - and, if found, activated.

      -

      8192 - Special Stage Goal

      -

      This is like the "GOAL" buttons in Sonic 1's special stages. Ends the special - stage when stepped on.

      -

      8192 - Exit Sector

      -

      In single-player, cooperative, or race mode, being in this sector ends the level. You - don't necessarily have to be touching the floor. (If you want the player to have to be - touching the floor, you can use linedef type 223, an invisible, - intangible FOF, to do the trick. Give the FOF control sector a type of 8192.)

      -

      See linedef type 2 for a way to exit to any map, not just the one - whose number is specified in the map header. Linedef 2 also allows you to skip the score - tally screen.

      -

      8192 - No Tag Zone

      -

      In games of tag, this sector is a safe spot. You cannot be tagged while in it.

      -

      8192 - CTF: Flag Return

      -

      In CTF, if the red or blue flag enters this sector, it will automatically return to - base, much like how it behaves when it falls in a pit. This can also be set as a special - on a 3D floor.

      -

      12288 - CTF: Red Team Base

      -

      The red team has to bring the blue flag onto this sector to score. - It's generally a good idea to have the red flag here and the red team player starts somewhere close by.

      -

      16384 - CTF: Blue Team Base

      -

      The blue team has to bring the red flag onto this sector to score. - It's generally a good idea to have the blue flag here and the blue team player starts somewhere close by.

      -

      20480 - Fan Sector

      -

      Acts like a fan, pushing the player up at constant speed and activating the proper - animation. Can be used on intangible FOFs.

      -

      24576 - Super Sonic Transform

      -

      Transforms you into Super Sonic and gives you 50 rings, providing you have all of the - chaos emeralds.

      -

      28672 - Spinner

      -

      Forces the player into a spin.

      -

      32768 - Zoom Tube Start

      -

      When the player touches this sector, a line type 3 with the same tag - as the sector is searched for, and if found, the line's X length determines the speed at - which the tube operates, while its Y length determines which zoom tube sequence to use. - Then the player is immediately put into a spin, loses control, and gravitates toward the - first Zoom Tube Waypoint (thing type 753), which does not have to be - in the same sector. Once they reach the first waypoint, they begin traveling to the 2nd, - 3rd, and so on, until the last waypoint is reached.

      -

      This can be used with Floor-Over-Floors, just use these specials in the control sector - instead.

      -

      36864 - Zoom Tube End

      -

      Just like sector type 32768, but starts from the last waypoint - and goes to the first.

      -

      40960 - Finish Line

      -

      The finish line for a race circuit. This increments a lap when you pass it, after - hitting all the star posts in the stage in sequential order. Once the number of laps - specified by the server is reached, the level is completed.

      -
    -
  • -
- - diff --git a/srb2banner.png b/srb2banner.png deleted file mode 100644 index 9c13eae9a5d1ca26167abfe56486e2e7a642cd6c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 156839 zcmXt;Ra9Hu7KMRQ+=>==EgoEpyHniV-QC?iNYLQ!QlPlITY=)miaXr=4|ill&UrXF zvi9C{errZ6D@vgv5gi>pFGK~F+{uOPrdJ~O+GZ6IH8CUR2ZP#^!j3cAZu zA$t&=q_th4ppdctdqYEI=YECkgm;rskbwXF2?2)!yU*F(vJHFrm(}54JBR?;1e$Kq;T|F=t z5NomqHjC~cdw6`V1W za=3e*&%;`D#m>3{z}SpTnc6%WlD1RtKBHvK6&g4?3`pj9tRrpqvAUXFVWEC5LdGJV zq#%FeY{nl^b1a=xS@BCwF3dHBdDZL!MsDZociVdVzTtD|t;4=1HOy(D z-`^4H8T;Nn2H!oxmJjttNGkt)Mw3ZvYT?_Njb^wa8@OWZ4;Wq_haxZNhR@vI`mP0I z-1jV-A26b4TJgu}RvoAJ%;lv8ttBGzT#F8@rHc=BxEYy{Nsmn&(VdnTpG2iWhiFMs zW7>tQ6|!{)EsC(-#TH<+kcH}XupkC{$>wdcLX$H?6l*yQm(dh z?%xieIvAcS=b)|jV7cz9<_T!pZQ;+`9_jh42sjIaR}|N_(Z&D@9fvMf9U;rvTT@96 zfIep?MNn0fPw_}Wrt9t)eLd`(hA5`Y`U@KX`LhjbK0miF%1erCBKN8uDiFl-2j1x% z%$33P?^Di`n8a(yKue~MR>IKko;ebAjD*j5aqG>A%h@L# zFxm`j?VMyY*zp}fkS%Kp$So%$pqmz)gDPktT-c1Zy6n^a%`cI`(7F;4HbBIY>+ctH zZ!mfPj6vOZ$4KJSF4C4)?>rH=w0EgR_80u$h5c5FiojLsotSJOtn(OE8+%R0TEh5 zGEPiPFf!vlzF!7LXd2d-Zoq7`IupUKxF5Uaa-ZQ6UiyVx@w!>b*?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zLBq?)V*>*Q}CE zqCtS4cr5oD7WXTXwUFMn^9ye0&g|U_JeCJe)9TJmOLfxXM;_&ILzE}XHb2K_*Ir_t zE|F66`})78DI|ky8M0%DpXLAgfyZyn-{i#~Pcc8DL1@A}VDkFHrOEhWWm+!_#pDeq z+tH121gKKuhaU3>6=CYr%pC!&nM$sNmLL9S4^e@;0MpZ&I0<-or&xu)r@a7UENL&G zm%EvbZ3OFU*$RR@xW8n2VrUvD$8J$bM-DxXQ^@k~GeW;@Tgb;E0yjIWDn*tB2mx6yB#eCoP!_KH(aKWSnq~256qo5Dz@}q~l3#y@`i&m- z{W)sZkUzKizIC$o{({lo2pv1OuXhWnOR4eGfUVw;sj}3I`j4Mzb{6d29ln+p+nMjo bk8A!v$wO)E=fNMA00000NkvXXu0mjfyU|>T diff --git a/src/doomdef.h b/src/doomdef.h index 8d7ba2042..80ae6e170 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -108,7 +108,6 @@ extern char logfilename[1024]; #define VERSIONSTRINGW L"Saturn v9" // Hey! If you change this, add 1 to the MODVERSION below! Otherwise we can't force updates! // And change CMakeLists.txt (not src/, but in root), for CMake users! -// AND appveyor.yml, for the build bots! #endif // Maintain compatibility with 1.0.x record attack replays? From a87a7ccbdaa161bc0989580927379edce2febdb3 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 25 Sep 2025 21:59:53 +0200 Subject: [PATCH 51/59] delet circleci too non functional psure --- .circleci/config.yml | 73 -------------------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b0d76c232..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,73 +0,0 @@ -version: 2 -jobs: - build: - working_directory: /root/SRB2 - docker: - - image: debian:stretch - environment: - CC: ccache gcc -m32 - PKG_CONFIG_LIBDIR: /usr/lib/i386-linux-gnu/pkgconfig - LIBGME_CFLAGS: -I/usr/include - LIBGME_LDFLAGS: -lgme - CCACHE_COMPRESS: true - WFLAGS: -Wno-unsuffixed-float-constants - GCC49: true - #- image: ubuntu:trusty - # environment: - # CC: ccache gcc -m32 - # PKG_CONFIG_LIBDIR: /usr/lib/i386-linux-gnu/pkgconfig - # LIBGME_CFLAGS: -I/usr/include - # LIBGME_LDFLAGS: -lgme - # CCACHE_COMPRESS: true - # WFLAGS: -Wno-unsuffixed-float-constants - # GCC48: true - steps: - - run: - name: Add i386 arch - command: dpkg --add-architecture i386 - - run: - name: Add STJr PPA - command: | - apt-get -qq update - apt-get -qq -y install dirmngr - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0B1702D71499D9C25F986507F240F4449D3B0EC6 - echo "deb http://ppa.launchpad.net/stjr/srb2/ubuntu trusty main" >> /etc/apt/sources.list - - run: - name: Update APT listing - command: apt-get -qq update - - run: - name: Support S3 upload - command: apt-get -qq -y install ca-certificates - - restore_cache: - keys: - - v1-SRB2-APT - - run: - name: Install SDK - command: apt-get -qq -y --no-install-recommends install git build-essential libpng-dev:i386 libsdl2-mixer-dev:i386 libgme-dev:i386 libcurl4-openssl-dev:i386 libopenmpt-dev:i386 gettext ccache wget gcc-multilib upx openssh-client - - save_cache: - key: v1-SRB2-APT - paths: - - /var/cache/apt/archives - - checkout - #- run: - # name: Compile without network support and BLUA - # command: make -C src LINUX=1 ERRORMODE=1 -k NONET=1 NO_LUA=1 - #- run: - # name: wipe build - # command: make -C src LINUX=1 cleandep - - run: - name: rebuild depend - command: make -C src LINUX=1 clean - - restore_cache: - keys: - - v1-SRB2-{{ .Branch }}-{{ checksum "objs/Linux/SDL/Release/depend.dep" }} - - run: - name: Compile - command: make -C src LINUX=1 ERRORMODE=1 -k - - store_artifacts: - path: /root/SRB2/bin/Linux/Release/ - destination: bin - - save_cache: - key: v1-SRB2-{{ .Branch }}-{{ checksum "objs/Linux/SDL/Release/depend.dep" }} - paths: - - /root/.ccache From 7378ca84791d2494213561f12dc4288c47279285 Mon Sep 17 00:00:00 2001 From: Alug <136046486+alufolie91@users.noreply.github.com> Date: Thu, 25 Sep 2025 22:39:36 +0200 Subject: [PATCH 52/59] Update README.md --- README.md | 102 +++++++++--------------------------------------------- 1 file changed, 16 insertions(+), 86 deletions(-) diff --git a/README.md b/README.md index 2e7e6a19d..fba87e70e 100644 --- a/README.md +++ b/README.md @@ -1,104 +1,34 @@ -# SRB2Kart: Saturn +# SRB2Kart-Saturn + +SRB2Kart-Saturn is a modification of SRB2Kart with a focus on new Features, Fixes, Optimizations and general Improvements, all while retaining 100% compatibility with vanilla SRB2Kart. [SRB2Kart](https://srb2.org/mods/) is a kart racing mod based on the 3D Sonic the Hedgehog fangame [Sonic Robo Blast 2](https://srb2.org/), based on a modified version of [Doom Legacy](http://doomlegacy.sourceforge.net/). -## Saturn Features (Take a look at the "Saturn Options" menu c;) +For more information on Saturn“s features check out the changelogs on the [Releases](https://github.com/Indev450/SRB2Kart-Saturn/releases) page and the ingame "Saturn Options" menu. -- Sprites player rotation on slopes; going on hills, levitate, going down, and so on alters your sprites (configurable) -- You can alter all the base kart HUD element offsets on the fly in the Saturn Options settings menu -- `addfilelocal` Command, for those who want to use things like their custom hud in netgames (Same as addfile but completely client sided) -- Palette rendering, make the OpenGL renderer (almost) look like software mode! -- OpenMPT for Tracker module playback instead of GME - - Fixes looping and sounds better - - Allows filter configuration -- Colourize your Kart HUD, to either your player color or whichever colour you like! (optional / requieres extra2.kart file) -- The minimal brightness with Shaders can be configured, now you can seeeee in dark areas (0-255 , uses Sector brightness values) -- Lua HUD hooks for Intermission (ex: You can make hostmod votes still visible during intermission!) -- Lua HUD hooks for Vote Screen (ex: You can make hostmod votes still visible during map vote screen!) -- Saltyhop! do a funny hop -- Smaller Speedometer (optional / requieres extra.kart file) -- Record Attack input display can now be used everywhere -- Smaller minimap icons and also show player names on the minimap (toggable) -- Support for animated votescreens! -- `showmusiccredit` command, shows you the current music track again -- `listskins` show a list of all skins currently loaded -- Visual Portals from Haya's HEP Client -- Horizonline effect in OpenGL (watch the endless bricks on SNES Bowsers Castle!) -- Localskins! use whatever skin you like! -- Toggable lowercase menu's also from Haya's HEP client -- Everything that Galaxy has +Also be sure to check the LUASTUFF file for more information on all the extra lua features Saturn has. -## Improvements / Bug fixes - -- Replay size has been increased to 10MiB minimum, to make replay overflows very unlikely to happen - - can be set to 100MiB max with `maxdemosize` command in console -- Music changes now properly show the music credits (ex: Kart maps with easter eggs that alter the music) - - The mapper still has to provide a MusicDEF for this to work. -- Configurable chatlog length (yay can read those messages from 30 mins ago without opening log.txt) -- Configurable timeout for waiting to join a full server (in vanilla this is capped to 5 minutes before it boots you out) -- Characters now spin in skin selection menu (configurable) -- HTTP Addon download speed has been raised dramatically - - configurable with `downloadspeed` command -- HWR Drawnodes have been refactored, this should fix a few rare crashes esp in regards to OpenGL Visportals -- The Position Number in the corner is alot smaller now (half the size!) -- Toggable Lap animation -- Main menu shows the current renderer being used -- MSAA and A2C Antialiasing support (Configurable in renderer.txt file) -- A simple button to rejoin your last visited server -- Ability to show ALL maps in the mapselect screen, this includes hidden or hellmaps "showallmaps yes/no" -- Ability to toggle the Stagetitlecard "maptitles on/off" - -## Performance / Debugging - -- Access for `mobj_t` and `player_t` fields from Lua has been completely rewritten, for much better performance with many Lua scripts -- Lua shows Tracebacks whenever an error occurs -- The Lua Perfstats page now has multiple pages and is more organized (ps_thinkframe_page X in console) -- People with lower end hardware can disable "screen textures" with "gr_screentextures" command, huge performance gain with minimal visual loss - - Intermission backgrounds, heat wave effects and etc are broken with this -- `ffloorclip`, exclusive to Software, which boosts performance on maps with many Floor over Floor sectors - -## Technical fixes - -- ZFigthing Textures in Opengl mode have been fixed in engine (well almost all of it) -- FOFs intersecting with slopes have less issues and now render correctly in Opengl -- Midtextures on slopes in Opengl are fixed, many weird guardrails and fences, aswell as some of those sticking out textures from the ground on some maps should be gone -- The annoying depraction messages for `P_TeleportMove` and `P_AproxDistance` have been silenced -- Silenced the annoying "cant find next map..." messages as theyre super useless and annoying anyways -- Added a small cooldown on `map` command due to spamming causing a SIGSEGV -- Many bugfixes to the Software renderer, so its much less prone to crashing -- Many bugfixes to the OpenGL renderer (too many too list all of them here; check the changelogs for more information) -- Bugfixes to the soundsystem, mainly regarding Sound muting -- Refactored Zone Memory Allocations (helps a bit with large maps) -- Many many more crash fixes and other bugfixes to the basegame (too many too list all of them here; check the changelogs for more information) - -- Crash Backtraces have been replaced by libbacktrace (except for 32bit Windows builds) -Crashlogs now contain alot more informations. and even more if your build has debug symbols -Also allows 64bit Windows builds to produce Crashlogs! - -## MISC -- Bird's Camera Tilting feature is no longer turned on by default -- Bird's warning on the title screen has been removed - -## Bugs -- On maps which change the song multiple times on map start (exp: Wandering Falls) may show multiple music credits appearing -- A2C antialiasing makes transparent surfaces even more transparent -- You tell us! c: - -## Note -Check the LUASTUFF file for more information on all the lua things Saturn has. +We also have a Flatpak available on [Flathub](https://flathub.org/en/apps/org.srb2.SRB2Kart-Saturn)! (many thanks to riomccloud!) ## Dependencies - SDL2 (Linux/OS X only) - SDL2-Mixer (Linux/OS X only) -- libupnp (Linux/OS X only) - libgme (Linux/OS X only) - libopenmpt (Linux/OS X only) -- libbacktrace (Linux/OS X only) +- libbacktrace (Linux/OS X only, optional, disable support with NOLIBBACKTRACE) +- libupnp (Linux/OS X only, optional, enable support with HAVE_MINIUPNPC) ## Compiling See [SRB2 Wiki/Source code compiling](http://wiki.srb2.org/wiki/Source_code_compiling). The compiling process for SRB2Kart is largely identical to SRB2. -Visual C++ (MSVC) is unsupported + +Currently only the Makefile build system with GCC or Clang compiler is supported. + +Visual C++ (MSVC) is unsupported. + +64-bit Windows builds are supported and recommended over 32-bit builds, they will build automatically when using the MSYS2 MinGW 64-bit executable (requires the mingw-w64-x86_64-gcc package), no extra flags needed! + +Alternatively the [srb2bld](https://github.com/Bijman/srb2bld) script by Bijman can be used aswell! ## Disclaimer Kart Krew is in no way affiliated with SEGA or Sonic Team. We do not claim ownership of any of SEGA's intellectual property used in SRB2. From 9ab4d01b8c7ed21f0114b87a3494081d8b9942a7 Mon Sep 17 00:00:00 2001 From: Alug <136046486+alufolie91@users.noreply.github.com> Date: Thu, 25 Sep 2025 23:02:26 +0200 Subject: [PATCH 53/59] Update README.md mention dlls just in case --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fba87e70e..001622287 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Currently only the Makefile build system with GCC or Clang compiler is supported Visual C++ (MSVC) is unsupported. 64-bit Windows builds are supported and recommended over 32-bit builds, they will build automatically when using the MSYS2 MinGW 64-bit executable (requires the mingw-w64-x86_64-gcc package), no extra flags needed! +The specific DLLs can be found under /libs/dll-binaries/(i686 for 32bit/x86_64 for 64-bit)/ or in the Release packages Alternatively the [srb2bld](https://github.com/Bijman/srb2bld) script by Bijman can be used aswell! From b1ac9f94cd06360cbdb3e3cbd34dd4a978f32838 Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Tue, 9 Sep 2025 22:37:42 +0200 Subject: [PATCH 54/59] (WIP) Rewrite screen capture code for GIFs Downscaling is now performed during screen capture instead of GIF writing This may or may not make GIF recording faster? Maybe it would be faster if I knew how OpenGL worked... Regardless, the m*th in the GIF code is gone, fixing the high/odd res issues Also includes a little deduped hardware code, and GL 4.3 debugging code --- src/android/i_video.c | 2 +- src/dedicated/i_video.c | 3 +- src/f_wipe.c | 4 +- src/hardware/hw_draw.c | 32 +----- src/hardware/hw_gl.h | 1 + src/hardware/hw_main.h | 3 +- src/hardware/r_opengl/r_opengl.c | 57 ++++++++++- src/i_video.h | 2 +- src/m_anigif.c | 166 ++++++++++++------------------- src/m_misc.c | 39 ++++---- src/sdl/i_video.c | 14 ++- 11 files changed, 163 insertions(+), 160 deletions(-) diff --git a/src/android/i_video.c b/src/android/i_video.c index bbe1cf3a3..23c06dfb2 100644 --- a/src/android/i_video.c +++ b/src/android/i_video.c @@ -65,7 +65,7 @@ void I_WaitVBL(INT32 count) (void)count; } -void I_ReadScreen(UINT8 *scr) +void I_ReadScreen(UINT8 * restrict scr, INT32 scale) { (void)scr; } diff --git a/src/dedicated/i_video.c b/src/dedicated/i_video.c index 7a1239507..c67d8cefd 100644 --- a/src/dedicated/i_video.c +++ b/src/dedicated/i_video.c @@ -89,9 +89,10 @@ void I_UpdateNoVsync(void) // // I_ReadScreen // -void I_ReadScreen(UINT8 *scr) +void I_ReadScreen(UINT8 * restrict scr, INT32 scale) { (void)scr; + (void)scale; } // diff --git a/src/f_wipe.c b/src/f_wipe.c index cbb411b8b..4c3a067c6 100644 --- a/src/f_wipe.c +++ b/src/f_wipe.c @@ -314,7 +314,7 @@ void F_WipeStartScreen(void) } #endif wipe_scr_start = vid.screens[3]; - I_ReadScreen(wipe_scr_start); + I_ReadScreen(wipe_scr_start, 1); #endif } @@ -331,7 +331,7 @@ void F_WipeEndScreen(void) } #endif wipe_scr_end = vid.screens[4]; - I_ReadScreen(wipe_scr_end); + I_ReadScreen(wipe_scr_end, 1); V_DrawBlock(0, 0, 0, vid.width, vid.height, wipe_scr_start); #endif } diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index a8a2bdfda..e77d83b3b 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -23,7 +23,6 @@ #include "hw_glob.h" #include "hw_gl.h" -#include "../m_misc.h" //FIL_WriteFile() #include "../r_draw.h" //viewborderlump #include "../r_main.h" #include "../w_wad.h" @@ -1214,42 +1213,17 @@ static inline boolean saveTGA(const char *file_name, void *buffer, // -------------------------------------------------------------------------- // screen shot // -------------------------------------------------------------------------- - -UINT8 *HWR_GetScreenshot(void) +UINT8 *HWR_GetScreenshot(INT32 scale) { static UINT8 *buf = NULL; - buf = realloc(buf, vid.width * vid.height * 3); + buf = realloc(buf, (vid.width/scale)*(vid.height/scale)*3); if (!buf) return NULL; - // returns 24bit 888 RGB - GL_ReadScreenTexture(HWD_SCREENTEXTURE_GENERIC2, (void *)buf); + GL_ReadScreenFinalTexture(buf, scale); return buf; } -boolean HWR_Screenshot(const char *pathname) -{ - boolean ret; - UINT8 *buf = malloc(vid.width * vid.height * 3 * sizeof (*buf)); - - if (!buf) - { - CONS_Debug(DBG_RENDER, "HWR_Screenshot: Failed to allocate memory\n"); - return false; - } - - // returns 24bit 888 RGB - GL_ReadScreenTexture(HWD_SCREENTEXTURE_GENERIC2, (void *)buf); - -#ifdef USE_PNG - ret = M_SavePNG(pathname, buf, vid.width, vid.height, NULL); -#else - ret = saveTGA(pathname, buf, vid.width, vid.height); -#endif - free(buf); - return ret; -} - #endif //HWRENDER diff --git a/src/hardware/hw_gl.h b/src/hardware/hw_gl.h index 8780fc57b..8c3da0768 100644 --- a/src/hardware/hw_gl.h +++ b/src/hardware/hw_gl.h @@ -55,6 +55,7 @@ INT32 GL_GetTextureUsed(void); void GL_CreateModelVBOs(model_t *model); void GL_ReadScreenTexture(int tex, UINT16 *dst_data); +void GL_ReadScreenFinalTexture(UINT8 * restrict dest, INT32 scale); void GL_GClipRect(INT32 minx, INT32 miny, INT32 maxx, INT32 maxy, float nearclip, float farclip); void GL_MakeScreenTexture(int tex); diff --git a/src/hardware/hw_main.h b/src/hardware/hw_main.h index 14ab66522..4060b6540 100644 --- a/src/hardware/hw_main.h +++ b/src/hardware/hw_main.h @@ -101,8 +101,7 @@ void HWR_DrawConsoleBack(UINT32 color, INT32 height); void HWR_DrawViewBorder(INT32 clearlines); void HWR_DrawFlatFill(INT32 x, INT32 y, INT32 w, INT32 h, lumpnum_t flatlumpnum); -UINT8 *HWR_GetScreenshot(void); -boolean HWR_Screenshot(const char *lbmname); +UINT8 *HWR_GetScreenshot(INT32 scale); // hw_main.c void HWR_SetViewSize(void); diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 5bd9268ad..7a4f7e8c3 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -25,9 +25,6 @@ // Eeeeh not sure is this right way, but it works < sry :c < sry again it had to go :c -// requires GL 4.3 -//#define GLDEBUGMESSAGE - #if defined (HWRENDER) && !defined (NOROPENGL) #include "../../r_fps.h" // For R_GetTimeFrac, used for the leveltime shader uniform @@ -41,6 +38,8 @@ #include "../../i_video.h" +// requires GL 4.3 +//#define GLDEBUGMESSAGE #ifdef GLDEBUGMESSAGE #include "../../console.h" #endif @@ -342,6 +341,7 @@ static void GL_MSG_Error(const char *format, ...) /* Raster functions */ #define pglPixelStorei glPixelStorei #define pglReadPixels glReadPixels +#define pglGetTexImage glGetTexImage /* Texture mapping */ #define pglTexEnvi glTexEnvi @@ -455,6 +455,8 @@ typedef void (APIENTRY * PFNglPixelStorei) (GLenum pname, GLint param); static PFNglPixelStorei pglPixelStorei; typedef void (APIENTRY * PFNglReadPixels) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); static PFNglReadPixels pglReadPixels; +typedef void (APIENTRY * PFNglGetTexImage) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); +static PFNglGetTexImage pglGetTexImage; /* Texture mapping */ typedef void (APIENTRY * PFNglTexEnvi) (GLenum target, GLenum pname, GLint param); @@ -651,6 +653,7 @@ boolean SetupGLfunc(void) GetGLfunc(glPixelStorei) GetGLfunc(glReadPixels) + GetGLfunc(glGetTexImage) GetGLfunc(glTexEnvi) GetGLfunc(glTexParameteri) @@ -1489,6 +1492,54 @@ void GL_ReadScreenTexture(int tex, UINT16 *dst_data) free(row); } +// nope, definitely not faster. software has the same flickering/z-fighting bugs with laggy GIF recording anyway +//#define GETTEXIMAGE + +#ifdef GETTEXIMAGE +#define TEXWIDTH screen_texsizew +#else +#define TEXWIDTH screen_width +#endif + +// -----------------------+ +// ReadScreenFinalTexture : Reads out the final screen texture +// Returns : 24bit RGB pixel array stored in dest +// -----------------------+ +void GL_ReadScreenFinalTexture(UINT8 * restrict dest, INT32 scale) +{ + const INT32 stride = (screen_width/scale)*3; + INT32 scanlines = screen_height; + GLubyte * restrict image; + +#ifdef GETTEXIMAGE + image = malloc(screen_texsizew*screen_texsizeh*3); // oof + pglBindTexture(GL_TEXTURE_2D, screenTextures[HWD_SCREENTEXTURE_GENERIC2]); + pglGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, image); + tex_downloaded = screenTextures[HWD_SCREENTEXTURE_GENERIC2]; +#else + image = malloc(screen_width*screen_height*3); + pglPixelStorei(GL_PACK_ALIGNMENT, 1); + pglReadPixels(0, 0, screen_width, screen_height, GL_RGB, GL_UNSIGNED_BYTE, image); +#endif + + // TODO the downscaling happens in the screen capture code now, + // yet we're still doing this on the CPU? sheesh... + // this is where actual knowledge of OpenGL would've come in handy + image += scanlines*TEXWIDTH*3; + while ((scanlines -= scale) >= 0) + { + image -= TEXWIDTH*scale*3; + if (scale == 1) + memcpy(dest, image, stride); + else for (size_t i = 0; i < stride; i += 3) + memcpy(dest + i, image + i*scale, 3); + dest += stride; + } + + // ...yet still, restrict doesn't make the inner loop any faster + free(image - ((screen_height % scale) * TEXWIDTH*3)); +} + // -----------------+ // SetPalette : Changes the current texture palette // -----------------+ diff --git a/src/i_video.h b/src/i_video.h index 7850d664a..0bf6c3af0 100644 --- a/src/i_video.h +++ b/src/i_video.h @@ -126,7 +126,7 @@ void I_WaitVBL(INT32 count); \return void */ -void I_ReadScreen(UINT8 *scr); +void I_ReadScreen(UINT8 * restrict scr, INT32 scale); /** \brief Start disk icon */ diff --git a/src/m_anigif.c b/src/m_anigif.c index 626b8ef66..78e7cf12c 100644 --- a/src/m_anigif.c +++ b/src/m_anigif.c @@ -49,6 +49,14 @@ static precise_t gif_prevframetime = 0; static UINT32 gif_delayus = 0; // "us" is microseconds static UINT8 gif_writeover = 0; +// SCReen BUFfer (obviously) +// --- +static UINT8 *scrbuf_pos; +static UINT8 *scrbuf_linebegin; +static UINT8 *scrbuf_lineend; +static UINT8 *scrbuf_writeend; +static INT16 scrbuf_downscaleamt = 1; +static UINT16 scrbuf_width, scrbuf_height; // OPTIMIZE gif output // --- @@ -63,13 +71,13 @@ static UINT8 gif_writeover = 0; static UINT8 GIF_optimizecmprow(const UINT8 *dst, const UINT8 *src, INT32 row, INT32 *last, INT32 *left, INT32 *right) { - const UINT8 *dp = dst + (vid.width * row); - const UINT8 *sp = src + (vid.width * row); + const UINT8 *dp = dst + (scrbuf_width * row); + const UINT8 *sp = src + (scrbuf_width * row); const UINT8 *dtmp, *stmp; UINT8 doleft = 1, doright = 1; INT32 i = 0; - if (!memcmp(sp, dp, vid.width)) + if (!memcmp(sp, dp, scrbuf_width)) return 0; // unchanged. *last = row; @@ -96,14 +104,14 @@ static UINT8 GIF_optimizecmprow(const UINT8 *dst, const UINT8 *src, INT32 row, } // right side - i = vid.width - 1; - if (*right == vid.width - 1) // edge reached + i = scrbuf_width - 1; + if (*right == scrbuf_width - 1) // edge reached doright = 0; else if (*right >= 0) // right set, non-end-of-width { dtmp = dp + *right + 1; stmp = sp + *right + 1; - if (!memcmp(stmp, dtmp, vid.width - (*right + 1))) + if (!memcmp(stmp, dtmp, scrbuf_width - (*right + 1))) doright = 0; // right side not changed } while (doright) @@ -133,7 +141,7 @@ static UINT8 GIF_optimizecmprow(const UINT8 *dst, const UINT8 *src, INT32 row, static void GIF_optimizeregion(const UINT8 *dst, const UINT8 *src, INT32 *x, INT32 *y, INT32 *w, INT32 *h) { - INT32 st = 0, sb = vid.height - 1; // work from both directions + INT32 st = 0, sb = scrbuf_height - 1; // work from both directions INT32 firstchg_t = -1, firstchg_b = -1; // store first changed row. INT32 lastchg_t = -1, lastchg_b = -1; // Store last row... just in case INT32 lmpix = -1, rmpix = -1; // store left and rightmost change @@ -144,7 +152,7 @@ static void GIF_optimizeregion(const UINT8 *dst, const UINT8 *src, if (!stopt) { if (GIF_optimizecmprow(dst, src, st++, &lastchg_t, &lmpix, &rmpix) - && lmpix == 0 && rmpix == vid.width - 1) + && lmpix == 0 && rmpix == scrbuf_width - 1) stopt = 1; if (firstchg_t < 0 && lastchg_t >= 0) firstchg_t = lastchg_t; @@ -152,7 +160,7 @@ static void GIF_optimizeregion(const UINT8 *dst, const UINT8 *src, if (!stopb) { if (GIF_optimizecmprow(dst, src, sb--, &lastchg_b, &lmpix, &rmpix) - && lmpix == 0 && rmpix == vid.width - 1) + && lmpix == 0 && rmpix == scrbuf_width - 1) stopb = 1; if (firstchg_b < 0 && lastchg_b >= 0) firstchg_b = lastchg_b; @@ -222,18 +230,6 @@ static void GIF_bwrwrite(UINT32 idata) } } - - -// SCReen BUFfer (obviously) -// --- -static UINT8 *scrbuf_pos; -static UINT8 *scrbuf_linebegin; -static UINT8 *scrbuf_lineend; -static UINT8 *scrbuf_writeend; -static INT16 scrbuf_downscaleamt = 1; - - - // GIF LZW algorithm // --- #define GIFLZW_TABLECLR 0x100 @@ -359,12 +355,14 @@ static void GIF_lzw(void) GIF_bwrwrite(GIFLZW_TABLECLR); GIF_prepareLZW(); } - if ((scrbuf_pos += scrbuf_downscaleamt) >= scrbuf_lineend) + + if (++scrbuf_pos >= scrbuf_lineend) { - scrbuf_lineend += (vid.width * scrbuf_downscaleamt); - scrbuf_linebegin += (vid.width * scrbuf_downscaleamt); + scrbuf_lineend += scrbuf_width; + scrbuf_linebegin += scrbuf_width; scrbuf_pos = scrbuf_linebegin; } + // Just a bit of overflow prevention if (gifbwr_bufsize >= 248) break; @@ -413,7 +411,6 @@ static void GIF_headwrite(void) UINT8 *p = gifhead; RGBA_t *c; INT32 i; - UINT16 rwidth, rheight; if (!gif_out) return; @@ -424,17 +421,18 @@ static void GIF_headwrite(void) if (gif_downscale) { scrbuf_downscaleamt = vid.dupx; - rwidth = (vid.width / scrbuf_downscaleamt); - rheight = (vid.height / scrbuf_downscaleamt); + scrbuf_width = (vid.width / scrbuf_downscaleamt); + scrbuf_height = (vid.height / scrbuf_downscaleamt); } else { scrbuf_downscaleamt = 1; - rwidth = vid.width; - rheight = vid.height; + scrbuf_width = vid.width; + scrbuf_height = vid.height; } - WRITEUINT16(p, rwidth); - WRITEUINT16(p, rheight); + + WRITEUINT16(p, scrbuf_width); + WRITEUINT16(p, scrbuf_height); // colors, aspect, etc WRITEUINT8(p, 0xF7); @@ -475,26 +473,16 @@ static size_t gifframe_size = 8192; #ifdef HWRENDER static colorlookup_t gif_colorlookup; -static void GIF_rgbconvert(UINT8 *linear, UINT8 *scr) +static void GIF_rgbconvert(UINT8 * restrict linear, UINT8 * restrict scr) { - UINT8 r, g, b; - size_t src, dest; - int x, y; - InitColorLUT(&gif_colorlookup, gif_palette, true); - for (x = 0; x < vid.width; x += scrbuf_downscaleamt) + for (INT32 i = 0; i < scrbuf_width*scrbuf_height; i++) { - for (y = 0; y < vid.height; y += scrbuf_downscaleamt) - { - dest = y*vid.width + x; - src = dest*3; - - r = (UINT8)linear[src]; - g = (UINT8)linear[src + 1]; - b = (UINT8)linear[src + 2]; - scr[dest] = GetColorLUTDirect(&gif_colorlookup, r, g, b); - } + UINT8 r = *linear++; + UINT8 g = *linear++; + UINT8 b = *linear++; + *scr++ = GetColorLUTDirect(&gif_colorlookup, r, g, b); } } #endif @@ -506,6 +494,7 @@ static void GIF_rgbconvert(UINT8 *linear, UINT8 *scr) static void GIF_framewrite(void) { UINT8 *p; + UINT8 *base_screen = vid.screens[0]; UINT8 *movie_screen = vid.screens[2]; INT32 blitx, blity, blitw, blith; @@ -516,47 +505,31 @@ static void GIF_framewrite(void) if (!gif_out) return; + // blit to temp screen + if (rendermode == render_soft) + I_ReadScreen(movie_screen, scrbuf_downscaleamt); +#ifdef HWRENDER + else if (rendermode == render_opengl) + { + // save previous frame (software already does this elsewhere...?) + memcpy(base_screen, movie_screen, scrbuf_width * scrbuf_height); + + UINT8 *linear = HWR_GetScreenshot(scrbuf_downscaleamt); + GIF_rgbconvert(linear, movie_screen); + //free(linear); // Allocated 'statically', no need to free now + } +#endif + // Compare image data (for optimizing GIF) if (gif_optimize && gif_frames > 0) { - // before blit movie_screen points to last frame, cur_screen points to this frame - UINT8 *cur_screen = vid.screens[0]; - GIF_optimizeregion(cur_screen, movie_screen, &blitx, &blity, &blitw, &blith); - - // blit to temp screen - if (rendermode == render_soft) - I_ReadScreen(movie_screen); -#ifdef HWRENDER - else if (rendermode == render_opengl) - { - UINT8 *linear = HWR_GetScreenshot(); - GIF_rgbconvert(linear, movie_screen); - //free(linear); // Allocated 'statically', no need to free now - } -#endif + GIF_optimizeregion(base_screen, movie_screen, &blitx, &blity, &blitw, &blith); } else { blitx = blity = 0; - blitw = vid.width; - blith = vid.height; - -#ifdef HWRENDER - // Copy the current OpenGL frame into the base screen - if (rendermode == render_opengl) - { - UINT8 *linear = HWR_GetScreenshot(); - GIF_rgbconvert(linear, vid.screens[0]); - //free(linear); // Allocated 'statically', no need to free now - } -#endif - - // Copy the first frame into the movie screen - // OpenGL already does the same above. - if (gif_frames == 0 && rendermode == render_soft) - I_ReadScreen(movie_screen); - - movie_screen = vid.screens[0]; + blitw = scrbuf_width; + blith = scrbuf_height; } // screen regions are handled in GIF_lzw @@ -564,7 +537,7 @@ static void GIF_framewrite(void) UINT16 delay = 0; INT32 startline; - if (gif_dynamicdelay ==(UINT8) 2) + if (gif_dynamicdelay ==(UINT8) 2) { // golden's attempt at creating a "dynamic delay" UINT16 mingifdelay = 10; // minimum gif delay in milliseconds (keep at 10 because gifs can't get more precise). @@ -600,24 +573,17 @@ static void GIF_framewrite(void) WRITEUINT8(p, 0); WRITEUINT8(p, 0); // end of GCE - if (scrbuf_downscaleamt > 1) - { - // Ensure our downscaled blitx/y starts and ends on a pixel. - blitx -= (blitx % scrbuf_downscaleamt); - blity -= (blity % scrbuf_downscaleamt); - blitw = ((blitw + (scrbuf_downscaleamt - 1)) / scrbuf_downscaleamt) * scrbuf_downscaleamt; - blith = ((blith + (scrbuf_downscaleamt - 1)) / scrbuf_downscaleamt) * scrbuf_downscaleamt; - } - WRITEUINT8(p, 0x2C); - WRITEUINT16(p, (UINT16)(blitx / scrbuf_downscaleamt)); - WRITEUINT16(p, (UINT16)(blity / scrbuf_downscaleamt)); - WRITEUINT16(p, (UINT16)(blitw / scrbuf_downscaleamt)); - WRITEUINT16(p, (UINT16)(blith / scrbuf_downscaleamt)); + + WRITEUINT16(p, (UINT16)blitx); + WRITEUINT16(p, (UINT16)blity); + WRITEUINT16(p, (UINT16)blitw); + WRITEUINT16(p, (UINT16)blith); + WRITEUINT8(p, 0); // no local table of colors - scrbuf_pos = movie_screen + blitx + (blity * vid.width); - scrbuf_writeend = scrbuf_pos + (blitw - 1) + ((blith - 1) * vid.width); + scrbuf_pos = movie_screen + blitx + (blity * scrbuf_width); + scrbuf_writeend = scrbuf_pos + (blitw - 1) + ((blith - 1) * scrbuf_width); if (!gifbwr_buf) gifbwr_buf = Z_Malloc(256, PU_STATIC, NULL); @@ -627,8 +593,8 @@ static void GIF_framewrite(void) giflzw_workingCode = UINT16_MAX; WRITEUINT8(p, gifbwr_bits_min - 1); - startline = (scrbuf_pos - movie_screen) / vid.width; - scrbuf_linebegin = movie_screen + (startline * vid.width) + blitx; + startline = (scrbuf_pos - movie_screen) / scrbuf_width; + scrbuf_linebegin = movie_screen + (startline * scrbuf_width) + blitx; scrbuf_lineend = scrbuf_linebegin + blitw; //prewrite a table clear @@ -658,7 +624,7 @@ static void GIF_framewrite(void) } fwrite(gifframe_data, 1, (p - gifframe_data), gif_out); ++gif_frames; - gif_prevframetime = I_GetPreciseTime(); + gif_prevframetime = I_GetPreciseTime(); } diff --git a/src/m_misc.c b/src/m_misc.c index d43a7bb5c..c59b10a6a 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -1240,7 +1240,7 @@ void M_SaveFrame(void) { // munge planar buffer to linear linear = vid.screens[2]; - I_ReadScreen(linear); + I_ReadScreen(linear, 1); } #ifdef HWRENDER else @@ -1506,6 +1506,7 @@ void M_DoScreenShot(void) char pathname[MAX_WADPATH]; boolean ret = false; UINT8 *linear = NULL; + UINT8 *palette; // Don't take multiple screenshots, obviously takescreenshot = false; @@ -1538,30 +1539,30 @@ void M_DoScreenShot(void) freename = Newsnapshotfile(pathname,"tga"); #endif + if (!freename) + goto failure; + if (rendermode == render_soft) { // munge planar buffer to linear linear = vid.screens[2]; - I_ReadScreen(linear); - } - - if (!freename) - goto failure; - - // save the pcx file -#ifdef HWRENDER - if (rendermode == render_opengl) - ret = HWR_Screenshot(va(pandf,pathname,freename)); - else -#endif - { + I_ReadScreen(linear, 1); M_CreateScreenShotPalette(); -#ifdef USE_PNG - ret = M_SavePNG(va(pandf,pathname,freename), linear, vid.width, vid.height, screenshot_palette); -#else - ret = WritePCXfile(va(pandf,pathname,freename), linear, vid.width, vid.height, screenshot_palette); -#endif + palette = screenshot_palette; } +#ifdef HWRENDER + else if (rendermode == render_opengl) + { + linear = HWR_GetScreenshot(1); + palette = NULL; + } +#endif + +#ifdef USE_PNG + ret = M_SavePNG(va(pandf,pathname,freename), linear, vid.width, vid.height, palette); +#else + ret = WritePCXfile(va(pandf,pathname,freename), linear, vid.width, vid.height, palette); +#endif failure: if (ret) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 6fcf51be9..96d22355a 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1410,12 +1410,22 @@ void I_UpdateNoVsync(void) // // I_ReadScreen // -void I_ReadScreen(UINT8 *scr) +void I_ReadScreen(UINT8 * restrict scr, INT32 scale) { if (rendermode != render_soft) I_Error ("I_ReadScreen: called while in non-software mode"); - else + else if (scale == 1) VID_BlitLinearScreen(vid.screens[0], scr, vid.width, vid.height, vid.rowbytes, vid.rowbytes); + else + { + UINT8 * restrict source = vid.screens[0]; + INT32 w = vid.width/scale*scale, h = vid.height/scale*scale; + + // size_t saves a lea + movsxd over INT32. mind your types! + for (size_t y = 0; y < h; y += scale) + for (size_t x = 0; x < w; x += scale) + *scr++ = source[y*vid.width + x]; + } } // From 881c9f8e43b8c738ece8d87b98d23b44dc7de397 Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Thu, 11 Sep 2025 16:46:23 +0200 Subject: [PATCH 55/59] Remove GetTexImage stuff --- src/hardware/r_opengl/r_opengl.c | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 7a4f7e8c3..eccf942b1 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -341,7 +341,6 @@ static void GL_MSG_Error(const char *format, ...) /* Raster functions */ #define pglPixelStorei glPixelStorei #define pglReadPixels glReadPixels -#define pglGetTexImage glGetTexImage /* Texture mapping */ #define pglTexEnvi glTexEnvi @@ -455,8 +454,6 @@ typedef void (APIENTRY * PFNglPixelStorei) (GLenum pname, GLint param); static PFNglPixelStorei pglPixelStorei; typedef void (APIENTRY * PFNglReadPixels) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); static PFNglReadPixels pglReadPixels; -typedef void (APIENTRY * PFNglGetTexImage) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); -static PFNglGetTexImage pglGetTexImage; /* Texture mapping */ typedef void (APIENTRY * PFNglTexEnvi) (GLenum target, GLenum pname, GLint param); @@ -653,7 +650,6 @@ boolean SetupGLfunc(void) GetGLfunc(glPixelStorei) GetGLfunc(glReadPixels) - GetGLfunc(glGetTexImage) GetGLfunc(glTexEnvi) GetGLfunc(glTexParameteri) @@ -1492,15 +1488,6 @@ void GL_ReadScreenTexture(int tex, UINT16 *dst_data) free(row); } -// nope, definitely not faster. software has the same flickering/z-fighting bugs with laggy GIF recording anyway -//#define GETTEXIMAGE - -#ifdef GETTEXIMAGE -#define TEXWIDTH screen_texsizew -#else -#define TEXWIDTH screen_width -#endif - // -----------------------+ // ReadScreenFinalTexture : Reads out the final screen texture // Returns : 24bit RGB pixel array stored in dest @@ -1511,24 +1498,17 @@ void GL_ReadScreenFinalTexture(UINT8 * restrict dest, INT32 scale) INT32 scanlines = screen_height; GLubyte * restrict image; -#ifdef GETTEXIMAGE - image = malloc(screen_texsizew*screen_texsizeh*3); // oof - pglBindTexture(GL_TEXTURE_2D, screenTextures[HWD_SCREENTEXTURE_GENERIC2]); - pglGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, image); - tex_downloaded = screenTextures[HWD_SCREENTEXTURE_GENERIC2]; -#else image = malloc(screen_width*screen_height*3); pglPixelStorei(GL_PACK_ALIGNMENT, 1); pglReadPixels(0, 0, screen_width, screen_height, GL_RGB, GL_UNSIGNED_BYTE, image); -#endif // TODO the downscaling happens in the screen capture code now, // yet we're still doing this on the CPU? sheesh... // this is where actual knowledge of OpenGL would've come in handy - image += scanlines*TEXWIDTH*3; + image += scanlines*screen_width*3; while ((scanlines -= scale) >= 0) { - image -= TEXWIDTH*scale*3; + image -= screen_width*scale*3; if (scale == 1) memcpy(dest, image, stride); else for (size_t i = 0; i < stride; i += 3) @@ -1537,7 +1517,7 @@ void GL_ReadScreenFinalTexture(UINT8 * restrict dest, INT32 scale) } // ...yet still, restrict doesn't make the inner loop any faster - free(image - ((screen_height % scale) * TEXWIDTH*3)); + free(image - ((screen_height % scale) * screen_width*3)); } // -----------------+ From ee12d25a8f889da7f0b3b525b717c59cf6946cc7 Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Thu, 11 Sep 2025 17:50:28 +0200 Subject: [PATCH 56/59] Fix GIF recording at 1x resolution, and stop recording on resolution change Simplifies the framebuffer management and eliminates the memcpy per frame --- src/m_anigif.c | 26 +++++++++++++++++++++----- src/screen.c | 3 +++ 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/m_anigif.c b/src/m_anigif.c index 78e7cf12c..3d2ef2e5f 100644 --- a/src/m_anigif.c +++ b/src/m_anigif.c @@ -57,6 +57,7 @@ static UINT8 *scrbuf_lineend; static UINT8 *scrbuf_writeend; static INT16 scrbuf_downscaleamt = 1; static UINT16 scrbuf_width, scrbuf_height; +static UINT8 *scrbuf_screens; // OPTIMIZE gif output // --- @@ -494,8 +495,8 @@ static void GIF_rgbconvert(UINT8 * restrict linear, UINT8 * restrict scr) static void GIF_framewrite(void) { UINT8 *p; - UINT8 *base_screen = vid.screens[0]; - UINT8 *movie_screen = vid.screens[2]; + UINT8 *base_screen = scrbuf_screens; + UINT8 *movie_screen = scrbuf_screens; INT32 blitx, blity, blitw, blith; if (!gifframe_data) @@ -505,15 +506,18 @@ static void GIF_framewrite(void) if (!gif_out) return; + // select your framebuffer + if (gif_frames & 1) + base_screen += scrbuf_width*scrbuf_height; + else + movie_screen += scrbuf_width*scrbuf_height; + // blit to temp screen if (rendermode == render_soft) I_ReadScreen(movie_screen, scrbuf_downscaleamt); #ifdef HWRENDER else if (rendermode == render_opengl) { - // save previous frame (software already does this elsewhere...?) - memcpy(base_screen, movie_screen, scrbuf_width * scrbuf_height); - UINT8 *linear = HWR_GetScreenshot(scrbuf_downscaleamt); GIF_rgbconvert(linear, movie_screen); //free(linear); // Allocated 'statically', no need to free now @@ -657,12 +661,22 @@ INT32 GIF_open(const char *filename) return 1; } +static void GIF_checkscreens(void) +{ + if (scrbuf_screens == NULL) + Z_Malloc(scrbuf_width * scrbuf_height * 2, PU_STATIC, &scrbuf_screens); + + I_Assert(scrbuf_width == vid.width / scrbuf_downscaleamt); + I_Assert(scrbuf_height == vid.height / scrbuf_downscaleamt); +} + // // GIF_frame // writes a frame into the output gif // void GIF_frame(void) { + GIF_checkscreens(); // there's not much actually needed here, is there. GIF_framewrite(); } @@ -693,6 +707,8 @@ INT32 GIF_close(void) Z_Free(giflzw_hashTable); giflzw_hashTable = NULL; + Z_Free(scrbuf_screens); + CONS_Printf(M_GetText("Animated gif closed; wrote %d frames\n"), gif_frames); return 1; } diff --git a/src/screen.c b/src/screen.c index 4d239e186..1b5bd89e7 100644 --- a/src/screen.c +++ b/src/screen.c @@ -121,6 +121,9 @@ void SCR_SetMode(void) if (!setmodeneeded || WipeInAction) return; // should never happen and don't change it during a wipe, BAD! + if (vid.modenum != setmodeneeded - 1) + M_StopMovie(); // nope, cry about it + VID_SetMode(--setmodeneeded); V_SetPalette(0); From 7cdf69c6a1a3371fda5d06dff01031dabf4d9fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20Alh=C3=A4ll?= Date: Tue, 16 Sep 2025 19:23:22 +0200 Subject: [PATCH 57/59] Fix compiler warning --- src/hardware/r_opengl/r_opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index eccf942b1..8b73065bb 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -1511,7 +1511,7 @@ void GL_ReadScreenFinalTexture(UINT8 * restrict dest, INT32 scale) image -= screen_width*scale*3; if (scale == 1) memcpy(dest, image, stride); - else for (size_t i = 0; i < stride; i += 3) + else for (INT32 i = 0; i < stride; i += 3) memcpy(dest + i, image + i*scale, 3); dest += stride; } From adcd62ed59a151720340920aacb7a5a157245b99 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 26 Sep 2025 05:50:02 +0200 Subject: [PATCH 58/59] merge GL_ReadScreenTexture and GL_ReadScreenFinalTexture --- src/hardware/hw_draw.c | 3 +- src/hardware/hw_gl.h | 3 +- src/hardware/r_opengl/r_opengl.c | 56 ++++++-------------------------- 3 files changed, 13 insertions(+), 49 deletions(-) diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index e77d83b3b..5902f8d81 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -1222,7 +1222,8 @@ UINT8 *HWR_GetScreenshot(INT32 scale) if (!buf) return NULL; - GL_ReadScreenFinalTexture(buf, scale); + // returns 24bit 888 RGB + GL_ReadScreenTexture(HWD_SCREENTEXTURE_GENERIC2, (void *)buf, scale); return buf; } diff --git a/src/hardware/hw_gl.h b/src/hardware/hw_gl.h index 8c3da0768..7e167485e 100644 --- a/src/hardware/hw_gl.h +++ b/src/hardware/hw_gl.h @@ -54,8 +54,7 @@ INT32 GL_GetTextureUsed(void); void GL_CreateModelVBOs(model_t *model); -void GL_ReadScreenTexture(int tex, UINT16 *dst_data); -void GL_ReadScreenFinalTexture(UINT8 * restrict dest, INT32 scale); +void GL_ReadScreenTexture(int tex, UINT8 *dst_data, INT32 scale); void GL_GClipRect(INT32 minx, INT32 miny, INT32 maxx, INT32 maxy, float nearclip, float farclip); void GL_MakeScreenTexture(int tex); diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 8b73065bb..93a2c0ff4 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -1443,23 +1443,14 @@ void SetupGLInfo(void) sscanf((const char*)versionGL, "%d.%d", &majorGL, &minorGL); } -// Writes screen texture tex into dst_data. -// Pixel format is 24-bit RGB. Row order is top to bottom. -// Dimensions are screen_width * screen_height. -void GL_ReadScreenTexture(int tex, UINT16 *dst_data) +// ------------------+ +// ReadScreenTexture : Reads out a screen texture +// ------------------+ +void GL_ReadScreenTexture(int tex, UINT8 *restrict dest, INT32 scale) { - INT32 i; - int dst_stride = screen_width * 3; // stride between rows of image data - GLubyte *top, *bottom; - GLubyte *row; - - row = malloc(dst_stride); - - if (!row) - return; - - top = (GLvoid*)dst_data; - bottom = top + dst_stride * (screen_height - 1); + const INT32 stride = (screen_width/scale)*3; + INT32 scanlines = screen_height; + GLubyte * restrict image; // at the time this function is called, generic2 can be found drawn on the framebuffer // if some other screen texture is needed, draw it to the framebuffer @@ -1468,40 +1459,13 @@ void GL_ReadScreenTexture(int tex, UINT16 *dst_data) if (tex != HWD_SCREENTEXTURE_GENERIC2) GL_DrawScreenTexture(tex, NULL, 0); - pglPixelStorei(GL_PACK_ALIGNMENT, 1); - pglReadPixels(0, 0, screen_width, screen_height, GL_RGB, GL_UNSIGNED_BYTE, dst_data); - - if (tex != HWD_SCREENTEXTURE_GENERIC2) - GL_DrawScreenTexture(HWD_SCREENTEXTURE_GENERIC2, NULL, 0); - - // Flip image upside down. - // In other words, convert OpenGL's "bottom->top" row order into "top->bottom". - for (i = 0; i < screen_height/2; i++) - { - memcpy(row, top, dst_stride); - memcpy(top, bottom, dst_stride); - memcpy(bottom, row, dst_stride); - top += dst_stride; - bottom -= dst_stride; - } - - free(row); -} - -// -----------------------+ -// ReadScreenFinalTexture : Reads out the final screen texture -// Returns : 24bit RGB pixel array stored in dest -// -----------------------+ -void GL_ReadScreenFinalTexture(UINT8 * restrict dest, INT32 scale) -{ - const INT32 stride = (screen_width/scale)*3; - INT32 scanlines = screen_height; - GLubyte * restrict image; - image = malloc(screen_width*screen_height*3); pglPixelStorei(GL_PACK_ALIGNMENT, 1); pglReadPixels(0, 0, screen_width, screen_height, GL_RGB, GL_UNSIGNED_BYTE, image); + if (tex != HWD_SCREENTEXTURE_GENERIC2) + GL_DrawScreenTexture(HWD_SCREENTEXTURE_GENERIC2, NULL, 0); + // TODO the downscaling happens in the screen capture code now, // yet we're still doing this on the CPU? sheesh... // this is where actual knowledge of OpenGL would've come in handy From e383b0885d5543d142572117386406310bd32f6b Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 26 Sep 2025 05:51:03 +0200 Subject: [PATCH 59/59] use uintptr_t to fix compiler warning (srb2classic change) --- src/sdl/i_video.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 96d22355a..db2c8d90a 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1419,11 +1419,12 @@ void I_ReadScreen(UINT8 * restrict scr, INT32 scale) else { UINT8 * restrict source = vid.screens[0]; - INT32 w = vid.width/scale*scale, h = vid.height/scale*scale; + uintptr_t w = vid.width/scale*scale, h = vid.height/scale*scale; // size_t saves a lea + movsxd over INT32. mind your types! - for (size_t y = 0; y < h; y += scale) - for (size_t x = 0; x < w; x += scale) + // uintptr_t is even better since it's guaranteed to be the size of a pointer + for (uintptr_t y = 0; y < h; y += scale) + for (uintptr_t x = 0; x < w; x += scale) *scr++ = source[y*vid.width + x]; } }