openmw-tes3coop/apps/openmw/mwmp
David Cernat b57807407a [General] Implement RecordDynamic packet, part 1
Spell, potion, enchantment, creature, NPC, armor, book, clothing, miscellaneous and weapon record data can now be sent in a RecordDynamic packet. Additionally, the packets include data related to associated magical effects (for spells, potions and enchantments), data related to default inventory contents (for creatures and NPCs) and data related to body parts affected (for armor and clothing).

The server now has associated script functions for setting most of the details of the above, with the main exception being individual creature and NPC stats.

Records can either be created entirely from scratch or can use an existing record (set via the baseId variable) as a starting point for their values. In the latter case, only the values that are specifically set override the starting values. Creature and NPC records also have an inventoryBaseId that can be used on top of the baseId to base their inventories on another existing record.

The client's RecordHelper class has been heavily expanded to allow for the above mentioned functionality.

When players create spells, potions and enchantments as part of regular gameplay, they send RecordDynamic packets that provide the server with the complete details of the records that should be created. When they create enchantments, they also provide the server with armor, book, clothing and weapon records corresponding to the items they've enchanted.

This functionality added by this packet was originally supposed to be exclusive to the rewrite, but I've gone ahead and tried to provide it for the pre-rewrite in a way that can mostly be reused for the rewrite.
2018-07-30 10:56:26 +03:00
..
GUI [Client] Clean up GUIChat slightly 2018-01-05 00:03:05 +02:00
processors [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
ActorList.cpp [Client] Simplify sending of ActorAI packets for uninitialized actors 2018-07-14 01:00:27 +03:00
ActorList.hpp [Client] Simplify sending of ActorAI packets for uninitialized actors 2018-07-14 01:00:27 +03:00
Cell.cpp [Client] Use verbose logging level for LocalActor debug 2018-07-23 22:11:59 +03:00
Cell.hpp [Client] Add ActorList methods for sending ActorAI packets 2018-07-12 20:48:47 +03:00
CellController.cpp [General] Rename all instances of refNumIndex into refNum 2018-07-13 04:12:03 +03:00
CellController.hpp [General] Rename all instances of refNumIndex into refNum 2018-07-13 04:12:03 +03:00
DedicatedActor.cpp [Cllient] Differentiate itemPtr from actor Ptr in DedicatedActor methods 2018-07-21 10:16:51 +03:00
DedicatedActor.hpp [Client] Add ActorList methods for sending ActorAI packets 2018-07-12 20:48:47 +03:00
DedicatedPlayer.cpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
DedicatedPlayer.hpp [General] Reimplement weather synchronization to allow soft transitions 2018-07-21 05:20:26 +03:00
GUIController.cpp [Client] Split up creation of DedicatedPlayers into multiple methods 2018-04-08 10:56:33 +03:00
GUIController.hpp [Client] Unequip items if necessary when attr/skill modifier is set to 0 2018-01-26 00:45:39 +02:00
LocalActor.cpp [Client] Use verbose logging level for LocalActor debug 2018-07-23 22:11:59 +03:00
LocalActor.hpp [General] Implement ActorDeath packet, part 1 2018-06-27 21:47:55 +03:00
LocalPlayer.cpp [General] Sync soul refIds for items and add related script functions 2018-07-26 22:37:04 +03:00
LocalPlayer.hpp [General] Remove custom data from PlayerSpellbook packet 2018-07-24 20:58:55 +03:00
Main.cpp [Client] Avoid sending CellStates to server after initialization 2018-05-01 18:19:52 +03:00
Main.hpp [Client] Convert MechanicsHelper to namespace 2017-06-27 16:43:53 +08:00
MechanicsHelper.cpp [Client] Set packetOrigin for all ObjectList packets sent 2018-07-23 01:39:43 +03:00
MechanicsHelper.hpp [Client] Add new methods for handling mwmp::Target in MechanicsHelper 2018-07-05 16:36:52 +03:00
Networking.cpp Merge pull request #450 from TES3MP/0.6.2 2018-06-19 05:26:38 +03:00
Networking.hpp [Client] Create Worldstate class that inherits BaseWorldstate 2018-05-27 15:57:47 +03:00
ObjectList.cpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
ObjectList.hpp [General] Implement ObjectActivate packet & associated script functions 2018-07-15 03:16:04 +03:00
PlayerList.cpp [General] Rename all instances of refNumIndex into refNum 2018-07-13 04:12:03 +03:00
PlayerList.hpp [Client] Streamline creation of references for DedicatedPlayers 2018-04-08 15:02:43 +03:00
RecordHelper.cpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
RecordHelper.hpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
ScriptController.cpp [Client] Add ScriptController w/ contextType-to-packetOrigin method 2018-07-23 00:48:23 +03:00
ScriptController.hpp [Client] Add ScriptController w/ contextType-to-packetOrigin method 2018-07-23 00:48:23 +03:00
Worldstate.cpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00
Worldstate.hpp [General] Implement RecordDynamic packet, part 1 2018-07-30 10:56:26 +03:00