oweals/minetest.git
9 years agoMinimap update
RealBadAngel [Sun, 28 Jun 2015 10:17:36 +0000 (12:17 +0200)]
Minimap update

9 years agoRemove busy polling inside minimap thread
est31 [Sat, 27 Jun 2015 16:11:24 +0000 (18:11 +0200)]
Remove busy polling inside minimap thread

9 years agoMgv5/mgv7 caves: Remove sand found in underground tunnels
paramat [Thu, 25 Jun 2015 22:55:01 +0000 (23:55 +0100)]
Mgv5/mgv7 caves: Remove sand found in underground tunnels

Add missing check for max_stone_y to mgv5 cavegen
Tunnels now carve through sand below water_level

9 years agoAdd minimap feature
RealBadAngel [Mon, 22 Jun 2015 02:34:56 +0000 (04:34 +0200)]
Add minimap feature

9 years agoRemove compile warning
est31 [Thu, 25 Jun 2015 13:50:31 +0000 (15:50 +0200)]
Remove compile warning

Thanks @TeTpaAka for pointing this out.

9 years agoReturn to ignore
est31 [Wed, 24 Jun 2015 20:45:52 +0000 (22:45 +0200)]
Return to ignore

9 years agoUse frame instead of words 'no screenshot available'
rubenwardy [Sun, 30 Nov 2014 12:52:20 +0000 (12:52 +0000)]
Use frame instead of words 'no screenshot available'

9 years agoTypo fix on previous @est31 commit
Loic Blot [Tue, 23 Jun 2015 21:17:47 +0000 (23:17 +0200)]
Typo fix on previous @est31 commit

9 years agoSmall TOCLIENT_HELLO logging fix
est31 [Tue, 23 Jun 2015 19:14:48 +0000 (21:14 +0200)]
Small TOCLIENT_HELLO logging fix

Fix grammar error and missing number conversion for version.
Also add deployed protocol to log line.

9 years agoAdd MoveSomewhere inventory action
est31 [Sat, 20 Jun 2015 10:55:48 +0000 (12:55 +0200)]
Add MoveSomewhere inventory action

Improve shift+click experience

9 years agoUse actionstream instead of errorstream when failing to emerge player
Craig Davison [Tue, 23 Jun 2015 14:46:35 +0000 (15:46 +0100)]
Use actionstream instead of errorstream when failing to emerge player

9 years agoFix string conversion error message
est31 [Tue, 23 Jun 2015 13:04:14 +0000 (15:04 +0200)]
Fix string conversion error message

9 years agoFix bug when craft input isn't replaced
TeTpaAka [Tue, 2 Jun 2015 18:30:04 +0000 (20:30 +0200)]
Fix bug when craft input isn't replaced

9 years agoUpdate Chinese translation
Zheyu Shen [Sat, 20 Jun 2015 12:02:38 +0000 (20:02 +0800)]
Update Chinese translation

9 years agoFix some issues with animations, and allow non-looped animations to be defined
MirceaKitsune [Sat, 21 Feb 2015 21:38:53 +0000 (23:38 +0200)]
Fix some issues with animations, and allow non-looped animations to be defined

9 years agoMgv7: Edit noise parameters. Fewer octaves, larger spreads.
paramat [Mon, 15 Jun 2015 04:30:44 +0000 (05:30 +0100)]
Mgv7: Edit noise parameters. Fewer octaves, larger spreads.

9 years agoRemove textures vertical offset. Fix for area enabling parallax.
RealBadAngel [Sat, 20 Jun 2015 22:11:09 +0000 (00:11 +0200)]
Remove textures vertical offset. Fix for area enabling parallax.

9 years agoAndroid: use loop inside makefile to spare repetition 2807/head
est31 [Sat, 20 Jun 2015 05:39:28 +0000 (07:39 +0200)]
Android: use loop inside makefile to spare repetition

9 years agoSmall CAO improvements
est31 [Sat, 20 Jun 2015 04:58:07 +0000 (06:58 +0200)]
Small CAO improvements

-> remove the old parent as @kahrl suggested
-> use indices no iterator as @kwolekr suggested

9 years agoMapgen objects: Enable heatmap and humidmap for all biome api mapgens
paramat [Thu, 18 Jun 2015 23:17:03 +0000 (00:17 +0100)]
Mapgen objects: Enable heatmap and humidmap for all biome api mapgens

9 years agoMore correct wrap_rows implementation
figec [Fri, 19 Jun 2015 16:04:11 +0000 (19:04 +0300)]
More correct wrap_rows implementation

9 years agoGeneric CAO cleanups and renames for clarification
est31 [Sat, 20 Jun 2015 01:20:06 +0000 (03:20 +0200)]
Generic CAO cleanups and renames for clarification

* Use enum for GENERIC_CMD_*
* Rename m_attachements to attachement_parent_ids (public member and clearer name)
* Rename GENERIC_CMD_SET_ATTACHMENT to GENERIC_CMD_ATTACH_TO
* USHRT_MAX + 1 buffer sizes to prevent overflows as @kahrl suggested
* Remove unneccessary m_id from GenericCAO (shadowing protected superclass member for no reason) as @kahrl suggested

9 years agoMake attached objects visible in 3rd person view
est31 [Fri, 19 Jun 2015 22:30:38 +0000 (00:30 +0200)]
Make attached objects visible in 3rd person view

9 years agoFix wrap_rows at inner byte of multibyte sequence
figec [Thu, 18 Jun 2015 18:34:17 +0000 (21:34 +0300)]
Fix wrap_rows at inner byte of multibyte sequence

Also fix UTF-8 inner byte bounds and make unittest for case this fixes.

9 years agoBiome API: Add noise defined biome blend
paramat [Wed, 3 Jun 2015 07:59:07 +0000 (08:59 +0100)]
Biome API: Add noise defined biome blend

9 years agoMgv6: Don't create air gap in tundra at y = 48 in custom high terrain
paramat [Thu, 18 Jun 2015 01:55:52 +0000 (02:55 +0100)]
Mgv6: Don't create air gap in tundra at y = 48 in custom high terrain

9 years agoDon't print an error for valid listring[] formspec
est31 [Thu, 18 Jun 2015 02:25:11 +0000 (04:25 +0200)]
Don't print an error for valid listring[] formspec

9 years agoMake wrap_rows not wrap inside utf-8 multibyte sequences
est31 [Wed, 17 Jun 2015 20:10:22 +0000 (22:10 +0200)]
Make wrap_rows not wrap inside utf-8 multibyte sequences

Also count multibyte sequences as "one" character.
Adds unittest for the bug reporter's case.
Fixes #2796.

9 years agoFail iconv call gracefully
est31 [Wed, 17 Jun 2015 17:00:31 +0000 (19:00 +0200)]
Fail iconv call gracefully

No freezing when inbuf_size doesn't decrease over time.

9 years agoSimpler patch for saplings trying to grow on unknown nodes
ShadowNinja [Tue, 16 Jun 2015 19:00:19 +0000 (21:00 +0200)]
Simpler patch for saplings trying to grow on unknown nodes

9 years agoGUIFormSpecMenu::OnEvent code style update and small refactor
est31 [Tue, 16 Jun 2015 18:33:07 +0000 (20:33 +0200)]
GUIFormSpecMenu::OnEvent code style update and small refactor

* Make method (more) consistent with current code stlye
* Move index into loop constructor after @rubenwardy's suggestion
* Cache inv_s->getList(s.listname), which removes a possibly bad scenario
of inv_s being null.
* Properly check for validity

9 years agoUpdate credits tab
est31 [Tue, 16 Jun 2015 05:32:01 +0000 (07:32 +0200)]
Update credits tab

9 years agoAdd list-rings 2795/head
est31 [Tue, 16 Jun 2015 08:48:54 +0000 (10:48 +0200)]
Add list-rings

Adds list-rings, a method to implement item sending between inventories via shift-click.
Nice insider feature: a ring consisting of a single inventory list serves as nice clean-up method.
Also adds them to minimal game, and the standard inventory.
Craft output slots are not supported.

9 years agoRemove unneccessary space for tab completion
Nathaniel Olsen [Tue, 16 Jun 2015 02:10:06 +0000 (21:10 -0500)]
Remove unneccessary space for tab completion

9 years agoDon't highlight entries in credits
Wuzzy [Sun, 14 Jun 2015 23:26:02 +0000 (01:26 +0200)]
Don't highlight entries in credits

9 years agoDon't crash when saplings try to grow on unknown nodes
y.st [Mon, 15 Jun 2015 05:51:40 +0000 (22:51 -0700)]
Don't crash when saplings try to grow on unknown nodes

9 years agoBiome API: Enable biome generation to lower world limit
paramat [Sat, 13 Jun 2015 00:26:56 +0000 (01:26 +0100)]
Biome API: Enable biome generation to lower world limit

Decorations: Remove lower limit of water level for placement

9 years agoIgnore punches with no damage in the actionstream
SmallJoker [Wed, 11 Mar 2015 19:52:47 +0000 (20:52 +0100)]
Ignore punches with no damage in the actionstream

9 years agoRemove reference to deprecated privilege
Craig Davison [Sun, 14 Jun 2015 20:28:51 +0000 (21:28 +0100)]
Remove reference to deprecated privilege

9 years agoAutomated whitespace error fix for last commit
est31 [Sun, 14 Jun 2015 21:09:20 +0000 (23:09 +0200)]
Automated whitespace error fix for last commit

9 years agoImproved parallax mapping. Generate heightmaps on the fly.
RealBadAngel [Sun, 14 Jun 2015 19:13:36 +0000 (21:13 +0200)]
Improved parallax mapping. Generate heightmaps on the fly.

9 years agoAdd UTF and other utility unit tests
est31 [Sun, 14 Jun 2015 10:00:06 +0000 (12:00 +0200)]
Add UTF and other utility unit tests

9 years agoAndroid: bypass broken wide_to_utf8 with wide_to_narrow
est31 [Sun, 14 Jun 2015 04:38:02 +0000 (06:38 +0200)]
Android: bypass broken wide_to_utf8 with wide_to_narrow

While utf8_to_wide works well, wide_to_utf8 is quite broken
on android, for some reason.

9 years agoUse utf-8 in formspecs
Ilya Zhuravlev [Tue, 9 Jun 2015 23:54:33 +0000 (01:54 +0200)]
Use utf-8 in formspecs

9 years agoAdd utf-8 conversion utilities and re-add intlGUIEditBox
est31 [Tue, 9 Jun 2015 22:35:21 +0000 (00:35 +0200)]
Add utf-8 conversion utilities and re-add intlGUIEditBox

9 years agoAdd minetest.register_on_player_hpchange
TeTpaAka [Sat, 30 May 2015 14:56:42 +0000 (16:56 +0200)]
Add minetest.register_on_player_hpchange

9 years agoAdd return list of individual counts to find_node_in_area
TeTpaAka [Sat, 30 May 2015 18:53:21 +0000 (20:53 +0200)]
Add return list of individual counts to find_node_in_area

9 years agodofile error reporting for syntax errors
est31 [Fri, 12 Jun 2015 18:00:50 +0000 (20:00 +0200)]
dofile error reporting for syntax errors

According to doc, dofile() raises an error when parsing failed due to syntax errors.
Fixes #2775

9 years agoMinimal: Add snow biome and jungleleaves nodes. Add mapgen aliases
paramat [Fri, 12 Jun 2015 04:07:44 +0000 (05:07 +0100)]
Minimal: Add snow biome and jungleleaves nodes. Add mapgen aliases

Treegen: Remove alias checks from jungletree generation for speed

9 years agoReposition irrlicht timestamp in makefile
est31 [Thu, 11 Jun 2015 21:56:54 +0000 (23:56 +0200)]
Reposition irrlicht timestamp in makefile

9 years agoMore reliable serverlist behaviour
HybridDog [Sat, 30 May 2015 14:18:09 +0000 (16:18 +0200)]
More reliable serverlist behaviour

-> remember the previously loaded serverlist, and use if new one failed
-> show a "loading" serverlist

9 years agoMinimal: Edit mapgen aliases. Use blob ore for clay, update other ores. Update simple...
paramat [Sun, 7 Jun 2015 04:36:40 +0000 (05:36 +0100)]
Minimal: Edit mapgen aliases. Use blob ore for clay, update other ores. Update simple biomes. Cleanup code

9 years agoDecrease minetest.after globalstep lag
HybridDog [Wed, 3 Jun 2015 13:58:38 +0000 (15:58 +0200)]
Decrease minetest.after globalstep lag

* abort if theres no active timer
* only reduce the timer.time of all timers when its necessary
* move updating timers_to_add into a seperate function

9 years agoMgv5/mgv7: Trigger biome recalculation at underwater surfaces
paramat [Tue, 2 Jun 2015 07:38:14 +0000 (08:38 +0100)]
Mgv5/mgv7: Trigger biome recalculation at underwater surfaces

9 years agoFix uninitialized variable error
est31 [Tue, 2 Jun 2015 11:55:02 +0000 (13:55 +0200)]
Fix uninitialized variable error

If you run minetest with valgrind, you'll quickly notice uninitialized jump
depend error messages that point to s_base.cpp:131. This commit fixes those.

9 years agoNicer time setting logging
est31 [Tue, 2 Jun 2015 04:45:21 +0000 (06:45 +0200)]
Nicer time setting logging

Now logs

ACTION[ServerThread]: player sets time to 6:03

instead of

ACTION[ServerThread]: player sets time to 6:3

9 years agoFix wrong replace from previous commit
est31 [Mon, 1 Jun 2015 22:20:12 +0000 (00:20 +0200)]
Fix wrong replace from previous commit

9 years agoLocalize inside whole misc_helpers.lua
est31 [Mon, 1 Jun 2015 16:16:07 +0000 (18:16 +0200)]
Localize inside whole misc_helpers.lua

9 years agoMake split method static
est31 [Mon, 1 Jun 2015 14:58:57 +0000 (16:58 +0200)]
Make split method static

9 years agoMapblock: nodecount refactor
est31 [Sun, 31 May 2015 04:23:10 +0000 (06:23 +0200)]
Mapblock: nodecount refactor

Spare direct multoplication, use constant MapBlock::nodecount instead of
local nodecount variables.

Also use strides at one place instead of multiplications.

9 years agoOnly retrieve always_fly_fast setting once
SmallJoker [Sat, 30 May 2015 20:24:49 +0000 (22:24 +0200)]
Only retrieve always_fly_fast setting once

9 years ago(Android) Only simulate holding down fast key if fast_move is toggled to true
Craig Robbins [Fri, 29 May 2015 12:32:13 +0000 (22:32 +1000)]
(Android) Only simulate holding down fast key if fast_move is toggled to true

9 years agoMake get_biome_list() error message more helpful
kwolekr [Fri, 29 May 2015 00:04:40 +0000 (20:04 -0400)]
Make get_biome_list() error message more helpful

9 years agoFix typo in variable name
Kahrl [Thu, 28 May 2015 18:47:15 +0000 (20:47 +0200)]
Fix typo in variable name

9 years agoAdd some missing getter functions to the lua API
TeTpaAka [Tue, 26 May 2015 12:10:08 +0000 (14:10 +0200)]
Add some missing getter functions to the lua API

ObjectRef:
get_properties
get_armor_groups
get_animation
get_attach
get_bone_position

Players:
get_physics_override
hud_get_hotbar_itemcount
hud_get_hotbar_image
hud_get_hotbar_selected_image
get_sky
get_day_night_ratio
get_local_animation
get_eye_offset

Global:
minetest.get_gen_notify
minetest.get_noiseparams

9 years agoConsistent const string params
est31 [Wed, 27 May 2015 11:23:09 +0000 (13:23 +0200)]
Consistent const string params

Parent commit broke behaviour.
Thanks @TeTpaAka for testing the fix.

9 years agoSpare some string copies
est31 [Wed, 27 May 2015 09:45:40 +0000 (11:45 +0200)]
Spare some string copies

9 years agoMgv6: Enable snowbiomes by default. Double biome noise spread. 3 octaves, 0.5 persist...
paramat [Mon, 25 May 2015 01:12:44 +0000 (02:12 +0100)]
Mgv6: Enable snowbiomes by default. Double biome noise spread. 3 octaves, 0.5 persistence for humidity

9 years agoSmall clientiface ASCII art improvements
est31 [Sun, 24 May 2015 14:33:22 +0000 (16:33 +0200)]
Small clientiface ASCII art improvements

Use v arrows except where there is only one line between two boxes,
and other improvements
(Yea could use ↓ but its an ASCII art not an Unicode art).

9 years agoBiome API, mgv7: Increase heat/humidity spreads. Improve mgv7 noise parameters
paramat [Sun, 24 May 2015 00:37:50 +0000 (01:37 +0100)]
Biome API, mgv7: Increase heat/humidity spreads. Improve mgv7 noise parameters

9 years agoMgv5/v7: Fix generateBiomes biome recalculation logic Biomegen down to y = -192 for...
paramat [Thu, 21 May 2015 02:20:41 +0000 (03:20 +0100)]
Mgv5/v7: Fix generateBiomes biome recalculation logic Biomegen down to y = -192 for mgv5 deep oceans. Improve code

9 years agoFix Windows build, clean up included headers
SmallJoker [Fri, 22 May 2015 16:26:18 +0000 (18:26 +0200)]
Fix Windows build, clean up included headers

Also fix a startup error caused by s_security.cpp

9 years agoDeny empty username early in the protocol
est31 [Fri, 22 May 2015 18:22:55 +0000 (20:22 +0200)]
Deny empty username early in the protocol

Thanks to @UltimateNate for pointing this out :)

9 years agoDon't ignore nametag attribute change message for newer versions
est31 [Thu, 21 May 2015 16:58:39 +0000 (18:58 +0200)]
Don't ignore nametag attribute change message for newer versions

This allows newer versions to add additional information that isn't
read by us, but still in a backwards compatible manner.

9 years agoFix documentation for texture override face selector behaviour
est31 [Wed, 20 May 2015 17:58:27 +0000 (19:58 +0200)]
Fix documentation for texture override face selector behaviour

9 years agoReplace instances of std::map<std::string, std::string> with StringMap
kwolekr [Tue, 19 May 2015 06:24:14 +0000 (02:24 -0400)]
Replace instances of std::map<std::string, std::string> with StringMap

Also, clean up surrounding code style
Replace by-value parameter passing with const refs when possible
Fix post-increment of iterators

9 years agoAdd texture overriding
rubenwardy [Mon, 30 Mar 2015 10:55:29 +0000 (11:55 +0100)]
Add texture overriding

9 years agoFix build with libstdc++
kwolekr [Tue, 19 May 2015 06:38:48 +0000 (02:38 -0400)]
Fix build with libstdc++

libstdc++ doesn't include <cstring> inside of <string>, unlike libc++.

9 years agoSplit ObjDef/ObjDefManager out to objdef.cpp
kwolekr [Tue, 19 May 2015 02:30:25 +0000 (22:30 -0400)]
Split ObjDef/ObjDefManager out to objdef.cpp

9 years agoLower log level for unexpected behaviour
est31 [Mon, 18 May 2015 22:55:58 +0000 (00:55 +0200)]
Lower log level for unexpected behaviour

Its a possible mistake to log in to a server with twice the same name.
Before, it triggered a server wide error message, now it logs to actionstream.

9 years agoEnforce hiding nametag
est31 [Mon, 18 May 2015 20:41:22 +0000 (22:41 +0200)]
Enforce hiding nametag

Work around irrlicht bug and hide nametag if its alpha is set to 0.
Thanks @TeTpaAka for pointing out workaround.

9 years agoAdd more swp files to gitignore
est31 [Mon, 18 May 2015 19:24:57 +0000 (21:24 +0200)]
Add more swp files to gitignore

Specifically, the added rule matches .kate-swp files.

9 years agoMake nametags white again
est31 [Mon, 18 May 2015 19:01:57 +0000 (21:01 +0200)]
Make nametags white again

Commit 11a96e4901ce54c4646e47866f7a66cd9034c16b
commented out version parsing, resulting in the version byte being parsed as part of the color,
making nametags dark grey.
Re-introduces version parsing and ignores the packet if the version is more recent than ours,
fixing the unused variable warning (should have been done anyway).

9 years agoFix null dereference when loading schematic from definition without a NodeDefManager
kwolekr [Mon, 18 May 2015 02:32:35 +0000 (22:32 -0400)]
Fix null dereference when loading schematic from definition without a NodeDefManager

9 years agoRecord MapBlock modification reasons as flags instead of strings
kwolekr [Mon, 18 May 2015 02:14:26 +0000 (22:14 -0400)]
Record MapBlock modification reasons as flags instead of strings

This improves performance of MapBlock::raiseModified by a factor of 6.
Also, clean up mapblock.h a bit and inline small functions.

9 years agoSAPI/Noise: Add PerlinNoiseMap:getMapSlice() function
kwolekr [Sun, 17 May 2015 07:38:39 +0000 (03:38 -0400)]
SAPI/Noise: Add PerlinNoiseMap:getMapSlice() function

This adds the ability to grab 'slices' of noise calculated by PerlinNoiseMap.
Retrieving smaller slices of noise from the computation result as needed
optimizes memory usage while maintaining a reasonable amount of CPU overhead.

9 years agoMapgen v5/v7: Detect sandstone, enable sandstone brick dungeons
paramat [Tue, 12 May 2015 23:33:41 +0000 (00:33 +0100)]
Mapgen v5/v7: Detect sandstone, enable sandstone brick dungeons

9 years agoAdd optional buffer param for bulk data array writes in Lua
kwolekr [Sun, 17 May 2015 04:07:45 +0000 (00:07 -0400)]
Add optional buffer param for bulk data array writes in Lua

9 years agoNoise: Fix interpolation at negative coordinates
kwolekr [Sun, 17 May 2015 04:04:51 +0000 (00:04 -0400)]
Noise: Fix interpolation at negative coordinates

9 years agoFix current mod name change missed during rebase
ShadowNinja [Sat, 16 May 2015 23:09:53 +0000 (19:09 -0400)]
Fix current mod name change missed during rebase

9 years agoAdd -Wsign-compare for Clang builds and fix some signed/unsigned compiler warnings
kwolekr [Sat, 16 May 2015 23:59:53 +0000 (19:59 -0400)]
Add -Wsign-compare for Clang builds and fix some signed/unsigned compiler warnings

9 years agoSAPI: Accept either ARGB8 table or ColorString to specify colors
kwolekr [Sat, 16 May 2015 16:26:57 +0000 (12:26 -0400)]
SAPI: Accept either ARGB8 table or ColorString to specify colors

9 years agoAdd core.get_dir_list
ShadowNinja [Mon, 4 May 2015 18:59:13 +0000 (14:59 -0400)]
Add core.get_dir_list

9 years agoAdd core.request_insecure_environment()
ShadowNinja [Wed, 10 Sep 2014 01:52:07 +0000 (21:52 -0400)]
Add core.request_insecure_environment()

9 years agoAdd core.mkdir
ShadowNinja [Tue, 9 Sep 2014 19:17:01 +0000 (15:17 -0400)]
Add core.mkdir

9 years agoAdd mod security
ShadowNinja [Sat, 6 Sep 2014 00:08:51 +0000 (20:08 -0400)]
Add mod security

Due to compatibility concerns, this is temporarily disabled.

9 years agoAdded hour:minute format to time command
LeMagnesium [Sat, 16 May 2015 12:54:53 +0000 (14:54 +0200)]
Added hour:minute format to time command

  * The time command now accepts parameters in the form <hour>:<minute>,
    and if invoked with no parameters returns the current time in said format.

9 years agoFix build since last commit
est31 [Sat, 16 May 2015 20:14:15 +0000 (22:14 +0200)]
Fix build since last commit

Also rename method to better match what it does.

9 years agoFinalize init packets and enable protocol v25
est31 [Fri, 15 May 2015 23:19:43 +0000 (01:19 +0200)]
Finalize init packets and enable protocol v25

This enables srp.

9 years agoAdd push_ARGB8 to script/common/c_converter
TeTpaAka [Fri, 15 May 2015 20:16:39 +0000 (22:16 +0200)]
Add push_ARGB8 to script/common/c_converter