Page 1 of 1

[Mod] Gates mod [1.1] [gates]

PostPosted: Thu Jan 03, 2013 20:21
by xyz
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
// GloopMaster is gone, but his mods are not.
Original thread: http://minetest.net/forum/viewtopic.php?id=2811


Gates that work properly in 0.4.2-rc1. (for some reason, splizard's gates mod doesnt work.)

These tile properly with xfences, although they may look a little wierd with default fences. ;)

Splizard's nodeboxes were added in the 1.1 version, as well as cobble and steel gates. Steel gates will only work on a mesecons signal. (if you do not have/wish to use mesecons, remove it from the depends.txt)

You cannot jump over a closed gate. Opened gates let through light.

Liscence: WTFPL. Code from xDoors is also WTFPL. Code from xFences is also WTFPL. There are no textures in this mod.

Depends: default, although xfences is recommended.

Image
Image

Ver. 1.0: http://ompldr.org/vZmNvOQ or http://mods.minetest.ru/gates/gates_1.0.zip
Ver. 1.1: http://ompldr.org/vZmNxbA or http://mods.minetest.ru/gates/gates_1.1.zip

PostPosted: Thu Jan 03, 2013 20:22
by PilzAdam
Can you please use site where you get a direct donwload link like http://ompldr.org/.

PostPosted: Thu Jan 03, 2013 20:22
by PilzAdam
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_placenode(function(pos, newnode, placer))

is deprecated. Use on_construct or after_place_node in node definition instead.

PostPosted: Thu Jan 10, 2013 06:44
by leo_rockway
With latest mesecons from git:

03:43:19: ERROR[main]: ========== ERROR FROM LUA ===========
03:43:19: ERROR[main]: Failed to load and run script from
03:43:19: ERROR[main]: /usr/share/minetest/games/minetest_game/mods/gates/init.lua:
03:43:19: ERROR[main]: ...are/minetest/games/minetest_game/mods/gates/init.lua:242: attempt to call method 'register_effector' (a nil value)
03:43:19: ERROR[main]: stack traceback:
03:43:19: ERROR[main]: ...are/minetest/games/minetest_game/mods/gates/init.lua:242: in main chunk
03:43:19: ERROR[main]: =======END OF ERROR FROM LUA ========
03:43:19: ERROR[main]: Server: Failed to load and run /usr/share/minetest/games/minetest_game/mods/gates/init.lua
03:43:19: ERROR[main]: ERROR: An unhandled exception occurred: ModError: Failed to load and run /usr/share/minetest/games/minetest_game/mods/gates/init.lua

In thread 7f098ce4a720:
/home/leo/minetest/src/main.cpp:1760: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f098ce4a720:
#0 int main(int, char**)
(Leftover data: #1 Dedicated server branch)
(Leftover data: #2 void Server::sendDetachedInventoryToAll(const string&))


And when I comment that line:

03:45:03: ERROR[main]: ========== ERROR FROM LUA ===========
03:45:03: ERROR[main]: Failed to load and run script from
03:45:03: ERROR[main]: /usr/share/minetest/games/minetest_game/mods/gates/init.lua:
03:45:03: ERROR[main]: ...are/minetest/games/minetest_game/mods/gates/init.lua:253: attempt to call method 'register_on_signal_change' (a nil value)
03:45:03: ERROR[main]: stack traceback:
03:45:03: ERROR[main]: ...are/minetest/games/minetest_game/mods/gates/init.lua:253: in main chunk
03:45:03: ERROR[main]: =======END OF ERROR FROM LUA ========
03:45:03: ERROR[main]: Server: Failed to load and run /usr/share/minetest/games/minetest_game/mods/gates/init.lua
03:45:03: ERROR[main]: ERROR: An unhandled exception occurred: ModError: Failed to load and run /usr/share/minetest/games/minetest_game/mods/gates/init.lua

In thread 7fca1c52c720:
/home/leo/minetest/src/main.cpp:1760: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7fca1c52c720:
#0 int main(int, char**)


Commenting that whole chunk allows minetest to work, but no mesecons integration.

Re: [Mod] Gates mod [1.1] [gates]

PostPosted: Wed Sep 17, 2014 17:44
by balthazariv
I have this error with this mod

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
19:43:32: ERROR[main]: Failed to load and run script from
19:43:32: ERROR[main]: L:\Minetest\minetest - Copie\bin\..\mods\gates\init.lua:
19:43:32: ERROR[main]: L:\Minetest\minetest - Copie\bin\..\mods\gates\init.lua:242: attempt to call method 'register_effector' (a nil value)
19:43:32: ERROR[main]: stack traceback:
19:43:32: ERROR[main]:    L:\Minetest\minetest - Copie\bin\..\mods\gates\init.lua:242: in main chunk


Can you rectify, thanks

Re: [Mod] Gates mod [1.1] [gates]

PostPosted: Wed Sep 17, 2014 18:23
by jp
balthazariv : avoid to bump all the old mods which are mainly no longer maintened by their authors and pick the new ones rather. Like this : viewtopic.php?f=11&t=9932