3723 Commits

Author SHA1 Message Date
Kahrl
7e4691b89b Fix particle code ignoring return value of std::vector::erase(). Wat. 2013-12-23 15:11:53 +01:00
RealBadAngel
851543a55d Fix wrong names for parallax settings in config example. 2013-12-22 00:30:17 +01:00
RealBadAngel
c770cf6dd3 Bugfix to get_all_craft_recipes.
Indexes for empty slots shall not be skipped.
2013-12-21 23:03:51 +01:00
Kahrl
f1923c0725 Check for denied access in itemdef/nodedef/media fetch loop 2013-12-19 21:47:08 +01:00
ShadowNinja
e2b44bca93 Don't throw a error when writing JSON fails 2013-12-18 18:18:43 -05:00
Kahrl
9e27fac2d5 Log guilty node name when allow_metadata_inventory_move/put/take fails 2013-12-18 23:04:13 +01:00
ShadowNinja
c24cde1d75 Add 'minetest.write_json' 2013-12-18 16:46:53 -05:00
ShadowNinja
4a8e393a79 Handle LuaErrors in Lua -> C++ calls on LuaJIT 2013-12-18 16:35:55 -05:00
BlockMen
6db3dc28d6 Fix formspec field labels 2013-12-17 01:13:16 +01:00
sapier
297f41851e Fix broken httpfetch due to SimpleThread removal 2013-12-16 23:31:56 +01:00
BlockMen
1c08484f25 Fix MSVC compiling issue 2013-12-16 01:13:08 +01:00
sapier
bcda64a383 Reduce cloud coloring for colored fog and cloud mode 2013-12-16 00:16:06 +01:00
PilzAdam
2970a9dd03 Remove an unused function and include from client.cpp 2013-12-15 19:57:08 +01:00
sapier
0a46034825 Add setting to disable direction dependent fog and sky colors 2013-12-15 15:30:02 +01:00
MirceaKitsune
d9763bb709 Directional fog + horizon colors, based on sun & moon positions at sunrise / sunset 2013-12-15 14:28:50 +01:00
sapier
6474caa15f Replace SimpleThread by JThread now implementing same features 2013-12-15 13:39:42 +01:00
BlockMen
ff4766950b Add alpha setting to font shadow 2013-12-14 21:11:38 +01:00
kwolekr
55e96c5375 Update mapgen params in ServerMap after Mapgen init 2013-12-14 10:49:20 -05:00
kwolekr
500e6c2718 Handle Lua errors in on_generate callbacks instead of throwing SIGABRT 2013-12-14 01:59:16 -05:00
kwolekr
85d7b64e2c Add map feature generation notify Lua API 2013-12-14 01:52:24 -05:00
ShadowNinja
75b4da3a7e Remove support for optdepends.txt 2013-12-13 13:10:24 -05:00
Kahrl
9ad7048d6d Don't call curl_global_init twice 2013-12-13 18:08:53 +01:00
sapier
656c7f2683 Replace any direct curl usage by httpfetch 2013-12-13 18:05:46 +01:00
Kahrl
149e07900a Use httpfetch_async in serverlist announce code 2013-12-13 18:05:39 +01:00
Kahrl
7b8553cacf Implement urlencode and urldecode 2013-12-13 18:05:35 +01:00
Kahrl
b34a01f4c8 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.
2013-12-13 18:05:20 +01:00
Kahrl
e9737be595 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.)
2013-12-13 18:05:10 +01:00
Ilya Zhuravlev
ed09f0e7e3 Fix a bug in GenericCAO GENERIC_CMD_UPDATE_POSITION parsing. 2013-12-13 13:18:00 +04:00
stujones11
ace4953a52 Make line_of_sight return blocking node position 2013-12-12 16:11:00 -05:00
kaeza
ba7af927a7 Add 'on_prejoinplayer' callback 2013-12-12 13:42:14 -05:00
Ilya Zhuravlev
27f9fd26a5 Add configurable font shadow. 2013-12-12 21:47:54 +04:00
sapier
723f6e156a Implement search tab and version picker 2013-12-11 23:07:38 +01:00
Ilya Zhuravlev
b88a7f4f24 Add Lithuanian translation. 2013-12-11 22:10:56 +04:00
PilzAdam
6651b3387c Check if width, height or start index of a list[] is negative 2013-12-09 22:39:24 +01:00
RealBadAngel
9d6015b41d Optimize shaders code. Add settings at compile time. 2013-12-09 13:28:50 +01:00
kwolekr
2aeade042c Mapgen Indev: Fix segfault in cave generation due to uninitialized variable 2013-12-08 22:13:05 -05:00
Novatux
d1f08635ac Fix shaders on some GPUs 2013-12-08 08:01:20 +01:00
kwolekr
632e68a71d Fix leak and possible segfault in minetest.set_mapgen_params 2013-12-08 01:37:41 -05:00
kwolekr
de76e0253e EmergeManager: Fix Lua mapgen override param handling 2013-12-08 01:31:06 -05:00
kwolekr
348d16096f Dungeongen: Create dungeon gen tuneables; add desert temples for Mapgen V6 2013-12-07 22:45:26 -05:00
ShadowNinja
7861d84bcb Move script_run_callbacks to Lua 2013-12-07 22:03:07 -05:00
ShadowNinja
0f143dcce2 Fix paralax occlusion setting 2013-12-06 22:42:09 -05:00
sfan5
d7e524cd79 Fix small mistake in Lua API docs 2013-12-06 18:37:32 +01:00
sapier
240057d61c Fix win32 jthread implementation 2013-12-06 17:49:10 +01:00
sweetbomber
a85c68049a Improve (re)spawn, add cache_block_before_spawn and max_spawn_height settings 2013-12-05 16:09:02 -05:00
ShadowNinja
e3785074a3 Only create one alias metatable 2013-12-04 14:31:55 -05:00
PilzAdam
8dae6c5967 Use a table in set_physics_override() 2013-12-03 23:20:00 +01:00
PilzAdam
844cac9e3a Add sneak and sneak_glitch to set_physics_override() 2013-12-03 23:20:00 +01:00
Sfan5
932519784b Fix LevelDB maps 2013-12-03 20:03:20 +01:00
RealBadAngel
c18af13697 Shaders rework. 2013-12-03 18:55:25 +01:00