263 Commits

Author SHA1 Message Date
sapier
16de756f04 Fix usage of deprecated functions in builtin 2014-04-29 23:57:07 +02:00
sapier
e2a88e15fd Add proper lua api deprecated handling 2014-04-29 22:49:04 +02:00
ShadowNinja
f699e95e0a Add support for function serialization to minetest.serialize 2014-04-27 16:15:53 -04:00
ShadowNinja
5805a3dc4c Remove dependency on marshal and many other async changes
This makes a number of changes:
  * Remove the dependency on marshal by using string.dump and loadstring.
  * Use lua_tolstring rather than having Lua functions pass string lengths to C++.
  * Move lua_api/l_async_events.* to cpp_api/s_async.*, where it belongs.
  * Make AsyncWorkerThread a child of ScriptApiBase, this removes some duplicate functionality.
  * Don't wait for async threads to shut down.  (Is this safe?  Might result in corruption if the thread is writing to a file.)
  * Pop more unused items from the stack
  * Code style fixes
  * Other misc changes
2014-04-27 16:15:53 -04:00
ShadowNinja
a2bbc1d306 Revert "Add backtrace to error function"
This reverts commit 5b518ed2feff28c9bf21ad940c1b211b72d71bd1.

This caused duplicate tracebacks and tracebacks when unwanted.
It also ignored the level argument to error() and didn't pass the message (or level) to debug.traceback().
Use xpcall() or lua_pcall()'s errorhandler argument instead.
2014-04-24 18:27:25 -04:00
proller
495ed5ec8b Remove liquid_finite and weather 2014-04-18 21:56:48 +04:00
ShadowNinja
ffbc09d67c Add checks for nil in minetest.after 2014-04-13 17:54:00 -04:00
BlockMen
7df737a666 Fix crash when teleporting near unknown node 2014-04-11 21:38:16 +02:00
Novatux
bf5861364c Fix "ghost stacks" created when a player clicks an item on the ground:
since the object is not immediately removed, any other code may still
think an object is there, therefore leading to item duplication. This code
therefore sets the itemstring to '' after the object is picked up to avoid
such issues
2014-03-22 18:15:33 +01:00
RealBadAngel
9cf4f96fa7 Normal maps generation on the fly.
Parallax mapping with slope information.
Overriding normal maps.
2014-03-21 01:32:00 +01:00
ShadowNinja
9b67acc10c Fix error when calling minetest.node_punch without a pointed_thing 2014-03-11 13:00:16 -04: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
ShadowNinja
24cc512b16 Add the option to bind to a specific address 2014-02-05 21:24:46 +01:00
ShadowNinja
8f5febfbaf Escape texture pack names 2014-02-03 17:57:19 -05:00
sapier
23c7c86bad Add minetest.kick_player(name, reason) 2014-02-03 17:33:59 -05:00
ShadowNinja
ca030eee5a Fix error on mod download failure 2014-01-24 15:22:22 -05: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
PilzAdam
06c5b8a8b1 Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for node 2014-01-19 23:16:22 +01:00
Dániel Varga
d0df784d3d Fixed mainmenu lua errors because of changes in get_textlist_index
Fixed lua error when none of the worlds or servers selected are and connect,
delete or configure buttons used.
2014-01-18 10:41:43 +01:00
ShadowNinja
224168ef76 Fix spelling of "attempt" 2014-01-13 22:11:31 -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
Novatux
65fa1fa276 Fix doc and forceloading crash. 2014-01-12 14:31:32 +01: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
306041087c Pass pointed_thing to after_place_node 2014-01-06 21:25:10 -05:00
ShadowNinja
1bb4a3d5a9 Add protection support to auto-rotated nodes 2014-01-06 21:25:10 -05:00
ShadowNinja
d38d7bc7fe Prevent auto-rotated nodes replacing the nodes they are placed on 2014-01-06 21:25:10 -05:00
PilzAdam
8a9f45f905 Escape error messages in error dialog 2014-01-06 18:59:14 +01:00
Perttu Ahola
fa4a2a249a Fix main menu error message dialog: Now multi-line messages aren't cut at half of second line 2014-01-06 02:37:36 +02:00
Ilya Zhuravlev
7c1c3e1f7b Fix absence of images when compiled with RUN_IN_PLACE=0. 2014-01-05 12:43:40 +02:00
Novatux
15c6aabfef Revert "Fix minetest.facedir_to_dir when param2 is 5 or 7."
This reverts commit 4e5760a5416cbca6945b1b4484cbd96bea7b250c.
2013-12-30 18:45:34 +01:00
kaeza
ba7af927a7 Add 'on_prejoinplayer' callback 2013-12-12 13:42:14 -05:00
sapier
723f6e156a Implement search tab and version picker 2013-12-11 23:07:38 +01:00
ShadowNinja
7861d84bcb Move script_run_callbacks to Lua 2013-12-07 22:03:07 -05:00
ShadowNinja
e3785074a3 Only create one alias metatable 2013-12-04 14:31:55 -05:00
RealBadAngel
c18af13697 Shaders rework. 2013-12-03 18:55:25 +01:00
0gb.us
6db0a87763 Assume a selection box for fences
Similar to assuming a selection box for the nodebox drawtype, minetest.register_item() now assumes a selection box for the fencelike drawtype.
2013-11-30 13:22:50 -05:00
kwolekr
d239e2e468 Change default value of is_ground_content to true
Most modders would otherwise forget to explicitly define this, and generated nodes aliased from mods would wall-off caves
2013-11-30 02:37:10 -05:00
sapier
b1a9e58d6a Fix modstore/favourites hang by adding asynchronous lua job support 2013-11-29 22:09:14 +01:00
sapier
326a3e4f8f Split server/client port setting to avoid port number clashes in mainmenu 2013-11-28 21:43:06 +01:00
ShadowNinja
1b1e315a6a Rollback fixes and get_node_actions 2013-11-27 18:13:06 -05:00
sapier
9345e006c3 Temporary disable local install button due to irrlicht dialog breaking localization 2013-11-24 02:15:25 +01:00
Novatux
1afc4bfdf0 Fix my name (doesn't display correctly because of utf8 characters) 2013-11-23 20:05:07 +01:00
Sfan5
e0d7b47f33 Fix rename modpack button not working, fixes #1019 2013-11-23 19:06:35 +01:00
Sfan5
1e4aec30b5 Prevent enabling Shaders if Direct3D is used 2013-11-23 15:41:47 +01:00
ShadowNinja
1e61dd0951 Fix usage of 'minetest' where 'engine' was intended 2013-11-21 21:24:04 -05:00
BlockMen
1ecc5c1b2d Fix modmanager screenshot path 2013-11-19 15:39:40 +01:00