Commit Graph

15 Commits

Author SHA1 Message Date
36acbb57c5 Enhance reliability of chunk data transmission and update world seed handling on game start 2025-12-14 23:13:43 +01:00
26b5f1201e Refactor player entry initialization and optimize building state update logic 2025-12-14 22:27:43 +01:00
3124f82a2f alap 2025-12-14 21:08:19 +01:00
3a7b81bfd7 save 2025-12-14 21:04:22 +01:00
c4eb7e944d Fix map synchronization between host and clients
Problem: Clients received WorldSeed packet before ServerSettings,
causing world generation with wrong mapSize/mapBias/mapRivers
parameters. Same seed but different parameters = different maps.

Solution: Include all map parameters directly in WorldSeed packet:
- WorldSize (map size)
- WorldType (map bias - continents/islands/etc)
- WorldRivers (river/lake density)

Now packet order doesn't matter - WorldSeed has everything needed
for identical world generation across all clients.

Changes:
- WorldSeed.cs: Add map parameters, set before Generate()
- ClientConnected.cs: Send full world params to joining clients
- ServerLobbyScript.cs: Send full params on new world generation
- Added [WORLD SYNC] debug logging

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-14 21:00:15 +01:00
5f67f488f6 Fix compilation warnings and namespace issue
Fixed issues:
1. Added missing using directive for KCM.Packets namespace
   - Fixes ShowModal class not found error in Main.cs

2. Removed unused 'callTree' variable (Main.cs:460)
   - Variable was defined but never used

3. Removed unused 'awake' field (ServerLobbyScript.cs:63)
   - Field was assigned but never used

All compilation warnings resolved.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-14 20:12:08 +01:00
7a14303353 Initialize player entry banner before SetValues 2025-12-14 14:21:20 +01:00
f03e13236f asd 2025-12-14 01:45:02 +01:00
0776da883f BIG FIX XD 2025-12-13 19:12:53 +01:00
e523122561 bug fix 2025-12-13 15:17:11 +01:00
91a1ab4261 oke 2025-12-13 14:52:00 +01:00
3d5ef1686a uhum aha nem tudom mi ez a szar 2025-12-13 14:33:59 +01:00
e6208996f7 chat shit 2025-12-13 14:32:17 +01:00
f3be3584db some fix 2025-12-13 14:29:21 +01:00
679c3c9a52 first commit 2025-12-13 14:28:35 +01:00