Rémi Verschelde [Wed, 10 Aug 2016 06:51:36 +0000 (08:51 +0200)]
Add simulation category
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.
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.
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.
est31 [Wed, 3 Aug 2016 22:29:06 +0000 (00:29 +0200)]
test_map_settings_manager: Fix Wunused-result warning
est31 [Wed, 3 Aug 2016 21:20:36 +0000 (23:20 +0200)]
Porting: Fix endless loop if image format is not recognized
SmallJoker [Fri, 29 Jul 2016 08:23:09 +0000 (10:23 +0200)]
texture_packs.txt: Document special textures
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
mtango688 [Thu, 28 Jul 2016 21:40:23 +0000 (15:40 -0600)]
lua_api.txt: Document how to properly clear node metadata
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
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.
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
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
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
Tim [Sat, 23 Jul 2016 11:29:53 +0000 (13:29 +0200)]
Builtin: Add core.MAP_BLOCKSIZE constant
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.
est31 [Sun, 24 Jul 2016 15:41:36 +0000 (17:41 +0200)]
Update minetest.conf.example and the settings translation file
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.
James Stevenson [Thu, 14 Jul 2016 14:07:40 +0000 (10:07 -0400)]
lua_api.txt: Remove tooltip checkbox[] element
est31 [Tue, 12 Jul 2016 20:45:34 +0000 (22:45 +0200)]
HTTP lua API docs: correct some function references
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.
Duane [Mon, 11 Jul 2016 14:46:01 +0000 (09:46 -0500)]
Lua_api.txt: Fix description of node drop behaviour
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'
est31 [Tue, 12 Jul 2016 18:50:20 +0000 (20:50 +0200)]
Run updatepo.sh
est31 [Tue, 12 Jul 2016 18:49:33 +0000 (20:49 +0200)]
Update minetest.conf.example, and settings_translation_file.cpp
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)
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)
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)
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)
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)
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)
Лазар Вукановић [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)
Лазар Вукановић [Thu, 9 Jun 2016 08:40:00 +0000 (08:40 +0000)]
Added translation using Weblate (Serbian (cyrillic))
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)
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)
Snipie [Sat, 9 Jul 2016 14:00:14 +0000 (14:00 +0000)]
Fix typos (#4298)
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
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.
est31 [Fri, 8 Jul 2016 04:24:22 +0000 (06:24 +0200)]
Fix -Wterminate warning on GCC 6
Fixes #4137
Jay Arndt [Thu, 7 Jul 2016 01:15:36 +0000 (20:15 -0500)]
Fix warning in porting::setXorgWindowIcon when building without X11 (#4288)
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.
sfan5 [Mon, 20 Jun 2016 16:11:05 +0000 (18:11 +0200)]
Use mathematical function to determine yaw direction
Snipie [Tue, 5 Jul 2016 07:43:25 +0000 (07:43 +0000)]
Fix for cropped text "Toggle Cinematic"
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
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
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.
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.
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
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.
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.
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
Pavel Puchkin [Sun, 3 Jul 2016 11:30:09 +0000 (13:30 +0200)]
Remove old docs. We have VCS history anyways. (#4266)
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
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
est31 [Fri, 24 Jun 2016 18:43:29 +0000 (20:43 +0200)]
Also shut down when SIGTERM was received
Fixes #4251
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
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
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.
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.
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.
paramat [Thu, 9 Jun 2016 02:15:41 +0000 (03:15 +0100)]
Sky.cpp: Improve code style. Define sky colours as SColor
Ekdohibs [Mon, 21 Mar 2016 11:58:52 +0000 (12:58 +0100)]
Make node timers more efficient
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
kwolekr [Sat, 11 Jun 2016 04:10:25 +0000 (00:10 -0400)]
Settings: Clean up settings changed callback code
est31 [Sat, 11 Jun 2016 03:41:12 +0000 (05:41 +0200)]
Fix android build
Thanks to @Wayward1 for reporting the bug.
Fixes #4212.
Diego Martinez [Tue, 5 Jan 2016 01:49:11 +0000 (22:49 -0300)]
Server: Add reason for leave to `on_leaveplayer` callbacks
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
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
paramat [Tue, 7 Jun 2016 02:23:23 +0000 (03:23 +0100)]
Lua_api.txt: Split long lines. Capitalise 'Biome API'. Minor edits
kwolekr [Sun, 5 Jun 2016 00:24:07 +0000 (20:24 -0400)]
Mapgen: Optimize biomemap creation by combining with generateBiomes
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
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
kwolekr [Sat, 4 Jun 2016 07:00:45 +0000 (03:00 -0400)]
Biomes: Define and use biome_t for biome IDs
kwolekr [Sat, 4 Jun 2016 06:16:06 +0000 (02:16 -0400)]
PcgRandom: Fix/improve documentation
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.
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.
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
Robert Kiraly [Fri, 3 Jun 2016 07:50:21 +0000 (00:50 -0700)]
Sapier's fix for the RESEND RELIABLE problem (#4170)
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()
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.
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/
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)
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)
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)
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)
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.
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)
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)
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
Sokomine [Mon, 30 May 2016 12:40:32 +0000 (14:40 +0200)]
protection_bypass priv can now be revoked in singleplayer (#4169)
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
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.
red-001 [Sat, 28 May 2016 03:37:28 +0000 (04:37 +0100)]
Add base64 encoding and decoding to the lua api. (#3919)
kwolekr [Fri, 27 May 2016 03:23:05 +0000 (23:23 -0400)]
Disallow external linkage for default Cavegen NoiseParams
kwolekr [Sun, 22 May 2016 20:50:43 +0000 (16:50 -0400)]
Dungeongen: Remove dependency on Mapgen
kwolekr [Sun, 22 May 2016 20:27:31 +0000 (16:27 -0400)]
Mapgen: Combine dungeon generation code
kwolekr [Sun, 22 May 2016 06:17:19 +0000 (02:17 -0400)]
Mapgen: Deduplicate common constructor code
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.
kwolekr [Thu, 19 May 2016 18:05:51 +0000 (14:05 -0400)]
Mapgen V7: Remove now-unused ridge heightmap
kwolekr [Thu, 19 May 2016 07:40:22 +0000 (03:40 -0400)]
Cavegen: Move V5-style caves to CavesNoiseIntersection