53 Commits

Author SHA1 Message Date
kwolekr
d27d023219 Move get_schematic and read_schematic to l_mapgen.cpp 2014-12-10 01:49:57 -05:00
kwolekr
0f4d8ddf95 Remove get_noiseparams function. read_noiseparams should be used from now on 2014-12-10 00:56:44 -05:00
kwolekr
22b22968a1 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
2014-12-07 21:59:32 -05:00
kwolekr
4ac2fcc936 Schematics: Fix minetest.place_schematic() when defined by a Lua table 2014-12-06 18:39:05 -05:00
Ciaran Gultnieks
879bf6a6be Don't corrupt stepheight when setting other properties 2014-11-26 20:02:48 +01:00
SmallJoker
d3141906d2 Add option 'eased' to NoiseParams
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-13 23:06:38 +10:00
kwolekr
bb5f0e46bd Add Generator Element Management framework
Add BiomeManager, OreManager, DecorationManager, and SchematicManager
2014-11-12 23:02:41 -05:00
kwolekr
08068ac0c6 Split up mapgen.cpp 2014-11-01 13:16:23 -04:00
kwolekr
4f31a0ef47 Add NodeResolver and clean up node name -> content ID resolution system 2014-10-26 23:55:45 -04:00
RealBadAngel
983201a10b Custom collision boxes node property. 2014-10-19 20:48:21 +02:00
RealBadAngel
1c09928344 Add meshnode drawtype. 2014-10-18 16:42:23 +02:00
Kahrl
fc560cdfc1 Fix LuaJIT exception wrapper 2014-08-23 20:41:03 +02:00
ShadowNinja
9718e20bfa Use "core" namespace internally 2014-05-08 13:02:04 -04:00
sapier
e2a88e15fd Add proper lua api deprecated handling 2014-04-29 22:49:04 +02:00
BlockMen
f2e2f59cdd Use integers instead of float values 2014-04-12 20:04:12 +02:00
ShadowNinja
ce942de6ed Remove lua_State parameter from LuaError::LuaError 2014-03-15 16:28:59 -04:00
ShadowNinja
56e1aa4833 Revert "Make sure we get a stacktrace for as many lua errors as possible"
This reverts commit 362ef5f6ced862daa4733034810d0b07e2ad5d89.

Stack tracebacks couldn't be generated in LuaError::LuaError anyway and this
caused a second, empty traceback in most cases.  In cases where there wasn't
annother traceback the stack had already unwound and the traceback was empty.
2014-03-15 16:01:06 -04:00
Sfan5
056e6fdec8 Make sure we get a stacktrace for as many lua errors as possible 2014-03-15 14:51:00 +01:00
kwolekr
cd27d27083 Update set_mapgen_params and set_gen_notify Lua API to use new flag format 2014-03-08 11:35:04 -05:00
kwolekr
d48f851863 Add minetest.set_noiseparam_defaults() Lua API 2014-02-15 19:13:14 -05:00
kwolekr
8719f0f357 Define strlcpy on platforms that do not have it 2014-02-09 13:57:29 -05:00
kwolekr
64b8216144 Add capability to read table flag fields from Lua API 2014-02-09 12:44:31 -05:00
kwolekr
2a896ffbf7 Make flag strings clear specified flag with 'no' prefix
Remove flagmask field from set_mapgen_params table
Add small bits of needed documentation
2014-02-08 17:50:59 -05:00
kwolekr
444e863ec9 Schematic: Read slice probability table from schematic descriptors 2014-01-19 02:44:45 -05:00
ShadowNinja
b634e04a40 Add maximum recursion depth to read_json_value 2014-01-11 14:08:02 -05:00
ShadowNinja
3b98b3d78d Rename get_json_value to read_json_value 2014-01-11 13:52:26 -05:00
ShadowNinja
1dd2fa6296 Fix InventoryList reading order
Lua does not guarantee that the indexes of a table will be in numerical order.
2013-12-30 14:00:05 -05:00
ShadowNinja
e2b44bca93 Don't throw a error when writing JSON fails 2013-12-18 18:18:43 -05: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
ShadowNinja
7861d84bcb Move script_run_callbacks to Lua 2013-12-07 22:03:07 -05:00
RealBadAngel
c18af13697 Shaders rework. 2013-12-03 18:55:25 +01:00
ShadowNinja
2741a7e6e0 Optimize table creation 2013-11-30 13:05:13 -05:00
kwolekr
466aba8337 Fix possible implicit conversion of NULL to std::string 2013-11-21 00:49:32 -05:00
MetaDucky
d37b6b8f43 fixed array limit check when reading Lua specialtiles table 2013-11-16 15:31:17 +01:00
ShadowNinja
5cb34cf9dd Pass a errfunc to lua_pcall to get a traceback 2013-11-15 14:13:31 -05:00
PilzAdam
20e1cc7140 Add offset to automatic_face_movement_dir 2013-09-10 23:31:44 +02:00
Kahrl
1f772a3890 Add minetest.parse_json, engine.parse_json 2013-09-02 02:20:08 +02:00
Kahrl
ee90d438b8 Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
sapier
ce907a371e Add support for entities to automatic face movement direction 2013-08-13 23:48:47 +02:00
kwolekr
6aa6aaf3f3 Decoration: Fix schematic probability mess with new MTS file version 2013-08-11 15:34:49 -04:00
BlockMen
b131a282ba Add support for different drowning damage and allow drowning in other nodetypes 2013-08-06 17:49:39 +02:00
sapier
12a654708c Add support for setting stepheight for entities 2013-07-30 19:48:02 +02:00
proller
cdb2b82262 Weather support 2013-07-27 23:21:48 +04:00
PilzAdam
617d8cba5d Add an option to disable object <-> object collision for Lua entities 2013-07-20 20:43:11 +02:00
PilzAdam
6f29410895 Add liquid_range to nodedef 2013-07-20 20:41:17 +02:00
PilzAdam
9cc15d669e Make range of tools configureable 2013-07-20 20:37:59 +02:00
proller
0d55518108 Leveled nodebox 2013-07-13 22:13:24 +04:00
sapier
f4a9f1af58 Fix possible 0 pointer access 2013-07-02 20:01:48 -04:00
kwolekr
4e9b7ef618 Decoration: Add Schematic decoration type 2013-06-22 01:11:52 -04:00