zefram/minetest/minetest_engine.git
10 years agoFix curl dll not getting installed when sound is disabled
Sfan5 [Tue, 21 Jan 2014 12:35:26 +0000 (13:35 +0100)]
Fix curl dll not getting installed when sound is disabled

10 years agoFix minetest.rotate_and_place() calling on_rightclick() with nil/random param for...
PilzAdam [Sun, 19 Jan 2014 22:16:22 +0000 (23:16 +0100)]
Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for node

10 years agoUpdate lua_api.txt documentation
kwolekr [Sun, 19 Jan 2014 08:00:47 +0000 (03:00 -0500)]
Update lua_api.txt documentation

10 years agoLuaVoxelManip: Add get_param2_data and set_param2_data
kwolekr [Sun, 19 Jan 2014 07:55:34 +0000 (02:55 -0500)]
LuaVoxelManip: Add get_param2_data and set_param2_data

10 years agoSchematic: Read slice probability table from schematic descriptors
kwolekr [Sun, 19 Jan 2014 07:44:22 +0000 (02:44 -0500)]
Schematic: Read slice probability table from schematic descriptors

10 years agoFixed mainmenu lua errors because of changes in get_textlist_index
Dániel Varga [Thu, 16 Jan 2014 21:16:43 +0000 (22:16 +0100)]
Fixed mainmenu lua errors because of changes in get_textlist_index

Fixed lua error when none of the worlds or servers selected are and connect,
delete or configure buttons used.

10 years agoDeindent HTTPFetchRequest::HTTPFetchRequest()
ShadowNinja [Fri, 17 Jan 2014 00:33:02 +0000 (19:33 -0500)]
Deindent HTTPFetchRequest::HTTPFetchRequest()

10 years agoPrevent player jumping into nodes from below
BlockMen [Wed, 15 Jan 2014 13:49:13 +0000 (14:49 +0100)]
Prevent player jumping into nodes from below

Fixes camera glitch and cheating at drowning

10 years agoPrevent placing node when player would be inside new node
BlockMen [Wed, 15 Jan 2014 20:26:54 +0000 (21:26 +0100)]
Prevent placing node when player would be inside new node

10 years agoFix win32 reading semaphore count not working (broke all queues)
sapier [Tue, 14 Jan 2014 21:21:15 +0000 (22:21 +0100)]
Fix win32 reading semaphore count not working (broke all queues)

10 years agoMake default User-agent follow RFC 2616
ShadowNinja [Wed, 15 Jan 2014 16:58:28 +0000 (11:58 -0500)]
Make default User-agent follow RFC 2616

10 years agoFix building with MinGW
Sfan5 [Wed, 15 Jan 2014 16:35:00 +0000 (17:35 +0100)]
Fix building with MinGW

10 years agoFix building under MSVC
BlockMen [Tue, 14 Jan 2014 15:14:56 +0000 (16:14 +0100)]
Fix building under MSVC

10 years agoFix spelling of "attempt"
ShadowNinja [Tue, 14 Jan 2014 03:11:31 +0000 (22:11 -0500)]
Fix spelling of "attempt"

10 years agoAdd minetest.override_item
ShadowNinja [Tue, 14 Jan 2014 00:28:55 +0000 (19:28 -0500)]
Add minetest.override_item

10 years agoAdd formspec table
Kahrl [Fri, 23 Aug 2013 10:24:11 +0000 (12:24 +0200)]
Add formspec table

10 years agoAllow vertical axis particle rotation constraint
khonkhortisan [Mon, 22 Apr 2013 18:35:10 +0000 (11:35 -0700)]
Allow vertical axis particle rotation constraint

Use tables for adding particles, deprecate former way.

separate particles(pawner) definition, add default values, work with no
arguments

10 years agoFix some errors reported by clang static analyzer.
Ilya Zhuravlev [Sun, 12 Jan 2014 18:07:35 +0000 (22:07 +0400)]
Fix some errors reported by clang static analyzer.

10 years agoMapgen V6: Add flag to stop mud flow
kwolekr [Sun, 12 Jan 2014 23:20:53 +0000 (18:20 -0500)]
Mapgen V6: Add flag to stop mud flow

10 years agoFix doc and forceloading crash.
Novatux [Sun, 12 Jan 2014 12:53:10 +0000 (13:53 +0100)]
Fix doc and forceloading crash.

10 years agoAdd maximum recursion depth to read_json_value
ShadowNinja [Sat, 11 Jan 2014 19:08:02 +0000 (14:08 -0500)]
Add maximum recursion depth to read_json_value

10 years agoRename get_json_value to read_json_value
ShadowNinja [Sat, 11 Jan 2014 18:47:59 +0000 (13:47 -0500)]
Rename get_json_value to read_json_value

10 years agoAdd InvRef::get/set_lists()
ShadowNinja [Sun, 5 Jan 2014 00:07:30 +0000 (19:07 -0500)]
Add InvRef::get/set_lists()

10 years agoCompare values instead of pointers in Inventory::operator==
Kahrl [Sat, 11 Jan 2014 10:17:15 +0000 (11:17 +0100)]
Compare values instead of pointers in Inventory::operator==

10 years agoAdd operator!= to Inventory(List), make operator== a const method
Kahrl [Sat, 11 Jan 2014 18:46:37 +0000 (19:46 +0100)]
Add operator!= to Inventory(List), make operator== a const method

10 years agoAdd forceloading
Novatux [Sat, 11 Jan 2014 16:54:00 +0000 (17:54 +0100)]
Add forceloading

10 years agoDeepcopy pointed_thing for after_place_node, give it to on_rightclick too.
Novatux [Sat, 11 Jan 2014 16:23:28 +0000 (17:23 +0100)]
Deepcopy pointed_thing for after_place_node, give it to on_rightclick too.

10 years agoFix check for max_fd == -1 should actually be max_fd != -1
sapier [Fri, 10 Jan 2014 18:19:16 +0000 (19:19 +0100)]
Fix check for max_fd == -1 should actually be max_fd != -1

10 years agoFixed minetest reliable udp implementation (compatible to old clients)
sapier [Mon, 6 Jan 2014 19:05:28 +0000 (20:05 +0100)]
Fixed minetest reliable udp implementation (compatible to old clients)

10 years agoMake MutexQueue use jsemaphore for signaling
sapier [Mon, 6 Jan 2014 11:45:42 +0000 (12:45 +0100)]
Make MutexQueue use jsemaphore for signaling

10 years agoSet locale properly when built without gettext support
Perttu Ahola [Wed, 9 Jan 2013 12:37:00 +0000 (15:37 +0300)]
Set locale properly when built without gettext support

10 years agoDocument "wielditem" visual
ShadowNinja [Wed, 8 Jan 2014 22:09:23 +0000 (17:09 -0500)]
Document "wielditem" visual

10 years agoDon't lookup node texts in a endless recursion loop
sapier [Tue, 7 Jan 2014 10:15:24 +0000 (11:15 +0100)]
Don't lookup node texts in a endless recursion loop

10 years agoRevert "Improve (re)spawn, add cache_block_before_spawn and max_spawn_height settings"
ShadowNinja [Tue, 7 Jan 2014 02:17:19 +0000 (21:17 -0500)]
Revert "Improve (re)spawn, add cache_block_before_spawn and max_spawn_height settings"

The commit didn't work because the blocks weren't loaded yet.

This reverts commit 22dbbf0a6fc9547f0dbdb7f6076337b8c6acd48b.

Conflicts:
minetest.conf.example

10 years agoPass pointed_thing to after_place_node
ShadowNinja [Tue, 7 Jan 2014 02:15:44 +0000 (21:15 -0500)]
Pass pointed_thing to after_place_node

10 years agoAdd protection support to auto-rotated nodes
ShadowNinja [Tue, 7 Jan 2014 01:40:59 +0000 (20:40 -0500)]
Add protection support to auto-rotated nodes

10 years agoPrevent auto-rotated nodes replacing the nodes they are placed on
ShadowNinja [Tue, 7 Jan 2014 01:31:49 +0000 (20:31 -0500)]
Prevent auto-rotated nodes replacing the nodes they are placed on

10 years agoFix wrong named masterserver announce variable
proller [Mon, 6 Jan 2014 23:11:18 +0000 (03:11 +0400)]
Fix wrong named masterserver announce variable

10 years agoSend long announce as POST, show OS in useragent
proller [Mon, 6 Jan 2014 22:50:45 +0000 (02:50 +0400)]
Send long announce as POST, show OS in useragent
Add lag reporting to masterserver (average dtime)
StyledWriter  -> FastWriter in masterserver announce

10 years agoEscape error messages in error dialog
PilzAdam [Mon, 6 Jan 2014 17:59:14 +0000 (18:59 +0100)]
Escape error messages in error dialog

10 years agoActually pause singleplayer game in pause menu and use lower maximum FPS in it
Perttu Ahola [Mon, 6 Jan 2014 15:37:23 +0000 (17:37 +0200)]
Actually pause singleplayer game in pause menu and use lower maximum FPS in it

10 years agoAdd function to deregister a profiler from profiler list
sapier [Mon, 6 Jan 2014 14:21:22 +0000 (15:21 +0100)]
Add function to deregister a profiler from profiler list

10 years agoCreate new instance of mesh every time it's required (Solves #703)
Perttu Ahola [Mon, 6 Jan 2014 11:24:06 +0000 (13:24 +0200)]
Create new instance of mesh every time it's required (Solves #703)

10 years agoFix main menu error message dialog: Now multi-line messages aren't cut at half of...
Perttu Ahola [Mon, 6 Jan 2014 00:37:36 +0000 (02:37 +0200)]
Fix main menu error message dialog: Now multi-line messages aren't cut at half of second line

10 years agoBUILD: fix cmake list parsing
hasufell [Fri, 3 Jan 2014 15:15:14 +0000 (16:15 +0100)]
BUILD: fix cmake list parsing

because cmake is unable to parse it's own lists properly

10 years agoBUILD: prefer pkg-config for freetype2 detection
hasufell [Sun, 8 Dec 2013 20:05:25 +0000 (21:05 +0100)]
BUILD: prefer pkg-config for freetype2 detection

This can solve numerous problems such as:
http://www.cmake.org/Bug/view.php?id=13959
http://www.cmake.org/Bug/view.php?id=14601

If pkg-config or freetype2.pc is not found, then fall back to the
FindFreetype.cmake module logic.

Restrict to UNIX since I only tested it here.

10 years agoAdd option to link to OpenGL ES, fixes #1051
Sfan5 [Fri, 3 Jan 2014 09:17:01 +0000 (10:17 +0100)]
Add option to link to OpenGL ES, fixes #1051

10 years agoFix absence of images when compiled with RUN_IN_PLACE=0.
Ilya Zhuravlev [Fri, 13 Dec 2013 16:35:57 +0000 (20:35 +0400)]
Fix absence of images when compiled with RUN_IN_PLACE=0.

10 years agoReenable -dev suffix
Kahrl [Fri, 3 Jan 2014 03:36:13 +0000 (04:36 +0100)]
Reenable -dev suffix

10 years agoFix objects being selected behind a node
Novatux [Thu, 2 Jan 2014 13:26:21 +0000 (14:26 +0100)]
Fix objects being selected behind a node

10 years agoBump version to 0.4.9
kwolekr [Wed, 1 Jan 2014 21:54:28 +0000 (16:54 -0500)]
Bump version to 0.4.9

10 years agoFix exception caused by destroying sockets on Server shutdown
kwolekr [Wed, 25 Dec 2013 04:50:49 +0000 (23:50 -0500)]
Fix exception caused by destroying sockets on Server shutdown

10 years agoFix enum element name in Lua HUD code (position vs. pos)
kaeza [Sat, 21 Dec 2013 03:37:14 +0000 (01:37 -0200)]
Fix enum element name in Lua HUD code (position vs. pos)

10 years agoInitialize world before creating BanManager and RollbackManager
ShadowNinja [Mon, 30 Dec 2013 19:29:33 +0000 (14:29 -0500)]
Initialize world before creating BanManager and RollbackManager

10 years agoFix InventoryList reading order
ShadowNinja [Mon, 30 Dec 2013 19:00:05 +0000 (14:00 -0500)]
Fix InventoryList reading order

Lua does not guarantee that the indexes of a table will be in numerical order.

10 years agoRevert "Fix minetest.facedir_to_dir when param2 is 5 or 7."
Novatux [Mon, 30 Dec 2013 17:45:34 +0000 (18:45 +0100)]
Revert "Fix minetest.facedir_to_dir when param2 is 5 or 7."

This reverts commit 4e5760a5416cbca6945b1b4484cbd96bea7b250c.

10 years agoRemove FPS from window title
PilzAdam [Wed, 25 Dec 2013 02:52:42 +0000 (03:52 +0100)]
Remove FPS from window title
This doubles performance on some window managers (WTF?!)

10 years agoMake SHA1::addBytes(..., 0) a no-op instead of an assertion failure
Kahrl [Tue, 24 Dec 2013 23:29:00 +0000 (00:29 +0100)]
Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure

10 years agoUse sleep_ms instead of select in httpfetch when max_fd == -1, fixes WSAEINVAL
Kahrl [Tue, 24 Dec 2013 18:28:09 +0000 (19:28 +0100)]
Use sleep_ms instead of select in httpfetch when max_fd == -1, fixes WSAEINVAL

10 years agoFix particle code ignoring return value of std::vector::erase(). Wat.
Kahrl [Mon, 23 Dec 2013 14:11:53 +0000 (15:11 +0100)]
Fix particle code ignoring return value of std::vector::erase(). Wat.

10 years agoFix wrong names for parallax settings in config example.
RealBadAngel [Sat, 21 Dec 2013 23:30:17 +0000 (00:30 +0100)]
Fix wrong names for parallax settings in config example.

10 years agoBugfix to get_all_craft_recipes.
RealBadAngel [Sat, 21 Dec 2013 22:03:51 +0000 (23:03 +0100)]
Bugfix to get_all_craft_recipes.
Indexes for empty slots shall not be skipped.

10 years agoCheck for denied access in itemdef/nodedef/media fetch loop
Kahrl [Thu, 19 Dec 2013 20:47:08 +0000 (21:47 +0100)]
Check for denied access in itemdef/nodedef/media fetch loop

10 years agoDon't throw a error when writing JSON fails
ShadowNinja [Wed, 18 Dec 2013 23:17:26 +0000 (18:17 -0500)]
Don't throw a error when writing JSON fails

10 years agoLog guilty node name when allow_metadata_inventory_move/put/take fails
Kahrl [Wed, 18 Dec 2013 21:57:33 +0000 (22:57 +0100)]
Log guilty node name when allow_metadata_inventory_move/put/take fails

10 years agoAdd 'minetest.write_json'
ShadowNinja [Wed, 18 Dec 2013 21:46:53 +0000 (16:46 -0500)]
Add 'minetest.write_json'

10 years agoHandle LuaErrors in Lua -> C++ calls on LuaJIT
ShadowNinja [Wed, 18 Dec 2013 21:35:55 +0000 (16:35 -0500)]
Handle LuaErrors in Lua -> C++ calls on LuaJIT

10 years agoFix formspec field labels
BlockMen [Tue, 17 Dec 2013 00:13:16 +0000 (01:13 +0100)]
Fix formspec field labels

10 years agoFix broken httpfetch due to SimpleThread removal
sapier [Mon, 16 Dec 2013 22:31:56 +0000 (23:31 +0100)]
Fix broken httpfetch due to SimpleThread removal

10 years agoFix MSVC compiling issue
BlockMen [Mon, 16 Dec 2013 00:13:08 +0000 (01:13 +0100)]
Fix MSVC compiling issue

10 years agoReduce cloud coloring for colored fog and cloud mode
sapier [Sun, 15 Dec 2013 23:16:06 +0000 (00:16 +0100)]
Reduce cloud coloring for colored fog and cloud mode

10 years agoRemove an unused function and include from client.cpp
PilzAdam [Sun, 15 Dec 2013 18:15:25 +0000 (19:15 +0100)]
Remove an unused function and include from client.cpp

10 years agoAdd setting to disable direction dependent fog and sky colors
sapier [Sun, 15 Dec 2013 14:30:02 +0000 (15:30 +0100)]
Add setting to disable direction dependent fog and sky colors

10 years agoDirectional fog + horizon colors, based on sun & moon positions at sunrise / sunset
MirceaKitsune [Sun, 30 Jun 2013 15:17:14 +0000 (18:17 +0300)]
Directional fog + horizon colors, based on sun & moon positions at sunrise / sunset

10 years agoReplace SimpleThread by JThread now implementing same features
sapier [Tue, 3 Dec 2013 22:32:03 +0000 (23:32 +0100)]
Replace SimpleThread by JThread now implementing same features

10 years agoAdd alpha setting to font shadow
BlockMen [Thu, 12 Dec 2013 20:02:09 +0000 (21:02 +0100)]
Add alpha setting to font shadow

10 years agoUpdate mapgen params in ServerMap after Mapgen init
kwolekr [Sat, 14 Dec 2013 15:49:20 +0000 (10:49 -0500)]
Update mapgen params in ServerMap after Mapgen init

10 years agoHandle Lua errors in on_generate callbacks instead of throwing SIGABRT
kwolekr [Sat, 14 Dec 2013 06:59:16 +0000 (01:59 -0500)]
Handle Lua errors in on_generate callbacks instead of throwing SIGABRT

10 years agoAdd map feature generation notify Lua API
kwolekr [Sat, 14 Dec 2013 06:52:06 +0000 (01:52 -0500)]
Add map feature generation notify Lua API

10 years agoRemove support for optdepends.txt
ShadowNinja [Fri, 13 Dec 2013 17:58:32 +0000 (12:58 -0500)]
Remove support for optdepends.txt

10 years agoDon't call curl_global_init twice
Kahrl [Fri, 13 Dec 2013 17:08:53 +0000 (18:08 +0100)]
Don't call curl_global_init twice

10 years agoReplace any direct curl usage by httpfetch
sapier [Sat, 9 Nov 2013 21:49:27 +0000 (22:49 +0100)]
Replace any direct curl usage by httpfetch

10 years agoUse httpfetch_async in serverlist announce code
Kahrl [Thu, 29 Aug 2013 03:58:13 +0000 (05:58 +0200)]
Use httpfetch_async in serverlist announce code

10 years agoImplement urlencode and urldecode
Kahrl [Thu, 29 Aug 2013 03:56:48 +0000 (05:56 +0200)]
Implement urlencode and urldecode

10 years agoRewrite client media download and support hash-based remote download
Kahrl [Thu, 29 Aug 2013 03:22:18 +0000 (05:22 +0200)]
Rewrite client media download and support hash-based remote download

Move most of the media-related code in client.cpp into a new class
ClientMediaDownloader (clientmedia.cpp, clientmedia.h). Among other
things, this class does the following things:

- Download [remote_server][sha1] instead of [remote_server][name]. This
is to support servers that provide the same file name with different
contents.
- Initially fetch [remote_server]index.mth. This file should follow the
Minetest Hashset format (currently version 1) and contain a list of SHA1
hashes that exist on the server.
- The list of needed SHA1s is uploaded (via HTTP POST) when index.mth is
requested, so servers can optionally narrow down the list to the needs
of the client.
- If index.mth is missing (HTTP response code 404), we enter compat mode,
fetching [remote_server][name] as before this commit.
- remote_server can now contain multiple servers, separated by commas.
The downloader code attempts to split requests between the different
servers, as permitted by each server's index.mth. If one server claims
to have a file but actually doesn't (or something fails), we ask a
different server that also claims to have it.
- As before, when none of the remote servers provide a particular
file, we download it via the conventional method, i.e. using
the minetest protocol: TOSERVER_REQUEST_MEDIA / TOCLIENT_MEDIA.
- Bugfix: Every downloaded file's SHA1 is now verified against the SHA1
announced by the minetest server (before loading it and inserting it
into the file cache).
- Bugfix: Only send TOSERVER_RECEIVED_MEDIA when we actually have all
media. This should fix #863.

10 years agoImplement httpfetch module and initialize it from main()
Kahrl [Thu, 29 Aug 2013 03:04:56 +0000 (05:04 +0200)]
Implement httpfetch module and initialize it from main()

Add curl_parallel_limit setting that will replace media_fetch_threads in
a later commit.

Fix a typo in MutexedQueue::pop_back() that made it impossible to compile
code that used this function. (Noticed this while implementing httpfetch.)

10 years agoFix a bug in GenericCAO GENERIC_CMD_UPDATE_POSITION parsing.
Ilya Zhuravlev [Fri, 13 Dec 2013 09:18:00 +0000 (13:18 +0400)]
Fix a bug in GenericCAO GENERIC_CMD_UPDATE_POSITION parsing.

10 years agoMake line_of_sight return blocking node position
stujones11 [Wed, 11 Dec 2013 20:33:39 +0000 (20:33 +0000)]
Make line_of_sight return blocking node position

10 years agoAdd 'on_prejoinplayer' callback
kaeza [Thu, 12 Dec 2013 06:51:35 +0000 (04:51 -0200)]
Add 'on_prejoinplayer' callback

10 years agoAdd configurable font shadow.
Ilya Zhuravlev [Thu, 12 Dec 2013 17:47:54 +0000 (21:47 +0400)]
Add configurable font shadow.

10 years agoImplement search tab and version picker
sapier [Wed, 11 Dec 2013 22:07:38 +0000 (23:07 +0100)]
Implement search tab and version picker

10 years agoAdd Lithuanian translation.
Ilya Zhuravlev [Wed, 11 Dec 2013 18:10:56 +0000 (22:10 +0400)]
Add Lithuanian translation.

10 years agoCheck if width, height or start index of a list[] is negative
PilzAdam [Mon, 9 Dec 2013 21:39:24 +0000 (22:39 +0100)]
Check if width, height or start index of a list[] is negative

10 years agoOptimize shaders code. Add settings at compile time.
RealBadAngel [Mon, 9 Dec 2013 12:25:43 +0000 (13:25 +0100)]
Optimize shaders code. Add settings at compile time.

10 years agoMapgen Indev: Fix segfault in cave generation due to uninitialized variable
kwolekr [Mon, 9 Dec 2013 03:13:05 +0000 (22:13 -0500)]
Mapgen Indev: Fix segfault in cave generation due to uninitialized variable

10 years agoFix shaders on some GPUs
Novatux [Sun, 8 Dec 2013 07:01:20 +0000 (08:01 +0100)]
Fix shaders on some GPUs

10 years agoFix leak and possible segfault in minetest.set_mapgen_params
kwolekr [Sun, 8 Dec 2013 06:37:41 +0000 (01:37 -0500)]
Fix leak and possible segfault in minetest.set_mapgen_params

10 years agoEmergeManager: Fix Lua mapgen override param handling
kwolekr [Sun, 8 Dec 2013 04:43:46 +0000 (23:43 -0500)]
EmergeManager: Fix Lua mapgen override param handling

10 years agoDungeongen: Create dungeon gen tuneables; add desert temples for Mapgen V6
kwolekr [Sun, 8 Dec 2013 03:45:21 +0000 (22:45 -0500)]
Dungeongen: Create dungeon gen tuneables; add desert temples for Mapgen V6

10 years agoMove script_run_callbacks to Lua
ShadowNinja [Sun, 8 Dec 2013 03:03:07 +0000 (22:03 -0500)]
Move script_run_callbacks to Lua