Commit Graph
84 Commits
Author SHA1 Message Date
RickoffandGitHub c4d563994a add consoleCommandsQueued for each object (#126) 2023-03-18 12:43:32 +02:00
RickoffandDavid Cernat 16881b9efe consoleCommandsQueued for players if not forEveryone 2023-03-17 21:29:31 +02:00
David Cernat 6da3fdea59 [General] Track server-sent console command executions
Allow console commands executions from clients that have been requested by the server.

Kick clients using console commands they are not supposed to be able to use.
2022-05-04 00:24:17 +03:00
David Cernat 3d4921559e [LogicHandler] Remove Console packet workaround that isn't needed now 2022-05-03 19:02:08 +03:00
MattandGitHub bcbd8561a8 Declared unloadCellAtEnd (#117)
Declared unloadCellAtEnd for logicHandler.DeleteObject
2022-05-02 03:16:43 +03:00
David Cernat 14d7382e1e [General] Use different priority levels for config.recordStoreLoadOrder
Cell records are now loaded before all other records, when players first connect to the server, fixing a problem where players couldn't see other players who were present in custom cells before the records for those custom cells had been sent.
2022-04-23 17:27:42 +02:00
David Cernat 2238282afb [General] Add factionExpulsion category for clientVariableScopes
As for the previous "faction" category, it is now named factionRanks.
2022-04-06 20:31:33 +03:00
David Cernat 5b242a516f Revert "add scale in createObject (#106)"
This reverts commit 58fa94e838.

Rickoff's changes did not work as intended by him, because the condition he added for sending ObjectScale packets was never true due to it relying on an uninitialized variable. It's better to just handle object scales in a different function anyway.

# Conflicts:
#	scripts/dataTableBuilder.lua
2022-03-22 00:07:09 +02:00
RickoffandGitHub 58fa94e838 add scale in createObject (#106)
* add scale in createObject

* Update logicHandler.lua

* Update dataTableBuilder.lua
2022-02-16 14:33:02 +02:00
NkfreeandGitHub fdf5b3f966 Customize logicHandler.CreateObjects functions to take into account object's properties such as count, charge (if the packetType is equal to "place") (#97)
logicHandler.CreateObjectsAtPlayer and logicHandler.CreateObjectAtLocation both take objectData table instead of plain refId.

objectData can be built using added method BuildObjectData in dataTableBuilder.lua

This way any amount of say gold can be spawned easily.

For backwards compatibility it's possible to replace argument refId in either logicHandler.CreateObjectAtPlayer or logicHandler.CreateObjectAtLocation with dataTableBuilder.BuildObjectData(refId)
2022-02-09 22:49:42 +02:00
Boyos999andGitHub 251c76cc8c Fix uniqueIndex returned from CreateObjectAtPlayer (#96) 2022-02-09 08:46:37 +02:00
David Cernat 3098db6559 [LogicHandler] Make global IDs lowercase in SendClientScriptSettings() 2021-10-04 18:36:07 +02:00
David Cernat fa4abfc29a [LogicHandler] Trigger OnWorldReload event handler when world is reloaded 2021-07-22 08:57:09 +02:00
David Cernat 95c814df5d [LogicHandler] Clean up TeleportToPlayer() and PrintPlayerPosition() 2021-01-17 14:46:11 +02:00
David Cernat dd89e00ced [General] Implement /resetcell command 2020-08-17 14:01:47 +02:00
David Cernat 3c2d315953 [General] Print names of the client scripts sending Object packets 2020-07-27 09:31:42 +02:00
David Cernat 6fc6e596b9 [General] Start saving core World data to coreVariables.json 2020-07-11 09:05:57 +02:00
David Cernat 853f72fc43 Merge branch '0.7.0' into 0.7.1 2020-01-28 19:39:20 +02:00
David Cernat b5f370e5d5 [LogicHandler] Use correct check for whether players can use console
Previously, a player with a consoleAllowed of "default" was mistakenly returning true for that check.
2019-12-09 22:19:14 +02:00
David Cernat 89aad80cff [LogicHandler] Add GetChatNames() function 2019-12-08 15:41:00 +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 e755e2466a [General] Implement config option for disabling clientside scripts 2019-11-12 17:37:59 +02:00
David Cernat 943bb7f463 [LogicHandler] Use players' account names in banlist, not display names 2019-10-27 21:30:14 +02: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 ebafac002e [General] Implement config.synchronizedClientScriptIds 2019-09-09 10:32:35 +03:00
David Cernat 0748e43d9a [LogicHandler] Add CreateObjects() method for creating multiple objects 2019-06-17 22:55:41 +03:00
David Cernat 567150ded5 [LogicHandler] Add GetRecordTypeByRecordId() method 2019-06-17 22:06:28 +03:00
nalalandGitHub 201c8e0e3c fixed spacing to conform with existing code 2019-06-05 15:22:57 -06:00
nalalandGitHub e3cbe1f45e Added nil check to AuthCheck
Had a recent crash regarding AuthCheck and a nil player, may be fringe but seems possible to trigger when player receives data after logging out
2019-06-05 14:48:12 -06:00
David Cernat eb8171eb0b [General] Ensure data structure for record stores 2019-05-11 16:40:01 +03:00
David Cernat 96595c116c [General] Change ToDisk() & FromDisk() into ToDrive() & FromDrive() 2019-04-21 00:54:46 +03:00
David Cernat 3eedd96248 [General] Use the quicker saving method for most objects in most cases
As of now, only players and cells still use the slower saving method, and only when disconnecting or being fully unloaded respectively.

Additionally, rename the Save() and Load() methods into SaveToDisk() and LoadFromDisk() to reduce ambiguity and prevent them from being used all the time by new scripters.
2019-04-14 23:49:03 +03:00
David Cernat 5e32375c0e [General] Load up enumerations near top of serverCore 2019-04-14 19:45:47 +03:00
uramer 8e0480a4ea fix a crash when kicking unlogged players 2019-04-10 18:24:22 +02:00
JakobCh 429c0b0d34 Added another nil check to logicHandler.GetChatName 2019-04-07 09:26:26 +02:00
David Cernat d513b0483f [LogicHandler] Include pid argument in RunConsoleCommandOnObjects() 2019-02-24 20:27:33 +02:00
David Cernat 714193ea99 [LogicHandler] Use workaround for cell when running console on objects 2019-02-22 07:29:37 +02:00
David Cernat f3495803b9 [LogicHandler] Fix typo in RunConsoleCommandOnObjects() 2019-02-20 21:18:57 +02:00
David Cernat 6198ca4695 [LogicHandler] Add RunConsoleCommandOnObjects() method
Rework the previous RunConsoleCommandOnObject() so it calls the new method.
2019-02-13 05:51:47 +02:00
David Cernat 91852dde13 [LogicHandler] Make RunConsoleCommandOnObject args consistent w/ others 2019-02-03 03:55:16 +02:00
David Cernat a2aabd7032 [LogicHandler] Rename cell to cellDescription in CreateObjectAtLocation
This makes it clear that the argument is a string instead of a BaseCell.
2019-01-13 09:39:10 +02:00
David Cernat 82596057e9 [General] Make cell JSON loading consistent with player JSON loading
Previously, Lua's io library was being used to load cell files, which doesn't work for filenames containing Unicode characters on Windows. By letting jsonInterface handle the loading, a different library can be used there.

Additionally, use clearer debug messages for both cell and player file creation.
2018-12-17 09:34:36 +02:00
David Cernat 5ee62dbf30 [General] Use clearer debug messages for cell creation and loading 2018-12-17 02:30:10 +02:00
David Cernat b9bbf48e7f [LogicHandler] Only use config.disallowedNameStrings if it's valid
There have been people unfamiliar with Lua who have tried to disable the name filter by removing config.disallowedNameStrings altogether. This will accommodate them.
2018-11-22 12:38:52 +02:00
David Cernat 680fc5eaa9 [LogicHandler] Allow packets about unloaded cells from local scripts 2018-10-27 02:59:21 +03:00
David Cernat 24a1be0518 [LogicHandler] Remove unused variables in packet origin functions 2018-10-25 22:30:51 +03:00
David Cernat 3518ce124e [General] Rework object deletion methods in LogicHandler 2018-10-22 17:14:26 +03:00
David Cernat 8856b10cdd [LogicHandler] Add ActivateObjectForPlayer() method
This is now possible after TES3MP/openmw-tes3mp@99f8ef88a5
2018-10-22 16:27:43 +03:00
David Cernat 8d1dfe5aaf [General] Remove unnecessary spaces 2018-10-22 09:16:09 +03:00