oweals/minetest.git
9 years agoUse minetest logging facilities for irrlicht log output
ShadowNinja [Sat, 4 Jul 2015 22:53:38 +0000 (00:53 +0200)]
Use minetest logging facilities for irrlicht log output

9 years agoMgv7: Lower base of mountain generation to -112 and define constant
paramat [Fri, 3 Jul 2015 21:47:31 +0000 (22:47 +0100)]
Mgv7: Lower base of mountain generation to -112 and define constant

9 years agoFix endless loop since grandparent commit
est31 [Sat, 4 Jul 2015 17:43:46 +0000 (19:43 +0200)]
Fix endless loop since grandparent commit

9 years agoFix attempt to start a world when no world is selected/created
jeanpatrick.guerrero@gmail.com [Sat, 4 Jul 2015 13:08:32 +0000 (15:08 +0200)]
Fix attempt to start a world when no world is selected/created

9 years agoCraftdef: Use numbers instead of iterators
est31 [Sat, 4 Jul 2015 14:21:37 +0000 (16:21 +0200)]
Craftdef: Use numbers instead of iterators

Use numbers instead of iterators to traverse various vectors.

9 years agoFix missing check for 0 in craft replacements
TeTpaAka [Sat, 4 Jul 2015 09:28:09 +0000 (11:28 +0200)]
Fix missing check for 0 in craft replacements

9 years agoFix code style from recent commits and add misc. optimizations
kwolekr [Fri, 3 Jul 2015 03:14:30 +0000 (23:14 -0400)]
Fix code style from recent commits and add misc. optimizations

9 years agoSet server_announce to world.mt and respect modes when changing subgame
Sokomine [Thu, 2 Jul 2015 14:26:09 +0000 (16:26 +0200)]
Set server_announce to world.mt and respect modes when changing subgame

9 years agoShaders fixes and cleanup relief mapping code.
RealBadAngel [Thu, 2 Jul 2015 19:36:45 +0000 (21:36 +0200)]
Shaders fixes and cleanup relief mapping code.

9 years agoFix world.mt not written when selecting mode
Sokomine [Wed, 1 Jul 2015 16:56:27 +0000 (18:56 +0200)]
Fix world.mt not written when selecting mode

9 years agoInventory manager style cleanup and further checks
est31 [Wed, 1 Jul 2015 15:03:02 +0000 (17:03 +0200)]
Inventory manager style cleanup and further checks

9 years agoDisable mesh cache by default
est31 [Wed, 1 Jul 2015 11:49:48 +0000 (13:49 +0200)]
Disable mesh cache by default

9 years agoCavegen: Cleanup code. Define constant for MGV7_LAVA_DEPTH
paramat [Tue, 30 Jun 2015 13:31:54 +0000 (14:31 +0100)]
Cavegen: Cleanup code. Define constant for MGV7_LAVA_DEPTH

9 years agoAdd android tools environment to gitignore
est31 [Wed, 1 Jul 2015 02:12:55 +0000 (04:12 +0200)]
Add android tools environment to gitignore

Previously, if you did `make envpaths` (as described in README.android), the new file got listed by git as new file.

9 years agoMake m_blocks_cache private
est31 [Tue, 30 Jun 2015 19:34:23 +0000 (21:34 +0200)]
Make m_blocks_cache private

@RealBadAngel has removed all outside access of the cache.

9 years agoDefer minimap update when shape changed
est31 [Tue, 30 Jun 2015 19:14:28 +0000 (21:14 +0200)]
Defer minimap update when shape changed

9 years agoClose keybind settings menu with esc
est31 [Tue, 30 Jun 2015 19:04:06 +0000 (21:04 +0200)]
Close keybind settings menu with esc

9 years agoFix single click world select
est31 [Tue, 30 Jun 2015 17:58:06 +0000 (19:58 +0200)]
Fix single click world select

9 years agoFix bugs in mainmenu
jeanpatrick.guerrero@gmail.com [Mon, 29 Jun 2015 13:41:05 +0000 (15:41 +0200)]
Fix bugs in mainmenu

9 years agoBiome API: Increase heat and humidity noise spreads to 1000
paramat [Tue, 30 Jun 2015 05:32:52 +0000 (06:32 +0100)]
Biome API: Increase heat and humidity noise spreads to 1000

9 years agoAdd UpdateThread and use it for minimap and mesh threads
est31 [Mon, 29 Jun 2015 09:06:03 +0000 (11:06 +0200)]
Add UpdateThread and use it for minimap and mesh threads

9 years agoFix *BSD build with GNU iconv
kwolekr [Mon, 29 Jun 2015 06:39:22 +0000 (02:39 -0400)]
Fix *BSD build with GNU iconv

9 years agoAdd Lua errors to error dialog
rubenwardy [Mon, 2 Mar 2015 18:26:20 +0000 (18:26 +0000)]
Add Lua errors to error dialog

9 years agoBugfix: variable type mismatch
RealBadAngel [Sun, 28 Jun 2015 19:11:54 +0000 (21:11 +0200)]
Bugfix: variable type mismatch

9 years agoBugfix: minimap was updated only with loading new blocks, allow forced updates with...
RealBadAngel [Sun, 28 Jun 2015 12:45:47 +0000 (14:45 +0200)]
Bugfix: minimap was updated only with loading new blocks, allow forced updates with changing player pos

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