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/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; } diff --git a/src/game_saves.c b/src/game_saves.c index 7ae2225c73..b424597ec7 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) diff --git a/src/lua_base.c b/src/lua_base.c index c5e2bf9531..587b9e8235 100644 --- a/src/lua_base.c +++ b/src/lua_base.c @@ -211,15 +211,12 @@ 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")) { ERRORLOG("Failed to call GetSerializedData"); return NULL; } - JUSTLOG("called GetSerializedData"); if (!lua_isstring(Lvl_script, -1)) { ERRORLOG("Expected 'GetSerializedData' to return a string"); lua_pop(Lvl_script, 1);