634 Commits

Author SHA1 Message Date
ShadowNinja
33f6656d33 Add compression API 2014-09-20 14:02:54 -04:00
ShadowNinja
0b45befa69 Simplify and optimize schematic replacements 2014-09-11 22:25:06 -04:00
kwolekr
ee1fee1578 Add LuaVoxelManip methods: get_node_at() and set_node_at() 2014-09-01 17:33:21 -04:00
kwolekr
9adbca89cd Update Mapgen VoxelManipulator on buffer invalidation 2014-09-01 15:12:22 -04:00
sapier
25da503d04 Remove invalid doc about minetest.get_time_us() 2014-08-25 21:52:52 +02:00
sapier
04d3b7f969 Add missing doc for minetest.get_us_time() 2014-08-25 21:16:32 +02:00
Craig Robbins
8152f54ac6 Fix seg fault if popping from empty stack (L-system trees)
See: https://github.com/minetest/minetest/issues/1525

Background
Wuzzy2: If you attempt to spawn a L-system tree with minetest.spawn_tree, you can make Minetest crash if it is attempted to pop an empty stack.

ShadowNinja: This shouldn't cause a segmentation fault, but it should throw a Lua error

Commit Description
This commit throws a Lua error instead of causing a segmentation fault. The server will still "crash" but will include a Lua backtrace.

L-Systems fix randomness
Unless a random seed is provided (via Lua treedef) seed the PRNG with a different seed for each tree
Resolves: https://github.com/minetest/minetest/issues/1469

Fix l-system crash when treedef random_level not set by Lua
2014-08-23 06:40:27 +02:00
sfan5
bf60cf56ec Add ^[mask texture modifier 2014-08-22 22:42:04 +02:00
rubenwardy
0859915fb4 Correct spelling mistakes in documentation 2014-08-22 20:55:01 +02:00
sapier
4b2e3ceaad Mod profiling support
Config settings:
profiling = true/false (gather statistics)
detailed_profiling = true/false (break mod times to callbacks)

Chat commands:
save_mod_profile saves current statistics in debug.txt and shows on console (on default loglevel)
2014-08-19 22:22:57 +02:00
sfan5
c1170e9791 Rework texture generating code, add texture grouping via ( ... ) 2014-07-29 20:02:56 +02:00
sapier
73907a2c7e Add srollbar formspec element 2014-07-16 15:02:56 +02:00
sapier
9fe198016a Update version numbers for 0.4.10 2014-07-06 22:39:47 +02:00
sfan5
c5b58526ff Fix typos in doc/lua-api.txt 2014-07-05 12:19:55 +02:00
Kahrl
7639c203f5 Fix typo in doc/lua_api.txt 2014-07-05 01:09:53 +02:00
RealBadAngel
1328c078f5 Tooltips rework.
Separate element for tooltips. Delayed showing,
use global color or given ones.
2014-06-24 22:11:47 +02:00
RealBadAngel
bbaf49826e Add tooltips for button, imagebutton and checkbox. 2014-06-19 00:22:03 +02:00
ShadowNinja
d37ee7bca8 Add success and output return values to chat commands 2014-05-28 18:36:46 -04:00
rubenwardy
b7ccc0b817 Add item eat callback 2014-05-26 18:41:58 -04:00
sapier
d83d1a95b7 Fix heart + bubble bar size on different texture packs
Add DPI support for statbar
Move heart+bubble bar to Lua HUD
Add statbar size (based upon an idea by blue42u)
Add support for customizing breath and statbar
2014-05-07 21:46:27 +02:00
ShadowNinja
4ed066b463 Update documentation on is_ground_content 2014-04-24 18:27:25 -04:00
proller
495ed5ec8b Remove liquid_finite and weather 2014-04-18 21:56:48 +04:00
BlockMen
a5db2961b2 Add player:set_eye_offset() by @MirceaKitsune and clean up 2014-04-12 17:44:20 +02:00
BlockMen
8909fe913c Add third person view 2014-04-12 17:44:15 +02:00
sapier
bc7084892d Cleanup client init states by bumping protocol version
Don't use TOSERVER_RECEIVED_MEDIA but TOSERVER_CLIENT_READY as indicatio for client ready
Handle clients with protocol version < 23 (almost) same way as before
Make client tell server about it's version
Add client state to not send bogus player position updates prior init complete
Add access to statistics information (peer connction time,rtt,version)
Fix clients standing stalled in world while preloading item visuals (new clients only)
Add get_player_information to read client specific information from lua
2014-04-08 21:12:20 +02:00
sapier
89c5163c02 Replace pause and message menu by formspec ones 2014-03-05 18:44:14 +01:00
ShadowNinja
bf37cbf242 Remove "Server -!- " prefix from player messages 2014-02-27 00:00:22 -05:00
kwolekr
8b7de5ea21 Schematic: Add force_placement parameter to minetest.place_structure API 2014-02-15 19:46:57 -05:00
kwolekr
d48f851863 Add minetest.set_noiseparam_defaults() Lua API 2014-02-15 19:13:14 -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
sapier
23c7c86bad Add minetest.kick_player(name, reason) 2014-02-03 17:33:59 -05:00
Perttu Ahola
0ad66f64a5 Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness 2014-02-01 18:38:21 +01:00
Perttu Ahola
89f9a3e607 Add player:set_sky() with simple skybox support 2014-02-01 18:34:26 +01:00
RealBadAngel
6d28b11897 New HUD element - waypoint. 2014-01-26 21:31:59 +01:00
ShadowNinja
ca5b6594b9 Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks 2014-01-23 19:21:56 -05:00
ShadowNinja
6a6a7e8fd3 Add pointed_thing to minetest.register_on_placenode
As suggested by qwrwed.
2014-01-21 22:06:40 -05:00
kwolekr
64311f6a74 Update lua_api.txt documentation 2014-01-19 03:00:47 -05:00
ShadowNinja
487c8aaf56 Add minetest.override_item 2014-01-13 21:41:00 -05:00
Kahrl
d58f5a0878 Add formspec table 2014-01-13 18:11:08 -05:00
khonkhortisan
5874af4d8f Allow vertical axis particle rotation constraint
Use tables for adding particles, deprecate former way.

separate particles(pawner) definition, add default values, work with no
arguments
2014-01-13 17:34:56 -05:00
Novatux
65fa1fa276 Fix doc and forceloading crash. 2014-01-12 14:31:32 +01:00
ShadowNinja
78c4bfc4cc Add InvRef::get/set_lists() 2014-01-11 13:52:26 -05:00
Novatux
0a96131bf4 Add forceloading 2014-01-11 17:54:00 +01:00
Novatux
cd1033d41f Deepcopy pointed_thing for after_place_node, give it to on_rightclick too. 2014-01-11 17:23:28 +01:00
ShadowNinja
6d3b145407 Document "wielditem" visual 2014-01-08 17:10:57 -05:00
ShadowNinja
306041087c Pass pointed_thing to after_place_node 2014-01-06 21:25:10 -05:00
kwolekr
c7c4c681e4 Bump version to 0.4.9 2014-01-01 16:54:28 -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