[Mod] connected nodes like xpanes,xfences,walls [xconnected]

Post Reply
User avatar
Sokomine
Member
Posts: 4046
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

[Mod] connected nodes like xpanes,xfences,walls [xconnected]

by Sokomine » Post

Image
Xconnected nodes are like xpanes or xfences - they change their visual look depending on the nodes arround them. This mod needs less nodes than xpanes (only 5-6 instead of 15 per x-object) due to making use of the nodes symmetry and the option to set facedir values. Diffrent shapes can be used. The nodes connect to other xconnected nodes and to solid nodes. In contrast to xpanes, these nodes are not updated whenever something (else!) is digged, and thus cannot react to changes of their environment after they have been placed. If you want the node to re-adjust, dig it and place it again if needed. Automatic updates only happens to neighbouring xconnected nodes. The screwdriver can be used to rotate the nodes - don't complain about it looking odd if you use it.

Comes with definitions for panes, fences and walls and some sample applications of them.

Image
Image

Download: https://github.com/Sokomine/xconnected/archive/master.zip
Browse code: https://github.com/Sokomine/xconnected
Version: 0.2
Licence: GPLv3
Depends on: nothing
Recommends: gates_long

Changes in new version: fixed texture name for pine wood; changed wall node nodebox so that they can be stacked better; allowed for additional fence posts in long lines/walls to be added by punching the fence/wall with a node of the same type.
Attachments
xconnected_5.png
(234.75 KiB) Not downloaded yet
xconnected_3.png
(341.91 KiB) Not downloaded yet
xconnected_6.png
(108.7 KiB) Not downloaded yet
Last edited by Sokomine on Fri Jul 06, 2018 12:19, edited 2 times in total.
A list of my mods can be found here.

Ivà
Member
Posts: 115
Joined: Sun Feb 22, 2015 07:11
GitHub: melzua
IRC: melzua
In-game: melzua
Location: Catalonia

Re: connected nodes like xpanes, xfences, walls [xconnected]

by Ivà » Post

Oh wow! Haven't tested it yet but it looks great Sokomine!

User avatar
Krock
Developer
Posts: 4526
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: connected nodes like xpanes, xfences, walls [xconnected]

by Krock » Post

Those walls are a great idea!
Could you add a paramenter to the register function, so it's possible to define the groups of that node?
About the dependencies: You use default textures, so you should add it to your depends.txt file.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Sokomine
Member
Posts: 4046
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: connected nodes like xpanes, xfences, walls [xconnected]

by Sokomine » Post

Krock wrote: Could you add a paramenter to the register function, so it's possible to define the groups of that node?
Good idea. I've added the parameter and changed the default node groups of fences and walls to something more fitting.
Krock wrote: About the dependencies: You use default textures, so you should add it to your depends.txt file.
I've added it now. Sounds and textures from default can thus be used. But the major part of the code is independent of such details. I'm not sure yet as to which versions (shapes with which textures) ought to be kept.
A list of my mods can be found here.

User avatar
Sokomine
Member
Posts: 4046
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: connected nodes like xpanes, xfences, walls [xconnected]

by Sokomine » Post

After a video on Youtube showed some shortcommings of the mod, those have hopefully been fixed now:

Image
Walls now visually connect to each other vertically as well. This does not require any new nodes. It is achieved by making the nodes extend a bit downwards.

Image
The texture for pine wood fences was renamed, following the renaming of the texture in Minetest Game.
Image
As too long fences (or walls) without additional posts inbetween don't look too good, a new node was added that contains a middle fence post and is connected at two opposite sides. You can alternate between the node without middle fence post and the one containing it by punching the fence (or wall) with the same node you used for building it. That way, fence posts will be where you want them to be, and not where an automatism thought they might be well-placed.

Also keep in mind that xconnected nodes only update when another xconnected node is placed. An xconnected glass pane for example won't connect to your chair, and you can also prevent it from connecting to solid nodes if you place the fence first and the solid node afterwards.

Craft receipes have been added in the way xdecor and xpanes used them already. I can't add a fourth attachment, so you need to consult your craft guide.

Please consider using my gates_long mod alongside. If you use fences and walls, you might need gates sooner or later.
Attachments
xconnected_fence_middle.jpg
(48.45 KiB) Not downloaded yet
xconnected_fence_nomiddle.jpg
(47.59 KiB) Not downloaded yet
xconnected_wall.jpg
(40.23 KiB) Not downloaded yet
A list of my mods can be found here.

User avatar
Nathan.S
Member
Posts: 1003
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: connected nodes like xpanes, xfences, walls [xconnected]

by Nathan.S » Post

I guess somebody is watching my mod reviews ;)

Thanks for the fix, I'll be sure and update the info on my site.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
Sokomine
Member
Posts: 4046
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: connected nodes like xpanes, xfences, walls [xconnected]

by Sokomine » Post

Nathan.S wrote: I guess somebody is watching my mod reviews ;)
I was surprised when I saw it :-) It's a well-made review. Thank you for it! (And after all it inspired me to fix the bugs you pointed out ,-))
A list of my mods can be found here.

Martno
Member
Posts: 78
Joined: Thu May 28, 2015 07:09
Location: Hungary

Re: connected nodes like xpanes, xfences, walls [xconnected]

by Martno » Post

Awesome mod!
Question: is there a function to override default fences? Or (if there isn't) can it be added?

User avatar
Sokomine
Member
Posts: 4046
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: connected nodes like xpanes, xfences, walls [xconnected]

by Sokomine » Post

Update:
- fixed bug caused by group "pane" now having a special meaning
- added support for colorfacedir
- changed receipe slightly so that it no longer conflicts with trapdoors

New receipe:Image
Martno wrote: Awesome mod!
Question: is there a function to override default fences? Or (if there isn't) can it be added?
Not really. Default fences might still be needed in craft receipes, and the xconnected fences would drop other nodes. You can let default fences when placed mutate into xconnected ones if you want to.
Attachments
xconnected_receipes.jpg
(16.14 KiB) Not downloaded yet
A list of my mods can be found here.

User avatar
azekill_DIABLO
Member
Posts: 7494
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: connected nodes like xpanes, xfences, walls [xconnected]

by azekill_DIABLO » Post

looks nice!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests