Page 1 of 2

[Mod] Colored Woods [20140617] [coloredwood]

PostPosted: Wed Jul 18, 2012 04:36
by VanessaE

Vanessa's Colored Woods mod


This mod provides a multitude of colors of wood, sticks, and fences to Minetest, as per the palette outlined by my Unified Dyes mod. By itself, it defines just two nodes (colorized wood block and fence), to which the Unified Dyes 89-color palette is applied.

If you have Moreblocks/Stairsplus installed, this mod will automatically add itself to the circular saw, bringing its defined nodes count to 626 (12 hues + 1 greyscale, times 48 shapes, plus the above wood and fence nodes), but in so doing, it makes over 55'000 color-shape combinations available! If you feel the need to disable that feature, add the following to your minetest.conf:

coloredwood_enable_stairsplus = false

To colorize wood or fences, simply place a standard block of wood or a standard wooden fence on the ground as usual, then punch it while wielding dye. The same is true for the shapes you get from cutting default:wood with Moreblocks' circular saw. Digging such a colorized object gives you back the plain wooden one and the dye used to color it.

Note that this mod only uses default:wood and default:fence_wood. It does not use the other types of wood in minetest_game, and does not yet support default wooden stairs and slabs.

Colorized wooden blocks and stairsplus objects are named for their base hue. All objects should be flammable and usable as fuel unless I missed something.

Dependencies: default, unifieddyes, and a Minetest engine build newer than 2017-01-23.

Recommends: moreblocks

Download: https://github.com/minetest-mods/coloredwood/archive/master.zip
...or browse the code: https://github.com/minetest-mods/coloredwood
For the 0.4.15-stable version (no hardware coloring), get this ZIP file.

Install: Download and extract the above ZIP file. Rename the resultant VanessaE-coloredwood-blahblah folder to just "coloredwood", and move it into your Minetest mods folder.

License: LGPL for the code, cc-by-sa for the textures.

Screenshot:
Image
The full palette of woods.
Image
The corresponding fences.

PostPosted: Wed Jul 25, 2012 04:58
by VanessaE
2012-07-24: Tweaked all recipes so that those that involve adding a dye give back an empty bottle along with the craft result.

PostPosted: Thu Jul 26, 2012 05:43
by SegFault22
wow...just, wow...

PostPosted: Fri Aug 03, 2012 08:16
by Miner99
Can you make coloured tools?

PostPosted: Fri Aug 03, 2012 16:21
by VanessaE
A mod would need to be created to that end, though I don't see much purpose in that myself.

PostPosted: Sat Aug 04, 2012 05:13
by thetinydon
I tried installing the colored woods mod, but when I try running the game I get an error message:

"A serialization error occurred:
deSerializeString: size not read

The server is probably running a different version of Minetest."

Could you please help me? I have minetest 0.4.1

I also have the unifieddyes mod, vessels, junglegrass, nature pack controlled.

PostPosted: Sat Aug 04, 2012 05:18
by VanessaE
The problem is in Minetest itself - you've hit a bug in the game which limits the number of defined nodes/items to less than what the game is supposed to support. This bug, as well as the actual limit on the number of nodes/items, have both been fixed in 0.4.2-rc1.

PostPosted: Sat Aug 04, 2012 07:00
by thetinydon
Got it to work by installing new version. Thanks Vanessa! =]

PostPosted: Sat Aug 04, 2012 08:20
by VanessaE
Glad to help :-)

PostPosted: Sat Aug 04, 2012 18:36
by Cooper
I like the blending of the colors but this seems like overkill of the dies mod

PostPosted: Sat Aug 04, 2012 18:38
by VanessaE
I'm known for going for overkill. That way no one can complain that I left anything out! :-)

PostPosted: Sun Jan 27, 2013 05:43
by Michael Eh?
VanessaE wrote:2012-07-24: Tweaked all recipes so that those that involve adding a dye give back an empty bottle along with the craft result.

Works well... except for the fact it returns a glass flask for a white BUCKET of paint. Ouch.

One question if stairsPlus mod can work with this? Be neat to make sculptures and signage with color overlays.

PostPosted: Sun Jan 27, 2013 07:23
by VanessaE
That's an old bug I forgot to fix actually. As for stairsplus, sure it could theoretically work if you don't mind adding about 2200 new nodes to your game. :-)

PostPosted: Mon Jan 28, 2013 16:33
by Michael Eh?
How about just having white and shades of grey being flask recipes as oppose to being paint? iron is expensive.

Also when doing multiple batches of black, you lose flasks until you're left with only one.

Also how does painted wood fences work under Xfences?

PostPosted: Mon Jan 28, 2013 17:21
by VanessaE
I won't be changing how greys/black/white work. However, I will eventually fix that bug. :-)

Unless I'm mistaken, the loss of flasks happens with all colors due to a deficiency in the replacements option in the game.

Colored fences probably will not work one way or the other with xfences. They won't conflict, as far as I know, but xfences doesn't know of the existence of colored woods.

PostPosted: Wed Mar 20, 2013 05:09
by VanessaE
2013-03-20: Removed all items from the creative inventory. In practice, there are simply too damn many nodes to list them all, so you'll need to rely on crafting them from sticks/wood + dyes.

PostPosted: Sun May 19, 2013 18:11
by shaneroach
For wood, I'd almost prefer an overkill of the various colors of brown, which are under-represented even in this rather amazing setup. I like all your mods. You work on the kind of things that intrigue me about this sort of game in general - the crafting.

PostPosted: Sun May 19, 2013 22:15
by Sokomine
shaneroach wrote:For wood, I'd almost prefer an overkill of the various colors of brown, which are under-represented even in this rather amazing setup.

Try Vanessas moretrees mod. That comes with several diffrent tree types and adds wooden planks of different colors.

PostPosted: Sun May 19, 2013 22:28
by Inocudom
You could make a machine of sorts that paints compatible nodes depending on what dyes are in it. The device could also mix dyes.

PostPosted: Sun May 19, 2013 22:59
by Sokomine
Sounds like a good idea. The machine might even offer buttons for the selection of different colors and request the necessary indigrents if not in creative mode.

PostPosted: Mon May 20, 2013 22:17
by shaneroach
Sokomine wrote:
shaneroach wrote:For wood, I'd almost prefer an overkill of the various colors of brown, which are under-represented even in this rather amazing setup.

Try Vanessas moretrees mod. That comes with several diffrent tree types and adds wooden planks of different colors.



Ideal, just what I was thinking about.

Thanks.

Anyone happen to know if it has been subsumed into "Plantlife"? I don't see moretrees in her listed link on her profile.

PostPosted: Tue May 21, 2013 03:14
by VanessaE
It's in my signature now :-) and no, it has not been merged with plantlife (and won't be).

PostPosted: Tue May 21, 2013 04:13
by shaneroach
VanessaE wrote:It's in my signature now :-) and no, it has not been merged with plantlife (and won't be).


Haha! Thanks.

Re: [Mod] Colored Woods [20140617] [coloredwood]

PostPosted: Tue Jun 17, 2014 04:55
by VanessaE
Update - this mod is NOT dead!

Added optional Moreblocks/Stairsplus support. Because of the number of colors and shapes supported by this mod and by Stairsplus, respectively, this change adds a whopping 2581 nodes, but no new textures etc, so it should only result in a slightly longer startup time. Defaults to enabled if Moreblocks is installed; to disable this feature, add coloredwood_enable_stairsplus = false to minetest.conf.

Re: [Mod] Colored Woods [20140617] [coloredwood]

PostPosted: Sat Aug 16, 2014 03:07
by VanessaE
Another update: new textures using the "4-tile" style of current minetest_game. A bit less dramatic on the "light" series, and also I fixed the overly-dark black fence inventory texture. The grey/black/white wood textures were hand-tweaked to give a better set of shades than what came out of the colorizer script.

Re: [Mod] Colored Woods [20140617] [coloredwood]

PostPosted: Sat Aug 16, 2014 03:46
by Sokomine
VanessaE wrote:Another update: new textures using the "4-tile" style of current minetest_game

Thank you! Finally a really good, working wood texture - including some colored textures we may in the future sell as wood from trees :-) Hope the basic wood texture gets integrated into minetest_next soon.

Re: [Mod] Colored Woods [20140617] [coloredwood]

PostPosted: Wed Oct 29, 2014 17:07
by mgl
I believe there's a typo in the code of the greyscale colors of planks that makes the medium grey wood uncraftable (file 'wood.lua'): there's a reference to "unifieddyes:mediumgrey_paint" which doesn't exist in the unifieddyes mod, it's "grey_paint" there I think.

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
diff --git a/wood.lua b/wood.lua
index e07ad29..d6abcf0 100644
--- a/wood.lua
+++ b/wood.lua
@@ -89,7 +89,7 @@ local greys2 = {
 local greys3 = {
    "black",
    "darkgrey_paint",
-   "mediumgrey_paint",
+   "grey_paint",
    "lightgrey_paint",
    "white_paint"
 }

Re: [Mod] Colored Woods [20140617] [coloredwood]

PostPosted: Wed Oct 29, 2014 20:16
by VanessaE
This mod needs a bit of an update anyway, because unifieddyes hasn't used "paint" in any of its item names in a while. It only defines light grey of those three (as "dye:light_grey"), with the other two being handled by the default dyes mod now.

Fixed in git, did the aforementioned update, and also another minor change: don't give back glass bottles on crafting fences/wood blocks, unified dyes doesn't use them in the making of dye colors anymore.

Re: [Mod] Colored Woods [20140617] [coloredwood]

PostPosted: Thu Oct 30, 2014 10:35
by mgl
VanessaE wrote:Fixed in git

The mistake is still there Vanessa, in 'init.lua' this time.

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
diff --git a/init.lua b/init.lua
index 78d44f8..d8be6ad 100644
--- a/init.lua
+++ b/init.lua
@@ -106,7 +106,7 @@ coloredwood.greys2 = {
 coloredwood.greys3 = {
    "black",
    "darkgrey_paint",
-   "mediumgrey_paint",
+   "grey_paint",
    "lightgrey_paint",
    "white_paint"
 }

Re: [Mod] Colored Woods [20140617] [coloredwood]

PostPosted: Thu Oct 30, 2014 13:35
by VanessaE
OOPS! Looks like I forgot to push my last commit to the repository (I was working on removing all that 'paint' stuff altogether since it's outdated anyway). Sorry about that. Fixed.