Commit Graph
17 Commits
Author SHA1 Message Date
David Cernat 2142b14968 [General] Log chat names instead of pids for players whenever possible 2018-08-26 07:55:53 +03:00
David Cernat 3174c9ed17 [General] Log triggering of PlayerEquipment and PlayerInventory events 2018-08-26 07:50:08 +03:00
David Cernat 857248e57d [General] Reuse disallowedNameStrings for custom item names
Players are not just prevented from using certain strings in their own names, but also prevented from using them in the names of the items they create through regular gameplay.

logicHandler's IsPlayedNameAllowed method has been renamed into IsNameAllowed to reflect the change.
2018-08-12 03:27:57 +03:00
David Cernat b891ba098c [General] Add basic handling of OnPlayerItemUse event 2018-08-09 18:26:04 +03:00
David Cernat 999ac67cb8 [General] Add config option for coloring Admin and Mod denoters in chat
Change the order of requires in serverCore so that colors are loaded before the config.

Update wording in logicHandler.CreateObjectAtLocation() description so it refers to an object list instead of an event.
2018-08-05 20:56:30 +03:00
David Cernat 426187a171 [General] Implement dynamic records, part 1
A new RecordStore class has been implemented, used for saving and loading spell, potion, enchantment, creature, NPC, armor, book, clothing, miscellaneous and weapon record data, as well as accompanying magical effects (for spells, potions and enchantments), inventory items (for creatures and NPCs) and body parts (for armor and clothing). RecordStore data is kept in the new data/recordstore folder.

The OnRecordDynamic event has been implemented in eventHandler, with records received from players first being saved to their associated RecordStores, then being forwarded to players with their new server-set ids, and finally having their associated items added to the players they were received from.

Utility methods for getting and loading RecordStores have been added to logicHandler.

The commands /storerecord and /createrecord have been implemented for on-the-fly record creation.

The help menu has been expanded with examples for creating records.

All records are currently "global", i.e. when players join the server, they receive all the records created on it. This is a temporary, flawed approach that will be replaced with the correct approach in part 2.
2018-07-31 17:46:29 +03:00
David Cernat 27af81bb34 [General] Implement weather sync and setting of region authorities 2018-07-21 05:34:25 +03:00
David Cernat 00ee9a0d63 [General] Move player disconnect logic from serverCore to eventHandler
Additionally, stop running OnPlayerCellChange on the disconnected player, and simply run individual state saving functions.
2018-07-18 00:32:18 +03:00
David Cernat 0a2eeca2fb [General] Switch to using OnWorldKillCount instead of OnPlayerKillCount
Additionally, fix a typo in BaseCell:ProcessObjectsActivated()
2018-07-15 05:36:26 +03:00
David Cernat 3bd0c98cab [General] Add handling of ObjectActivate packets 2018-07-15 03:16:58 +03:00
David Cernat 2e9e2427ec [General] Increase priority of event debug 2018-07-15 03:00:16 +03:00
David Cernat f27fed7048 [General] Move all handling of player-sent messages to eventHandler 2018-07-14 21:59:20 +03:00
David Cernat 25e2a86c77 [General] Synchronize ActorAI packets received from clients 2018-07-13 01:26:27 +03:00
David Cernat 781b9961e3 [General] Change pre-rewrite version to 0.7.0 2018-07-11 20:24:56 +03:00
David Cernat 5ff3d2f0a1 [General] Rename remaining logic-handling myMod into logicHandller 2018-07-11 03:23:21 +03:00
David Cernat 6b6635db40 [General] Move event-handling from myMod to new eventHandler file 2018-07-11 03:00:08 +03:00
David Cernat f1321753f0 [General] Rename server.lua into serverCore.lua 2018-07-11 02:53:07 +03:00