improve logging to console (again) (#1327)

* improve logging to console (again)

G_DoPlayDemo: Do not print compatibility, P_SetupLevel already does
this. Instead, print the demo lump name and lump source name.

G_DoLoadGame: Do not print map lump name and lump source name,
P_SetupLevel already does this. Just print the slot number.

I_OAL_CacheSound: Print the names of lumps failed to load with
I_SND_LoadFile.

P_SetupLevel: Print skill (interesting for demos and savegames), print
complevel name and numerical value, condense nodes format reporting.

* indentation

* drop demo_version from P_SetupLevel output
This commit is contained in:
Fabian Greffrath 2023-12-14 12:10:34 +01:00 committed by GitHub
parent 71d36bde5a
commit 708a0169e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 23 deletions

View File

@ -1895,8 +1895,7 @@ static void G_DoPlayDemo(void)
} }
// [FG] report compatibility mode // [FG] report compatibility mode
I_Printf(VB_INFO, "G_DoPlayDemo: Playing demo with %s (%d) compatibility.", I_Printf(VB_INFO, "G_DoPlayDemo: %s (%s)", basename, W_WadNameForLump(lumpnum));
G_GetCurrentComplevelName(), demover);
} }
#define VERSIONSIZE 16 #define VERSIONSIZE 16
@ -2333,14 +2332,7 @@ static void G_DoLoadGame(void)
if (demorecording) // So this can only possibly be a -recordfrom command. if (demorecording) // So this can only possibly be a -recordfrom command.
G_BeginRecording();// Start the -recordfrom, since the game was loaded. G_BeginRecording();// Start the -recordfrom, since the game was loaded.
// [FG] log game loading I_Printf(VB_INFO, "G_DoLoadGame: Slot %02d", 10*savepage+savegameslot);
{
char *maplump = MAPNAME(gameepisode, gamemap);
int maplumpnum = W_CheckNumForName(maplump);
I_Printf(VB_INFO, "G_DoLoadGame: Slot %d, %.8s (%s)",
10*savepage+savegameslot, maplump, W_WadNameForLump(maplumpnum));
}
M_SetQuickSaveSlot(savegameslot); M_SetQuickSaveSlot(savegameslot);
} }

View File

@ -623,6 +623,7 @@ boolean I_OAL_CacheSound(sfxinfo_t *sfx)
if (I_SND_LoadFile(lumpdata, &format, &wavdata, &size, &freq) == false) if (I_SND_LoadFile(lumpdata, &format, &wavdata, &size, &freq) == false)
{ {
I_Printf(VB_WARNING, " I_OAL_CacheSound: %s", lumpinfo[lumpnum].name);
break; break;
} }

View File

@ -1669,19 +1669,18 @@ void P_SetupLevel(int episode, int map, int playermask, skill_t skill)
R_PrecacheLevel(); R_PrecacheLevel();
// [FG] log level setup // [FG] log level setup
{ I_Printf(VB_INFO, "P_SetupLevel: %.8s (%s), Skill %d, %s%s%s, %s",
I_Printf(VB_INFO, "P_SetupLevel: %.8s (%s), %s%s%s, %s complevel", lumpname, W_WadNameForLump(lumpnum),
lumpname, W_WadNameForLump(lumpnum), gameskill + 1,
mapformat == MFMT_XNOD ? "XNOD nodes" : mapformat == MFMT_XNOD ? "XNOD" :
mapformat == MFMT_ZNOD ? "ZNOD nodes" : mapformat == MFMT_ZNOD ? "ZNOD" :
mapformat == MFMT_XGLN ? "XGLN nodes" : mapformat == MFMT_XGLN ? "XGLN" :
mapformat == MFMT_ZGLN ? "ZGLN nodes" : mapformat == MFMT_ZGLN ? "ZGLN" :
mapformat == MFMT_DEEP ? "DeepBSP nodes" : mapformat == MFMT_DEEP ? "DeepBSP" :
"Doom nodes", "Doom",
gen_blockmap ? " + Blockmap" : "", gen_blockmap ? "+Blockmap" : "",
pad_reject ? " + Reject" : "", pad_reject ? "+Reject" : "",
G_GetCurrentComplevelName()); G_GetCurrentComplevelName());
}
} }
// //