| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
| |
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
|
| |
|
|
|
|
|
| |
* LuaItemStack: Add __tostring metamethod
* Clean up LuaItemStack::checkobject
|
| |
|
| |
|
|
|
|
|
| |
Incorrect parameter types are logged as errors, taking coercion into account.
This is a workaround to ensure mod compatibility.
Duplicate warnings are ignored per server instance.
|
| |
|
| |
|
|
|
|
|
|
| |
Replace on_auth_fail callback with more versatile on_authplayer
Better clarify account login process in Lua API documentation
Change initial timestamp for newly registered accounts to -1
|
| |
|
| |
|
| |
|
|
|
|
| |
Change biomemap data type from u8 to u16.
New technical (not practical) maximum is 65535 biomes.
|
|
|
|
| |
fixes #9884
|
|
|
|
| |
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
|
| |
|
|
|
| |
closes #9857
|
|
|
| |
Adds a new object property "damage_texture_modifier"
|
|
|
|
|
|
|
| |
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles.
Add "off state" textures to the builtin statbars.
Co-authored-by: SmallJoker <mk939@ymail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Server::overrideDayNightRatio doesn't require to return bool
There is no sense to sending null player, the caller should send a valid object
* Server::init: make private & cleanup
This function is always called before start() and loads some variables which can be loaded in constructor directly.
Make it private and call it directly in start
* Split Server inventory responsibility to a dedicated object
This splits permit to found various historical issues:
* duplicate lookups on player connection
* sending inventory to non related player when a player connects
* non friendly lookups on detached inventories ownership
This reduce the detached inventory complexity and also increased the
lookup performance in a quite interesting way for servers with thousands
of inventories.
|
|
|
|
| |
closes #9787
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* Auto delete MetaData when = 0
|
| |
|
|
|
|
|
|
| |
(#9739)
fixes #9352
This reverts commit 23c907befea02005e2c0c87fca0131b60aace18a.
|
| |
|
| |
|
|
|
| |
Fixes #9761
|
|
|
|
| |
* Script: Enforce type checks if not nil
|
| |
|
| |
|
|
|
|
| |
* Add server side translations capability
|
|
|
|
|
|
| |
* Fix configuration caching in log_deprecated
The configured variable was never set to true.
I've set the variables to thread_local because the configuration should be reloaded after reentering the world from mainmenu.
|
|
|
| |
fixes #9632
|
|
|
| |
see also 91eef646a59575bd9ae792e257bb6ad12fafc0b1
|
|
|
|
|
|
|
|
|
| |
* Optimize getObjectsInsideRadius calls
our previous implementation calls the ActiveObjectMgr to return ids and then lookup those ids in the same map and test each object
Instead now we call the global map to return the pointers directly and we ask filtering when building the list using lamba.
This drop double looping over ranges of active objects (and then filtered one) and drop x lookups on the map regarding the first call results
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
ServerEnvironment is a huge class with many accessors. In various places it's not needed
Remove it to reduce the ServerEnvironment view.
Idea here is to reduce size of some of our objects to transport lightweight managers and permit easier testing
Pathfinder is now tied to a generic map, not a ServerMap, it can be
ported to client
|
|
|
|
|
|
|
| |
Move LuaEntitySAO to a new dedicated file
Drop TestSAO (useless object)
Drop the old static startup initialized SAO factory, which was pretty useless.
This factory was using a std::map for 2 elements, now just use a simple condition owned by ServerEnvironment, which will be lightweight, that will also drop a one time useful test on each LuaEntitySAO creation. This should reduce server load on massive SAO creation
|
| |
|