David Cernat
a3e2ab4d4e
[Server] Send correct packet for inventory changes
7 years ago
David Cernat
4cc0216e0a
[Server] Send cell changes before position changes, and prioritize both
...
Previously, a script changing a player's cell and position at the same time would end up sending a position packet first and then a cell change packet that overrode the former, with the player ending up at the center of the destination cell instead of at the correct position.
7 years ago
David Cernat
80be664139
[Server] Fix skill-related script functions
...
Add getSkillIncrease() and setSkillIncrease() script functions to get and set the attribute bonuses received at the next level up as a result of skill increases.
Previously, getSkill() and setSkill() attempted to return and set the attribute bonuses, respectively. However, they mistakenly used a skill ID as a parameter for the attribute bonuses, when in fact npcStats.mSkillIncrease is an integer array of size 8 where the key stands for an attribute's ID. As a result, setSkill() had the unexpected side effect of messing up a player's major and minor skills because of the invalid values it was setting for npcStats.mSkillIncreases.
7 years ago
David Cernat
57a0415ba3
[Server] Send level packets in Player's update() at the appropriate time
...
Previously, trying to send a level packet after base info and character class packets in a script actually led to the level packet being sent first and then being overridden by the others, with the player ending up at level 1 on their client.
7 years ago
David Cernat
494b10b97e
[Server] Send player packets in a more appropriate order
...
Previously, the fact that a character class packet got sent after a dynamic stats packet caused the dynamic stats to get overridden on the client by the class change.
7 years ago
David Cernat
ba161ddddd
[Server] Make a few function names more consistent and fix typos
7 years ago
David Cernat
1272b03f25
[Server] Fix typo in player script function
7 years ago
David Cernat
926106cf8c
[General] Rework CharGen slightly for clarity purposes
...
Previously, charGenStage.end was doing double duty as both the variable indicating the number of CharGen stages and – when set to 0 – the variable indicating that CharGen was over. The latter role is now filled by a new boolean.
7 years ago
David Cernat
a8261bb385
[General] Fix printing of packet identifiers after changes to logger
7 years ago
Koncord
64b531aa3c
[Server] Remove redundant argument
7 years ago
Koncord
d15c674584
[General] Move getFilenameTimestamp() to Utils
7 years ago
Koncord
0da44f69ad
[Server] Isolate getModFolder() & getDataFolder()
7 years ago
Koncord
062d6a1824
[Server] Add sandboxed import() function
7 years ago
David Cernat
29cb51cdce
[Server] Enable SOL_SAFE_USERTYPE for both Debug and RelWithDebInfo
7 years ago
Koncord
bd7082f57e
[Server] Use custom Lua error handler not only on Windows
...
For some reason sol's default error handler does not wroking properly
7 years ago
David Cernat
71c921faa7
[Server] Rename property cell into description, initialize Cells type
7 years ago
David Cernat
5653d07c7b
[Server] Fix build on Windows
7 years ago
Koncord
948090676a
[Server] Impove Lua Error handler for Windows
7 years ago
David Cernat
b7e5e77166
[Server] Fix getCaseInsensitiveFilename, simplify Players.size()
7 years ago
David Cernat
378d30834b
[Server] Add special error handler for Sol back in, but only for Windows
7 years ago
Koncord
14d47213ef
[Server] Add Players.size() to Lua API
7 years ago
Koncord
e7a5919477
[Server] Fix path to native libs
7 years ago
Koncord
1aa630e4a9
[Server] Add StackWalker for Windows
7 years ago
Koncord
14fdec2478
[Server] Add forgotten stacktrace.cpp
7 years ago
David Cernat
878294e4fe
Merge branch 'new-script-api' of https://github.com/TES3MP/openmw-tes3mp into new-script-api
7 years ago
Koncord
d44848ecbb
[Server] Fix build
7 years ago
Koncord
05abb8ace3
[Server] Add Log level constants to lua
7 years ago
Koncord
04a844a9c0
[Server] Use sol's default_handler
7 years ago
Koncord
dad0b38f25
[Server] Add custom terminate handler with stacktrace
7 years ago
Koncord
a3d5fbbdcd
[Server] Add stacktrace
7 years ago
Koncord
916ada108f
[General] Modernize Log utility
...
* Reverse Log levels
* Add LOG_TRACE
* Spawn instance of Log in Get() function
7 years ago
David Cernat
bece095579
[Server] Add getCaseInsensitiveFilename script function back in
7 years ago
David Cernat
76a4abd7c0
Merge pull request #325 from TES3MP/master while resolving conflicts
...
# Conflicts:
# apps/openmw-mp/processors/player/ProcessorPlayerTopic.hpp
7 years ago
David Cernat
a94d4ce6f5
Merge pull request #323 from TES3MP/0.6.1
...
Add hotfix commit for 0.6.1 from 23 Oct 2017
7 years ago
David Cernat
3aedc2e5bc
[Server] Don't automatically share PlayerTopic packets between players
7 years ago
David Cernat
fb67180809
[Server] Fix build in Visual Studio
7 years ago
Koncord
4530370e52
[Server] Use old style of Server Plugins location
7 years ago
Koncord
ce6a4e4032
[Server] Fix indents
7 years ago
Koncord
fc3f2483ee
[Server] Add manual Server Plugins sort
7 years ago
Koncord
dffd3bfa7d
[Server] Add customData to Player
...
example:
counter = 0
Event.register(Events.ON_PLAYER_CONNECT, function(player)
player.customData.counter = counter
counter = counter + 1
return true
end)
CommandController.registerCommand("test", function(player, args)
player:message(player.customData.counter, false)
return true
end, "")
7 years ago
Koncord
7a0b45d456
[Server] Load mods in dependencies order
7 years ago
David Cernat
bbac26294f
[Server] Fix typos and make all files end with newlines
7 years ago
Koncord
62588ce088
[Server] Minor fixes
7 years ago
David Cernat
fe9a3088bd
Merge pull request #312 from TES3MP/master
...
Add master commits up to 10 Oct 2017
7 years ago
David Cernat
ec2c964ae1
Merge pull request #311 from TES3MP/0.6.1
...
Add hotfix commit for 0.6.1 from 10 Oct 2017
7 years ago
David Cernat
f532ab241d
[Server] Avoid duplicates of the same player in a cell's loaders
7 years ago
David Cernat
4845599bda
Merge pull request #308 from TES3MP/master while resolving conflicts
...
# Conflicts:
# apps/openmw-mp/main.cpp
7 years ago
David Cernat
3d38da0e85
[Server] Put includes in a specific order
7 years ago
David Cernat
61b1a59814
[General] Move server's version printing method to Utils
7 years ago
Koncord
cbabc91b06
[Server] Stop MasterClient thread and inform server owner on ban
7 years ago