connected nodes like xpanes, xfences, walls [xconnected]

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

connected nodes like xpanes, xfences, walls [xconnected]

by Sokomine » Wed Jul 22, 2015 23:20

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
xconnected_5.png (234.75 KiB) Viewed 1071 times
xconnected_3.png
xconnected_3.png (341.91 KiB) Viewed 1071 times
xconnected_6.png
xconnected_6.png (108.7 KiB) Viewed 1071 times
Last edited by Sokomine on Wed Nov 18, 2015 17:56, edited 1 time 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

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

by Ivà » Thu Jul 23, 2015 13:30

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

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

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

by Krock » Thu Jul 23, 2015 16:06

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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

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

by Sokomine » Thu Jul 23, 2015 19:15

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.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

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

by Sokomine » Wed Nov 18, 2015 17:52

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
xconnected_fence_middle.jpg (48.45 KiB) Viewed 1071 times
xconnected_fence_nomiddle.jpg
xconnected_fence_nomiddle.jpg (47.59 KiB) Viewed 1071 times
xconnected_wall.jpg
xconnected_wall.jpg (40.23 KiB) Viewed 1071 times
A list of my mods can be found here.
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

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

by Nathan.S » Wed Nov 18, 2015 22:22

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.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

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

by Sokomine » Tue Dec 01, 2015 19:37

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: 77
Joined: Thu May 28, 2015 07:09

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

by Martno » Fri Mar 04, 2016 06:02

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


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron