oweals/minetest.git
7 years agoFixes for compiling with a newer (system) jsoncpp (#4429)
Rogier-5 [Wed, 10 Aug 2016 10:10:00 +0000 (12:10 +0200)]
Fixes for compiling with a newer (system) jsoncpp (#4429)

* Move included json code to jsoncpp subdirectory

This is needed to avoid having to specify the minetest src directory
as a system include when fixing the json includes.

* Fix json includes

They used "", so that the compiler searches the project's directory
first. The result was that when compiling with a system jsoncpp,
the project's own version of json.h was still included, instead of
the system version.

The includes now use <>, so a system location, or one specified with
'-Ilocation' is searched only.

* Fix for jsoncpp deprecated function warning

When compiling with a newer version of jsoncpp (and
ENABLE_SYSTEM_JSONCPP=true), jsoncpp emits a warning
about a deprecated function that minetest uses.

7 years agoPermit usage of std::unordered_map & std::unorderered_set on c++11 compilers (#4430)
Ner'zhul [Wed, 10 Aug 2016 10:08:05 +0000 (12:08 +0200)]
Permit usage of std::unordered_map & std::unorderered_set on c++11 compilers (#4430)

This fallback to std::map & std::set for older compilers

Use UNORDERED_SET as an example in decoration and ore biome sets

Use UNORDERED_MAP as an example in nameidmapping

7 years agoAdd simulation category
Rémi Verschelde [Wed, 10 Aug 2016 06:51:36 +0000 (08:51 +0200)]
Add simulation category

7 years agoDecorations: Fix decoration height check errors
paramat [Wed, 3 Aug 2016 02:44:33 +0000 (03:44 +0100)]
Decorations: Fix decoration height check errors

Fix height check comparison from '>=' to '>'.
Fix getHeight() for schematic decorations to account for
'deco place center y' flag and for how normal placement
sinks schematic 1 node into the ground.

Jungletrees were not being placed at y = 46, y = 47 despite
having an acceptable 16 nodes of height above ground surface.

7 years agoMapgen: Remove unused 'flat' and 'trees' flags from mg_flags
paramat [Fri, 29 Jul 2016 02:44:58 +0000 (03:44 +0100)]
Mapgen: Remove unused 'flat' and 'trees' flags from mg_flags

When the 'flat' and 'trees' flags were moved into mgv6_spflags they
were left in mg_flags in an attempt to support old mgv6 worlds. However
their appearence in mg_flags causes confusion, also, later, old-world
support was found to be broken for mgv6 worlds with 'notrees'.

This commit cleans up the mess and comes a month after a thread warning
of the change, and explaining the required action, was posted in the
news subforum. Only old mgv6 worlds with 'flat' or 'notrees' are
affected, a small minority of worlds, the required action being
correctly setting these flags in mgv6_spflags.

Disable a section of the 'map settings manager' unit test which is to
be changed as it is causing problems for pull requests.

7 years agoFix l_request_insecure_environment not ignoring all whitespace (#4395)
Dorian Wouters [Wed, 3 Aug 2016 22:41:54 +0000 (00:41 +0200)]
Fix l_request_insecure_environment not ignoring all whitespace (#4395)

l_request_insecure_environment didn't ignore all whitespace in the
secure.trusted_mods config option.

Replaces std::remove with std::remove_if and the isspace function.

7 years agotest_map_settings_manager: Fix Wunused-result warning
est31 [Wed, 3 Aug 2016 22:29:06 +0000 (00:29 +0200)]
test_map_settings_manager: Fix Wunused-result warning

7 years agoPorting: Fix endless loop if image format is not recognized
est31 [Wed, 3 Aug 2016 21:20:36 +0000 (23:20 +0200)]
Porting: Fix endless loop if image format is not recognized

7 years agotexture_packs.txt: Document special textures
SmallJoker [Fri, 29 Jul 2016 08:23:09 +0000 (10:23 +0200)]
texture_packs.txt: Document special textures

7 years agoDocumentation: Create texture_packs.txt
rubenwardy [Fri, 29 Jul 2016 14:39:36 +0000 (15:39 +0100)]
Documentation: Create texture_packs.txt

Combine texture_overrides.txt and sections of lua_api.txt

7 years agolua_api.txt: Document how to properly clear node metadata
mtango688 [Thu, 28 Jul 2016 21:40:23 +0000 (15:40 -0600)]
lua_api.txt: Document how to properly clear node metadata

7 years agoUpdate README.txt (#4368)
Nathaniel Olsen [Fri, 29 Jul 2016 21:37:06 +0000 (16:37 -0500)]
Update README.txt (#4368)

* Update README.txt

As of Ubuntu 16.10, libpng12-dev is replaced with libpng12-0, since libpng12-0 is available in 16.04 repositories, I think that needed to be changed.

Also I changed 'git-core' to 'git' for fedora users, keep it consistent with the ubuntu/debian instructions.

* Update README.txt

7 years agobuildbot: retrieve short commit hash properly
Fernando Carmona Varo [Sun, 24 Jul 2016 12:01:20 +0000 (14:01 +0200)]
buildbot: retrieve short commit hash properly

Instead of trying to manually parse the output of 'git show' which can be different across different git configurations, properly use the 'git rev-parse' command that is intended for this purpose.

7 years agoIncrease android versionCode (#4350)
Ner'zhul [Thu, 28 Jul 2016 11:13:25 +0000 (13:13 +0200)]
Increase android versionCode (#4350)

This little update is due to a packaging problem when uploading on play store. They don't permit to re upload an APK with same version code.
This case was a fail on openssl packaged version which was old and rejected by Google but they don't remove the APK then i should increase the version code to permit having it on play store

7 years agoUpright sprite objects: Horizontally flip the front image
SmallJoker [Tue, 26 Jul 2016 12:39:03 +0000 (14:39 +0200)]
Upright sprite objects: Horizontally flip the front image

For consistent horizontal sprite structure when seen from front and back
Fix code style

7 years agoMain menu, lua_api.txt: Fix mod/texture pack screenshot size issues
Wuzzy [Mon, 25 Jul 2016 20:52:42 +0000 (22:52 +0200)]
Main menu, lua_api.txt: Fix mod/texture pack screenshot size issues

Recommend mod screenshot size in lua_api.txt
Adjust displayed screenshot size of texture packs
Document texture pack files in lua_api.txt

7 years agoBuiltin: Add core.MAP_BLOCKSIZE constant 4362/head
Tim [Sat, 23 Jul 2016 11:29:53 +0000 (13:29 +0200)]
Builtin: Add core.MAP_BLOCKSIZE constant

7 years agoBuiltin: Fix check for a player object in core.check_player_privs
Tim [Thu, 7 Jul 2016 21:58:52 +0000 (23:58 +0200)]
Builtin: Fix check for a player object in core.check_player_privs

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.

7 years agoUpdate minetest.conf.example and the settings translation file
est31 [Sun, 24 Jul 2016 15:41:36 +0000 (17:41 +0200)]
Update minetest.conf.example and the settings translation file

7 years agoMgvalleys / cavegen: Place riverbed nodes under river water
paramat [Tue, 19 Jul 2016 23:23:08 +0000 (00:23 +0100)]
Mgvalleys / cavegen: Place riverbed nodes under river water

When a CavesNoiseIntersection tunnel intersects a river place biome
'riverbed' nodes in tunnel entrance instead of biome 'top' nodes.

7 years agolua_api.txt: Remove tooltip checkbox[] element
James Stevenson [Thu, 14 Jul 2016 14:07:40 +0000 (10:07 -0400)]
lua_api.txt: Remove tooltip checkbox[] element

7 years agoHTTP lua API docs: correct some function references
est31 [Tue, 12 Jul 2016 20:45:34 +0000 (22:45 +0200)]
HTTP lua API docs: correct some function references

7 years agoBuiltin/profiler: Replace game profiler (#4245)
Tim [Tue, 12 Jul 2016 19:51:10 +0000 (21:51 +0200)]
Builtin/profiler: Replace game profiler (#4245)

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.

7 years agoLua_api.txt: Fix description of node drop behaviour
Duane [Mon, 11 Jul 2016 14:46:01 +0000 (09:46 -0500)]
Lua_api.txt: Fix description of node drop behaviour

7 years agoTreegen: Improve use of signed vs. unsigned integers
paramat [Sun, 10 Jul 2016 15:03:53 +0000 (16:03 +0100)]
Treegen: Improve use of signed vs. unsigned integers

To fix GCC 6.1.1 compilation warning:
'assuming signed overflow does not occur when assuming
that (X - c) > X is always false'

7 years agoRun updatepo.sh
est31 [Tue, 12 Jul 2016 18:50:20 +0000 (20:50 +0200)]
Run updatepo.sh

7 years agoUpdate minetest.conf.example, and settings_translation_file.cpp
est31 [Tue, 12 Jul 2016 18:49:33 +0000 (20:49 +0200)]
Update minetest.conf.example, and settings_translation_file.cpp

7 years agoTranslated using Weblate (French)
Onyx Steinheim [Tue, 12 Jul 2016 16:56:29 +0000 (16:56 +0000)]
Translated using Weblate (French)

Currently translated at 100.0% (887 of 887 strings)

7 years agoTranslated using Weblate (Dutch)
ikmaak [Fri, 8 Jul 2016 10:32:09 +0000 (10:32 +0000)]
Translated using Weblate (Dutch)

Currently translated at 89.6% (795 of 887 strings)

7 years agoTranslated using Weblate (Indonesian)
Muhammad Rifqi Priyo Susanto [Thu, 23 Jun 2016 17:34:59 +0000 (17:34 +0000)]
Translated using Weblate (Indonesian)

Currently translated at 55.8% (495 of 887 strings)

7 years agoTranslated using Weblate (Spanish)
Roberto Mengíbar Fernández [Tue, 14 Jun 2016 21:57:46 +0000 (21:57 +0000)]
Translated using Weblate (Spanish)

Currently translated at 59.0% (524 of 887 strings)

7 years agoTranslated using Weblate (French)
Guillaume Robert [Mon, 13 Jun 2016 18:39:36 +0000 (18:39 +0000)]
Translated using Weblate (French)

Currently translated at 91.2% (809 of 887 strings)

7 years agoTranslated using Weblate (Chinese (China))
arsdragonfly [Sat, 11 Jun 2016 10:56:31 +0000 (10:56 +0000)]
Translated using Weblate (Chinese (China))

Currently translated at 75.1% (667 of 887 strings)

7 years agoTranslated using Weblate (Serbian (cyrillic))
Лазар Вукановић [Thu, 9 Jun 2016 11:11:15 +0000 (11:11 +0000)]
Translated using Weblate (Serbian (cyrillic))

Currently translated at 31.5% (280 of 887 strings)

7 years agoAdded translation using Weblate (Serbian (cyrillic))
Лазар Вукановић [Thu, 9 Jun 2016 08:40:00 +0000 (08:40 +0000)]
Added translation using Weblate (Serbian (cyrillic))

7 years agoTranslated using Weblate (Esperanto)
Tim [Sat, 4 Jun 2016 13:18:08 +0000 (13:18 +0000)]
Translated using Weblate (Esperanto)

Currently translated at 32.2% (286 of 887 strings)

7 years agoTranslated using Weblate (Chinese (China))
susan [Fri, 3 Jun 2016 12:31:02 +0000 (12:31 +0000)]
Translated using Weblate (Chinese (China))

Currently translated at 74.1% (658 of 887 strings)

7 years agoFix typos (#4298)
Snipie [Sat, 9 Jul 2016 14:00:14 +0000 (14:00 +0000)]
Fix typos (#4298)

7 years agoUbuntu build HOWTO: Suggest to install git instead of git-core
est31 [Fri, 8 Jul 2016 15:07:31 +0000 (17:07 +0200)]
Ubuntu build HOWTO: Suggest to install git instead of git-core

The package docs for the git-core Ubuntu package in all supported
Ubuntu versions, including 12.04 say:

This is a transitional dummy package.  The 'git-core' package has been
renamed to 'git', which has been installed automatically.  This git-core
package is now obsolete, and can safely be removed from the system if no
other package depends on it.

Fixes #4109

7 years agoFix -Wterminate warnings in rollback.cpp as well
est31 [Fri, 8 Jul 2016 05:26:00 +0000 (07:26 +0200)]
Fix -Wterminate warnings in rollback.cpp as well

Fix #4137 for rollback.cpp as well.

7 years agoFix -Wterminate warning on GCC 6
est31 [Fri, 8 Jul 2016 04:24:22 +0000 (06:24 +0200)]
Fix -Wterminate warning on GCC 6

Fixes #4137

7 years agoFix warning in porting::setXorgWindowIcon when building without X11 (#4288)
Jay Arndt [Thu, 7 Jul 2016 01:15:36 +0000 (20:15 -0500)]
Fix warning in porting::setXorgWindowIcon when building without X11 (#4288)

7 years agoAdding minetest.clear_craft
Foghrye4 [Mon, 25 Apr 2016 15:50:10 +0000 (18:50 +0300)]
Adding minetest.clear_craft

Modifications by est31: grammar fixes in doc + error messages and
a little style fix, no functional change.

7 years agoUse mathematical function to determine yaw direction
sfan5 [Mon, 20 Jun 2016 16:11:05 +0000 (18:11 +0200)]
Use mathematical function to determine yaw direction

7 years agoFix for cropped text "Toggle Cinematic"
Snipie [Tue, 5 Jul 2016 07:43:25 +0000 (07:43 +0000)]
Fix for cropped text "Toggle Cinematic"

7 years agoRemove cinematic toggle on F8
rubenwardy [Mon, 4 Jul 2016 17:01:58 +0000 (18:01 +0100)]
Remove cinematic toggle on F8

Also update cinematic mode's description to include mouse

7 years agoFinally set a window icon on X11 4273/head
est31 [Sun, 3 Jul 2016 23:33:46 +0000 (01:33 +0200)]
Finally set a window icon on X11

Since the creation of minetest, it had no window icon on X11.
Now we have one.

The misc/minetest-xorg-icon-128.png file is a rendering of the
misc/minetest.svg file with inkscape, created with something like:

inkscape -z -e misc/minetest-xorg-icon-128.png -w 128 -h 128 misc/minetest.svg

7 years agoTemporarily disable "testStartStopWait" Threading unit test on mac
est31 [Mon, 4 Jul 2016 19:32:32 +0000 (21:32 +0200)]
Temporarily disable "testStartStopWait" Threading unit test on mac

The "testStartStopWait" unit test is unreliably failing on mac,
for some time already. See bug #3786.

Having the unittest fail unreliably doesn't help anybody but mostly
inhibits the main feature of travis builds: to test PRs for regressions.

Therefore, disable the specific unit test for until bug #3786
is fixed.

7 years agoFix & make linux conditionals uniform (#4278)
Rogier-5 [Mon, 4 Jul 2016 19:00:57 +0000 (21:00 +0200)]
Fix & make linux conditionals uniform (#4278)

The source used a hodge-podge of different combinations of different
macros to check for linux: 'linux', '__linux', '__linux__'.

As '__linux__' is standard (Posix), and the others are not, the source
now uniformly uses __linux__. If either linux or __linux are defined,
it is made sure that __linux__ is defined as well.

7 years agoDisable joysticks per default for now
est31 [Mon, 4 Jul 2016 18:49:13 +0000 (20:49 +0200)]
Disable joysticks per default for now

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

7 years agoRemove top left minetest watermark
est31 [Sun, 3 Jul 2016 17:36:51 +0000 (19:36 +0200)]
Remove top left minetest watermark

Move version information into the window caption.

On popular player request.

Fixes #4209.

7 years agoAdd MapSettingsManager and new mapgen setting script API functions
kwolekr [Fri, 24 Jun 2016 22:15:56 +0000 (18:15 -0400)]
Add MapSettingsManager and new mapgen setting script API functions

This commit refactors the majority of the Mapgen settings system.
- MapgenParams is now owned by MapSettingsManager, itself a part of ServerMap,
  instead of the EmergeManager.
- New Script API functions added:
    core.get_mapgen_setting
    core.get_mapgen_setting_noiseparams,
    core.set_mapgen_setting, and
    core.set_mapgen_setting_noiseparams.
- minetest.get/set_mapgen_params are deprecated by the above new functions.
- It is now possible to view and modify any arbitrary mapgen setting from a mod,
  rather than the base MapgenParams structure.
- MapgenSpecificParams has been removed.

7 years agoMapgen: Refactor mapgen creation and management
kwolekr [Tue, 14 Jun 2016 04:10:55 +0000 (00:10 -0400)]
Mapgen: Refactor mapgen creation and management

- Move mapgen creation logic out of EmergeManager and into Mapgen
- Internally represent mapgen type as an enum value, instead of a string
- Remove the need for a MapgenFactory per mapgen

7 years agoRemove old docs. We have VCS history anyways. (#4266)
Pavel Puchkin [Sun, 3 Jul 2016 11:30:09 +0000 (13:30 +0200)]
Remove old docs. We have VCS history anyways. (#4266)

7 years agoopenbsd's port fix for non Linux systems w/o libRT
David Carlier [Sun, 19 Jun 2016 07:48:12 +0000 (08:48 +0100)]
openbsd's port fix for non Linux systems w/o libRT

X11 headers are not always in expected locations, add them to include list.

Modifications by est31: indentation fixes, commit message improved

7 years agoOnly allow strings to be passed to minetest.global_exists (#4253)
HybridDog [Tue, 28 Jun 2016 04:34:22 +0000 (06:34 +0200)]
Only allow strings to be passed to minetest.global_exists (#4253)

Sometimes you accidentally forget the quotes when using global_exists, this makes minetest abort if you did so.

M  builtin/common/strict.lua

7 years agoAlso shut down when SIGTERM was received
est31 [Fri, 24 Jun 2016 18:43:29 +0000 (20:43 +0200)]
Also shut down when SIGTERM was received

Fixes #4251

7 years agoMgflat/fractal/v7/valleys: Denser 3D noise tunnels
paramat [Tue, 21 Jun 2016 02:48:24 +0000 (03:48 +0100)]
Mgflat/fractal/v7/valleys: Denser 3D noise tunnels

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

7 years agoPlayer: New get_look, set_look API
raymoo [Fri, 17 Jun 2016 19:57:27 +0000 (12:57 -0700)]
Player: New get_look, set_look API

Deprecate get_look / set_look pitch / yaw

7 years agoDungeons: Generalise use, add capabilities, various modifications 4249/head
paramat [Sun, 12 Jun 2016 02:11:26 +0000 (03:11 +0100)]
Dungeons: Generalise use, add capabilities, various modifications

- Generalise node names to c_wall and c_alt_wall
- Remove 'mossratio' and instead disable alt_wall loop if
  c_alt_wall == CONTENT_IGNORE
- Use one generalised 3D noise for alternative wall nodes and in
  mgv6 create moss distribution similar to the previous

- Rename rarity noise to density noise and enable the option of multiple
  dungeons per chunk determined by the value. Recreate previous distribution
- Add parameters for min and max rooms per dungeon
- Add dungeon y limits

- Integrate river water properly

Generalisation is needed now that we have sandstone and desert stone
dungeons by default and can choose any node for alternative structure.
The current code is based around cobble dungeons with mossycobble
alternative nodes, the 2 noises controlling the alternative nodes
are based on wetness.

Enabling multiple dungeons per chunk with definable number of rooms
allows the option of very dense and complex underground structures
that could interconnect to create megastructures.
Y limits are added to be consistent with other mapgen elements, and
enable locaton of dungeon or megastructure realms as part of our
'stacked realms' philosophy.

7 years agoBuiltin/game/item: Add `place_param2` nodedef field
Auke Kok [Mon, 30 May 2016 22:07:09 +0000 (15:07 -0700)]
Builtin/game/item: Add `place_param2` nodedef field

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.

7 years agoMove unknown node message when applying texture overrides to infostream (#4218)
Yutao Yuan [Mon, 13 Jun 2016 22:29:15 +0000 (06:29 +0800)]
Move unknown node message when applying texture overrides to infostream (#4218)

Texture packs have no way to know what nodes are available, so this shouldn't be a error message.

7 years agoSky.cpp: Improve code style. Define sky colours as SColor
paramat [Thu, 9 Jun 2016 02:15:41 +0000 (03:15 +0100)]
Sky.cpp: Improve code style. Define sky colours as SColor

7 years agoMake node timers more efficient
Ekdohibs [Mon, 21 Mar 2016 11:58:52 +0000 (12:58 +0100)]
Make node timers more efficient

7 years agoRandom misc. warning fixes and cleanups
kwolekr [Sat, 11 Jun 2016 07:23:53 +0000 (03:23 -0400)]
Random misc. warning fixes and cleanups

 - Fix unused c_sand member warning in Valleys Mapgen
 - Fix some code style
 - Make some std::string params const ref

7 years agoSettings: Clean up settings changed callback code
kwolekr [Sat, 11 Jun 2016 04:10:25 +0000 (00:10 -0400)]
Settings: Clean up settings changed callback code

7 years agoFix android build
est31 [Sat, 11 Jun 2016 03:41:12 +0000 (05:41 +0200)]
Fix android build

Thanks to @Wayward1 for reporting the bug.

Fixes #4212.

7 years agoServer: Add reason for leave to `on_leaveplayer` callbacks
Diego Martinez [Tue, 5 Jan 2016 01:49:11 +0000 (22:49 -0300)]
Server: Add reason for leave to `on_leaveplayer` callbacks

7 years agoSky: Darker, bluer sky and improved horizon haze at night
paramat [Tue, 24 May 2016 23:56:49 +0000 (00:56 +0100)]
Sky: Darker, bluer sky and improved horizon haze at night

Add new colours 'skycolour_bright_night', 'bgcolour_bright_night'
and enable these between sunset end and sunrise start
Night sky has same hue as day sky but is darker and more saturated
Night horizon haze (bgcolour) is slightly less saturated and
slightly brighter than night sky, to be consistent with daytime
horizon haze

7 years agoSky: Fix sunrisebg texture motion (#4199)
Paramat [Wed, 8 Jun 2016 06:43:27 +0000 (07:43 +0100)]
Sky: Fix sunrisebg texture motion (#4199)

Top of texture no longer shows above horizon during night and day

7 years agoLua_api.txt: Split long lines. Capitalise 'Biome API'. Minor edits
paramat [Tue, 7 Jun 2016 02:23:23 +0000 (03:23 +0100)]
Lua_api.txt: Split long lines. Capitalise 'Biome API'. Minor edits

7 years agoMapgen: Optimize biomemap creation by combining with generateBiomes
kwolekr [Sun, 5 Jun 2016 00:24:07 +0000 (20:24 -0400)]
Mapgen: Optimize biomemap creation by combining with generateBiomes

7 years agoBiome API: Add per-biome riverbed material and depth
paramat [Fri, 3 Jun 2016 11:58:50 +0000 (12:58 +0100)]
Biome API: Add per-biome riverbed material and depth

Mgvalleys: Remove riverbed sand placement from base terrain generation
Riverbed material placement moved to MapgenBasic::generateBiomes()
Document fields and add note that the biome API is still unstable

7 years agoMapgen: Performance improvement and fixes for updateLiquid (#4065)
MillersMan [Sat, 4 Jun 2016 23:30:36 +0000 (01:30 +0200)]
Mapgen: Performance improvement and fixes for updateLiquid (#4065)

- Adds only ~100 nodes per chunk to trans_liquid with similar processing time
- Adds liquid nodes themselves instead of potential solid nodes below them
- CONTENT_IGNORE nodes are interpreted as if they continue their neighborhood
- This allows liquid columns to span multiple chunks without being interrupted
- NOTE: Expects an one-node border in generation chunk without liquid changes

7 years agoBiomes: Define and use biome_t for biome IDs
kwolekr [Sat, 4 Jun 2016 07:00:45 +0000 (03:00 -0400)]
Biomes:  Define and use biome_t for biome IDs

7 years agoPcgRandom: Fix/improve documentation
kwolekr [Sat, 4 Jun 2016 06:16:06 +0000 (02:16 -0400)]
PcgRandom: Fix/improve documentation

7 years agoChange internal type for seeds to s32
kwolekr [Sat, 4 Jun 2016 05:35:37 +0000 (01:35 -0400)]
Change internal type for seeds to s32

This fixes value truncation (and therefore incompatibility) on platforms
with an LP32 data model, such as VAX or MS-DOS.

7 years agoInitial Gamepad support
est31 [Fri, 27 May 2016 06:35:07 +0000 (08:35 +0200)]
Initial Gamepad support

Adds initial ingame gamepad support to minetest.

Full Formspec support is not implemented yet and
can be added by a later change.

7 years agoInput related generalisations
est31 [Wed, 25 May 2016 07:22:20 +0000 (09:22 +0200)]
Input related generalisations

* Move key types into own file
* Use Generalized input methods in game.cpp

7 years agoSapier's fix for the RESEND RELIABLE problem (#4170)
Robert Kiraly [Fri, 3 Jun 2016 07:50:21 +0000 (00:50 -0700)]
Sapier's fix for the RESEND RELIABLE problem (#4170)

8 years agoMgv7: Always carve river channels in mountain terrain
paramat [Mon, 30 May 2016 12:15:14 +0000 (13:15 +0100)]
Mgv7: Always carve river channels in mountain terrain

Previously, rivers were sometimes blocked by vertical walls
of mountain terrain due to river carving being disabled
when base terrain height was below water_level - 16
Remove now unused base terrain heightmap created in
generateTerrain()

8 years agoAdd colored text (not only colored chat).
Ekdohibs [Tue, 31 May 2016 15:30:11 +0000 (17:30 +0200)]
Add colored text (not only colored chat).

Add documentation, move files to a proper place and avoid memory leaks.
Make it work with most kind of texts, and allow backgrounds too.

8 years agoColored chat working as expected for both freetype and non-freetype builds. @nerzhul...
TriBlade9 [Fri, 16 Jan 2015 06:54:26 +0000 (14:54 +0800)]
Colored chat working as expected for both freetype and non-freetype builds. @nerzhul improvements * Add unit tests * Fix coding style * move guiChatConsole.hpp to client/

8 years agoTranslated using Weblate (Hebrew)
yuval hreman [Thu, 26 May 2016 21:02:00 +0000 (21:02 +0000)]
Translated using Weblate (Hebrew)

Currently translated at 7.8% (70 of 887 strings)

8 years agoTranslated using Weblate (Russian)
Andrey K [Fri, 20 May 2016 15:18:33 +0000 (15:18 +0000)]
Translated using Weblate (Russian)

Currently translated at 57.2% (508 of 887 strings)

8 years agoTranslated using Weblate (Italian)
Emon Omen [Sat, 14 May 2016 11:34:53 +0000 (13:34 +0200)]
Translated using Weblate (Italian)

Currently translated at 100.0% (887 of 887 strings)

8 years agoTranslated using Weblate (Ukrainian)
Fixer [Wed, 11 May 2016 23:10:28 +0000 (01:10 +0200)]
Translated using Weblate (Ukrainian)

Currently translated at 39.3% (349 of 887 strings)

8 years agoTranslated using Weblate (Russian)
Sergey [Wed, 11 May 2016 20:34:38 +0000 (22:34 +0200)]
Translated using Weblate (Russian)

Currently translated at 57.0% (506 of 887 strings)

This is a merger of three commits.

8 years agoTranslated using Weblate (Russian)
Vasily Pavlov [Wed, 11 May 2016 20:36:17 +0000 (22:36 +0200)]
Translated using Weblate (Russian)

Currently translated at 57.1% (507 of 887 strings)

8 years agoTranslated using Weblate (German)
Wuzzy [Wed, 11 May 2016 02:34:34 +0000 (04:34 +0200)]
Translated using Weblate (German)

Currently translated at 100.0% (887 of 887 strings)

8 years agoAdd minetest.check_password_entry callback
est31 [Mon, 30 May 2016 13:27:48 +0000 (23:27 +1000)]
Add minetest.check_password_entry callback

Gives a convenient way to check a player's password.

This entirely bypasses the SRP protocol, so should be used
with great care.

This function is not intended to be used
in-game, but solely by external protocols, where no
authentication of the minetest engine is provided, and
also only for protocols, in which the user already gives the
server the plaintext password.

Examples for good use are the classical http form, or irc,
an example for a bad use is a password change dialog inside
formspec.

Users should be aware that they lose the advantages of the SRP
protocol if they enter their passwords for servers outside the
normal entry box, like in in-game formspec menus,
or through irc /msg s,

This patch also fixes an auth.h mistake which has mixed up the
order of params inside the decode_srp_verifier_and_salt function.

Zeno-: Added errorstream message for invalid format when I committed

8 years agoprotection_bypass priv can now be revoked in singleplayer (#4169)
Sokomine [Mon, 30 May 2016 12:40:32 +0000 (14:40 +0200)]
protection_bypass priv can now be revoked in singleplayer (#4169)

8 years agoRemove unused code in s_security.cpp (#4172)
Zeno- [Mon, 30 May 2016 12:37:40 +0000 (22:37 +1000)]
Remove unused code in s_security.cpp (#4172)

Note that the macro CHECK_FILE_ERR implements the code removed

8 years agoParticles: Add option to remove particles on collision
Auke Kok [Sat, 28 May 2016 04:08:23 +0000 (21:08 -0700)]
Particles: Add option to remove particles on collision

Adds the particle option `collision_removal = bool`

Some particles are hard to use right now since they either go through
solid blocks (without collision detection), and with collision
detection enabled they (e.g. raindrops) would just stop dead on the
floor and sit there until they expire, or worse, scrape along a wall
or ceiling.

We can solve the problem by adding a boolean flag that tells the
particle to be removed if it ever collides with something. This will
make it easier to add rain that doesn't fall through your roof or stick
on the top of it. Or clouds and smoke that don't go through trees.

Particles that collide with this flag are marked expired
unconditionally, causing them to be treated like normal expired
particles and cleaned up normally.

Documentation is adjusted accordingly.

An added bonus of this patch is that particles can potentially collide
many times with nodes, and this reduces the amount of collisions to 1
(max), which may end up reducing particle load on the client.

8 years agoAdd base64 encoding and decoding to the lua api. (#3919)
red-001 [Sat, 28 May 2016 03:37:28 +0000 (04:37 +0100)]
Add base64 encoding and decoding to the lua api. (#3919)

8 years agoDisallow external linkage for default Cavegen NoiseParams
kwolekr [Fri, 27 May 2016 03:23:05 +0000 (23:23 -0400)]
Disallow external linkage for default Cavegen NoiseParams

8 years agoDungeongen: Remove dependency on Mapgen
kwolekr [Sun, 22 May 2016 20:50:43 +0000 (16:50 -0400)]
Dungeongen: Remove dependency on Mapgen

8 years agoMapgen: Combine dungeon generation code
kwolekr [Sun, 22 May 2016 20:27:31 +0000 (16:27 -0400)]
Mapgen: Combine dungeon generation code

8 years agoMapgen: Deduplicate common constructor code
kwolekr [Sun, 22 May 2016 06:17:19 +0000 (02:17 -0400)]
Mapgen: Deduplicate common constructor code

8 years agoMapgen: Remove calculateNoise from most mapgens
kwolekr [Fri, 20 May 2016 07:37:31 +0000 (03:37 -0400)]
Mapgen: Remove calculateNoise from most mapgens

This commit moves noise calculation to the functions where the noise is
actually required, increasing the separation of concerns and level of
interdependency for each mapgen method.  Valleys Mapgen is left unmodified.