aboutsummaryrefslogtreecommitdiff
path: root/src/defaultsettings.cpp
AgeCommit message (Collapse)Author
2017-08-24Safe digging and placing (#6127)Ben Deutsch
* Setting: Safe digging and placing * New setting 'safe_dig_and_place' under Controls * If set, digging and placing will not auto-repeat * Releasing buttons unblocks the respective action again * Useful for inexperienced users in creative mode where default repeat times may be too short * Safe placing (right click repetition) does not need a guarding flag * Added new setting to minetest.conf.example
2017-08-17Modernize src/c* src/d* and src/e* files (#6263)Loïc Blot
* Modernize src/c* src/d* and src/e* files * default operator * redundant init * delete default constructors on CraftDefinition childs (never used) * fix some missing init values * const ref fix reported by clang-tidy * ranged-based for loops * simple conditions & returns * empty stl function instead of size * emplace_back stl function instead of push_back + construct temp obj * auto for some iterators * code style fixes * c++ stl headers instead of C stl headers (stdio.h -> cstdio)
2017-08-17Reduce dedicated server step to 0.09 (#6252)Loïc Blot
Minetest performance improvement has been huge since months, server step reduction will permit to handle client events a little bit faster without too many penalty costs due to core engine
2017-08-17New lighting curve (#5279)Vitaliy
* New lighting curve * Make polynomial lighting curve * Update default lighting settings
2017-08-12Remove cloud_height settingBen Deutsch
With the cloud API, the cloud_height setting has become obsolete and replaceable by a mod. It, and supporting code, can be removed.
2017-07-30Make direct item selection keys freely bindableWuzzy
2017-07-18Window size: use 1024x600 to avoid a smaller UIparamat
The change from 800x600 to 1024x576 (16:9) was a reduction in height which caused user interface to become smaller. Continue to use width 1024 as it is a common small screen width.
2017-07-18[CSM] Add flavour limits controlled by server (#5930)Loïc Blot
* [CSM] Add flavour limits controlled by server Server send flavour limits to client permitting to disable or limit some Lua calls * Add limits for reading nodedefs and itemdefs * flavour: Add lookup node limits * Merge get_node_or_nil into get_node. Sending fake node doesn't make sense in CSM, just return nil if node is not available for any reason * Add node range customization when noderange flavour is enabled (default 8 nodes) * Limit nodes range & disable chat message sending by default * Bump protocol version
2017-07-15Revert "CSM: Revert "[CSM] Add send_chat_message and run_server_chatcommand""Loic Blot
This reverts commit bdac12761cd92960c3df83c932aa610f2322215f.
2017-07-15Default window size: Increase to 1024x576, aspect ratio 16:9paramat
2017-07-15CSM: Revert "[CSM] Add send_chat_message and run_server_chatcommand"rubenwardy
Original PR: #5747. This reverts commit 39f4a2f607d44738d60db84eba4b30e3d7450204.
2017-07-14Remove remaining modstore code (#6120)Elijah Duffy
2017-07-02Dungeons: Add setting to prevent projecting dungeonsparamat
Prevents dungeons generating into ignore nodes in ungenerated mapchunks, which can occasionally result in a dungeon projecting from the terrain.
2017-06-26Add Arm Inertia (#6050)kilbith
2017-06-10Add a server-sided way to remove color codes from incoming chat messages (#5948)red-001
These code be generated by CSM, a modded client or just copy and pasted by the player. Changes - Update configuration example and setting translation file. - Remove colour codes before logging chat. - Add setting to remove colour codes before processing the chat.
2017-06-08Autorun: Change to 'autoforward' (#5926)Paramat
Minetest does not have 'run'. Automatic forwards is very often used while flying or swimming, so a general word is more suitable.
2017-06-03Snake case for screen options in minetest.conf (#5792)Vincent Glize
2017-05-21[CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)Pierre-Adrien Langrognet
* [CSM] Add send_chat_message and run_server_chatcommand API functions * Add client-side chat message rate limiting * Limit out chat queue size * [CSM] Add minetest.clear_out_chat_queue API function and .clear_chat_queue chatcommand * Last fixes/cleanups before merge
2017-05-06Add configurable key bindings for hotbar scrolling, and for changing volume.Wuzzy
2017-05-05Save minetest screen width/height options when modified (#5683)Loïc Blot
* Save minetest screen width/height options when modified * Add autosave_screensize setting (default true) * Fix @SmallJoker comments
2017-04-25Footsteps without view bobbing (#5645)Louis Pearson
* Remove redundant view_bobbing setting Also fixes bug where disabling view_bobbing disables footstep sounds. * Removes redundant view_bobbing setting Setting view_bobbing amount to 0 is now the only way to turn view_bobbing on and off. Also fixed a bug where footstep sounds would not play when view_bobbing was disabled.
2017-04-17MeshUpdateQueue: Add a MapBlock cache that minimizes the amount of MapBlock ↵Perttu Ahola
copying done in the main thread Cache size is configurable by the meshgen_block_cache_size (default 20 MB). New profiler stats: - MeshUpdateQueue MapBlock cache hit % - MeshUpdateQueue MapBlock cache size kB Removes one type of stutter that was seen on the client when received MapBlocks were being handled. (the "MeshMakeData::fill" stutter) Kind of related to at least #5239 Originally preceded by these commits, now includes them: - Move the mesh generator thread into src/mesh_generator_thread.{cpp,h} - mesh_generator_thread.cpp: Update code style - MeshUpdateThread: Modify interface to house a different implementation: Actual functionality will be changed by next commits. - MeshMakeData: Add fillBlockData() interface (so that caller can fill in stuff from eg. a MapBlock cache)
2017-04-09Hard-coded undersampling.number Zero
Adds uniform undersampling for the 3D rendered scene. GUI elements are not undersampled, resulting in better playability for users with low-performance platforms with readable fonts and formspecs. The undersampling setting can be set to 0 (disabled), 2, 3, 4 pixels which translates into a resolution reduction of x4, x9 or x16, and is significant.
2017-04-07Settings: Update documentation (#5534)SmallJoker
Now documented (sorted a-z): enable_console enable_particles creative_mode hud_scaling inventory_image_hack keymap_console keymap_zoom shader_path view_bobbing
2017-04-07Windows: Skip cmd for release builds (#5416)adrido
2017-04-06Add Joystick type detection and Xbox controller supportrubenwardy
* Add joystick type detection (with joystick_type setting to override it) * Fix multiple joysticks from interfering with each other by only reading from one (add joystick_id setting) * Add support for Xbox controllers
2017-03-27Map generation limit: Make per-worldparamat
The setting limits map generation but affects nothing else. Add 'mapgen_limit' to global mapgen parameters. Move 'blockpos_over_mapgen_limit()' to the only place it is called from: map.cpp. Allow teleportation to any part of the world even if over the set mapgen limit. Simplify the reading of this limit in mgvalleys. Remove the 'map_generation_limit' setting.
2017-03-26Change command prefix to "." and add "help" command.red-001
2017-03-26Add mesh generation delaynumber Zero
2017-03-13[CSM] Add enable_client_modding param (default: false)nerzhul
2017-03-11Enable server side occlusion culling by default.Lars Hofhansl
2017-03-11Allow server side occlusion culling.Lars Hofhansl
2017-03-11Climb speed: Increase default setting from 2 to 3paramat
2017-02-16Revert part of eb49009d023e6e3b5d59a97b8fb5fed5eee83296 (#5230)Auke Kok
This reverts the removal of Droid Sans as fallback font. The license for this font used to be GPL2. I've updated the font files to Liberation 2.00, which are SIL, and do not require us to ship source code. I've attempted to fix all the attribution and license strings, and used the strings as provided by redhat for attribution to make sure they're correct. Last, I've removed a bunch of executable bits on files that do not need them. Fixes #5231
2017-02-14FreeType: address font license issues (#5230)Auke Kok
It appears we were shipping font files without license text, and I had my doubts about the bitmap fonts being usable directly. This replaces existing TTF fonts with Apache-2.0 licensed fonts from chome core (Cousine, Arimo, Tinos). Include the full license file for all three fonts. The Lucida Sans font bitmap is removed entirely for non-freetype builds. There is therefore only mono fonts for non-freetype builds.
2017-02-09Change default nodetimer_interval to 0.2s. (#5193)Auke Kok
We want to reduce the chance that we get lots and lots of node timers all happening once a second, because we're better off doing small bits of work as they are available. Reducing this to 0.2 seconds will greatly reduce the total amount of nodetimers that elapse at the same instance, while not effecting total work load. This results in a far better chance of the server keeping up with work loads.
2017-01-30Add console height setting (#5136)Ezhh
2017-01-21Add show_statusline_on_connect setting (#5084)Loïc Blot
Add show_statusline_on_connect setting
2017-01-14Fix build with freetype support disabledsfan5
2017-01-13Organize defaultsettings.cppShadowNinja
2017-01-13Enable mod security by defaultShadowNinja
2016-12-28Redo light.cpp.Auke Kok
Remake the light_decode_table. The table starts out without pre-filled in values since those are always discarded by the code apparently. We calculate a pseudo curve with gamma power function, and then apply a new adjustment table. The adjustment table is setup to make the default gamma of 2.2 look decent: not too dark at light level 3 or so, but too dark at 1 and below to be playable. The curve is much smoother than before and looks reasonable at the whole range, offering a pleasant decay of light levels away from lights. The `display_gamma` setting now actually does something logical: the game is darker at values below 2.2, and brighter at values above 2.2. At 3.0, the game is very bright, but still has a good light scale. At 1.1 or so, the bottom 5 light levels are virtually black, but you can still see enough detail at light levels 7-8, so the range and spread is adequate. I must add that my monitor is somewhat dark to begin with, since I have a `hc` screen that doesn't dynamic range colors or try to pull up `black` pixels for me (it is tuned for accurate color and light levels), so this should look even better on more dynamic display tunings.
2016-12-24Process ABMs in a spherical volume instead of cubicLars Hofhansl
Increase active_block_range default to a 3 mapblock radius.
2016-12-21Disable mod security by default (closes #4944)sfan5
2016-12-16Mapgen: Make mgv7 the default in UIAuke Kok
The actual menu default comes from defaultsettings.cpp.
2016-12-07Fog: Make fraction of visible distance at which fog starts configurableLars Hofhansl
Optimise the fetching of global settings 'camera_smoothing', 'cinematic' and 'cinematic_camera_smoothing'. Cache 'cam_smoothing'.
2016-10-30Optionally disable optimization that causes underwater and cave rendering ↵lhofhansl
glitches. (#4686)
2016-10-20Changes to static object storage limit and error messageparamat
Move static object storage force-delete message from errorstream to warningstream. Increase 'max objects per block' setting to 64. Add missing spaces in warning code.
2016-10-16Enable mod security by defaultShadowNinja
2016-10-05Chat: new settings to prevent spamLoic Blot
Added the following chat coreside features * Chat messages length limit * Message rate limiting * Message rate kicking Note: * handleChat now takes RemotePlayer pointer instead of u16 to remove useless lookups