[Mod] Gates mod [1.1] [gates]

Post Reply
User avatar
xyz
Member
Posts: 450
Joined: Thu Nov 10, 2011 14:25

[Mod] Gates mod [1.1] [gates]

by xyz » Post

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

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Can you please use site where you get a direct donwload link like http://ompldr.org/.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Code: Select all

minetest.register_on_placenode(function(pos, newnode, placer))
is deprecated. Use on_construct or after_place_node in node definition instead.

leo_rockway
Member
Posts: 211
Joined: Tue Jul 31, 2012 20:37

by leo_rockway » Post

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.
Last edited by leo_rockway on Thu Jan 10, 2013 06:48, edited 1 time in total.
Try Skyblock for MineClone 2
Listen to this sound and music pack!

User avatar
balthazariv
Member
Posts: 214
Joined: Mon Apr 07, 2014 15:48
Contact:

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

by balthazariv » Post

I have this error with this mod

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

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests