Commit Graph
30 Commits
Author SHA1 Message Date
David Cernat d64ed7d566 [General] Add config.ignoreScriptErrors option 2018-12-01 03:05:24 +02:00
David Cernat 1aa6baa9d8 [General] Include plugin list debug in server log 2018-11-20 22:04:41 +02:00
David Cernat 90bbdb6b56 [General] Allow plugins with no hashes again
This fixes an oversight in f8b2827109
2018-11-20 21:45:25 +02:00
David Cernat 402b8eb2d0 [General] Handle OnPlayerSendMessage like other events 2018-11-08 22:33:46 +02:00
Koncord f8b2827109 [General] Rework OnRequestPluginList callback. Change format of pluginlist.json 2018-10-30 15:14:33 +08:00
Koncord ca88b84ead [General] Kick player in the OnPlayerConnect callback 2018-10-30 15:14:33 +08:00
Koncord fe513a2cd6 [General] Add default OnPlayerMessage handler 2018-10-30 15:14:33 +08:00
David Cernat 8d1dfe5aaf [General] Remove unnecessary spaces 2018-10-22 09:16:09 +03:00
David Cernat 46698c1d18 [General] Shorten long lines 2018-09-21 04:16:48 +03:00
David Cernat 4dc340480e [General] Change code style by using "not" operator whenever possible 2018-09-21 03:14:24 +03:00
David Cernat 1c3e9ac808 [General] Clean up logging by using easily adjustable log level values 2018-09-08 19:11:27 +03:00
David Cernat 9cd5dc8556 [General] Implement dynamic records, part 2
Records are now split into 2 categories: permanent records and generated records.

Permanent records are kept forever once created and are sent to all players when they join the server.

Generated records are linked to players, cells or other records, are deleted once those links disappear, and are only sent to players who encounter them. For instance, if a player creates hundreds of potions in a house and then drops the potions there, those potion records will only be sent to players who enter that house. If the potions are drunk and there are no longer any instances of them, their associated records are deleted.

By default, permanent records are created by using the /createrecord command after specifically setting an ID for the record about to be created.

Generated records are created through regular gameplay or by using the /createrecord command without specifying an ID for the record.
2018-08-30 03:32:58 +03:00
David Cernat c3f4f771cc [General] Rename guiIds into guiHelper 2018-08-27 22:35:19 +03:00
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