David Cernat
010a80ceca
[Server] Place getters and setters in consistent order
2017-11-19 11:34:03 +02:00
David Cernat
947b3f76be
[Server] Replace Player's isMale() and setIsMale() with gender property
...
For simplicity and clarity.
2017-11-19 11:06:35 +02:00
David Cernat
6f822f54aa
[Server] Make chat commands case insensitive
2017-11-19 10:12:35 +02:00
David Cernat
a3e2ab4d4e
[Server] Send correct packet for inventory changes
2017-11-19 04:24:54 +02:00
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.
2017-11-19 00:59:32 +02:00
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.
2017-11-18 10:02:52 +02:00
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.
2017-11-18 03:55:17 +02:00
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.
2017-11-18 01:47:18 +02:00
David Cernat
ba161ddddd
[Server] Make a few function names more consistent and fix typos
2017-11-17 04:12:25 +02:00
David Cernat
1272b03f25
[Server] Fix typo in player script function
2017-11-13 07:43:20 +02:00
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.
2017-11-13 05:33:27 +02:00
David Cernat
a8261bb385
[General] Fix printing of packet identifiers after changes to logger
2017-11-12 02:36:18 +02:00
Koncord
64b531aa3c
[Server] Remove redundant argument
2017-11-07 06:37:09 +08:00
Koncord
d15c674584
[General] Move getFilenameTimestamp() to Utils
2017-11-07 05:33:10 +08:00
Koncord
0da44f69ad
[Server] Isolate getModFolder() & getDataFolder()
2017-11-03 06:36:35 +08:00
Koncord
062d6a1824
[Server] Add sandboxed import() function
2017-11-03 06:36:35 +08:00
David Cernat
29cb51cdce
[Server] Enable SOL_SAFE_USERTYPE for both Debug and RelWithDebInfo
2017-11-01 18:09:25 +02:00
Koncord
bd7082f57e
[Server] Use custom Lua error handler not only on Windows
...
For some reason sol's default error handler does not wroking properly
2017-11-01 21:48:42 +08:00
David Cernat
71c921faa7
[Server] Rename property cell into description, initialize Cells type
2017-11-01 13:22:41 +02:00
David Cernat
5653d07c7b
[Server] Fix build on Windows
2017-10-31 22:00:03 +02:00
Koncord
948090676a
[Server] Impove Lua Error handler for Windows
2017-11-01 01:17:11 +08:00
David Cernat
b7e5e77166
[Server] Fix getCaseInsensitiveFilename, simplify Players.size()
2017-10-28 03:58:53 +03:00
David Cernat
378d30834b
[Server] Add special error handler for Sol back in, but only for Windows
2017-10-28 01:44:02 +03:00
Koncord
14d47213ef
[Server] Add Players.size() to Lua API
2017-10-28 02:34:45 +08:00
Koncord
e7a5919477
[Server] Fix path to native libs
2017-10-27 20:58:02 +08:00
Koncord
1aa630e4a9
[Server] Add StackWalker for Windows
2017-10-27 05:27:07 +08:00
Koncord
14fdec2478
[Server] Add forgotten stacktrace.cpp
2017-10-26 23:24:35 +08:00
David Cernat
878294e4fe
Merge branch 'new-script-api' of https://github.com/TES3MP/openmw-tes3mp into new-script-api
2017-10-26 17:25:53 +03:00
Koncord
d44848ecbb
[Server] Fix build
2017-10-25 16:05:45 +08:00
Koncord
05abb8ace3
[Server] Add Log level constants to lua
2017-10-25 15:22:07 +08:00
Koncord
04a844a9c0
[Server] Use sol's default_handler
2017-10-25 15:21:11 +08:00
Koncord
dad0b38f25
[Server] Add custom terminate handler with stacktrace
2017-10-25 14:45:36 +08:00
Koncord
a3d5fbbdcd
[Server] Add stacktrace
2017-10-25 14:45:36 +08:00
Koncord
916ada108f
[General] Modernize Log utility
...
* Reverse Log levels
* Add LOG_TRACE
* Spawn instance of Log in Get() function
2017-10-25 14:45:36 +08:00
David Cernat
bece095579
[Server] Add getCaseInsensitiveFilename script function back in
2017-10-24 20:25:02 +03:00
David Cernat
76a4abd7c0
Merge pull request #325 from TES3MP/master while resolving conflicts
...
# Conflicts:
# apps/openmw-mp/processors/player/ProcessorPlayerTopic.hpp
2017-10-24 19:45:11 +03:00
David Cernat
a94d4ce6f5
Merge pull request #323 from TES3MP/0.6.1
...
Add hotfix commit for 0.6.1 from 23 Oct 2017
2017-10-24 19:34:34 +03:00
David Cernat
3aedc2e5bc
[Server] Don't automatically share PlayerTopic packets between players
2017-10-23 19:39:35 +03:00
David Cernat
fb67180809
[Server] Fix build in Visual Studio
2017-10-19 13:04:37 +03:00
Koncord
4530370e52
[Server] Use old style of Server Plugins location
2017-10-19 11:55:49 +08:00
Koncord
ce6a4e4032
[Server] Fix indents
2017-10-19 10:26:03 +08:00
Koncord
fc3f2483ee
[Server] Add manual Server Plugins sort
2017-10-19 10:24:17 +08:00
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, "")
2017-10-18 22:32:03 +08:00
Koncord
7a0b45d456
[Server] Load mods in dependencies order
2017-10-18 21:30:36 +08:00
David Cernat
bbac26294f
[Server] Fix typos and make all files end with newlines
2017-10-17 07:44:10 +03:00
Koncord
62588ce088
[Server] Minor fixes
2017-10-11 06:26:09 +08:00
David Cernat
fe9a3088bd
Merge pull request #312 from TES3MP/master
...
Add master commits up to 10 Oct 2017
2017-10-10 06:27:35 +03:00
David Cernat
ec2c964ae1
Merge pull request #311 from TES3MP/0.6.1
...
Add hotfix commit for 0.6.1 from 10 Oct 2017
2017-10-10 06:26:33 +03:00
David Cernat
f532ab241d
[Server] Avoid duplicates of the same player in a cell's loaders
2017-10-10 05:48:56 +03:00
David Cernat
4845599bda
Merge pull request #308 from TES3MP/master while resolving conflicts
...
# Conflicts:
# apps/openmw-mp/main.cpp
2017-10-08 06:50:15 +03:00