diff --git a/src/pc/lua/smlua_sync_table.c b/src/pc/lua/smlua_sync_table.c index aca81fbd1..df20cbbf0 100644 --- a/src/pc/lua/smlua_sync_table.c +++ b/src/pc/lua/smlua_sync_table.c @@ -515,10 +515,8 @@ static void smlua_sync_table_send_table(u8 toLocalIndex) { // uses 'key' (at index -2) and 'value' (at index -1) if (lua_type(L, -1) == LUA_TTABLE) { - LOG_INFO(" sending sync table field (table): %s", lua_tostring(L, -2)); smlua_sync_table_send_table(toLocalIndex); } else { - LOG_INFO(" sending sync table field: %s", lua_tostring(L, -2)); lua_pushvalue(L, tableIndex); // insert sync table lua_insert(L, -3); // re-order sync table smlua_sync_table_send_field(toLocalIndex, internalIndex, false); diff --git a/src/pc/network/packets/packet_lua_sync_table.c b/src/pc/network/packets/packet_lua_sync_table.c index c1f304d2a..46865a255 100644 --- a/src/pc/network/packets/packet_lua_sync_table.c +++ b/src/pc/network/packets/packet_lua_sync_table.c @@ -120,9 +120,12 @@ void network_send_lua_sync_table(u8 toLocalIndex, u64 seq, u16 modRemoteIndex, u packet_write(&p, &lntKeyCount, sizeof(u16)); + //LOG_INFO("TX SYNC (%llu):", seq); for (int i = 0; i < lntKeyCount; i++) { if (!packet_write_lnt(&p, &lntKeys[i])) { return; } + //LOG_INFO(" %s", smlua_lnt_to_str(&lntKeys[i])); } + //LOG_INFO(" -> %s", smlua_lnt_to_str(lntValue)); if (!packet_write_lnt(&p, lntValue)) { return; } @@ -146,9 +149,13 @@ void network_receive_lua_sync_table(struct Packet* p) { packet_read(p, &modRemoteIndex, sizeof(u16)); packet_read(p, &lntKeyCount, sizeof(u16)); + + //LOG_INFO("RX SYNC (%llu):", seq); for (int i = 0; i < lntKeyCount; i++) { if (!packet_read_lnt(p, &lntKeys[i])) { goto cleanup; } + //LOG_INFO(" %s", smlua_lnt_to_str(&lntKeys[i])); } + //LOG_INFO(" -> %s", smlua_lnt_to_str(&lntValue)); if (!packet_read_lnt(p, &lntValue)) { goto cleanup; }