Kahrl [Fri, 19 Sep 2014 20:26:38 +0000 (22:26 +0200)]
Add paste command (Ctrl-V) in GUIChatConsole
kwolekr [Wed, 10 Dec 2014 05:56:44 +0000 (00:56 -0500)]
Remove get_noiseparams function. read_noiseparams should be used from now on
kwolekr [Wed, 10 Dec 2014 05:37:09 +0000 (00:37 -0500)]
Noise: Create a deep copy of NoiseParams
kwolekr [Wed, 10 Dec 2014 04:52:13 +0000 (23:52 -0500)]
Settings: Sanitize setting name everywhere, not just LuaSettings
kwolekr [Wed, 10 Dec 2014 04:44:04 +0000 (23:44 -0500)]
Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparams
kwolekr [Wed, 10 Dec 2014 04:22:38 +0000 (23:22 -0500)]
Settings: Make setting entry group and values mutually exclusive
This greatly reduces the complexity of Settings code.
Additionally, several memory leaks were fixed.
SmallJoker [Tue, 9 Dec 2014 16:58:12 +0000 (02:58 +1000)]
Rewrite fs:GetDirListing(file) by kahrl
SmallJoker [Sun, 7 Dec 2014 10:14:52 +0000 (11:14 +0100)]
Ignore .name directories and files
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Craig Robbins [Tue, 9 Dec 2014 14:45:07 +0000 (00:45 +1000)]
Increase performance of getLight() by at least 2x
Leads to the following increases:
getSmoothLight() approx. 40% increase
getTileInfo() approx. 25% increase
MapBlockMesh::MapBlockMesh() 25-30%
Pavel Puchkin [Tue, 9 Dec 2014 10:40:09 +0000 (20:40 +1000)]
Fix builds failing on BSD-like (such as OSX) due to an irrlicht bug (temporary fix)
Details:
- https://sourceforge.net/p/irrlicht/bugs/433/
- https://github.com/minetest/minetest/issues/1687#issuecomment-
61368769
- https://forum.minetest.net/viewtopic.php?f=42&t=9190&start=125#p159364
In case when "settings.h" is included from "emerge.cpp" or
"environment.cpp", u64 type has "unsigned long" length because
previously <stdint> was included. When "settings.h" is included from
"settings.cpp", u64 has "unsigned long long" length because no <stdint>
was included previously. This leads to different signatures of "setU64" method
and linker cannot find appropriate symbol.
The best fix of this bug should be done in the Irrlicht, but as hotfix I
think this is OK and better than types changing.
Previously this bug didn't appear because there was no "settings.cpp" file and
implementation of all methods was done in the header file.
kwolekr [Tue, 9 Dec 2014 05:48:00 +0000 (00:48 -0500)]
Noise: Update Noise::resizeNoiseBuf to account for lacunarity not equal to 2
kwolekr [Tue, 9 Dec 2014 05:37:48 +0000 (00:37 -0500)]
Biomes: Make biome heat and humidity noise parameters user-configurable
Craig Robbins [Mon, 8 Dec 2014 12:50:39 +0000 (22:50 +1000)]
Fix compiler warning (signed vs. unsigned)
kwolekr [Mon, 8 Dec 2014 08:25:14 +0000 (03:25 -0500)]
Optimize noise implementations
Kahrl [Mon, 8 Dec 2014 08:06:31 +0000 (09:06 +0100)]
Fix struct vs. class in forward declarations
RealBadAngel [Mon, 8 Dec 2014 01:34:29 +0000 (02:34 +0100)]
Fix lighting artifacts (Issue #1887).
Kahrl [Mon, 8 Dec 2014 06:47:51 +0000 (07:47 +0100)]
Always escape user provided data in mainmenu fields
kwolekr [Mon, 8 Dec 2014 02:57:12 +0000 (21:57 -0500)]
Add flags and lacunarity as new noise parameters
Add 'absolute value' option to noise map functions
Extend persistence modulation to 3D noise
Extend 'eased' option to noise2d_perlin* functions
Some noise.cpp formatting fixups
RealBadAngel [Sun, 7 Dec 2014 22:25:51 +0000 (23:25 +0100)]
Disable loading .mtl files. Theyre not used anyway.
MirceaKitsune [Wed, 30 Apr 2014 13:38:26 +0000 (16:38 +0300)]
Make directional fog colors respect tonemap
Craig Robbins [Sun, 7 Dec 2014 11:01:42 +0000 (21:01 +1000)]
Fix f6 debug/profiler display
After fonts were re-engineered the height of the f6 debug/profiler display would only display about 2-3 lines of text.
Calinou [Sun, 26 Oct 2014 10:26:36 +0000 (11:26 +0100)]
Increase third person view distance
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Muhammad Rifqi Priyo Susanto [Sun, 7 Dec 2014 11:30:21 +0000 (21:30 +1000)]
Add space between client names in status text (client)
Before:
Server: version=0.4.10, uptime=190.5, max_lag=0.001, clients={user1,user2,user3,user4,user5,foobar,userplayedminetestthismorning}
After:
Server: version=0.4.10, uptime=190.5, max_lag=0.001, clients={user1, user2, user3, user4, user5, foobar, userplayedminetestthismorning}
RealBadAngel [Sat, 6 Dec 2014 21:13:31 +0000 (22:13 +0100)]
Restore finalColorBlend implementation in shaders.
Craig Robbins [Sun, 7 Dec 2014 08:21:13 +0000 (18:21 +1000)]
Fix regression (increase/decrease viewing range with +/- keys)
kwolekr [Sun, 7 Dec 2014 06:19:42 +0000 (01:19 -0500)]
Mapgen V5: Fix use of uninitialized value in ctor
kwolekr [Sat, 6 Dec 2014 23:39:05 +0000 (18:39 -0500)]
Schematics: Fix minetest.place_schematic() when defined by a Lua table
kwolekr [Sat, 6 Dec 2014 23:08:08 +0000 (18:08 -0500)]
Add minetest.clear_registered_biomes() api
Kahrl [Sat, 6 Dec 2014 21:45:20 +0000 (22:45 +0100)]
Ignore some mouse events sent from scrollbar to GUITable
Fixes #1567, #1806.
SmallJoker [Sat, 6 Dec 2014 16:26:22 +0000 (17:26 +0100)]
Close settings files and save them correctly
sfan5 [Sat, 6 Dec 2014 18:36:40 +0000 (19:36 +0100)]
Add workaround for failing clang build
sfan5 [Fri, 5 Dec 2014 14:54:19 +0000 (15:54 +0100)]
Build for win32 & win64 on Travis too
kwolekr [Sat, 6 Dec 2014 09:18:04 +0000 (04:18 -0500)]
Rewrite generate notification mechanism
Add support for notify-on-decoration
Clean up mapgen constructors
Clean up mapgen.cpp code style somewhat
Remove trailing whitespace from some files
Craig Robbins [Sat, 6 Dec 2014 14:37:37 +0000 (00:37 +1000)]
Performance of main client loop up to 2x faster In places, up to 3 times faster
NOTE 1: This does not mean a 2x increase in framerate. Increase in fps may be up to 1-2fps
NOTE 2: This local 'caching' of settings is not optimal and an alternative solution will be worked on after 0.4.11 is released
SmallJoker [Fri, 5 Dec 2014 22:18:52 +0000 (23:18 +0100)]
Add Lua helper functions vector.apply(v) math.sign(x, tolerance)
Craig Robbins [Thu, 20 Nov 2014 07:25:01 +0000 (17:25 +1000)]
Add name of node 'pointed at' to debug
This is "Add name of node pointed at to debug #1677" by @rubenwardy updated to work with game.cpp after it was refactored.
SmallJoker [Fri, 5 Dec 2014 06:09:49 +0000 (16:09 +1000)]
Fix MSVC build
Note: The unit test was technically incorrect for all platforms but passes due to implicit casting
RealBadAngel [Fri, 5 Dec 2014 00:04:25 +0000 (01:04 +0100)]
Recalculate normals for mesh #0. Fix for issue #1902.
Craig Robbins [Thu, 4 Dec 2014 15:42:03 +0000 (01:42 +1000)]
(INTERIM) Make sizes of the font in formspecs consistent and not so large
Until a permanent fix can be developed
Craig Robbins [Thu, 4 Dec 2014 13:37:04 +0000 (23:37 +1000)]
Optimise VoxelManipulator::copyFrom
~3-4x faster
This indirectly optimises MapBlock:copyTo() which in turn improves performance of MeshMakeData::fill()
Craig Robbins [Thu, 9 Oct 2014 07:53:20 +0000 (17:53 +1000)]
Right mouse button behaviour for craft/inventory If right mousebutton clicked once then don't drop single items into slots. If right mouse button has been clicked and held a second time, drop items as the mouse is moved. In the second case (automatically drop/place items as mouse is moved) only auto-drop into blank slots, or slots that contain the same item.
Calinou [Sun, 30 Nov 2014 09:26:51 +0000 (10:26 +0100)]
Make dropped items larger and rotate faster
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
kwolekr [Thu, 4 Dec 2014 08:20:07 +0000 (03:20 -0500)]
Settings: Various setting group fixes and enhancements
- Remove blank setting values when setting has a group
- Pair setting values with groups in file when possible
- Preserve user-set whitespace in setting objects
- Delete setting value when setting NoiseParams group
- Delete overwritten groups outside of lock
paramat [Sun, 30 Nov 2014 04:42:02 +0000 (04:42 +0000)]
Add definable node_stone to biome API, mgv5, mgv7. Reduce and correct depth of mgv7 biomes. l_mapgen.cpp: add '#include mapgen_v5.h' because '#include mapgen_v7' is there. Improve underwater grass hack
kwolekr [Wed, 3 Dec 2014 02:09:16 +0000 (21:09 -0500)]
Settings: Fix getNoiseParamsFromValue()
kwolekr [Tue, 2 Dec 2014 08:58:57 +0000 (03:58 -0500)]
Use setting groups for NoiseParams
Add format example to minetest.conf.example
Add Settings::setU16()
Throw exception on attempted access of NULL settings groups
Kahrl [Mon, 1 Dec 2014 20:47:22 +0000 (21:47 +0100)]
Fix style of comment in minetest.conf.example
Kahrl [Mon, 1 Dec 2014 20:22:23 +0000 (21:22 +0100)]
Add fontengine.cpp to Android.mk
sapier [Mon, 1 Dec 2014 18:47:57 +0000 (19:47 +0100)]
Fix settings callback "call" lost on rebase
Craig Robbins [Mon, 1 Dec 2014 12:05:36 +0000 (22:05 +1000)]
Fix node 0,0,0 being highlighted when enable_node_highlighting == false
Without this patch node 0,0,0 is highlighted when enable_node_highligting is false
There is a minor lighting issue remaining, however it seems to be related to a different bug (https://github.com/minetest/minetest/issues/1887)
Craig Robbins [Mon, 1 Dec 2014 05:17:47 +0000 (15:17 +1000)]
Fix build
Note: this does not fix the warnings generated by clang
kwolekr [Mon, 1 Dec 2014 00:01:37 +0000 (19:01 -0500)]
LuaSettings: Sanitize setting name strings
Kahrl [Sun, 30 Nov 2014 22:21:14 +0000 (23:21 +0100)]
Fix segfault at exit caused by non grabbed font
kwolekr [Sun, 30 Nov 2014 20:49:04 +0000 (15:49 -0500)]
settings: Add setting groups and multiline entries
sapier [Fri, 28 Nov 2014 19:06:34 +0000 (20:06 +0100)]
Make hud use fontengine too
Fix non coding style conforming glb_fontengine to g_fontengine
Fix fonts never been deleted due to grabbed to often
Zefram [Wed, 20 Aug 2014 22:42:27 +0000 (23:42 +0100)]
Scale form elements consistently
The ratios between the sizes of form elements, including text, is now
fixed, aside from variations caused by rounding. This makes form layout
almost fully predictable, and particularly independent of player's
screen size. The proportions of non-text elements are the traditional
proportions.
For compatibility, the way in which element positions and sizes are
specified remains unchanged, in all its baroqueness, with one exception.
The exception is that the position of a label[] element is now defined
in terms of the vertically center of the first line of the label,
rather than the bottom of the first line of the label. This change
allows a label to be precisely aligned with button text or an edit box,
which are positioned in a centering manner. Label positioning remains
consistent with the previous system, just more precisely defined.
Make multi-line label[] elements work properly. Previously the code set
a bounding rectangle assuming that there would be only a single line,
and as a result a multi-line label would be cut somewhere in the middle
of the second line. Now multi-line labels not only work, but have
guaranteed line spacing relative to inventory slots, to aid alignment.
Incidentally fix tabheader[] elements which were being constrained to
the wrong width.
Given an unusually large form, in variable-size mode, the form rendering
system now chooses a scale that will fit the entire form on the screen,
if that doesn't make elements too small. Fixed-size forms, including the
main menu, are have their sizes fixed in inch terms. The fixed size for
fixed-size forms and the preferred and minimum sizes for variable-size
forms all scale according to the gui_scaling parameter.
sapier [Sun, 23 Nov 2014 12:40:43 +0000 (13:40 +0100)]
Implement proper font handling
kwolekr [Sat, 29 Nov 2014 21:50:18 +0000 (16:50 -0500)]
noise: Throw exception on noise allocation failure
SmallJoker [Fri, 28 Nov 2014 18:26:48 +0000 (19:26 +0100)]
Fix MSVC compiling error (argc/argv not available to pass to init_gettext)
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Ciaran Gultnieks [Mon, 17 Mar 2014 20:05:35 +0000 (20:05 +0000)]
Improve Lua API documentation
Changes:
* Add extra documentation for remove_item.
This isn't as silly as it sounds: iterate a list containing items with
unique metadata each, and remove_item the first one you find, placing
into a different - fine, except the remove will invariably remove the
wrong one, leading to items being duplicated and others destroyed.
Arguably it's a bug, and Inventory::removeItem should actually remove
the item you tell it to. (i.e. if the passed ItemStack has metadata,
match it). But it seems reasonable to just document the behaviour
more clearly.
* Improve string_to_pos documentation.
* Clarify dig_node documentation (return value).
* Better on_step documentation.
* get_nodemeta -> get_meta.
* Other minor fixes.
Rui [Fri, 28 Nov 2014 13:08:26 +0000 (23:08 +1000)]
Update minetest.po (Japanese)
Craig Robbins [Fri, 28 Nov 2014 12:29:34 +0000 (22:29 +1000)]
Fix regression with command line --go option
SmallJoker [Sat, 4 Oct 2014 17:23:15 +0000 (19:23 +0200)]
Add minetest.copy_table(table) To get rid off the "table references"
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Ciaran Gultnieks [Mon, 17 Nov 2014 21:17:36 +0000 (21:17 +0000)]
Don't corrupt stepheight when setting other properties
Kahrl [Wed, 26 Nov 2014 18:54:04 +0000 (19:54 +0100)]
Wield: always obey anisotropic_filter setting, not just for hi res textures
Kahrl [Wed, 26 Nov 2014 18:17:50 +0000 (19:17 +0100)]
EMF_USE_MIP_MAPS was introduced in Irrlicht 1.8, don't use in 1.7.3 or below
This is not optimal as it will cause minor graphical glitches for
Irrlicht 1.7 users, but at least it fixes the build.
Sokomine [Sat, 22 Nov 2014 20:40:23 +0000 (21:40 +0100)]
added enable_build_where_you_stand option
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Kahrl [Wed, 26 Nov 2014 14:17:17 +0000 (15:17 +0100)]
Wieldmesh: don't force anisotropic filtering on, instead disable mipmaps
This should fix #1844. Thanks to oleastre for making the first version
of this commit (#1848).
Craig Davison [Wed, 26 Nov 2014 12:48:43 +0000 (22:48 +1000)]
Fix some undeclared global variables
rubenwardy [Fri, 17 Oct 2014 16:58:36 +0000 (17:58 +0100)]
Only set the camera update keymap when using a debug build
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Kodexky [Mon, 24 Nov 2014 07:01:30 +0000 (02:31 -0430)]
Fix Android main menu crash, and user data directory check.
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Calinou [Sun, 26 Oct 2014 10:13:00 +0000 (11:13 +0100)]
Increase step smoothing to fit 1:1 stairs (works well on slabs too)
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Craig Robbins [Mon, 24 Nov 2014 03:52:27 +0000 (13:52 +1000)]
Fix client "double saving" simple singleplayer local maps
KodexKy [Mon, 3 Nov 2014 21:25:37 +0000 (16:55 -0430)]
Fixes for Android build errors. Enable sensor landscape rotation.
Fix typo in Android Makefile ndk path.
Fix touchscreen parts of game.cpp to work after Zeno's refactor.
Fix isdigit and isspace overload conflict with Android Irrlicht in string.h
Enable sensor landscape rotation in Android Manifiest.
Add mapgen v5 to Android build.
Fix Makefile not checking leveldb.
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
dvere [Tue, 25 Nov 2014 02:44:38 +0000 (12:44 +1000)]
Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly
According to doc/lua_api.txt if paramtype2 == "facedir" the two least significant bits of parm2 orient the texture around the axis. For dirs1 (looking at a wall) these would be 0, 1, 2, 3 and for dirs2 (looking at the ceiling) 2, 1, 0, 3
ShadowNinja [Sun, 23 Nov 2014 21:30:14 +0000 (16:30 -0500)]
Make duplicate warning checks file and line specific
sapier [Sun, 23 Nov 2014 14:24:37 +0000 (15:24 +0100)]
Fix console spaming by debug function on mod checking for global variable to exist.
RealBadAngel [Fri, 21 Nov 2014 07:41:21 +0000 (08:41 +0100)]
Port createForsythOptimizedMesh from Irrlicht 1.8
Mesh rotation helpers.
Craig Robbins [Sat, 22 Nov 2014 15:08:51 +0000 (01:08 +1000)]
Fix regression with USE_REDIS (refactor_main)
Craig Robbins [Thu, 20 Nov 2014 04:04:04 +0000 (14:04 +1000)]
refactor main.cpp
Craig Robbins [Fri, 21 Nov 2014 16:18:29 +0000 (02:18 +1000)]
Fix smooth lighting (ambient occlusion)
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Pavel Puchkin [Fri, 21 Nov 2014 22:31:12 +0000 (00:31 +0200)]
Fix compiling if no endian.h found
f7d6509 introduces error when no endian.h found in the system.
Since "CHECK_INCLUDE_FILE" returns empty string instead of "0", when
"cmake_config.h" is generated it has "#define CMAKE_HAVE_ENDIAN_H " line.
Later we have "#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H" in the
"config.h", an thus "HAVE_ENDIAN_H" is also empty sting. Because of
this, "#if HAVE_ENDIAN_H" is incorrect preprocessor directive.
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
ShadowNinja [Sat, 20 Sep 2014 23:18:09 +0000 (19:18 -0400)]
Update credits menu
Rafael Reilova [Mon, 17 Nov 2014 02:52:24 +0000 (21:52 -0500)]
serialize.h: use machine native byte swapping if available, fall-back to previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000()
nodemetadata.cpp, nodetimer.cpp
optimzation: simpler deserialize node position method
staticobject.cpp:
cleanup: use util/serialize.h inlines instead of its own de/serialization
serialize.cpp:
minor optimization/cleanup: avoid generation of unneeded string temporary
CMakeLists.txt, cmake_config.h.in: detection of endian.h
config.h: added HAVE_ENDIAN_H
Commits due to feedback squashed
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Craig Robbins [Fri, 21 Nov 2014 04:43:29 +0000 (14:43 +1000)]
Optimise functions from CNodeDefManager and VoxelManipulator
CNodeDefManager::get()
VoxelManipulator::addArea()
Craig Robbins [Thu, 20 Nov 2014 03:36:58 +0000 (13:36 +1000)]
Optimise getTileInfo()
getTileInfo() ~1.5x faster
getSmoothLight ~2.0x faster
paramat [Sat, 15 Nov 2014 00:32:10 +0000 (00:32 +0000)]
Mgv5 1 up 1 down overgeneration for biome surface continuity
paramat [Mon, 10 Nov 2014 21:57:34 +0000 (21:57 +0000)]
Mgv5 get ground level at point function. Fast spawn player version
ShadowNinja [Thu, 20 Nov 2014 19:59:19 +0000 (14:59 -0500)]
Simplify loading of Android version of menu
ShadowNinja [Thu, 20 Nov 2014 19:57:40 +0000 (14:57 -0500)]
Fix leaking global in texture pack menu
Kodexky [Thu, 20 Nov 2014 05:40:26 +0000 (15:40 +1000)]
Fix raillike bug (currently manifests itself on Android), and minor improvement to readability.
NB: Minor edits to patch made by Zeno- (int to short and minor formatting)
ShadowNinja [Thu, 26 Jun 2014 00:28:41 +0000 (20:28 -0400)]
Clean up rollback
ShadowNinja [Wed, 19 Nov 2014 21:17:54 +0000 (16:17 -0500)]
Fix wallmounted mesh rotations
ShadowNinja [Thu, 5 Jun 2014 16:40:34 +0000 (12:40 -0400)]
Add strict module
Also fix leaking globals found by it.
ShadowNinja [Sun, 3 Aug 2014 16:20:35 +0000 (12:20 -0400)]
Tweak core.serialize
This adds proper support for nested tables and improves performance a bit.
sfan5 [Thu, 9 Oct 2014 12:02:02 +0000 (14:02 +0200)]
Add (optional) client-side saving of server map to disk
ShadowNinja [Tue, 18 Nov 2014 21:20:15 +0000 (16:20 -0500)]
Fix Belarusian translation header
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
ShadowNinja [Tue, 18 Nov 2014 20:24:51 +0000 (15:24 -0500)]
Add gettext to Travis build
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Kahrl [Wed, 19 Nov 2014 09:19:52 +0000 (10:19 +0100)]
Remove unused rangelim function (the macro still exists)
SmallJoker [Tue, 18 Nov 2014 20:07:17 +0000 (21:07 +0100)]
Fix indonesian language errors
Errors found by @Sokomine.