aboutsummaryrefslogtreecommitdiff
path: root/builtin
AgeCommit message (Collapse)Author
2016-09-23Conf.example: Re-add deleted noise parameter documentationparamat
Re-add documentation of noise parameter formats. Re-add 'mgv5_np_ground' noise parameters in group format. Both these were deleted through auto-generation of conf.example. Add note to builtin/mainmenu/dlg_settings_advanced.lua that this documentation must be preserved.
2016-09-21Builtin: Change error to warning for light_source > 14paramat
2016-09-21Increase default font size by 1James Stevenson
2016-09-19Fix a typo and use proper deprecation notification systemest31
Fix a typo pointed out by @thecow275. Also, use the deprecated notification system which respects the deprecated_lua_api_handling setting.
2016-09-17Register.lua: Throw error if node 'light_source' > core.LIGHT_MAXparamat
Add 'core.LIGHT_MAX = 14' to builtin/game/constants.lua with the intention to replace misplaced 'default.LIGHT_MAX = 14' in Minetest Game. Add comment in light.h requiring the constant be changed in both places. Add lighting bug warning to note in lua_api.txt. There are hundreds of mod uses of 15 which causes a lighting bug.
2016-09-08Add minetest.unregister_item and minetest.register_alias_forcepaly2
2016-08-30Document keymap_autorun in settingtypes.txt and minetest.conf.example (#4486)Rui
2016-08-29Settingtypes.txt: Clarify comments, correct spellingred-001
2016-08-29Builtin: Disallow registering users with the same nameSmallJoker
Prevents duplicate names: 'NickName', 'nickname', 'NICKNAME'. Skips already registered users, so they can connect as usual.
2016-08-22Client: disable pre v25 init sending by defaultest31
Disable the ability to connect to old servers by default to improve password security. If people still want to connect to old (0.4.12 and earlier) servers, they can flip the send_pre_v25_init setting. Add the ability to detect if we've tried to connect to a server which only supports the pre v25 init protocol, and show an apropriate error message. Most times the error will already be catched at the serverlist level, the detection mechanism only acts as last resort, because the "Connection timed out" error message that would be shown otherwise would be very confusing. Automatic "fixing" of this condition is not desired, as it would allow for downgrade attacks. As already 161 of the 167 servers on the serverlist support the new srp based auth protocol (> 96%), the breakage should be minimal. Follow up of commit af30183124d40a969040d7de4b3a487feec466e4 "Add option to not send pre v25 init packet" Also change the pessimistic assumption of masterlist server versions to optimistic, in order to avoid buggy behaviour (favourites not in the serverlist would be denied to connect to, etc).
2016-08-22Move on join and on leave messages to lua (#4460)Xunto
2016-08-20Tidy up generate_from_settingtypes.lua a bit.Tim
* Multiline strings * Table-concat instead of String-concats * string.rep instead of loop-concat * string.format %q instead of manual quotation by gsub * Assert writeable files * Generate new settings_translation_file
2016-08-20Move generation from settingtypes out of dlg_settings_advancedTim
Avoids unreachable code linter warning by moving generation code (of minetest.conf.example and settings_translation_file.cpp) out of dlg_settings_advanced. Due to passing the settings, also it avoids reading the settings file twice. Instead of activating the code by changing the active if-clauses, its activation is now done by uncommenting the loadfile() statement.
2016-08-10Zooming the camera requires the 'zoom' privilegeBen Deutsch
2016-08-10Document zoom_fov in settingtypes.txt and minetest.conf.exampleBen Deutsch
2016-07-27Main menu, lua_api.txt: Fix mod/texture pack screenshot size issuesWuzzy
Recommend mod screenshot size in lua_api.txt Adjust displayed screenshot size of texture packs Document texture pack files in lua_api.txt
2016-07-26Builtin: Add core.MAP_BLOCKSIZE constantTim
2016-07-26Builtin: Fix check for a player object in core.check_player_privsTim
core.check_player_privs accepts as first argument a name or player object, but just tested for a string. This caused crashes inside builtin, when being passed any unexpected types. This provides a better (duck-typing like) test, better error reporting.
2016-07-12Builtin/profiler: Replace game profiler (#4245)Tim
Use the setting "profiler.load" to enable profiling. Other settings can be found in settingtypes.txt. * /profiler print [filter] - report statistics to in-game console * /profiler dump [filter] - report statistics to STDOUT and debug.txt * /profiler save [format [filter]] - saves statistics to a file in your worldpath * txt (default) - same treetable format as used by the dump and print commands * csv - ready for spreadsheet import * json - useful for adhoc D3 visualizations * json_pretty - line wrapped and intended json for humans * lua - serialized lua table of the profile-data, for adhoc scripts * /profiler reset - reset all gathered profile data. This can be helpful to discard of any startup measurements that often spike during loading or to get more useful min-values. [filter] allows limiting the output of the data via substring/pattern matching against the modname. Note: Serialized data structures might be subject to change with changed or added measurements. csv might be the most stable, due to flat structure. Changes to the previous version include: * Updated and extended API monitoring * Correct calculation of average (mean) values (undistorted by idleness) * Reduce instrumentation overhead. * Fix crashes related to missing parameters for the future and occasional DIV/0's. * Prevent issues caused by timetravel (overflow, timejump, NTP corrections) * Prevent modname clashes with internal names. * Measure each instrumentation individually and label based on registration order. * Labeling of ABM's and LBM's for easier classification. Giving several ABM's or LBM's the same label will treat them as one. Missing labels will be autogenerated based on name or registration order. * Configurable instrumentation and reporting. Skip e.g. builtin if you don't need it. * Profile the profiler to measure instrumentation overhead.
2016-07-05Remove cinematic toggle on F8rubenwardy
Also update cinematic mode's description to include mouse
2016-07-04Disable joysticks per default for nowest31
It seems that various different devices register as Joysticks on linux, and their presence has caused lots of confusion amongst minetest users. Therefore, disable the joystick feature. Closes #4261 Closes #4221
2016-06-28Only allow strings to be passed to minetest.global_exists (#4253)HybridDog
Sometimes you accidentally forget the quotes when using global_exists, this makes minetest abort if you did so. M builtin/common/strict.lua
2016-06-24Mgflat/fractal/v7/valleys: Denser 3D noise tunnelsparamat
Reduce spread from 96 to primes 61 and 67 (either side of 64) Prime spreads help to keep 3D noise periodic features unaligned 'cave width' 0.2 to preserve tunnel width Reduce octaves to 3 to improve network structure
2016-06-17Builtin/game/item: Add `place_param2` nodedef fieldAuke Kok
This allows a nodedef to specify a fixed value for param2 to be used for all normal placements. There are several uses for this: - nodes that require param2 to be set to a non-zero value for internal mod use. E.g. leafdecay could use this to detect that leaves are played by players. - force wallmounted or facedir value at placement at placement This overrides any player look direction or other on-the-fly param2 setting during placement.
2016-06-03Initial Gamepad supportest31
Adds initial ingame gamepad support to minetest. Full Formspec support is not implemented yet and can be added by a later change.
2016-05-31Add colored text (not only colored chat).Ekdohibs
Add documentation, move files to a proper place and avoid memory leaks. Make it work with most kind of texts, and allow backgrounds too.
2016-05-31Colored chat working as expected for both freetype and non-freetype builds. ↵TriBlade9
@nerzhul improvements * Add unit tests * Fix coding style * move guiChatConsole.hpp to client/
2016-05-30protection_bypass priv can now be revoked in singleplayer (#4169)Sokomine
2016-05-22Item entities: Don't show description as infotextparamat
Partially reverts #3547 Infotext remains optional for objects, empty by default
2016-05-17Add on_punchnode callbackWayward One
2016-05-16Documentation: Remove incorrect and excessive mapgen flags textparamat
2016-05-14Android: Re-add button to remove singleplayer worldest31
Fixes #4120.
2016-05-13Mainmenu: don't show change keys dialog on androidest31
The change keys dialog can't be left. It doesn't make much sense to show it on Android in the first place, therefore disable it, just like commit aed70cb0b652d6cb2272e7b94cd56671b3df6239 'Disable sound and key binding settings in "pause" menu on android' has disabled it for the esc menu. Fixes #4115.
2016-05-13Fix #4111 ("Provided world path doesn't exist" if choosing singleplayer on ↵Rui
first run") Bug and whitespace error fixed (Zeno)
2016-05-09Update credits tabest31
2016-05-01Mainmenu: Remove space under mod listRui
2016-04-28Mapgen: Make 3D noise tunnels' width settableparamat
Correct parameter names mg_valleys to mgvalleys Remove biome NoiseParams from MapgenValleysParams Improve format of parameter code
2016-04-29Avoid teleporting player if /teleport coords are out-of-rangetenplus1
2016-04-28Android menu: Unified serverlistkilbith
2016-04-28Builtin: Add basic_privs settingrubenwardy
2016-04-28Mainmenu: Standardize the menu button order and sizesSmallJoker
2016-04-22Fix mainmenu code downloading the public serverlist twice.Ekdohibs
Also, fix a nil error that can happen sometimes in menu_handle_key_up_down
2016-04-21Textures: Replace menu background fallback dirt_bg.png with empty sky textureparamat
2016-04-21Fix timer initialization.Auke Kok
This fixes the problem that the first timer tick is an overrun and causes all timers to expire immediately. replaces #4003
2016-04-20Mainmenu: Code cleaningkilbith
2016-04-20Mainmenu: Unify favorite servers with main serverlistkilbith
2016-04-20falling: walk 4 additional diagonally down directions.Auke Kok
This seems very little cost and matches the old behavior more closely. This will cause some more falling nodes to get added to falling clusters. With the efficiency of the algorithm, this really doesn't do much damage.
2016-04-15Mainmenu: Still support favorites if send_pre_v25_init is disabledest31
@SmallJoker has noted a bug that servers from the (local) main menu favorites list can't be opened. This commit fixes the bug by disabling any main menu based protocol checks for servers from the favorite list. Also, it fixes a second bug that happens when a server from the public serverlist doesn't send its supported protocol versions, most likely because its running a minetest older than commit [1]. Then we have shown an error msg that the server has enforced one specific protocol version. This was most likely not the case. Of course, we can't do anything better than do an assumption on the protocol versions if they are not known. That assumption should however be closest to the most often occuring case as possible. Also, some little cleanups. [1]: 5a0ed780f56a5225b3d7c5f64099586e390e5f39 "Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist"
2016-04-15mainmenu: Tidy up logic in is_server_protocol_compat() (#3997)SmallJoker
Apply de morgan to simplify the logic.
2016-04-14Add option to disable entity selectionboxes. (#3992)TriBlade9
Setting only loaded once, default value is to enable them.