ShadowNinja [Tue, 7 Apr 2015 10:13:12 +0000 (06:13 -0400)]
Clean up threading
* Rename everything.
* Strip J prefix.
* Change UpperCamelCase functions to lowerCamelCase.
* Remove global (!) semaphore count mutex on OSX.
* Remove semaphore count getter (unused, unsafe, depended on internal
API functions on Windows, and used a hack on OSX).
* Add `Atomic<type>`.
* Make `Thread` handle thread names.
* Add support for C++11 multi-threading.
* Combine pthread and win32 sources.
* Remove `ThreadStarted` (unused, unneeded).
* Move some includes from the headers to the sources.
* Move all of `Event` into its header (allows inlining with no new includes).
* Make `Event` use `Semaphore` (except on Windows).
* Move some porting functions into `Thread`.
* Integrate logging with `Thread`.
* Add threading test.
est31 [Fri, 21 Aug 2015 20:43:40 +0000 (22:43 +0200)]
Fix wrong android versionName
Before, android versionName was set to "...13", which made the f-droid build fail.
est31 [Thu, 20 Aug 2015 02:02:00 +0000 (04:02 +0200)]
Continue with 0.4.13-dev
est31 [Thu, 20 Aug 2015 02:02:00 +0000 (04:02 +0200)]
Bump version to 0.4.13
RealBadAngel [Thu, 20 Aug 2015 01:39:26 +0000 (03:39 +0200)]
tileable flags are needed also without shaders because of filters
RealBadAngel [Tue, 18 Aug 2015 21:59:44 +0000 (23:59 +0200)]
Remove use of engine sent texture tiling flags - theyre no longer needed
kwolekr [Wed, 19 Aug 2015 19:56:08 +0000 (15:56 -0400)]
Remove some emails from credits tab
kwolekr [Wed, 19 Aug 2015 19:14:27 +0000 (15:14 -0400)]
Update credits tab
Rui [Tue, 18 Aug 2015 10:57:55 +0000 (19:57 +0900)]
Fix indianred and indigo of color-string
Rui [Sat, 15 Aug 2015 08:41:42 +0000 (17:41 +0900)]
Add Japanese translation of desktop file
est31 [Wed, 19 Aug 2015 16:56:44 +0000 (18:56 +0200)]
Client: disable mmdb modstore
The service isn't online, and on the long term, mmdb will likekly be
replaced with other services from the modding community.
est31 [Sun, 14 Jun 2015 04:38:02 +0000 (06:38 +0200)]
Android: bypass broken wide_to_utf8 with wide_to_narrow (again)
This bypass had to be re-enabled as some users reported issues,
even after the iconv build fix.
While utf8_to_wide works well, wide_to_utf8 is quite broken
on android, for some reason, and some devices (unrelated from build
configuration).
est31 [Wed, 19 Aug 2015 00:28:37 +0000 (02:28 +0200)]
Fix inventory replace bug
kwolekr [Tue, 18 Aug 2015 05:26:11 +0000 (01:26 -0400)]
SAPI: Disable unlockable time profiling
kwolekr [Sat, 15 Aug 2015 18:03:36 +0000 (14:03 -0400)]
SEnv: Remove static_exists from ActiveObjects in deleted blocks
onkrot [Sat, 15 Aug 2015 19:25:27 +0000 (00:25 +0500)]
Remove unused functions.
paramat [Fri, 14 Aug 2015 23:21:15 +0000 (00:21 +0100)]
Defaultsettings: Increase client_mapblock_limit to 5000
kwolekr [Sat, 15 Aug 2015 18:45:44 +0000 (14:45 -0400)]
Rollback: Fail on bad precondition instead of causing assertion error
BlockMen [Wed, 12 Aug 2015 21:25:26 +0000 (23:25 +0200)]
Fix sneaking (fixes #665 and #3045)
nerzhul [Fri, 14 Aug 2015 12:00:36 +0000 (14:00 +0200)]
Remove unused function from connection.{cpp,h}
est31 [Fri, 14 Aug 2015 13:38:35 +0000 (15:38 +0200)]
Don't do formspec escaping twice for loading description
kwolekr [Thu, 13 Aug 2015 07:16:50 +0000 (03:16 -0400)]
minimap: Add ability to disable from server
est31 [Thu, 13 Aug 2015 10:03:30 +0000 (12:03 +0200)]
game.cpp: Update cached settings
Perttu Ahola [Thu, 13 Aug 2015 16:02:48 +0000 (19:02 +0300)]
est31 [Mon, 10 Aug 2015 20:24:47 +0000 (22:24 +0200)]
Add count based unload limit for mapblocks
kwolekr [Wed, 12 Aug 2015 02:27:54 +0000 (22:27 -0400)]
SAPI: Track last executed mod and include in error messages
est31 [Tue, 11 Aug 2015 17:07:56 +0000 (19:07 +0200)]
Fix Lua PcgRandom
Before, this lua code led to a crash:
local pcg = PcgRandom(42)
local value = pcg:next()
This was because if you called s32 PcgRandom::range(min, max) with the
minimum and maximum possible values for s32 integers (which the lua
binding code did), u32 PcgRandom::range(bound) got called with 0 as the
bound. The bound however is one above the maximum value, so 0 is a "special"
value to pass to this function. This commit fixes the lua crash by
assigning the RNG's full range to the bound 0, which is also fits to the
"maximum is bound - 1" principle, as (u32)-1 is the maximum value in the
u32 range.
paramat [Sun, 9 Aug 2015 08:17:11 +0000 (09:17 +0100)]
Treegen: Rename pine tree mapgen alias
Kahrl [Mon, 10 Aug 2015 06:36:55 +0000 (08:36 +0200)]
Fix intlGUIEditBox leak and uninitialized value in Mapper (reported by valgrind)
kwolekr [Mon, 10 Aug 2015 06:16:55 +0000 (02:16 -0400)]
Make NetworkPacket respect serialized string size limits
kwolekr [Mon, 10 Aug 2015 05:38:09 +0000 (01:38 -0400)]
Display Lua memory usage at the time of Out-of-Memory error
Also misc. minor cleanups
rubenwardy [Sun, 9 Aug 2015 20:10:37 +0000 (21:10 +0100)]
Fix segfaults caused by the Environment not being initialized yet
sfan5 [Sun, 9 Aug 2015 19:51:21 +0000 (21:51 +0200)]
Translated using Weblate (German)
Currently translated at 100.0% (270 of 270 strings)
Diego Martinez [Sat, 31 Oct 2015 12:33:43 +0000 (09:33 -0300)]
Update Spanish translation.
Loic Blot [Wed, 5 Aug 2015 21:39:41 +0000 (23:39 +0200)]
Remove unused file
Kisbenedek Márton [Wed, 5 Aug 2015 11:29:22 +0000 (13:29 +0200)]
Translated using Weblate (Hungarian)
Currently translated at 91.1% (246 of 270 strings)
Andrey K [Thu, 30 Jul 2015 13:32:39 +0000 (15:32 +0200)]
Translated using Weblate (Russian)
Currently translated at 100.0% (270 of 270 strings)
est31 [Tue, 21 Jul 2015 14:48:09 +0000 (16:48 +0200)]
Translated using Weblate (German)
Currently translated at 100.0% (270 of 270 strings)
Jackie Coe [Mon, 20 Jul 2015 09:46:14 +0000 (11:46 +0200)]
Translated using Weblate (German)
Currently translated at 100.0% (270 of 270 strings)
Jackie Coe [Mon, 20 Jul 2015 09:44:09 +0000 (11:44 +0200)]
Translated using Weblate (German)
Currently translated at 100.0% (270 of 270 strings)
Rui [Fri, 17 Jul 2015 12:33:04 +0000 (14:33 +0200)]
Translated using Weblate (Japanese)
Currently translated at 100.0% (270 of 270 strings)
est31 [Fri, 17 Jul 2015 14:47:21 +0000 (16:47 +0200)]
Translated using Weblate (German)
Currently translated at 99.6% (269 of 270 strings)
Jean-Patrick G [Fri, 17 Jul 2015 20:49:20 +0000 (22:49 +0200)]
Translated using Weblate (French)
Currently translated at 96.2% (260 of 270 strings)
Rui [Fri, 17 Jul 2015 12:25:05 +0000 (14:25 +0200)]
Translated using Weblate (Japanese)
Currently translated at 96.2% (260 of 270 strings)
est31 [Fri, 17 Jul 2015 05:39:41 +0000 (07:39 +0200)]
Translated using Weblate (German)
Currently translated at 99.6% (269 of 270 strings)
Jean-Patrick G [Fri, 17 Jul 2015 07:55:51 +0000 (09:55 +0200)]
Translated using Weblate (French)
Currently translated at 96.2% (260 of 270 strings)
Kahrl [Fri, 7 Aug 2015 04:02:06 +0000 (06:02 +0200)]
Fix camera updates being toggled by N key in release mode (#2762)
gregorycu [Sun, 1 Feb 2015 03:40:50 +0000 (14:40 +1100)]
Fix detection of sneaking node
This fixes bug 1551
kwolekr [Thu, 6 Aug 2015 06:15:21 +0000 (02:15 -0400)]
Fix BufferedPacket race condition (fixes #2983)
This was caused by the use the non-threadsafe SharedBuffer in a
threaded context.
kwolekr [Thu, 6 Aug 2015 03:53:26 +0000 (23:53 -0400)]
Fix critical vulnerabilities and bugs with NetworkPacket
est31 [Thu, 6 Aug 2015 02:59:38 +0000 (04:59 +0200)]
Initialize random for verification key generation too
kwolekr [Wed, 5 Aug 2015 04:49:35 +0000 (00:49 -0400)]
Improve Script CPP API diagnostics
kwolekr [Wed, 5 Aug 2015 06:56:23 +0000 (02:56 -0400)]
connection: Make assertions non-fatal for received data
RealBadAngel [Wed, 5 Aug 2015 20:52:32 +0000 (22:52 +0200)]
Fix tiling issues for PLANTLIKE and FIRELIKE with FSAA
paramat [Mon, 3 Aug 2015 03:34:11 +0000 (04:34 +0100)]
Cavegen V6: Make all caves consistent with 0.4.12 stable
When tunnels entirely above ground were avoided, the
missing pseudorandom calls changed the allowed caves.
Now, above ground tunnels are not placed while
still running all previous pseudorandom calls.
paramat [Sun, 2 Aug 2015 00:35:05 +0000 (01:35 +0100)]
Biome API: Make fallback biome stone and water, disable filler
Břetislav Štec [Sun, 2 Aug 2015 13:08:39 +0000 (15:08 +0200)]
src/util/numeric.{cpp,h}: Fix FacePositionCache data race
Miner59 [Sun, 5 Jul 2015 12:52:55 +0000 (14:52 +0200)]
Fix "bouncy" blocks
Before players "bounced" too high. Now, while still allowing to bounce, higher speed bounces are throttled.
Břetislav Štec [Sun, 2 Aug 2015 16:42:03 +0000 (18:42 +0200)]
src/client/tile.cpp: Fix reference counting
est31 [Sun, 2 Aug 2015 08:08:44 +0000 (10:08 +0200)]
Android: fix sound issue, and gitignore
Previously, sound failed due to errors with hardfp abi build
instructions. As the problem couldn't be found, the softfp
compatible abi was chosen instead.
This move will cause a small performance overhead, but due to the
abi being armeabi-v7a, the internal calculations will still be done
using the FPU.
We also fix some issues with ABI information passing. However, the
fixes aren't sufficient to get sound working.
The patch also fixes an issue with the gitignore file.
est31 [Sun, 2 Aug 2015 16:23:22 +0000 (18:23 +0200)]
Actually document what minetest.is_protected should do
rubenwardy [Mon, 13 Jul 2015 15:01:31 +0000 (16:01 +0100)]
Add map limit config option
Břetislav Štec [Sat, 1 Aug 2015 20:52:28 +0000 (22:52 +0200)]
Prepend "Lua: " before lua exceptions
src/server.cpp
src/emerge.cpp
Břetislav Štec [Sat, 1 Aug 2015 22:16:31 +0000 (00:16 +0200)]
src/wieldmesh.cpp: Fix mesh extrusion memory leak
Břetislav Štec [Sat, 1 Aug 2015 23:31:57 +0000 (01:31 +0200)]
src/client.cpp: Fix mapper memory leak
kwolekr [Sat, 1 Aug 2015 05:03:51 +0000 (01:03 -0400)]
Improve accuracy and safety of float serialization
Multiplying by a factor of 1/1000.f (rather than dividing by 1000.f) directly
introduces an error of 1 ULP. With this patch, an exact comparison of a
floating point literal with the deserialized F1000 form representing it is now
guaranteed to be successful.
In addition, the maxmium and minimum safely representible floating point
numbers are now well-defined as constants.
kwolekr [Sat, 1 Aug 2015 04:34:09 +0000 (00:34 -0400)]
Clean up util/serialization.{cpp,h} and add unit tests
Břetislav Štec [Sat, 1 Aug 2015 12:07:12 +0000 (14:07 +0200)]
src/environment.cpp: Fix NULL pointer dereference
Břetislav Štec [Sat, 1 Aug 2015 11:53:15 +0000 (13:53 +0200)]
src/network/connection.h: Fix race condition
est31 [Fri, 31 Jul 2015 14:38:36 +0000 (16:38 +0200)]
Android: Add githash header to spare rebuilds after new commits
Before, android_version.h got changed at every new commit. Now, we
only change it with new minetest releases. Analogous to how cmake
does it, we add an android_version_githash.h file that communicates
the git hash to C++ code.
Also, unify VERS_MAJOR, VERS_MINOR and VERS_PATCH variable
calculation inside the whole makefile.
kwolekr [Sat, 1 Aug 2015 03:29:51 +0000 (23:29 -0400)]
tests: Log exceptions thrown inside of unit tests
paramat [Fri, 31 Jul 2015 00:10:53 +0000 (01:10 +0100)]
Dungeon generation: Fix code style issues in dungeongen.cpp
est31 [Fri, 31 Jul 2015 03:52:34 +0000 (05:52 +0200)]
Android: speed up rebuild, and prevent race condition fail
Speeding up rebuild:
Before, we've written the android_version.h file at every rebuild.
As it thought the file's content has changed, make has rebuilt files
in the source tree that depended on that header file during rebuild,
causing lots of files being rebuilt without there being a reason.
The reasoning of make can be observed by passing -d and V=1 params
to the ndk-build command. You then got logging entries like:
Prerequisite `jni/src/android_version.h' is newer than target `obj/local/armeabi-v7a-hard/objs-debug/minetest/jni/src/areastore.o'.
Preventing race condition build fail:
Before, there was a race condition, where, if the prep_srcdir target
was executed in parallel with the $(ROOT)/jni/src/android_version.h
one, it could happen that the jni/src directory was nonexistent, and
we were trying to write into a file inside. This resulted in a build
failue:
/bin/sh: 1: cannot create [...]/jni/src/android_version.h: Directory nonexistent
Additionally, we now don't remove the link to src/ needlessly anymore.
Keeping this wouldn't have affected the rebuild, but this way its
more proper.
est31 [Fri, 31 Jul 2015 02:51:57 +0000 (04:51 +0200)]
Fix 0.4.11 githash for android
Also make only one >-redirection, sparing repetition.
Also, use cut instead of awk, which is shorter and should be a bit faster.
Loic Blot [Thu, 30 Jul 2015 21:14:05 +0000 (23:14 +0200)]
Small SendableMediaAnnouncement cleanup
-> Remove the SendableMediaAnnouncement struct
-> Forge the packet directly in the m_media loop, spare one loop and the construction of a vector
-> Use preincrement to spare iterator copies
est31 [Wed, 29 Jul 2015 09:54:27 +0000 (11:54 +0200)]
Android: fix horrible libiconv build
Before, our libiconv build was a joke. We first called configure for our own build host system,
then called make, before we executed a Android.mk script we provided as patch. The first "native make"
always failed, and the LIBICONV_LIB file setting in our Makefile didn't match the built one,
resulting in an always-rebuild of iconv.
This commit cleans up this total mess, removes the double-build, and the Android.mk, and properly calls
./configure with the according target platform, and uses a built toolchain.
As we have to deal with the android bug "NDK: Support for prebuild libs with full sonames"
https://code.google.com/p/android/issues/detail?id=55868
as the 2013 patch
https://lists.gnu.org/archive/html/libtool-patches/2013-06/msg00002.html
by Google's David Turner wasn't inside the 2011 libtool, we pass -avoid-version to
libtool.
Thanks to the proper build, wide_to_utf8 works for android now, removing us of the need to disable it.
est31 [Wed, 29 Jul 2015 13:22:51 +0000 (15:22 +0200)]
Android: Fix minor makefile bugs
Fix commenting happening thanks to missing quotes and dereference variable the right way,
to get rid of a compile error.
nerzhul [Wed, 29 Jul 2015 08:49:40 +0000 (10:49 +0200)]
Precalculate mapblock relative size. This permit to remove many s16 calculs on runtime
Břetislav Štec [Sat, 18 Jul 2015 23:35:47 +0000 (01:35 +0200)]
Fixed minimap memory leak
SmallJoker [Mon, 27 Jul 2015 09:53:19 +0000 (11:53 +0200)]
Extend CMake variable descriptions
est31 [Mon, 27 Jul 2015 05:44:48 +0000 (07:44 +0200)]
Fix srp.cpp:815 leak
Thanks @Zeno-
est31 [Sat, 11 Jul 2015 00:24:00 +0000 (02:24 +0200)]
Add AreaStore data structure
SmallJoker [Wed, 22 Jul 2015 08:11:34 +0000 (10:11 +0200)]
Fix MSVC number conversion warning
jeanpatrick.guerrero@gmail.com [Sat, 25 Jul 2015 10:40:01 +0000 (12:40 +0200)]
Fix FSAA dropdown option reset after changing another dropdown option
est31 [Sat, 25 Jul 2015 05:54:56 +0000 (07:54 +0200)]
Fix minetest.get_(all)_craft_recipe(s) regression
Since
03e0dd33a847a83d975282c6caf6b926306e7b57 the calls didn't return an output count
for the recipes.
Loic Blot [Sat, 25 Jul 2015 09:56:24 +0000 (11:56 +0200)]
Cleanup server addparticle(spawner) by merge two identical functions.
kilbith [Fri, 24 Jul 2015 19:21:24 +0000 (21:21 +0200)]
Remove drivers dropdown in the settings tab
est31 [Fri, 24 Jul 2015 21:11:19 +0000 (23:11 +0200)]
Fix documentation of dedicated_server_loop
est31 [Fri, 24 Jul 2015 19:38:40 +0000 (21:38 +0200)]
Check output of mpz_set_str and fix leak on error condition
Also add static identifier as upstream did
Loic Blot [Fri, 24 Jul 2015 19:03:50 +0000 (21:03 +0200)]
Remove some old dead code. Fix some Clang warnings in SRP (ng->N... will
always evaluate to true.
est31 [Fri, 24 Jul 2015 18:28:00 +0000 (20:28 +0200)]
Bump protocol to 26
This was needed due to the TileDef serialisation changes. Originally it has been planned
to also add utf-8 based chat to 26, but chat changes aren't final yet, so they are done
in one change, after the release, and not two small ones, causing us having to be compliant
to three versions of the packet.
Novatux [Fri, 24 Jul 2015 10:03:56 +0000 (12:03 +0200)]
Update my name
est31 [Fri, 17 Jul 2015 14:40:41 +0000 (16:40 +0200)]
Optional reconnect functionality
Enable the server to request the client to reconnect.
This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting.
RealBadAngel [Thu, 23 Jul 2015 02:35:13 +0000 (04:35 +0200)]
Fix issues with light of attached CAOs
Robert Zenz [Tue, 21 Jul 2015 19:43:01 +0000 (21:43 +0200)]
Add note that chat messages can be marked as handled.
paramat [Wed, 22 Jul 2015 01:20:05 +0000 (02:20 +0100)]
Conf.example: Update mgv7 noise parameters
paramat [Wed, 15 Jul 2015 01:31:14 +0000 (02:31 +0100)]
Mgv7: Use density noise + density gradient for mountain terrain
Tune and optimise noise parameters
RealBadAngel [Tue, 21 Jul 2015 21:56:41 +0000 (23:56 +0200)]
Add wielded (and CAOs) shader
sfan5 [Tue, 21 Jul 2015 19:55:58 +0000 (21:55 +0200)]
Fix crash in mainmenu when loaded subgame does not have a "menu" directory
est31 [Tue, 21 Jul 2015 16:03:59 +0000 (18:03 +0200)]
Clarify docs for auth.cpp method