oweals/minetest.git
10 years agoFix double free bug when server is shut down
Craig Robbins [Sat, 15 Nov 2014 12:33:52 +0000 (22:33 +1000)]
Fix double free bug when server is shut down

Thanks @oleastre

10 years agoFix NoisePerlin3DEased return value
kwolekr [Sat, 15 Nov 2014 02:19:46 +0000 (21:19 -0500)]
Fix NoisePerlin3DEased return value

10 years agoFix warnings and other misc. minor changes
kwolekr [Fri, 14 Nov 2014 07:58:56 +0000 (02:58 -0500)]
Fix warnings and other misc. minor changes

10 years agoRemove most exceptions from getNode() (and variants)
Craig Robbins [Fri, 14 Nov 2014 08:05:34 +0000 (18:05 +1000)]
Remove most exceptions from getNode() (and variants)

10 years agoImproved VoxelArea variable locality, thus performance
Wouters Dorian [Sun, 9 Nov 2014 09:25:39 +0000 (10:25 +0100)]
Improved VoxelArea variable locality, thus performance

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
10 years agoAdd option 'eased' to NoiseParams
SmallJoker [Wed, 12 Nov 2014 20:11:40 +0000 (21:11 +0100)]
Add option 'eased' to NoiseParams

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
10 years agoFix compilation under some Linux distributions
kwolekr [Thu, 13 Nov 2014 05:16:37 +0000 (00:16 -0500)]
Fix compilation under some Linux distributions

10 years agoMapgen v7: Fix uninitialized spflags
kwolekr [Thu, 13 Nov 2014 04:58:50 +0000 (23:58 -0500)]
Mapgen v7: Fix uninitialized spflags
Mapgen v5: Fix minor style issue

10 years agoAdd eased 3d point-value noise functions
kwolekr [Thu, 13 Nov 2014 04:49:45 +0000 (23:49 -0500)]
Add eased 3d point-value noise functions

10 years agoAdd Generator Element Management framework
kwolekr [Thu, 13 Nov 2014 04:01:13 +0000 (23:01 -0500)]
Add Generator Element Management framework

Add BiomeManager, OreManager, DecorationManager, and SchematicManager

10 years agoWielded fixes. Add shaders support.
RealBadAngel [Thu, 13 Nov 2014 00:02:34 +0000 (01:02 +0100)]
Wielded fixes. Add shaders support.

10 years agoFix profiler values not being updated (F6) and not being logged
Craig Robbins [Tue, 11 Nov 2014 10:58:57 +0000 (20:58 +1000)]
Fix profiler values not being updated (F6) and not being logged

10 years agoServerlist: announce mg_name from map_meta.txt instead of minetest.conf
Kahrl [Mon, 10 Nov 2014 21:06:24 +0000 (22:06 +0100)]
Serverlist: announce mg_name from map_meta.txt instead of minetest.conf

10 years agoMerge pull request #1825 from Zeno-/control_key_cache
Zeno- [Mon, 10 Nov 2014 09:12:25 +0000 (19:12 +1000)]
Merge pull request #1825 from Zeno-/control_key_cache

Create faster key cache for main game loop (client)

10 years agoCreate faster key cache for main game loop (client) 1825/head
Craig Robbins [Mon, 10 Nov 2014 02:26:19 +0000 (12:26 +1000)]
Create faster key cache for main game loop (client)

10 years agoTune cave noise scales to 6. Fix blobs spflag, now enabled. Update conf.example
paramat [Sun, 9 Nov 2014 12:11:24 +0000 (12:11 +0000)]
Tune cave noise scales to 6. Fix blobs spflag, now enabled. Update conf.example

10 years agoAdd tooltips to main menu subgames button bar
Wuzzy [Sun, 12 Oct 2014 17:50:33 +0000 (19:50 +0200)]
Add tooltips to main menu subgames button bar

10 years agoImplement WieldMeshSceneNode which improves wield mesh rendering
Kahrl [Sun, 2 Nov 2014 02:47:43 +0000 (03:47 +0100)]
Implement WieldMeshSceneNode which improves wield mesh rendering

- Don't create and cache an extruded mesh for every (non-node) item.
  Instead use a single one per image resolution.

- For cubic nodes reuse a single wield mesh too

- Improve lighting of the wielded item

- Increase far value of wield mesh scene camera, fixes #1770

- Also includes some minor refactorings of Camera and GenericCAO.

10 years agoStop inserting empty lines at end of minetest.conf file each time it is rewritten
Craig Robbins [Fri, 7 Nov 2014 01:47:07 +0000 (11:47 +1000)]
Stop inserting empty lines at end of minetest.conf file each time it is rewritten

See: https://github.com/minetest/minetest/issues/1790

10 years agoFix regressions and minor improvements in refactor_the_game
Craig Robbins [Thu, 6 Nov 2014 08:44:06 +0000 (18:44 +1000)]
Fix regressions and minor improvements in refactor_the_game
a) Fix double tap for jump and show_debug
b) Revert changes to limitFps()... there is no verification that the new method was an issue, but going back to old method just in case
b.2) limitFps() no longer calls device->run() and also no longer has to be called immediately after a call to device->run()

10 years agoAdd mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs
paramat [Thu, 16 Oct 2014 11:45:55 +0000 (12:45 +0100)]
Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs

10 years agoSpeed up removing a node (less block mesh updates).
RealBadAngel [Fri, 7 Nov 2014 20:52:43 +0000 (21:52 +0100)]
Speed up removing a node (less block mesh updates).

10 years agoFix dump() indentation with non-tab indents
ShadowNinja [Sat, 8 Nov 2014 17:48:05 +0000 (12:48 -0500)]
Fix dump() indentation with non-tab indents

10 years agoAdd last_login field to auth.txt
Ryan Newell [Wed, 8 Oct 2014 22:11:44 +0000 (17:11 -0500)]
Add last_login field to auth.txt

Also shortens some related code and adds more parameters to string.split.

10 years agoReplace setting unlimited_player_transfer_distance with player_transfer_distance
SmallJoker [Sat, 8 Nov 2014 13:35:55 +0000 (14:35 +0100)]
Replace setting unlimited_player_transfer_distance with player_transfer_distance

10 years agoAddress issues related to refactoring the_game
Craig Robbins [Mon, 3 Nov 2014 03:25:14 +0000 (13:25 +1000)]
Address issues related to refactoring the_game

Fix time of day persistence
Fix wield item being updated every frame causing small performance hit
Rename some classes and variables

10 years agoFix regression: mouse wheel couldn't scroll from last hotbar item to first
Kahrl [Sun, 2 Nov 2014 20:59:56 +0000 (21:59 +0100)]
Fix regression: mouse wheel couldn't scroll from last hotbar item to first

10 years agoCleanup and (mostly) document util/string.h and (very) minor refactoring
Craig Robbins [Sun, 2 Nov 2014 14:17:20 +0000 (00:17 +1000)]
Cleanup and (mostly) document util/string.h and (very) minor refactoring

Updated: Incorporated feedback from 'kahrl'
Updated: Moved MinetestApp::boolToCStr() from game.cpp into string.h renaming it bool_to_cstr()

10 years agoInclude mg_decoration.h, mg_ore.h from emerge.cpp to fix warnings
Kahrl [Sun, 2 Nov 2014 16:52:30 +0000 (17:52 +0100)]
Include mg_decoration.h, mg_ore.h from emerge.cpp to fix warnings

10 years agoFix unit tests failing if IPv6 not available
Craig Robbins [Sun, 2 Nov 2014 07:21:42 +0000 (17:21 +1000)]
Fix unit tests failing if IPv6 not available

See:
https://github.com/minetest/minetest/issues/1526
https://github.com/minetest/minetest/issues/793

10 years agoModified dtime calculation method in limitFps()
Craig Robbins [Sat, 1 Nov 2014 02:36:03 +0000 (12:36 +1000)]
Modified dtime calculation method in limitFps()

10 years agoRefactor the_game() to make it more understandable and maintainable.
Craig Robbins [Fri, 31 Oct 2014 12:13:04 +0000 (22:13 +1000)]
Refactor the_game() to make it more understandable and maintainable.

The following is a record of 31 commits before squashing:

Revert "Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism"

This reverts commit b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.

Basic reformatting with astyle
-- additional formatting will be modified, manually, as the need for it is encountered

Start "outlining" what a MinetestApp class might look like

Add MinetestApp::shutdown()

Converted class member functions to camelCase and created protos for new functions

First stage of connect to server done

Add get itemdefs/nodedefs/media code

Init clouds, camera, sky, init GUI, HUD

Input handling

Client events, camera, sound, draw

Fix wield hand getting stuck digging and add debug text back

Fix FPS

Added profiler graph back

Fix FPS issue
Need to work out what went wrong and clean up the copy/paste stuff

Annotate

Various:
Rewrote limitFps()
Limited scope of some variables

Jitter calcs

Reduce scope of objects

Move some stuff out of ::run and minor formatting cleanup

Scope reduction

Function splits

Removed old (broken) limitFps()

Added exception handling back

Fixed some formatting

Reverted commented out unit tests (uncommented them)

Slow clouds down on loading and media screens so the behaviour is like the original the_game()

Formatting/style (no functional changes)

Manually reapply upstream b49e5cf: Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism

Fixed silly errors on my part
Minor formatting cleanups

Removed strange differentiation in FPS limiting when loading
FPS limiting was done differently if cloud_menu_background was true, which does not make sense

Cleaning up

Add some comments

10 years agoSplit up mapgen.cpp
kwolekr [Sat, 1 Nov 2014 17:16:23 +0000 (13:16 -0400)]
Split up mapgen.cpp

10 years agoFix erroneous lua_pop parameter
kwolekr [Thu, 30 Oct 2014 20:23:48 +0000 (16:23 -0400)]
Fix erroneous lua_pop parameter

10 years agoFix uninitialized variable warning 1781/head
kwolekr [Thu, 30 Oct 2014 06:53:20 +0000 (02:53 -0400)]
Fix uninitialized variable warning

10 years agomapgen: Resolve nodes in ctor rather than makeChunk
kwolekr [Thu, 30 Oct 2014 06:29:37 +0000 (02:29 -0400)]
mapgen: Resolve nodes in ctor rather than makeChunk

10 years agoCheck minetest.hud_change() parameters on conversion (Fix #1714)
kwolekr [Thu, 30 Oct 2014 04:11:46 +0000 (00:11 -0400)]
Check minetest.hud_change() parameters on conversion (Fix #1714)

10 years agoFix bug introduced by me (Zeno)
Craig Robbins [Wed, 29 Oct 2014 07:47:13 +0000 (17:47 +1000)]
Fix bug introduced by me (Zeno)

10 years agoAdd option to enable mesh caching, add wallmounted for meshes.
RealBadAngel [Tue, 28 Oct 2014 07:02:28 +0000 (08:02 +0100)]
Add option to enable mesh caching, add wallmounted for meshes.

10 years agoAdded names colours and refactored parseColorString()
Craig Robbins [Wed, 29 Oct 2014 06:40:55 +0000 (16:40 +1000)]
Added names colours and refactored parseColorString()

10 years agoRefactor decoration-related code
kwolekr [Wed, 29 Oct 2014 05:54:11 +0000 (01:54 -0400)]
Refactor decoration-related code

Split up ModApiMapgen::l_register_decoration()
Define and make use of CONTAINS() and ARRLEN() macros

10 years agoFix various indentation issues
PenguinDad [Tue, 28 Oct 2014 19:13:14 +0000 (20:13 +0100)]
Fix various indentation issues

10 years agoFix #1733: An unhandled exception occurred: GetPeer: Peer not found (possible timeout)
Craig Robbins [Sun, 26 Oct 2014 05:32:49 +0000 (15:32 +1000)]
Fix #1733: An unhandled exception occurred: GetPeer: Peer not found (possible timeout)

10 years agoAdd notice when only minimal is installed
rubenwardy [Thu, 16 Oct 2014 18:23:02 +0000 (19:23 +0100)]
Add notice when only minimal is installed

10 years agoAdd NodeResolver documentation
kwolekr [Tue, 28 Oct 2014 06:18:48 +0000 (02:18 -0400)]
Add NodeResolver documentation

Set content to fallback on AddNode failure
Consider node list requests with no results as failed

10 years agoPrevent invalid memory access under failure conditions
kwolekr [Tue, 28 Oct 2014 04:18:53 +0000 (00:18 -0400)]
Prevent invalid memory access under failure conditions

10 years agoChange license of noise implementation to Simplified BSD
kwolekr [Tue, 28 Oct 2014 01:17:07 +0000 (21:17 -0400)]
Change license of noise implementation to Simplified BSD

10 years agoAdd support for eased 3d noise
kwolekr [Mon, 27 Oct 2014 06:02:38 +0000 (02:02 -0400)]
Add support for eased 3d noise

10 years agoAdd NodeResolver and clean up node name -> content ID resolution system
kwolekr [Wed, 8 Oct 2014 19:28:14 +0000 (15:28 -0400)]
Add NodeResolver and clean up node name -> content ID resolution system

10 years agoRemove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism
Kahrl [Fri, 24 Oct 2014 14:22:05 +0000 (16:22 +0200)]
Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism

10 years agoRemove remenants of mob code
Pavel Puchkin [Thu, 23 Oct 2014 19:17:47 +0000 (22:17 +0300)]
Remove remenants of mob code

Since minetest has no mobs within the core anymore, I suppose these
settings and code should go. Any mod that uses `minetest.setting_getbool`
will work with no problem since the default return value is `false`.

10 years agoFix syntax error in Japanese translation
Rui [Thu, 23 Oct 2014 11:15:26 +0000 (20:15 +0900)]
Fix syntax error in Japanese translation

10 years agoFix broken plantlike drawtype.
RealBadAngel [Tue, 21 Oct 2014 21:06:12 +0000 (23:06 +0200)]
Fix broken plantlike drawtype.

10 years agoAdd Indonesian Language
srifqi [Mon, 20 Oct 2014 10:34:21 +0000 (17:34 +0700)]
Add Indonesian Language

10 years agoTranslated using Weblate (Japanese)
Rui [Mon, 13 Oct 2014 09:03:48 +0000 (18:03 +0900)]
Translated using Weblate (Japanese)

10 years agoSearch for subgames using $MINETEST_SUBGAME_PATH.
David Thompson [Sat, 6 Sep 2014 17:21:46 +0000 (13:21 -0400)]
Search for subgames using $MINETEST_SUBGAME_PATH.

10 years agoRecalculate normals for cached meshes.
RealBadAngel [Tue, 21 Oct 2014 03:12:15 +0000 (05:12 +0200)]
Recalculate normals for cached meshes.

Check if mesh is here before adding to meshcollector.

Fix deleting the meshes.

10 years agoFix some indentation in nodedef.cpp
Kahrl [Mon, 20 Oct 2014 14:11:38 +0000 (16:11 +0200)]
Fix some indentation in nodedef.cpp

10 years agoFix memory leak caused by mesh nodes (and nodeboxes)
Kahrl [Mon, 20 Oct 2014 14:11:00 +0000 (16:11 +0200)]
Fix memory leak caused by mesh nodes (and nodeboxes)

10 years agoCustom collision boxes node property.
RealBadAngel [Sat, 18 Oct 2014 16:46:16 +0000 (18:46 +0200)]
Custom collision boxes node property.

10 years agoUpdate the cURL the buildbot uses to 7.38.0
sfan5 [Mon, 6 Oct 2014 11:39:03 +0000 (13:39 +0200)]
Update the cURL the buildbot uses to 7.38.0

10 years agoVarious uninitialised variable fixes
Craig Robbins [Tue, 7 Oct 2014 07:01:07 +0000 (17:01 +1000)]
Various uninitialised variable fixes

sky.cpp: m_bgcolor.getAlpha() was being used before initialised

mesh related: m_highlight_mesh_color was being used uninitialised

10 years agoMove buttons upwards to accommodate for new configure keys button in the
Craig Robbins [Thu, 16 Oct 2014 07:47:54 +0000 (17:47 +1000)]
Move buttons upwards to accommodate for new configure keys button in the
pause menu

10 years agoAdd meshnode drawtype.
RealBadAngel [Wed, 15 Oct 2014 02:13:53 +0000 (04:13 +0200)]
Add meshnode drawtype.

10 years agoMake sure PRECISION_SECONDS corresponds to the integer 0
Kahrl [Thu, 9 Oct 2014 09:40:33 +0000 (11:40 +0200)]
Make sure PRECISION_SECONDS corresponds to the integer 0

10 years agoFix unit reported by TimeTaker (was always ms)
Kahrl [Thu, 9 Oct 2014 09:15:03 +0000 (11:15 +0200)]
Fix unit reported by TimeTaker (was always ms)

10 years agoChange topleft text when switching subgames, fixes #1728
Kahrl [Thu, 9 Oct 2014 06:58:47 +0000 (08:58 +0200)]
Change topleft text when switching subgames, fixes #1728

10 years agoFix use of unitialized variables in mouse button handling
Craig Robbins [Wed, 8 Oct 2014 02:40:14 +0000 (12:40 +1000)]
Fix use of unitialized variables in mouse button handling

10 years agoAdd in-game key change menu
Mushiden [Sun, 21 Sep 2014 03:21:11 +0000 (00:21 -0300)]
Add in-game key change menu

10 years agoAdd a better error message when trying to teleport another player without bring privi...
LeMagnesium [Sun, 5 Oct 2014 15:35:10 +0000 (17:35 +0200)]
Add a better error message when trying to teleport another player without bring privileges

10 years agoFix object reference pushing functions when called from coroutines
ShadowNinja [Thu, 2 Oct 2014 19:58:13 +0000 (15:58 -0400)]
Fix object reference pushing functions when called from coroutines

10 years agoAdd [colorize modifier 1711/head
BlockMen [Fri, 3 Oct 2014 04:11:21 +0000 (06:11 +0200)]
Add [colorize modifier

10 years agoFix special tile backspace culling
kwolekr [Fri, 3 Oct 2014 15:20:29 +0000 (11:20 -0400)]
Fix special tile backspace culling

10 years agoBugfix: dont highlight (0,0,0) when theres no node pointed.
RealBadAngel [Fri, 3 Oct 2014 14:03:14 +0000 (16:03 +0200)]
Bugfix: dont highlight (0,0,0) when theres no node pointed.

10 years agoFix broken plantlike drawtype.
RealBadAngel [Fri, 3 Oct 2014 13:33:32 +0000 (15:33 +0200)]
Fix broken plantlike drawtype.

10 years agoFix misc. style issues
kwolekr [Fri, 3 Oct 2014 07:49:06 +0000 (03:49 -0400)]
Fix misc. style issues

10 years agoClean up nodedef.cpp
kwolekr [Fri, 3 Oct 2014 07:16:43 +0000 (03:16 -0400)]
Clean up nodedef.cpp

10 years agoAdd better documentation for alternate drop definition to lua_api.txt.
Diego Martínez [Thu, 2 Oct 2014 16:30:32 +0000 (13:30 -0300)]
Add better documentation for alternate drop definition to lua_api.txt.

10 years agoAdd optional framed glasslike drawtype 1694/head
BlockMen [Sat, 27 Sep 2014 16:16:26 +0000 (18:16 +0200)]
Add optional framed glasslike drawtype

10 years agoMake players check inventory modification properly 1535/head
ShadowNinja [Tue, 2 Sep 2014 16:53:20 +0000 (12:53 -0400)]
Make players check inventory modification properly

10 years agoOnly set player dirty flag if values change
ShadowNinja [Fri, 29 Aug 2014 00:22:19 +0000 (20:22 -0400)]
Only set player dirty flag if values change

10 years agoSimplify player modification checks
ShadowNinja [Sun, 3 Aug 2014 20:19:07 +0000 (16:19 -0400)]
Simplify player modification checks

10 years agoFix android build using hardcoded path for data instead of using the one fetched...
sapier [Wed, 1 Oct 2014 20:18:29 +0000 (22:18 +0200)]
Fix android build using hardcoded path for data instead of using the one fetched by android api on init.
Fix android missing version information

10 years agoupdatepo.sh: Find all files
Diego Martínez [Tue, 30 Sep 2014 13:57:28 +0000 (10:57 -0300)]
updatepo.sh: Find all files

10 years agoUse round if falling node is misplaced
SmallJoker [Thu, 24 Jul 2014 09:51:07 +0000 (11:51 +0200)]
Use round if falling node is misplaced

Fixes: http://i.imgur.com/arAWw1i.png (middle-right)

10 years agoStandardize tooltip row detection
BlockMen [Sun, 28 Sep 2014 08:10:43 +0000 (10:10 +0200)]
Standardize tooltip row detection

10 years agoFix multilined description in tooltips (fixes #1688)
BlockMen [Sun, 28 Sep 2014 06:44:05 +0000 (08:44 +0200)]
Fix multilined description in tooltips (fixes #1688)

10 years agoFix totally messed up 3d modes interlaced/topbottom/sidebyside
sapier [Thu, 25 Sep 2014 18:33:17 +0000 (20:33 +0200)]
Fix totally messed up 3d modes interlaced/topbottom/sidebyside

10 years agoFix chat lines not word wrapped correct
sapier [Thu, 25 Sep 2014 17:54:02 +0000 (19:54 +0200)]
Fix chat lines not word wrapped correct

10 years agoFix command line parsing
Kahrl [Mon, 22 Sep 2014 09:02:26 +0000 (11:02 +0200)]
Fix command line parsing

Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379, e.g.
  minetest --worldname world
would be parsed as
  minetest --worldname --worldname

10 years agoFix build with redis
ShadowNinja [Mon, 22 Sep 2014 01:00:20 +0000 (21:00 -0400)]
Fix build with redis

Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379 because database-redis.h
depended on settings.h to include filesys.h.

10 years agoAdd firelike drawtype
TriBlade9 [Fri, 19 Sep 2014 23:37:40 +0000 (07:37 +0800)]
Add firelike drawtype

10 years agoUpdate default of preload_item_visuals in minetest.conf.example
ShadowNinja [Sun, 21 Sep 2014 19:49:33 +0000 (15:49 -0400)]
Update default of preload_item_visuals in minetest.conf.example

10 years agoMake dump's output prettier 1503/head
ShadowNinja [Sun, 20 Jul 2014 03:39:23 +0000 (23:39 -0400)]
Make dump's output prettier

Changes:
  * Indentation with tabs by default.
  * Array keys dumped without "[i] = " prefix.
  * String keys that are valid identifiers aren't enclosed in '[""]'.
  * Basic support for multiple references (as specified in the comment).

10 years agoFix GCC reorder warning
ShadowNinja [Sun, 21 Sep 2014 19:18:43 +0000 (15:18 -0400)]
Fix GCC reorder warning

Caused by a020d1b653f94fbcaac06c15f9dbab4521fda355.

10 years agoAdd inventory right click drag and drop
sruz25 [Fri, 19 Sep 2014 13:27:48 +0000 (15:27 +0200)]
Add inventory right click drag and drop

10 years agoUpdate ja/minetest.po
Rui914 [Sun, 21 Sep 2014 04:56:18 +0000 (13:56 +0900)]
Update ja/minetest.po

10 years agoRevert the icon name in minetest.desktop
ShadowNinja [Sun, 21 Sep 2014 18:37:19 +0000 (14:37 -0400)]
Revert the icon name in minetest.desktop

This reverts commit 7993696fc4b59354974059e1f8d6b3063d316411, which broke the
icon on most distributions.

10 years agoFix locking bugs and make inventory deserialization errors more specific
ShadowNinja [Fri, 12 Sep 2014 00:12:52 +0000 (20:12 -0400)]
Fix locking bugs and make inventory deserialization errors more specific

10 years agoSplit settings into seperate source and header files
ShadowNinja [Thu, 11 Sep 2014 22:22:05 +0000 (18:22 -0400)]
Split settings into seperate source and header files

This also cleans up settings a bit