Commit Graph

221 Commits (ffi-server-rewrite)

Author SHA1 Message Date
David Cernat 316720e710 [Server] Rename getNextMpNum() into incrementMpNum() 8 years ago
David Cernat 068835ba71 [Server] Add OnMpNumIncrement() script callback 8 years ago
David Cernat 8cc61b6048 [General] Generate mpNums on the server when forwarding ID_OBJECT_PLACE 8 years ago
David Cernat d8712ee1ea [Server] Fix script crashes by reusing BaseEvent in WorldProcessor 8 years ago
David Cernat 5ff40c5563 [Server] Make coding style consistent 8 years ago
Koncord 0317e2523b [Server] Remove unused code 8 years ago
Koncord f5600c508f [Server] Move all world handlers to WorldProcessors 8 years ago
Koncord 3b52549a3d [Server] Rename init_processors to ProcessorInitializer 8 years ago
Koncord e8a5fd1cd0 [Server] Move all message handlers to PlayerProcessors 8 years ago
Koncord 2c26ed8aee [Server] Process ID_GAME_PREINIT packet 8 years ago
Koncord 690211ad99 [General] Extract BaseEvent & BasePlayer from packets to functions
Move Send and Read functions to BasePacket
8 years ago
Koncord cea1425db1 [Client] Remove redundant newlines & keep ~120 columns 8 years ago
David Cernat 0d32bf5943 [General] Add extra death debug, don't request data from player on death 8 years ago
David Cernat 5c269a5f8d [General] Rename ID_GAME_DIE and ID_GAME_RESURRECT 8 years ago
Koncord 0442ebd607 [Server] Remove redundant newlines & keep ~120 columns 8 years ago
Koncord 83d0cbedb2 [Server] Remove redundant type casts 8 years ago
Koncord 8f96ca22c1 [Server] Fix typo in RakNet name 8 years ago
Koncord aa91126ce3 [Server] Minor cleanup in Networking 8 years ago
David Cernat fb93ce57f9 [Server] Fix debug message 8 years ago
David Cernat ae37daca70 [Server] Ensure no information exchange takes place with nullptr player 8 years ago
David Cernat 0527690b88 [Server] Add permanent debug to ID_PLAYER_CELL_CHANGE and ID_CONTAINER 8 years ago
David Cernat 7917badedf [Server] Set guid of baseEvent, previously done in a constructor before 7065569f9b 8 years ago
Koncord ebaf3d3cc9 [Server] FIx memory leak 8 years ago
Koncord 868c837aa0 [Server] Move baseEvent from Networking.cpp to class as member 8 years ago
David Cernat 7065569f9b [Server] Reuse 2 BaseEvents over and over instead of creating new ones 8 years ago
Koncord 68c288761a [Server] Send other players position to loader 8 years ago
Koncord b1460cf010 [Server] Send ID_PLAYER_POS every ID_PLAYER_CELL_CHANGE 8 years ago
David Cernat 58795119b6 [Server] Add debug about information exchange in ID_PLAYER_CELL_CHANGE 8 years ago
David Cernat 96d01fcde4 [Server] Stop resending attacks because they cause infinite death loops 8 years ago
Koncord b7ab831c46 [Server] Update MasterClient to new protocol 8 years ago
Koncord 158e9b3b09 [Server] Add ability to set password to server from config & scripts 8 years ago
David Cernat 3e031faa96 [Server] Exchange position information correctly between players 8 years ago
David Cernat ed91f20cd3 [General] Print action used for ID_CONTAINER when receiving one 8 years ago
David Cernat 24251cafd0 [Server] Send large ID_CONTAINER packets on a need-to-know basis 8 years ago
David Cernat 887b436ee7 [Server] Make style for new methods consistent with rest of project 8 years ago
Koncord f2ce46ffed [Server] Rename doForNearest to forEachLoaded 8 years ago
Koncord 3aae782a51 [Server] Send info about loader to others 8 years ago
Koncord ca68831395 [Server] Rename sendToNearest to sendToLoaded 8 years ago
Koncord 033472d939 [Server] Add doForNearest function 8 years ago
Koncord b760015071 [Server] Send some packets only to nearest players 8 years ago
Koncord bbc062de62 [Server] Use lowCamelCase in Cell 8 years ago
Koncord 08f78e21c1 [Server] Use CellController in Networking 8 years ago
David Cernat 27c4015f50 [General] Remove unused packet placeholder ID_OBJECT_HEALTH 8 years ago
David Cernat 1198caddf6 [Server] Add OnContainer script callback 8 years ago
David Cernat eba7d8408f [Server] Use script function to get spellbook action 8 years ago
David Cernat 182b238b5f [General] Rename WorldEvent into BaseEvent 8 years ago
David Cernat 04d45b9dbb [General] Rename packets to show they are for players only, not NPCs 8 years ago
David Cernat 6328ffb9aa [General] In ID_GAME_ATTRIBUTE & ID_GAME_SKILL, rename GAME into PLAYER 8 years ago
David Cernat 9130c1f302 [General] Rename ID_CONTAINER_ADD into ID_CONTAINER 8 years ago
David Cernat d2cf96af99 [General] Repurpose the unused ID_CONTAINER_REMOVE into ID_OBJECT_HEALTH 8 years ago
David Cernat f4a9f27977 [Server] Stop crashing browser when receiving a query from it 8 years ago
David Cernat c1427b2558 [General] Simultaneously send loads & unloads in ID_PLAYER_CELL_STATE 8 years ago
Koncord aed0651dc2 [Server] Some fixes for MasterClient 8 years ago
David Cernat 018b0e6699 [Server] Add script functions & callbacks for locking, unlocking & doors 8 years ago
David Cernat 958ff06ca8 [General] Rename ID_DOOR_ACTIVATE into ID_DOOR_STATE 8 years ago
David Cernat 5bd2fdcf66 [Server] Add OnObjectScale callback, and set scale for WorldObject 8 years ago
David Cernat 8c019f2c61 [Server] Update OnObjectPlace and OnObjectDelete callbacks 8 years ago
David Cernat 5eff2ece21 [Server] Fix memory leaks related to WorldEvents as suggested by Koncord 8 years ago
David Cernat b549da996e [Server] On second thought, keep cell description as argument to them 8 years ago
David Cernat 5989bbd97e [Server] Remove arguments from OnObjectPlace & OnObjectDelete callbacks 8 years ago
David Cernat 2cecce6c72 [Server] Use static WorldEvent variable in Networking 8 years ago
David Cernat 9f1e491a75 [General] Make WorldEvents store information about multiple objects 8 years ago
David Cernat 4f288ab558 [Server] Read contents of ID_PLAYER_CELL_STATE 8 years ago
David Cernat 96bd21a7ca [Server] Rename OnPlayerCellLoad to OnPlayerCellState, add action param 8 years ago
David Cernat 244da19a51 [General] Turn ID_PLAYER_CELL_LOAD into ID_PLAYER_CELL_STATE for clarity 8 years ago
David Cernat 73d39c1a0a [General] Stop using virtual functions in BasePlayer, part 2 8 years ago
David Cernat 63c8a98083 [General] Stop using virtual functions in BasePlayer 8 years ago
David Cernat c62a575a9e [Server] Change order of words in the names of script callbacks 8 years ago
David Cernat 1d9c6ddd81 [General] Add placeholders for the new packet ID_PLAYER_CELL_LOAD 8 years ago
David Cernat 25e535e8ad [Server] Fix integer types for new script callbacks 8 years ago
David Cernat f9feaf05f0 [Server] Add script callbacks for object placement and deletion 8 years ago
David Cernat 68727751ed Fix arguments for OnPlayerChangeSpellbook in server Networking 8 years ago
David Cernat 869b32383e Fix arguments for OnPlayerChangeJournal in server Networking 8 years ago
David Cernat e2c595fc5d Add preliminary structure for journal changes 8 years ago
David Cernat e9b22814b9 Create placeholder for ID_GAME_JOURNAL 8 years ago
David Cernat a69f294ef0 Rename ID_GAME_CELL into ID_PLAYER_CELL_CHANGE 8 years ago
David Cernat e7675d94d4 Make server script functions for spells consistent with those from items 8 years ago
David Cernat 33e85c54de Rename BasePlayer Inventory & Spellbook into PacketItems & PacketSpells
This avoids confusion when either of those is used to store and send a single item, and no longer requires coming up with confusing variable names like realSpellbook or realInventory for actual full spellbooks and inventories.
8 years ago
Koncord f510a5583f Move MasterClient to Networking class
Rename MOTD to hostname
8 years ago
Koncord b5c586d5b7 Add and implement ID_MASTER_QUERY 8 years ago
Koncord 97dd8704a3 Ignore ping packets 8 years ago
Koncord 7595b33461 Implement spellbook 8 years ago
Koncord af7b232789 Fix type mismatch 8 years ago
Koncord 0d9a4f2b6f Fix "Unhandled PlayerPacket with identifier 135" 8 years ago
Koncord f74734cfba Fix server crash if player is not fully connected 8 years ago
David Cernat 4e23fc0a5b Send action parameter to OnPlayerChangeSpellbook 8 years ago
David Cernat 9e290ad799 Fix spacing irregularities 8 years ago
David Cernat 95efb77e53 Implement sending of ID_GAME_SPELLBOOK from client 8 years ago
David Cernat 6ea5f08e9c Create placeholder for ID_GAME_SPELLBOOK 8 years ago
David Cernat ae39daf76a Add and implement ID_MUSIC_PLAY 8 years ago
Koncord 902e968fd9 Use RakNetGUID instead uint64_t in TPlayers 8 years ago
Koncord e2359b01ea Use constant instead magic value 8 years ago
Koncord e2522fa366 Simplify LOG macros 8 years ago
David Cernat ad43cb5473 Revert "Use lowerCamelCase in tes3mp server script function names, part 2"
This reverts commit 80d16fe1fd.
8 years ago
David Cernat 6cd959fac8 Rename BasePlayer's GetCell() into getCell() 8 years ago
David Cernat 80d16fe1fd Use lowerCamelCase in tes3mp server script function names, part 2 8 years ago
David Cernat 25dc2b19e7 Use lowerCamelCase in tes3mp server networking function names 8 years ago
David Cernat 7be86388db Fix build for server 8 years ago
Koncord 82f202c891 Implement GetAvgPing(pid) function 8 years ago
David Cernat 107dacac6d Add OnPlayerChangeInventory server script callback 8 years ago