aboutsummaryrefslogtreecommitdiff
path: root/builtin
AgeCommit message (Collapse)Author
2016-02-21Restore simple settings tab and add advanced settings as dialogBlockMen
2016-02-11Documentation: Remove now unused 'vertical spawn range'paramat
2016-02-11Initialize facedir and wallmounted tables only once.Diego Martinez
This makes the functions a bit faster since they don't have to recreate the tables every invocation, and makes the code more readable. Also, document `wallmounted_to_dir`. The function was implemented but not documented in `lua_api.txt`.
2016-02-11Log /clearobjects modeKahrl
2016-02-11Add '/clearobjects quick'Kahrl
2016-02-09Filmic HDR tone mappingRealBadAngel
2016-02-08Cleanup selection mesh code, add shaders for halo and selection boxesRealBadAngel
2016-02-08builtin: Fix `print` crashing on nil "holes".Diego Martinez
The engine implementation of `print` packs the varargs into a table and passes the table directly to `table.concat`. If you pass any value not supported by `table.concat` (particularly `nil`), the server crashes. This is unexpected behavior, as `print` is supposed to be able to work with anything. This patch changes the implementation so it first converts all arguments using `tostring`, which fixes the issue and makes the custom `print` function compatible with the stock Lua behavior.
2016-02-07Use meshes to display inventory itemsRealBadAngel
2016-02-04Add admin command which says who the administator is for the server.Splizard
2016-01-31Mgvalleys: use standard cavesDuane Robertson
Replace simple caves with V5 caves, adding unpredictable water and lava settings and massive caves based on subterrain. Remove fast terrain mode and accompanying settings. Remove superfluous temperature/humidity settings. Remove lava/water height setting. Fix errors in humidity handling and remove humidity_break_point setting. Move cave noises to generateCaves. Fix minor formatting/naming issues and use MYMAX/MYMIN/myround.
2016-01-29New timer design.Auke Kok
I could honestly not make much sense of the timer implementation that was here. Instead I've implemented the type of timer algorithm that I've used before, and tested it instead. The concept is extremely simple: all timers are put in an ordered list. We check every server tick if any of the timers have elapsed, and execute the function associated with this timer. We know that many timers by themselves cause new timers to be added to this list, so we iterate *backwards* over the timer list. This means that new timers being added while timers are being executed, can never be executed in the same function pass, as they are always appended to the table *after* the end of the table, which we will never reach in the current pass over all the table elements. We switch time keeping to minetest.get_us_time(). dtime is likely unreliable and we have our own high-res timer that we can fix if it is indeed broken. This removes the need to do any sort of time keeping.
2016-01-23Fix world config menu ignoring `name` in `mod.conf`.Diego Martinez
2016-01-18Show infotext with description for item entitiesRealBadAngel
2016-01-16Fix error message in settings tab overlapping 'save' buttonRogier
The save button is now fully functional again when an error message is shown. After an invalid value is entered in the settings tab dialog, the GUI label for the error message that is shown was partly overlapping the 'save' button, so that the top half of the button could not be clicked on.
2016-01-14Add Valleys mapgen.Duane Robertson
2016-01-10Mgflat: Set blank default spflags. Unhideparamat
2016-01-10Fix the checking of flags values in the settings tabRogier
Changes: - Accept setting an empty flags-type value in the settings tab if the variable specification permits it - Don't accept substrings of flag values E.g. with values: 'one,two,three', 'hree', 'w', etc. used to be accepted. Not any more - Don't accept flags with random pattern-matching special characters E.g. with values: 'one,two,three', 'on.', '(o)[n]e*' etc. used to be accepted. Not any more.
2016-01-10Improve parsing of setting types from settingtypes.txt for settings tabRogier
- Accept numbers prefixed with '+' - Accept multiple spaces instead of just a single one where spaces are expected - Allow flags to have an empty default value
2016-01-09New 3D Mode: PageflipDalai Felinto
The pageflip mode requires a stereo quadbuffer, and a modern graphic card. Patch tested with NVidia 3D Vision. The mini-map is not drawn, but that's what is done for topbottom and sidebyside modes as well. Also most of the time the user would prefer the HUD to be off. That's for the user to decide though, and toggle it manually. Finally, the interocular distance (aka eye separation) is twice as much as the "3d_paralax_strength" settings. I find this a strange design decision. I didn't want to chance this though, since it's how the other 3d modes interpret this settings.
2016-01-07Liquids: Flow into and destroy 'floodable' nodesparamat
Add new node property 'floodable', default false Define "air" as floodable = true in C++ and lua
2015-12-26Alphabetical sorting of texture packs in menu (fixes #3487)jeanpatrick.guerrero@gmail.com
2015-12-20Fix missing localization for objHybridDog
2015-12-15Mgfractal: Add 3D and 4D fractalsparamat
3D Mandelbrot/Mandelbar 3D Christmas Tree 3D Mandelbulb 3D Cosine Mandelbulb 4D Mandelbulb Plus corresponding julia set for each Add credits for formulas Rename parameter 'formula' to 'fractal' Speed optimisations
2015-12-10Fix some setting documentationest31
* Horizontal and vertical are used wrongly. Use height and width because horizontal/vertical describes different things. Thanks @kilbith for pointing out. * Update minetest.conf.example and settings_translation_file.cpp * Correct maximum/minimum copy paste mistake.
2015-12-02Add on_secondary_use when right clicking an item in the airAlex Ford
2015-11-24Simplify regex used in check_modname_prefix and other improvements.Robert Zenz
Simplified the regex used, added comments and changed the error message to contain the correct mod name.
2015-11-23Mgfractal: Move julia set selection into formula parameterparamat
Improve default parameters Update and improve documentation Unhide mapgen, but is still unstable
2015-11-21Mapgen: Add global 'decorations' flagparamat
Flag is set by default in MapgenParams The global 'trees' flag remains but is now undocumented and unset by default in MapgenParams Add mgv6_spflag 'trees' set by default in defaultsettings.cpp to affect new worlds only This is automatically backwards compatible for existing worlds
2015-11-21Log static_spawn error only onceRui
2015-11-15Mgfractal: Revert unnecessary duplication of parametersparamat
2015-11-14Mgfractal: Create a choice of 4 mandelbrot formulasparamat
2015-11-13Mgv6: Move global mapgen flag 'flat' into mgv6 spflagsparamat
Add mgv6 spflag 'flat' Global flag is kept for backwards compatibility but is now undocumented
2015-11-12Add the player name to dropped itemsRobert Zenz
The player name is now added in the field "dropped_by" on the created entity.
2015-11-11Mapgen: Add flat mapgen in hidden formparamat
2015-11-08Settings tab: add v3f typeest31
Add the v3f type, currently is just a nice placeholder for string. Currently undocumented, on wish of @PilzAdam, to support future changes.
2015-11-07Improve LuaVoxelManip documentationkwolekr
2015-11-06Conf.example, settingtypes: Improve mgfractal documentationparamat
2015-11-06Add server side ncurses terminalest31
This adds a chat console the server owner can use for administration or to talk with players. It runs in its own thread, which makes the user interface immune to the server's lag, behaving just like a client, except timeout. As it uses the same console code as the f10 console, things like nick completion or a scroll buffer basically come for free. The terminal itself is written in a general way so that adding a client version later on is just about implementing an interface. Fatal errors are printed after the console exists and the ncurses terminal buffer gets cleaned up with endwin(), so that the error still remains visible. The server owner can chose their username their entered text will have in chat and where players can send PMs to. Once the username is secured with a password to prevent anybody to take over the server, the owner can execute admin tasks over the console. This change includes a contribution by @kahrl who has improved ncurses library detection.
2015-11-05Settingtypes: Correct documentation for mgfractalparamat
Use type 'string' for v3fs and add comments
2015-11-04Mgfractal: Add documentation to conf.example and settingtypesparamat
2015-11-02Add callback parameter for core.emerge_area()kwolekr
2015-10-31minetest. to core.Rui914
2015-10-29findSpawnPos: Add setting for max height above water levelparamat
Increase default from 6 to 16 to help with mgv7 and mgfractal Large-scale or alternative mapgens can result in a lowland spawn point not being found, causing a spawn at (0, 0, 0) possibly buried underground The max height is now settable to allow correct player spawn in any mapgen or when using custom noise parameters
2015-10-25Fix parameter passing to gettext callPilzAdam
2015-10-25Check if hitter has inventory when punching itemBlockMen
Fixes #3280
2015-10-25Credits: Remove my nameRui
2015-10-25Escape " in generated settings_translation_file.cppPilzAdam
2015-10-24Fix setting commentsPilzAdam
2015-10-24Don't allow games or mods to add secure. settingsPilzAdam