oweals/minetest.git
6 years agoAdd minetest issue template (#6936)
Loïc Blot [Sat, 20 Jan 2018 22:31:15 +0000 (23:31 +0100)]
Add minetest issue template (#6936)

* Add minetest issue template

This permits end user to have a basic template permitting to do issue triage and for users to know what we expect.

6 years agoGame refactor [4/X]: keycache is now owned by InputHandler
Loic Blot [Sat, 13 Jan 2018 09:54:18 +0000 (10:54 +0100)]
Game refactor [4/X]: keycache is now owned by InputHandler

* Make InputHandler own the key cache
* Add a helper function InputHandler::cancelPressed to avoid multiple similar calls in game.cpp
* Move RandomInputHandler::step definition into cpp file

6 years agoGame refactor [3/X]: Move keycache to inputhandler
Loic Blot [Sat, 13 Jan 2018 09:40:25 +0000 (10:40 +0100)]
Game refactor [3/X]: Move keycache to inputhandler

6 years agoGame refactor [2/X]: Various moves (profilergraph, nodePlacementPrediction, create_f...
Loic Blot [Sat, 13 Jan 2018 09:34:56 +0000 (10:34 +0100)]
Game refactor [2/X]:  Various moves (profilergraph, nodePlacementPrediction, create_formspec_menu)

* Move profilergraph to dedicated files
* Move nodePlacementPrediction to Game class
* Rename create_formspec_menu to GUIFormSpecMenu::create

6 years agoGame/Input refactor [1/X]: make RealInputHandler handle joystick inputs with standard...
Loic Blot [Sat, 6 Jan 2018 10:34:03 +0000 (11:34 +0100)]
Game/Input refactor [1/X]: make RealInputHandler handle joystick inputs with standard input

Joystick input is a RealInputHandler only usage, make it intelligent and handle the joystick with keyboard direct.
This permits to remove many getters in game which should be owned by RealInputHandler

6 years ago[CSM] Add basic HUD manipulation. (#6067)
red-001 [Sat, 20 Jan 2018 13:09:58 +0000 (13:09 +0000)]
[CSM] Add basic HUD manipulation. (#6067)

* [CSM] Add basic HUD manipulation.

Workaround for on_connect not working right now.

6 years agoBiomes: Add 'get heat', 'get humidity', 'get biome data' APIs
paramat [Fri, 22 Sep 2017 11:38:55 +0000 (12:38 +0100)]
Biomes: Add 'get heat', 'get humidity', 'get biome data' APIs

'get biome data' returns biome id, heat and humidity.
Clean up nearby lines in lua_api.txt.

6 years agoLoad a texturepack from the 'textures' subfolder of a game
red-001 [Fri, 23 Jun 2017 00:51:57 +0000 (01:51 +0100)]
Load a texturepack from the 'textures' subfolder of a game

6 years agoLua_api.txt: Various improvements
paramat [Mon, 15 Jan 2018 03:34:03 +0000 (03:34 +0000)]
Lua_api.txt: Various improvements

Improve documentation for formspec 'position' and 'anchor' elements.
Add missing documentation of 'animation' and 'glow' for particle spawners.

6 years agoMapgen folder: Update and improve copyright information of files
paramat [Mon, 15 Jan 2018 02:26:15 +0000 (02:26 +0000)]
Mapgen folder: Update and improve copyright information of files

6 years agoLua_api.txt: Improve bullet point indentation consistency
ezhh [Sat, 13 Jan 2018 17:25:01 +0000 (17:25 +0000)]
Lua_api.txt: Improve bullet point indentation consistency

6 years agoRegistration confirmation dialog: Fix grammar
Muhammad Rifqi Priyo Susanto [Sat, 13 Jan 2018 15:32:05 +0000 (22:32 +0700)]
Registration confirmation dialog: Fix grammar

Fixes commit 792752997c5ae2aaa4f54d0a2e2af2a96d7d1e9f.

6 years agoLua_api.txt: Add chat command params info
ezhh [Sat, 13 Jan 2018 03:42:07 +0000 (03:42 +0000)]
Lua_api.txt: Add chat command params info

6 years agoAdd confirmation on new player registration (#6849)
Muhammad Rifqi Priyo Susanto [Sat, 13 Jan 2018 11:07:16 +0000 (18:07 +0700)]
Add confirmation on new player registration (#6849)

* Attempt to add registration confirmation

Using SRP auth mechanism, if server sent AUTH_MECHANISM_FIRST_SRP that means the player isn't exist.
Also tell player about the server and chosen username.
Local game has localhost as IP address of the server.
Add RenderingEngine::draw_menu_scene() to draw GUI and clouds background.
aborted -> connection_aborted

* Rewrite information message text

Client::promptConfirmRegister() -> Client::promptConfirmRegistration()

6 years agoRevert "Add an active object step time budget #6721"
Lars Hofhansl [Sat, 13 Jan 2018 07:47:39 +0000 (23:47 -0800)]
Revert "Add an active object step time budget #6721"

This reverts commit 9c669016d1578a5c62f932c6ccb7a2b4b1e21f0a.
See #6907

6 years agoAdd a build step to test non freetype builds (#6908)
Loïc Blot [Fri, 12 Jan 2018 14:36:54 +0000 (15:36 +0100)]
Add a build step to test non freetype builds (#6908)

* Add a build step to test non freetype builds

6 years agoForget to fix non freetype build in StaticText
Loic Blot [Fri, 12 Jan 2018 07:36:38 +0000 (08:36 +0100)]
Forget to fix non freetype build in StaticText

6 years agoLua_api.txt: Fix, improve and add to Object Properties documentation
paramat [Fri, 12 Jan 2018 01:15:51 +0000 (01:15 +0000)]
Lua_api.txt: Fix, improve and add to Object Properties documentation

Correct 'automatic rotate' to be a number instead of a bool.

6 years agoLua_api.txt: Improve and complete ABM documentation
paramat [Fri, 12 Jan 2018 00:32:55 +0000 (00:32 +0000)]
Lua_api.txt: Improve and complete ABM documentation

Document 'active object count (wider)'.

6 years agoSettingtypes.txt: Correct value of 'max block send distance'
paramat [Thu, 11 Jan 2018 23:50:35 +0000 (23:50 +0000)]
Settingtypes.txt: Correct value of 'max block send distance'

6 years agoFix ambient occlusion and dark lines at mapblock borders
number Zero [Mon, 25 Dec 2017 20:51:48 +0000 (23:51 +0300)]
Fix ambient occlusion and dark lines at mapblock borders

6 years agoFix off-by-one in log output line length (#6896)
Pedro Gimeno [Tue, 9 Jan 2018 18:07:14 +0000 (19:07 +0100)]
Fix off-by-one in log output line length (#6896)

6 years agoFix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()
Pedro Gimeno [Mon, 8 Jan 2018 20:32:15 +0000 (21:32 +0100)]
Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()

6 years agoLua API docs: Add warning that schematic placing is cached 6898/head
Sokomine [Sun, 7 Jan 2018 10:47:52 +0000 (11:47 +0100)]
Lua API docs: Add warning that schematic placing is cached

6 years agoFix naming conventions of noise userdata
rubenwardy [Sun, 7 Jan 2018 01:06:18 +0000 (01:06 +0000)]
Fix naming conventions of noise userdata

6 years agoDon't recalculate statustext initial color everytime & review fixes
Loic Blot [Fri, 5 Jan 2018 18:39:06 +0000 (19:39 +0100)]
Don't recalculate statustext initial color everytime & review fixes

6 years agoGameUI refactor (part 7/7): Finish to include profiler things to GameUI
Loic Blot [Thu, 4 Jan 2018 22:58:46 +0000 (23:58 +0100)]
GameUI refactor (part 7/7): Finish to include profiler things to GameUI

Other changes:
* Add GameUI clarification comment
* Move force_fog_off & disable_camera_update flags from GameUI to Game, it's not UI related
* Properly init GameUI::Flags
* Move toggleChat toggleHud & toggleProfiler to GameUI
* Add gameui.cpp to LINT whitelist

6 years agoGameUI refactor (part 6/X): Move Game::guitext_profiler & showStatusTextSimple to...
Loic Blot [Thu, 4 Jan 2018 22:32:32 +0000 (23:32 +0100)]
GameUI refactor (part 6/X): Move Game::guitext_profiler & showStatusTextSimple to GameUI class

Other enhancements:
* Move showStatusTextSimple to GameUI class & rename to showTranslatedStatusText

6 years agoGameUI refactor (part 5/X): Move Game::guitext_chat to GameUI class
Loic Blot [Thu, 4 Jan 2018 22:04:40 +0000 (23:04 +0100)]
GameUI refactor (part 5/X): Move Game::guitext_chat to GameUI class

Other enhancements:
* Move update_profiler_gui to Game class
* Move updateChat to Game class

6 years agoGameUI refactor (part 4/X): Move Game::guitext_status, Game::m_statustext, GameRunDat...
Loic Blot [Thu, 4 Jan 2018 20:35:26 +0000 (21:35 +0100)]
GameUI refactor (part 4/X): Move Game::guitext_status, Game::m_statustext, GameRunData::statustext_time to GameUI class

Other enhancements:
* Simplify setStatusText to showStatusText, as it shows the label too (preventing almost every setStatusText to call setStatusTextTime(0)
* Add unittests

6 years agoGameUI refactor (part 3/X): Move Game::guitext2, Game::guitext_info, Game::infotext...
Loic Blot [Thu, 4 Jan 2018 18:52:40 +0000 (19:52 +0100)]
GameUI refactor (part 3/X): Move Game::guitext2, Game::guitext_info, Game::infotext to GameUI class

Other enhancements:
* Drop unused GameRunData::time_of_day
* Little GameUI::update code path optimizations

6 years agoGameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on StaticText
Loic Blot [Wed, 3 Jan 2018 16:28:57 +0000 (17:28 +0100)]
GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on StaticText

Other enhancements:
* C++ friendlyness for addStaticText() -> move to static StaticText::add()

6 years agoGameUI refactor (part 1/X): GameUI object creation + GameUIFlags move to GameUI
Loic Blot [Wed, 3 Jan 2018 13:28:55 +0000 (14:28 +0100)]
GameUI refactor (part 1/X): GameUI object creation + GameUIFlags move to GameUI

Game class is too huge and has too specialization on various subjects, like UI, formspecs, client, renderer. Start to move UI related things to GameUI object and cleanup them

Other improvements:
* updateChat: more performance on error messages by remove string copies
* Initialize all game class members in definition instead of constructor (with nullptr instead of NULL)
* Drop unused Client::show{GameChat,GameHud,Profiler,GameFog}
* Add GameUI unittests

6 years agoBiomes: Add vertical biome blend (#6853)
Paramat [Thu, 4 Jan 2018 23:10:55 +0000 (23:10 +0000)]
Biomes: Add vertical biome blend (#6853)

Add 'vertical blend' parameter to biome registration that defines how
many nodes above the biome's 'y max' limit the blend will extend.

6 years agoPrevent Android from automatically locking display (#6876)
Wayward One [Thu, 4 Jan 2018 20:18:18 +0000 (15:18 -0500)]
Prevent Android from automatically locking display (#6876)

As mentioned in #5759

6 years agoFix Wstringop-overflow warning from util/srp.cpp (#6855)
you [Thu, 4 Jan 2018 13:25:20 +0000 (14:25 +0100)]
Fix Wstringop-overflow warning from util/srp.cpp (#6855)

* Fix Wstringop-overflow warning from util/srp.cpp

6 years ago[CSM] Don't load the IO library. (#6087)
red-001 [Thu, 4 Jan 2018 07:21:12 +0000 (07:21 +0000)]
[CSM] Don't load the IO library. (#6087)

* [CSM] Don't load the IO library.

* Rename the function to match the Lua API function name and add a missing `const`

* Add a comment to explain some strange code and fix the other issues pointed out by shadowninja.

6 years agoMgv7: Add docs for the new floatland exponent parameter
paramat [Thu, 4 Jan 2018 00:41:36 +0000 (00:41 +0000)]
Mgv7: Add docs for the new floatland exponent parameter

6 years agoFix crash on can_bypass_userlimit returning non-boolean
rubenwardy [Wed, 3 Jan 2018 14:18:13 +0000 (14:18 +0000)]
Fix crash on can_bypass_userlimit returning non-boolean

6 years agoMgv7 floatlands: Add exponent parameter
paramat [Sun, 24 Dec 2017 22:38:35 +0000 (22:38 +0000)]
Mgv7 floatlands: Add exponent parameter

Allows more control over shape of floatland mountain terrain.
Terrain shape is unchanged.

6 years agoConnected Nodeboxes: Add `disconnected` boxes
Thomas--S [Sat, 22 Apr 2017 19:17:46 +0000 (21:17 +0200)]
Connected Nodeboxes: Add `disconnected` boxes

The `disconnected_*` boxes are the opposites of the `connect_*` ones,
i.e. when a node has no suitable neighbours on the respective side, the
according disconnected box is drawn.

* disconnected_top
* disconnected_bottom
* disconnected_front
* disconnected_left
* disconnected_back
* disconnected_right
* disconnected (when there is *no* neighbour)
* disconnected_sides (when there are *no* neighbours to the sides)

6 years agoTool.cpp/.h, lua_api/l_util.cpp: Tidy up code and remove dead code
Hybrid Dog [Mon, 10 Apr 2017 18:03:53 +0000 (20:03 +0200)]
Tool.cpp/.h, lua_api/l_util.cpp: Tidy up code and remove dead code

6 years agoTool getDigParams: Fix selecting the best fitting time
Hybrid Dog [Wed, 19 Apr 2017 18:55:47 +0000 (20:55 +0200)]
Tool getDigParams: Fix selecting the best fitting time

Previously, time was compared with result_time before dividing it by
the level difference.

6 years agoAdd unittests on ActiveObject and BanManager class (#6866)
Loïc Blot [Mon, 1 Jan 2018 17:48:52 +0000 (18:48 +0100)]
Add unittests on ActiveObject and BanManager class (#6866)

* Add unittests on ActiveObject and BanManager class

This also permit to fix a bug in ban manager setting bans modified when no modification occurs

6 years agoUpdate README.md copyright notice too
Loïc Blot [Mon, 1 Jan 2018 16:17:31 +0000 (17:17 +0100)]
Update README.md copyright notice too

6 years agoHappy new year 2018: update LICENSE.txt
Loïc Blot [Mon, 1 Jan 2018 16:13:37 +0000 (17:13 +0100)]
Happy new year 2018: update LICENSE.txt

6 years agoAdvanced settings: Add range check for float type 6863/head
Muhammad Rifqi Priyo Susanto [Mon, 25 Dec 2017 15:11:27 +0000 (22:11 +0700)]
Advanced settings: Add range check for float type

6 years agoFix rounding error in g/set_node caused by truncation to float
rubenwardy [Fri, 22 Dec 2017 10:00:57 +0000 (10:00 +0000)]
Fix rounding error in g/set_node caused by truncation to float

6 years agoAdd check to pause game on lost window focus
rubenwardy [Sun, 10 Sep 2017 02:17:47 +0000 (03:17 +0100)]
Add check to pause game on lost window focus

6 years agoLine_of_sight: Improve using VoxelLineIterator
Dániel Juhász [Thu, 1 Dec 2016 19:15:37 +0000 (20:15 +0100)]
Line_of_sight: Improve using VoxelLineIterator

This commit rewrites line_of_sight with VoxelLineIterator.
Stepsize is no longer needed, the results will be always accurate.

6 years agoWireshark plugin: Complete all commands. (#6841)
sofar [Tue, 26 Dec 2017 13:06:31 +0000 (05:06 -0800)]
Wireshark plugin: Complete all commands. (#6841)

This still leaves plenty of data undecoded, but just having the packet
types all covered 100% for 0.4.16 will make looking at traces a lot
simpler than seeing half the packets show up as unknown.

6 years agoFix dancing text
number Zero [Sun, 24 Dec 2017 21:54:43 +0000 (00:54 +0300)]
Fix dancing text

6 years ago- Clear colors when reading property info.
Rob Blanckaert [Sun, 22 Oct 2017 18:41:57 +0000 (11:41 -0700)]
- Clear colors when reading property info.
- Set vertex colors on upright_sprites.

6 years agoFix error if setting menu_last_game is not a valid game
nOOb3167 [Fri, 22 Dec 2017 10:35:06 +0000 (11:35 +0100)]
Fix error if setting menu_last_game is not a valid game

6 years agoFix undefined behaviour on getting pointer to data in empty vector
nOOb3167 [Fri, 22 Dec 2017 10:33:46 +0000 (11:33 +0100)]
Fix undefined behaviour on getting pointer to data in empty vector

`&vector[0]` is undefined if vector.empty(), causing build failure on MSVC

6 years agoFix wrong scrolling (#6809)
Vitaliy [Thu, 21 Dec 2017 19:58:06 +0000 (22:58 +0300)]
Fix wrong scrolling (#6809)

6 years agoVector functions: Fix vector.direction() function, improve documentation (#6801)
Paramat [Thu, 21 Dec 2017 19:57:42 +0000 (19:57 +0000)]
Vector functions: Fix vector.direction() function, improve documentation (#6801)

vector.direction() now returns a normalised vector with direction p1 to p2.

6 years agoAllow 'default' parameter in 'settings:get_bool' function
Jordan Irwin [Sun, 17 Dec 2017 15:27:37 +0000 (07:27 -0800)]
Allow 'default' parameter in 'settings:get_bool' function

Default value is used when the setting key is not found in the config
file. If default value is not set, 'nil' is returned.

#6188

6 years agoAdjust default console height
Ezhh [Sun, 17 Dec 2017 04:38:54 +0000 (04:38 +0000)]
Adjust default console height

#6797

6 years agoGive subgames the ability to disallow specific mapgens (#6792)
Ezhh [Sat, 16 Dec 2017 16:02:08 +0000 (16:02 +0000)]
Give subgames the ability to disallow specific mapgens (#6792)

6 years agoFix items turning black (#6780)
Vitaliy [Sat, 16 Dec 2017 16:01:37 +0000 (19:01 +0300)]
Fix items turning black (#6780)

6 years agoChange Normal Map setting to be less ambigous
Tre [Sat, 16 Dec 2017 04:05:36 +0000 (22:05 -0600)]
Change Normal Map setting to be less ambigous

6 years agoZoom: Add 'disabled by game or mod' message
paramat [Tue, 12 Dec 2017 09:47:43 +0000 (09:47 +0000)]
Zoom: Add 'disabled by game or mod' message

6 years agoMinimap messages: Improve 'disabled by server' message
paramat [Mon, 11 Dec 2017 11:45:02 +0000 (11:45 +0000)]
Minimap messages: Improve 'disabled by server' message

6 years agoAdd callback to preserve node metadata as item metadata
ashtrayoz [Thu, 9 Nov 2017 12:29:04 +0000 (23:29 +1100)]
Add callback to preserve node metadata as item metadata

6 years agoChat: Remove prompt history duplicates (#6762)
SmallJoker [Thu, 14 Dec 2017 18:47:29 +0000 (19:47 +0100)]
Chat: Remove prompt history duplicates (#6762)

6 years agodirectiontables: Fix MSVC compiler error (#6785)
adrido [Thu, 14 Dec 2017 18:46:42 +0000 (19:46 +0100)]
directiontables: Fix MSVC compiler error (#6785)

6 years agoUpdate light decoding table size (#6696)
Vitaliy [Tue, 12 Dec 2017 18:29:55 +0000 (21:29 +0300)]
Update light decoding table size (#6696)

Fix old undiminish_light bug

6 years agoBuiltin: Fix handle_node_drops crash with nil digger
SmallJoker [Tue, 12 Dec 2017 18:19:04 +0000 (19:19 +0100)]
Builtin: Fix handle_node_drops crash with nil digger

6 years agoCSM fixes: load mods after flavours & add flavour to block mod loading (#6738)
Loïc Blot [Mon, 11 Dec 2017 16:33:44 +0000 (17:33 +0100)]
CSM fixes: load mods after flavours & add flavour to block mod loading (#6738)

* CSM fixes: load mods after flavours & add flavour to block mod loading

* Don't permit to load mods twice

* Prepare builtin integrity global algorithm

* Add missing doc & use a nicer byteflag for LOAD_CLIENT_MODS flavour

* flag typo fix

* Invert CSM_FL_LOOKUP_NODES & CSM_FL_LOAD_CLIENT_MODS ids

6 years agoLua_api.txt: Fix a spelling error
ashtrayoz [Sun, 10 Dec 2017 12:56:01 +0000 (23:56 +1100)]
Lua_api.txt: Fix a spelling error

6 years agoF5 debug info: Add colons, use lowercase except for FPS and RTT
ThomasMonroe314 [Tue, 28 Nov 2017 13:25:41 +0000 (07:25 -0600)]
F5 debug info: Add colons, use lowercase except for FPS and RTT

6 years agoDamage: Remove damage ignore timer
SmallJoker [Sun, 13 Aug 2017 07:49:29 +0000 (09:49 +0200)]
Damage: Remove damage ignore timer

6 years agoUse std::vector instead of dynamic C-Array (#6744)
adrido [Sun, 10 Dec 2017 08:07:24 +0000 (09:07 +0100)]
Use std::vector instead of dynamic C-Array (#6744)

6 years agoPointed thing to face pos: Use 'eye height' object property (#6754)
Paramat [Sat, 9 Dec 2017 13:30:26 +0000 (13:30 +0000)]
Pointed thing to face pos: Use 'eye height' object property (#6754)

6 years agoAdd an active object step time budget #6721
Lars Hofhansl [Wed, 6 Dec 2017 20:21:46 +0000 (12:21 -0800)]
Add an active object step time budget #6721

This can be set via the active_object_interval option.

6 years agoAdd coloured logs (#4549)
you [Wed, 6 Dec 2017 17:50:39 +0000 (18:50 +0100)]
Add coloured logs (#4549)

The setting log_colour can be used to en-/disable or autodetect it.

6 years agoAuth handler: Player deletion & Iterator (#6741)
sfan5 [Wed, 6 Dec 2017 16:32:49 +0000 (17:32 +0100)]
Auth handler: Player deletion & Iterator (#6741)

* Add player deletion method to auth handler (fixes #6653)
* Support iterating over the auth database

There was no way to do this previously and a recent commit
broke doing this the "hacky" way by accessing `core.auth_table`.

6 years agoEnsure no item stack is being held before crafting (#4779)
Luis Cáceres [Wed, 6 Dec 2017 16:32:05 +0000 (16:32 +0000)]
Ensure no item stack is being held before crafting (#4779)

6 years agoUse Irrlicht's mesh cache for animated meshes.
Lars Hofhansl [Tue, 5 Dec 2017 06:25:09 +0000 (22:25 -0800)]
Use Irrlicht's mesh cache for animated meshes.

Fixes #6676.
Allow animated meshes to be cached in Irrlicht's builtin mesh cache.
Use Material.EmmissiveColor instead of manipulating the mesh' vertex colors.

6 years agoZoom: Set zoom FOV per-player using a player object property 6080/head
paramat [Mon, 20 Nov 2017 01:45:57 +0000 (01:45 +0000)]
Zoom: Set zoom FOV per-player using a player object property

Remove player object property 'can zoom'.
Add player object property 'zoom fov'.
Remove clientside setting for 'zoom fov'.
Object property default is 15 degrees in creative mode, zoom disabled
in survival mode.

Needed due to zoom now loading and/or generating distant world
according to zoom FOV.

Update object properties serialisation version to 3.

6 years agoAndroid: Update build system for ndk-r15x
stujones11 [Wed, 15 Nov 2017 19:52:19 +0000 (19:52 +0000)]
Android: Update build system for ndk-r15x

Add workarounds for ndk-r16.

6 years agoDocument extended meaning of active_object_send_range_blocks setting.
Lars Hofhansl [Mon, 4 Dec 2017 01:56:39 +0000 (17:56 -0800)]
Document extended meaning of active_object_send_range_blocks setting.

6 years agoOptionally extend the active object in a players camera direction.
Lars Hofhansl [Mon, 4 Dec 2017 01:51:58 +0000 (17:51 -0800)]
Optionally extend the active object in a players camera direction.

See #6667

By setting active_object_send_range_blocks > active_block_range a server admin
can allow clients to retrieve active objects futher out from the player at
relatively low cost to the server
(only objects in the players' view cone are considered).

6 years agoShut down mapgen threads before other shutdown tasks (#6689)
raymoo [Sun, 3 Dec 2017 09:28:35 +0000 (01:28 -0800)]
Shut down mapgen threads before other shutdown tasks (#6689)

Solves some issues with ModStorage functionality in mapgen threads
that occurred when mapgen threads continued to run after the main
server thread had stopped. Also shuts down mapgen threads before
shutdown callbacks are called.

6 years agoUpdate documentation regarding authentication handler and related functions
sfan5 [Mon, 27 Nov 2017 17:00:30 +0000 (18:00 +0100)]
Update documentation regarding authentication handler and related functions

Properly document it instead of referencing the builtin handler as
authoritative "example" code.
Also adds definition of get_auth_handler() which was missing previously.

6 years agoMake core.auth_table private and structure builtin/auth.lua
sfan5 [Mon, 27 Nov 2017 16:37:41 +0000 (17:37 +0100)]
Make core.auth_table private and structure builtin/auth.lua

If you give modders the ability to do something, they will...

6 years agoLua_api.txt: Remove MT version, fix spelling and clean up
ezhh [Thu, 30 Nov 2017 00:52:40 +0000 (00:52 +0000)]
Lua_api.txt: Remove MT version, fix spelling and clean up

Removes references to MT version in intro section.
Update bump_version.sh to no longer manage version information.

6 years agoCAO/SAO: Nicer velocity-controlled, interpolated rotation property:
SmallJoker [Sun, 26 Nov 2017 14:37:55 +0000 (15:37 +0100)]
CAO/SAO: Nicer velocity-controlled, interpolated rotation property:

'automatic_face_movement_max_rotation_per_sec'.
Rotate towards the smaller angle.

6 years agoTurn off verbose info message introduced accidentally with ae9b1aa
Lars Hofhansl [Thu, 30 Nov 2017 06:55:37 +0000 (22:55 -0800)]
Turn off verbose info message introduced accidentally with ae9b1aa

6 years agoFix spelling mistakes in client_lua_api.txt
Bluebird [Wed, 29 Nov 2017 02:24:40 +0000 (20:24 -0600)]
Fix spelling mistakes in client_lua_api.txt

6 years agoClient lua api documentation: .md -> .txt
paramat [Tue, 28 Nov 2017 23:22:49 +0000 (23:22 +0000)]
Client lua api documentation: .md -> .txt

For consistency, and for much improved access on Github.

On Github:
.md disables being able to link to a line, needed daily when
quickly referring people to particular lines.
Search returns results in .md files, but you cannot then click
the line number to go to that line in the document, making searching
difficult.
Line numbers are not displayed for .md documents.

6 years agoFix lua_api.txt indentation issues
ezhh [Tue, 28 Nov 2017 22:20:12 +0000 (22:20 +0000)]
Fix lua_api.txt indentation issues

6 years agoFix documentation formatting for on_death callback
Ezhh [Tue, 28 Nov 2017 00:38:35 +0000 (00:38 +0000)]
Fix documentation formatting for on_death callback

6 years agoF5 Debug info: More compact, return to 2 lines
paramat [Sat, 25 Nov 2017 02:47:02 +0000 (02:47 +0000)]
F5 Debug info: More compact, return to 2 lines

All data fits on width 960, most useful data still visible on width 800.

6 years agoHint at problematic code when logging deprecated calls
sfan5 [Thu, 23 Nov 2017 22:35:52 +0000 (23:35 +0100)]
Hint at problematic code when logging deprecated calls

6 years agoLight curve: Add and tune mid boost gaussian
paramat [Sat, 18 Nov 2017 00:22:15 +0000 (00:22 +0000)]
Light curve: Add and tune mid boost gaussian

Create a closer match to the light curve of 0.4.16 stable.
Results in darker shadows while maintaining the 'brightness' and light
spread.

6 years agoImprove documentation for player:set_attribute()
Ezhh [Sat, 25 Nov 2017 23:18:50 +0000 (23:18 +0000)]
Improve documentation for player:set_attribute()

6 years agoFix misspellings
gituser2194 [Fri, 24 Nov 2017 00:26:40 +0000 (19:26 -0500)]
Fix misspellings

"diffferent" to "different"
"occuring" to "occurring"
"determin" to "determine"
"ommited" to "omitted"
"authetification" to "authentication"
"conponent" to "component"
"ommitted" to "omitted"
"celcius" to "Celsius"
"succesful" to "successful"

Misspellings found using GNU Spell version 1.0

6 years agoInventory: Restrict access from too far away
SmallJoker [Wed, 22 Nov 2017 18:25:26 +0000 (19:25 +0100)]
Inventory: Restrict access from too far away