Page 1 of 2

[Mod] Multinode-gates, drawbridges and garage doors [gates]

Posted: Sun Aug 10, 2014 07:41
by addi

big multinode gates

Image
a finished gate, just punch the gatecontroler to open/close the gate.<br />You can use each node(block) you want for building this.
a finished gate, just punch the gatecontroler to open/close the gate.
You can use each node(block) you want for building this.
gates_animation.gif (221.65 KiB) Viewed 3613 times
Spoiler

A simple drawbrige wich uses mesecons

Image
this is a short example, that shows, that also drawbriges are possible.<br />like in the first picture you can use each node for the gate.
this is a short example, that shows, that also drawbriges are possible.
like in the first picture you can use each node for the gate.
drawbrige.gif (466.41 KiB) Viewed 3612 times

What does this mod do?

This mods adds an special node(block) wich acts as gate controler.
With this gate controller, you can transform each construction into a more dynamic one.
Just imagine: you have build up some nice castle, wich have a big gate, and its difficult or near impossible to get this gate with pistons ore movestons to change between opend and closed state.
For this you can now use this gates mod.

1. Enter the chat command:
/giveme gates:controler

2. Place the gatecontroller in the near, where the gate is acting.

3. Right-click the controller to start setup. First, select the possition wherein the gate is “moving”.

4. Now you have to decide if the gate is currently opend, or is it closed, click the button open, or closed then.

5. Now the state is saved. If you have built the opened one, now build the closed one. And if you build the opened one first, build the closed one now.

6. Click the button finish, now you can switch between the open and closed states.

(7.) Optional: you can now place some mesecons wires there wich contoling them for example by pressing buttons or levers.

DOWNLOAD:

v0.9.0 https://bitbucket.org/kingarthursteam/g ... v0.9.0.zip
v0.9.1 https://bitbucket.org/kingarthursteam/g ... v0.9.1.zip
View Sourcecode

DEPENDS: Minetest 0.4.10
LICENSE: CC BY-SA

Have fun!

Re: [mod]Gates[gates][public beta]

Posted: Sun Aug 10, 2014 08:08
by Krock
Very good! Gates.. not this Gates ROFL

Re: [mod]Gates[gates][public beta]

Posted: Sun Aug 10, 2014 20:11
by philipbenr
AWESOME!!! I have been looking for something like this for a very long time. It will be added to castles++ as soon as I can get git working on my computer. Having a little bit of trouble using commits... :P Oh well...

Re: [mod]Gates[gates][public beta]

Posted: Mon Aug 11, 2014 19:15
by HeroOfTheWinds
Excellent mod! I'l have to play around with it a bit, but it's certainly something I'd like to see on servers.

Re: [mod]Gates[gates][public beta]

Posted: Tue Aug 12, 2014 14:12
by addi
great! :-) thanks @ all

but i have just a question to the mt-comunity:

Wich method is the best to select the area?

like it worldedit does? and should i copy that from worldedit mod?

or by placing some special blocks, that marks the positions?

or is there another easieer way to do it?


also another question:

does all, wich tested this mod, understand how to setup the gate, or is it too difficult?

Re: [mod]Gates, Drawbridges and Garage Doors[gates][public b

Posted: Tue Aug 12, 2014 23:56
by Minetestforfun
hopeful mod !

i think a special block for marks the positions is a better idea
(i dislike the worldedit method, it's too long...)

Re: [mod]Gates, Drawbridges and Garage Doors[gates][public b

Posted: Mon Oct 20, 2014 00:32
by gamergardencat
name conflict [Mod] Gates [1.8] [gates] viewtopic.php?f=11&t=896

Re: [mod]Gates, Drawbridges and Garage Doors[gates][public b

Posted: Tue Oct 21, 2014 01:32
by addi
i recommend you using this mod istead of this.

Re: [Mod] Gates, drawbridges and garage doors [gates]

Posted: Fri Jun 12, 2015 05:26
by addi

Re: [Mod] Gates, drawbridges and garage doors [gates]

Posted: Fri Jun 12, 2015 07:21
by TG-MyinaWD
Huh me see no garage doors. unless didn't made an screenshot of so.
But anyways does do look great, and interesting. if could make it just right click like so on the stuff it would be bit more semantic guess can say.

Overall this might be great see on servers.

Semantic Using: Logic

Edit: Oh also do it work with mesh-nodes?

Re: [Mod] Gates, drawbridges and garage doors [gates]

Posted: Fri Jun 12, 2015 07:59
by addi
garage doors are possible too, you just have to build it. :-)
currently there is no screen shot of a garage door, but feel free to take one.

yes, it also works with mesh-nodes

Re: [Mod] Gates, drawbridges and garage doors [gates]

Posted: Wed Jan 20, 2016 11:02
by Doughty12
i think garage doors are the best option

Re: [Mod] Gates, drawbridges and garage doors [gates]

Posted: Thu Jan 21, 2016 21:29
by DoyleChris
Need help setting this up not sure how to select the area.

Re: [Mod] Gates, drawbridges and garage doors [gates]

Posted: Thu Jan 21, 2016 21:34
by addi
the easiest way is to install the world edit mod viewtopic.php?t=572
than you can easily select a area and use this in the gates configurator.

Re: [Mod] Multinodegates, drawbridges and garage doors [gate

Posted: Mon Jul 04, 2016 09:25
by addi
Update: Now with tricky workaround to work with Minetest 0.4.14. Works still good ;-)
Also fixed some small bugs and added more small improvements. Increased gates volume and max distance.

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Fri Feb 17, 2017 09:48
by BirgitLachner
Man ... thats really cool ... such a simple way to have all kind of big gates.

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Fri Feb 17, 2017 09:50
by addi
Thanks :-D.
If you have any suggestions or ideas, they are welcome. :)

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Fri Feb 09, 2018 11:21
by AndroBuilder
What is causing this problem? Please help :=)

Code: Select all

NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2018-02-09 11:57:01: WARNING[Main]: Undeclared global variable "default" accessed at ...netest-0.4.16-win32\bin\..\mods\multiblockgates\init.lua:14
2018-02-09 11:57:01: WARNING[Main]: Undeclared global variable "default" accessed at ...netest-0.4.16-win32\bin\..\mods\multiblockgates\init.lua:18
2018-02-09 11:57:01: WARNING[Main]: Undeclared global variable "default" accessed at ...netest-0.4.16-win32\bin\..\mods\multiblockgates\init.lua:22
2018-02-09 11:57:01: ERROR[Main]: ModError: Failed to load and run script from E:\Software\minetest-0.4.16-win32\bin\..\mods\multiblockgates\init.lua:
2018-02-09 11:57:01: ERROR[Main]: ...e\minetest-0.4.16-win32\bin\..\builtin\game\register.lua:65: Name gates:controler does not follow naming conventions: "multiblockgates:" or ":" prefix required
2018-02-09 11:57:01: ERROR[Main]: stack traceback:
2018-02-09 11:57:01: ERROR[Main]: 	[C]: in function 'error'
2018-02-09 11:57:01: ERROR[Main]: 	...e\minetest-0.4.16-win32\bin\..\builtin\game\register.lua:65: in function 'check_modname_prefix'
2018-02-09 11:57:01: ERROR[Main]: 	...e\minetest-0.4.16-win32\bin\..\builtin\game\register.lua:113: in function 'register_item'
2018-02-09 11:57:01: ERROR[Main]: 	...e\minetest-0.4.16-win32\bin\..\builtin\game\register.lua:206: in function 'register_node'
2018-02-09 11:57:01: ERROR[Main]: 	...netest-0.4.16-win32\bin\..\mods\multiblockgates\init.lua:382: in main chunk

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Fri Feb 09, 2018 11:31
by addi
rename the folder to "gates"

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Sun Feb 11, 2018 19:13
by BirgitLachner
I have an idea ...
of cause I can use the gates-block for that, but usage can be made easier for that.

For servers in educational use, it would be cool to reset areas to a defined status. This can be used if you offer are area, where the player can do something and after the usage you need to reset the area that the next player can do the same things again.
So a Reset-Block just needs one status. And if it is hit, the area is set back to the saved status.

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Mon Feb 12, 2018 12:34
by addi
This is maybe better for a standalone mod. I add it to my todo list and make it, if I get some more free time ;-)

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Thu Mar 15, 2018 21:49
by xisd
Hi ! I really like the idea of this mod ! I tried it today and it seem to add a lot of possibilities for buildings doors, gates and maybe other interactive things.

My only problem for now is that it seem intended only for creative mode.
I plan on adding it to a server with limited resources (I made a small separate mod to add a recipe for the controller)
Unfortunately, it also comes as a very easy way to cheat by duplicating blocs. :
- Say I make a diamond door (or other valuable blocs) as 'closed door' state, I click 'next'
- I dig them back to set an empty 'open door' state, I click 'next'
- Now I just have to switch back to the 'closed door' state to be able to dig my diamond door once more...

Most of the time, I would say that if you put some effort to figure a clever way to cheat and had some fun doing so, thats one way to play.
But I try not to make things too easy...

Any thoughts on how to fix this duplication situation ?

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Fri Mar 16, 2018 09:53
by addi
Yes, I know the problem. Thats the reason why there is no craft recipe available.
Currently I have the following solutions but they are not all perfect.
  1. Disabling crafting: Only players with creative/Give privileges are able to build it. Why should they double Items, if thy can get them legally?
  2. Count the nodes in opened and closed state: This would force the players to use the exact same nodes for the opened and the closed state.
    Problems:
    • After setup, the gate cannot changed.
    • Its impossible to mark eg. with a red node, that the gate is closed and with a green node that its open.
    • It would be impossible to use eg. rope_vertical for the opened and rope_horizontal for the closed gate/drawbridge.
  3. Clear the gate area after 2nd setup step: This would clear the gate area (set air overall) and the player would have to place all nodes twice, even the static ones.
As you see there is not a satisfying solution at all. If you have further Ideas I would be thankfull.

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Fri Mar 16, 2018 10:40
by hajo
BirgitLachner wrote:reset areas to a defined status.
Worldedit + mesecons-commandblock, and the area with the saved defined status nearby,
eg. somewhere underground.
Then set the commandblock with a command to copy that area.

Re: [Mod] Multinode-gates, drawbridges and garage doors [gat

Posted: Sun Mar 18, 2018 07:36
by xisd
Thanks for the quick answer. Solution c. seems to be the most acceptable for me but yes its not ideal

This made me think of something though :
addi wrote: Problems:
  • After setup, the gate cannot changed.
Maybe some combination of b and c :
What if the gate setup was only one step : defining the area.
All existing non-air nodes in the defined area are considered static and will not be editable.
Once that is done, the gate is automatically set to be opened (or closed). So the two states are the same.
Now the player can edit each state from there the same way it is possible to do it after setup

That is not very elegant, but it avoid inconveniences you mentioned (I think) and it lighten the setup process