kwolekr
f24947f903
Ore: Add ore sheet column height range selection
...
Modders are now able to select the range of ore column height,
and the midpoint at which they 'grow' starting from.
This commit adds three new parameters for the 'sheet' ore type:
column_height_min, column_height_max, and column_midpoint_factor.
clust_size is now deprecated for this ore type.
2015-09-13 00:11:50 -04:00
est31
9e48f180c9
Areastore: fix "attempt to index a number value"
...
Before, calling get_areas_in_area for an areastore with both
include_borders and include_data would result in a lua error,
if there was at least one area as result:
attempt to index a number value in function 'get_areas_in_area'
2015-09-03 06:17:02 +02:00
est31
1752042134
l_mainmenu.h: remove unused l_get_dirlist function
...
The commit
8f9af57314f71aae1cc77e13f9996e13015d776d "Add core.get_dir_list" by @ShadowNinja
has removed the implementation of the l_get_dirlist function and all its usages
from the l_mainmenu.cpp file, but hasn't removed it from the header file.
The reason why this hasn't been detected earlier is that C++ has this interesting
feature to still make it possible to create instances of classes whose never used
private methods are declared but not defined.
2015-08-30 01:17:03 +02:00
Kahrl
799adf20e9
Push error handler afresh each time lua_pcall is used
...
Fixes "double fault" / "error in error handling" messages
(issue #1423 ) and instead shows a complete backtrace.
2015-08-27 01:56:06 +02:00
Kahrl
236844f409
Use numeric indices and raw table access with LUA_REGISTRYINDEX
2015-08-27 01:56:06 +02:00
kwolekr
72ee8bc2ba
SAPI: Disable unlockable time profiling
2015-08-18 01:26:11 -04:00
kwolekr
09ce485271
SEnv: Remove static_exists from ActiveObjects in deleted blocks
2015-08-16 15:55:07 -04:00
kwolekr
925187a32b
minimap: Add ability to disable from server
2015-08-13 15:05:48 -04:00
kwolekr
2fb4917d8e
SAPI: Track last executed mod and include in error messages
2015-08-12 23:56:12 -04:00
kwolekr
be00c2f46a
Improve Script CPP API diagnostics
2015-08-05 21:13:03 -04:00
paramat
b1fdade2be
Biome API: Make fallback biome stone and water, disable filler
2015-08-03 02:34:32 +01:00
est31
d4a7cfcd71
Add AreaStore data structure
2015-07-27 06:42:56 +02:00
SmallJoker
5442818d56
Fix MSVC number conversion warning
2015-07-25 17:38:04 +02:00
est31
cbf8b91940
Fix minetest.get_(all)_craft_recipe(s) regression
...
Since 03e0dd33a847a83d975282c6caf6b926306e7b57 the calls didn't return an output count
for the recipes.
2015-07-25 17:33:41 +02:00
Loic Blot
8e436bc31c
Cleanup server addparticle(spawner) by merge two identical functions.
2015-07-25 12:24:28 +02:00
est31
713002778f
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.
2015-07-23 07:38:13 +02:00
Elia Argentieri
44d030306e
Added get_player_velocity() method. Fixes #1176
2015-07-20 05:40:44 +02:00
TeTpaAka
48fde1766a
Refactor particle code to remove the while loops
...
Replaces while loops with proper getfield calls
2015-07-18 14:54:07 +02:00
TeTpaAka
2996a06b61
Make acc and vel deprecated in add_particle and search for acceleration and velocity instead
...
The doc and the actual behaviour differed.
2015-07-18 07:57:20 +02:00
TeTpaAka
1c520f2f20
Fix invisible player when the attached entity is removed
2015-07-18 07:41:43 +02:00
kwolekr
01027450b0
Fix damage flash when damage disabled
2015-07-10 15:58:57 -04:00
est31
dd302e0032
Use UTF-8 instead of narrow
...
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places.
Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
2015-07-08 10:12:44 +02:00
TeTpaAka
af7af11b4a
Fix bug when craft input isn't replaced
2015-06-22 19:30:35 +02:00
MirceaKitsune
ee7dfd7ba0
Fix some issues with animations, and allow non-looped animations to be defined
2015-06-22 01:53:38 +02:00
paramat
063ca7aa52
Mapgen objects: Enable heatmap and humidmap for all biome api mapgens
2015-06-20 04:16:17 +01:00
Ilya Zhuravlev
415372ca13
Use utf-8 in formspecs
2015-06-13 19:49:55 +02:00
TeTpaAka
db4fc8326e
Add return list of individual counts to find_node_in_area
2015-06-13 19:39:18 +02:00
kwolekr
3c87e26ee0
Make get_biome_list() error message more helpful
2015-05-28 20:04:50 -04:00
TeTpaAka
4573eef202
Add some missing getter functions to the lua API
...
ObjectRef:
get_properties
get_armor_groups
get_animation
get_attach
get_bone_position
Players:
get_physics_override
hud_get_hotbar_itemcount
hud_get_hotbar_image
hud_get_hotbar_selected_image
get_sky
get_day_night_ratio
get_local_animation
get_eye_offset
Global:
minetest.get_gen_notify
minetest.get_noiseparams
2015-05-28 16:46:35 +02:00
kwolekr
4df33b90e5
Replace instances of std::map<std::string, std::string> with StringMap
...
Also, clean up surrounding code style
Replace by-value parameter passing with const refs when possible
Fix post-increment of iterators
2015-05-19 16:10:49 -04:00
kwolekr
e2e354061a
Fix null dereference when loading schematic from definition without a NodeDefManager
2015-05-17 22:32:35 -04:00
kwolekr
d013e12e5a
Record MapBlock modification reasons as flags instead of strings
...
This improves performance of MapBlock::raiseModified by a factor of 6.
Also, clean up mapblock.h a bit and inline small functions.
2015-05-17 22:14:26 -04:00
kwolekr
793f960e04
SAPI/Noise: Add PerlinNoiseMap:getMapSlice() function
...
This adds the ability to grab 'slices' of noise calculated by PerlinNoiseMap.
Retrieving smaller slices of noise from the computation result as needed
optimizes memory usage while maintaining a reasonable amount of CPU overhead.
2015-05-17 04:04:17 -04:00
kwolekr
f560198cd7
Add optional buffer param for bulk data array writes in Lua
2015-05-17 00:07:45 -04:00
ShadowNinja
c8b2e0fbdf
Fix current mod name change missed during rebase
2015-05-16 21:12:03 -04:00
kwolekr
5292177986
SAPI: Accept either ARGB8 table or ColorString to specify colors
2015-05-16 20:15:03 -04:00
ShadowNinja
d85feedccc
Add core.get_dir_list
2015-05-16 18:33:22 -04:00
ShadowNinja
2dd64f03da
Add core.request_insecure_environment()
2015-05-16 18:33:19 -04:00
ShadowNinja
310295c511
Add core.mkdir
2015-05-16 18:32:37 -04:00
ShadowNinja
1008aefa8c
Add mod security
...
Due to compatibility concerns, this is temporarily disabled.
2015-05-16 18:32:31 -04:00
TeTpaAka
766d3b3a57
Add push_ARGB8 to script/common/c_converter
2015-05-15 16:21:56 -04:00
TeTpaAka
676750bd57
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
2015-05-15 16:21:01 -04:00
TeTpaAka
888e2f9b45
Add get and set functions for the nametag color
2015-05-15 11:03:27 +02:00
est31
24ab05ab83
Fix compiler warning about sign comparison
2015-05-13 00:04:30 +02:00
est31
de86d6dabf
is_player() is no player-only function
2015-05-12 05:52:49 +02:00
est31
4769d4fe1d
Make early protocol auth mechanism generic, and add SRP
...
Adds everything needed for SRP (and everything works too),
but still deactivated, as protocol v25 init packets aren't final yet.
Can be activated by changing the LATEST_PROTOCOL_VERSION header to 25
inside networkprotocol.h.
2015-05-11 18:40:27 +02:00
kwolekr
4a54c965a5
Schematics: Add per-node force placement option
2015-05-09 18:44:00 -04:00
kwolekr
9f679f6b11
Tests: Add schematic unittests
...
Improve schematic file-saving interface
Add ability to create temporary test files
2015-05-08 00:55:42 -04:00
kwolekr
097b9ead50
Schematics: Add indent-with-space option for schematic Lua table serialization
2015-05-07 02:54:35 -04:00
kwolekr
e8fb94705c
NodeResolver: Remove NodeResolveMethod
...
This simplifies NodeResolver logic and makes some interfaces cleaner.
2015-05-07 02:36:01 -04:00