From 3251acb929e6c7003968afac82751652deab041f Mon Sep 17 00:00:00 2001 From: PieterVdc Date: Wed, 3 Dec 2025 08:55:14 +0100 Subject: [PATCH 1/5] remove excess log lines --- config/fxdata/lua/core/serialisation.lua | 1 - src/lua_base.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/config/fxdata/lua/core/serialisation.lua b/config/fxdata/lua/core/serialisation.lua index e084646adc..d96782111b 100644 --- a/config/fxdata/lua/core/serialisation.lua +++ b/config/fxdata/lua/core/serialisation.lua @@ -54,7 +54,6 @@ function GetSerializedData() local prepped = preprocess(Game) return binser.serialize(prepped) end) - print("GetSerializedData ok: " .. tostring(ok)) if not ok then error("binser failed: " .. result) end diff --git a/src/lua_base.c b/src/lua_base.c index c5e2bf9531..c9d46a02e6 100644 --- a/src/lua_base.c +++ b/src/lua_base.c @@ -211,7 +211,6 @@ const char* lua_get_serialised_data(size_t *len) lua_getglobal(Lvl_script, "GetSerializedData"); if (lua_isfunction(Lvl_script, -1)) { - JUSTLOG("calling GetSerializedData"); int result = lua_pcall(Lvl_script, 0, 1, 0); JUSTLOG("lua_pcall result: %d", result); if (!CheckLua(Lvl_script, result, "GetSerializedData")) { @@ -219,7 +218,6 @@ const char* lua_get_serialised_data(size_t *len) return NULL; } - JUSTLOG("called GetSerializedData"); if (!lua_isstring(Lvl_script, -1)) { ERRORLOG("Expected 'GetSerializedData' to return a string"); lua_pop(Lvl_script, 1); From 64320930e80f2b048207e6738ef36267d8fd352b Mon Sep 17 00:00:00 2001 From: PieterVdc Date: Wed, 3 Dec 2025 08:59:29 +0100 Subject: [PATCH 2/5] Update lua_base.c --- src/lua_base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lua_base.c b/src/lua_base.c index c9d46a02e6..587b9e8235 100644 --- a/src/lua_base.c +++ b/src/lua_base.c @@ -212,7 +212,6 @@ const char* lua_get_serialised_data(size_t *len) if (lua_isfunction(Lvl_script, -1)) { int result = lua_pcall(Lvl_script, 0, 1, 0); - JUSTLOG("lua_pcall result: %d", result); if (!CheckLua(Lvl_script, result, "GetSerializedData")) { ERRORLOG("Failed to call GetSerializedData"); return NULL; From ca08390ee5c635dd3c89d49fccedcd332664546e Mon Sep 17 00:00:00 2001 From: PieterVdc Date: Wed, 3 Dec 2025 09:03:35 +0100 Subject: [PATCH 3/5] Created menu ID %d at slot %d, pos only hvlog --- src/frontend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend.cpp b/src/frontend.cpp index e56ab0d7f0..8435655188 100644 --- a/src/frontend.cpp +++ b/src/frontend.cpp @@ -2307,7 +2307,7 @@ MenuNumber create_menu(struct GuiMenu *gmnu) update_radio_button_data(amnu); init_slider_bars(amnu); init_menu_buttons(amnu); - SYNCMSG("Created menu ID %d at slot %d, pos (%d,%d) size (%d,%d)",(int)gmnu->ident, + SYNCDBG(8,"Created menu ID %d at slot %d, pos (%d,%d) size (%d,%d)",(int)gmnu->ident, (int)mnu_num,(int)amnu->pos_x,(int)amnu->pos_y,(int)amnu->width,(int)amnu->height); return mnu_num; } From 0418b51b42af3689a54d4915de6be963cb330c3c Mon Sep 17 00:00:00 2001 From: PieterVdc Date: Wed, 3 Dec 2025 09:03:48 +0100 Subject: [PATCH 4/5] SYNCMSG("Saving/loading game to slot --- src/game_saves.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game_saves.c b/src/game_saves.c index 7ae2225c73..3db59fb4bb 100644 --- a/src/game_saves.c +++ b/src/game_saves.c @@ -309,6 +309,8 @@ TbBool save_game(long slot_num) ERRORLOG("Outranged slot index %d",(int)slot_num); return false; } + + SYNCMSG("Saving game to slot %d",(int)slot_num); char* fname = prepare_file_fmtpath(FGrp_Save, saved_game_filename, slot_num); TbFileHandle handle = LbFileOpen(fname, Lb_FILE_MODE_NEW); if (!handle) @@ -353,6 +355,7 @@ TbBool load_game(long slot_num) ERRORLOG("Outranged slot index %d",(int)slot_num); return false; } + SYNCMSG("Loading game from slot %d",(int)slot_num); TbFileHandle fh; // unsigned char buf[14]; // char cmpgn_fname[CAMPAIGN_FNAME_LEN]; From 84847338d49ec6035adc4a97211e70ab9bb8911f Mon Sep 17 00:00:00 2001 From: PieterVdc Date: Wed, 3 Dec 2025 09:08:56 +0100 Subject: [PATCH 5/5] loading was already logged --- src/game_saves.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/game_saves.c b/src/game_saves.c index 3db59fb4bb..b424597ec7 100644 --- a/src/game_saves.c +++ b/src/game_saves.c @@ -355,7 +355,6 @@ TbBool load_game(long slot_num) ERRORLOG("Outranged slot index %d",(int)slot_num); return false; } - SYNCMSG("Loading game from slot %d",(int)slot_num); TbFileHandle fh; // unsigned char buf[14]; // char cmpgn_fname[CAMPAIGN_FNAME_LEN];