mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-14 07:47:13 +00:00
Merge origin/main into experimental: behaviors, raw terrain scene lookups, property model fixes, player count
Main's model behaviors (every rotation, DoDamage, OnTimer, OnStartup, MoveBackToStart, moves along the model's local axes), raw terrain reading with scene lookups and scene tools, property model and brick by brick fixes and the chat server's player count fix, merged onto this branch's structures: - game messages stay structs; the angular velocity messages join them and the handler sets a message's target - strips own their speed again and the block names, moves and rotations stay in the shared action table (PropertyBehaviorActions, which the dashboard's behavior player reads; it now lists rotations too) - the zone keeps reading its file through ZoneFile and takes the boundaries from it, then loads the raw terrain as main does; the old dNavigation terrain reader is gone - the show all response stays a struct and logs a player count mismatch as main does - the property management component tells models who sent a chat message Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -418,6 +418,10 @@ void ChatPacketHandler::HandleShowAll(const ChatPackets::ShowAllRequest& request
|
||||
if (!playerData) continue;
|
||||
response.players.push_back({ playerData.playerName, playerData.zoneID });
|
||||
}
|
||||
// there is no terminator: the client reads playerCount entries, and prints garbage on a mismatch
|
||||
if (response.players.size() != response.playerCount) {
|
||||
LOG("Written players does not match actual players %zu != %i", response.players.size(), response.playerCount);
|
||||
}
|
||||
}
|
||||
SendRouted(request.requestor, sender.worldServerSysAddr, response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user