Commit Graph
62 Commits
Author SHA1 Message Date
David Cernat afd4e6c201 [General] Handle clientside globals using new ClientScriptGlobal packet 2020-01-04 09:58:14 +02:00
David Cernat 686c6ff54c [General] Add OnObjectHit event, adjusting packetReader accordingly 2019-12-08 16:16:13 +02:00
David Cernat 82917c95a5 [General] Add OnConsoleCommand event, adjusting packetReader accordingly 2019-12-07 10:37:47 +02:00
David Cernat 2f6376ff58 [General] Combine repetitive OnObject events into OnGenericObjectEvent 2019-11-21 15:01:58 +02:00
David Cernat fa8e3aa2f4 Add 0.7.0 commits up to 27 Oct 2019
# Conflicts:
#	scripts/eventHandler.lua
2019-11-12 19:11:31 +02:00
David Cernat 56bd48eb17 [General] Run pid-based timer events only on players with same name
Move handling of OnLoginTimeExpiration to eventHandler.

Place timer events at bottom of serverCore and eventHandler.
2019-10-11 13:45:06 +03:00
David Cernat dea45a9913 [ServerCore] Remove adminsCounter that never made any sense 2019-10-10 05:47:32 +03:00
David Cernat 4ae3b7e24d [General] Add maxClientsPerIP setting to configuration
Move player disconnection message to eventHandler.

Clarify wording in the description for the config's nightStartHour and nightEndHour.
2019-10-09 09:29:37 +03:00
David Cernat 0ca388d550 [General] Implement saving/loading/syncing for clientside global shorts 2019-09-19 15:03:55 +03:00
David Cernat 857b4c4b86 [General] Add clientVariableScopes file for categorizing clientside vars 2019-09-19 14:05:32 +03:00
David Cernat e3ae39c575 [General] Change version to 0.7.1 2019-07-17 13:42:05 +03:00
JakobCh 35e9e59891 Started moving the default commands over to use the customCommandHooks
That way you can esaly remove/replace the default commands without touching the corescripts
2019-06-05 22:46:53 +02:00
David Cernat 2638b94bf0 [ServerCore] Remove spammy debug left over from testing 25f1c70daf 2019-05-05 14:34:35 +03:00
David Cernat 25f1c70daf [General] Use different timescales for day and night 2019-05-01 01:19:35 +03:00
David Cernat 6cbaf2b517 [General] Refer to data files instead of plugins in var & function names 2019-04-23 23:52:33 +03:00
David Cernat 5e32375c0e [General] Load up enumerations near top of serverCore 2019-04-14 19:45:47 +03:00
David Cernat 24ea3fa69f [ServerCore] Load up utils before anything else
This allows utils functions to be used in jsonInterface.
2019-04-14 19:33:17 +03:00
David CernatandGitHub 6ef6b53eca Merge branch '0.7.0' into fix-log-levels 2019-03-24 01:52:02 +02:00
David Cernat a1cbd7385e [General] Update function & var names for a couple of ServerFunctions 2019-03-19 04:06:49 +02:00
uramer f688cc6249 [customEventHooks] clean up some of the events triggers using improper eventStatus 2019-03-15 22:27:27 +01:00
David Cernat 078b7df22a [General] Split off speeechCollections into their own file
Load up the Morrowind speech collections only if Morrowind.esm is present in the data files required from clients.
2019-03-12 06:16:32 +02:00
David Cernat f0a5bfa909 [ServerCore] Fix spacing 2019-03-12 05:29:02 +02:00
David Cernat eb579846b8 [ServerCore] Keep track of required client data files in clientDataFiles 2019-03-12 04:16:35 +02:00
David Cernat 51c553920d [ServerCore] Add handling of OnServerScriptCrash event
Additionally, fix value of eventStatus passed to customEventHooks in OnServerExit.
2019-03-12 02:19:48 +02:00
David Cernat 046f5c32d7 [ServerCore] Rename error argument into errorState in OnServerExit() 2019-03-12 01:56:33 +02:00
David Cernat 7ae3900d3b [General] Refer to client "plugins" as data files instead
Rename pluginlist.json into requiredDataFiles.json
2019-03-11 09:36:08 +02:00
uramer 4610263d2c Add customCommandHandler 2019-03-06 13:41:46 +01:00
uramer 8898ca55af rename plugins.lua into customScripts.lua 2019-03-06 13:40:59 +01:00
uramer 1a4a13cebc [customEventHooks] Add customEventHooks to handle custom scripts in a uniform way 2019-03-06 13:19:19 +01:00
Kirbs_AU 3dce6c8918 Adjusted logging levels of a handful of """warnings"""
They probably shouldn't be warnings in the first place. For example:
"Reading pluginlist.json". Is this really a warning?
2019-01-21 22:32:42 +11:00
David Cernat 44fa209682 [General] Reduce stack overflow errors by not saving World in timer 2019-01-11 11:09:27 +02:00
David Cernat a72103540b [General] Rework jsonInterface so it uses io on Linux & io2 on Windows 2018-12-17 14:01:14 +02:00
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