[Mod] Spray Booth / Color Machine [colormachine]

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

[Mod] Spray Booth / Color Machine [colormachine]

by Sokomine » Post

New: (May 2015) Only white dye is consumed. Of all the other dyes, only samples are needed (keep 2 of each dye stored in the dye management menu). This makes painting a lot easier as you only have to refill white dye. And if another type of dye is cheaper, well, just craft that one and use remove paint to turn it into white one! And the best thing is: This isn't even cheating. Dyes can be crafted into each other in Minetest anyway.

New: Added paint roller from Krocks mod. Place the dye you want to apply to the right of the paintroller in your inventory, wield the paint roller and left-click on the target block. Left-click the block repeatedly in order to cycle through the possible painting styles. If you want to remove the paint again, keep the slot to the right of your paintroller empty.

Image
The spray booth/colormachine allows you to handle mods that use dyes - and espeically unifieddyes - much more easily. It can only be used/handled by its owner.

Supported nodes (Blocktype menu):
Image
Image
Not all colors are supported by all mods. This menu provides an overview over all those blocks that can be painted. Only blocks from mods that are installed are shown. If you have many of the supported mods installed, the block menu may have a second page. If you have few mods installed, fewer blocks will be offered.
The "n/a" stands for "not available in this color".

Sample color selector for colored bricks (Color selection menu):
Image
Click on one of the colored textures to select the color.

Dye management menu:
Image
Dyes can be added and removed manually through the inventory slots or by inserting a dye soure (usually a flower or coal or stone) into the "refill" slot on top. You can also mix colors (i.e. orange) by clicking on the "mix" button. In that case, one red and yellow are taken, and two orange are inserted into the storage for orange. You do not need to take them out and mix them in your inventory/craft grid. Once you have selected a color, the dye management menu will show you which dye sources it needs to mix it.
Note: White can be gained from stone instead of white dandelions.

Main menu, where most of the action takes place:
Image
A color has been set and unpainted brick blocks have been inserted into the input slot. In order to get the painted bricks, just take them out of one of the output slots. You can choose between two diffrent textures here (normal colored bricks and multicolored ones; both come from unifiedbricks). The choices offered depend on the block you want to paint.
In this case. only 16 blocks are offered because the available dyes are insufficient for more blocks. Go to the dye management menu, search for the "1x", "2x" etc. above the colors (those indicate which pigments will be needed in which relative quantity), and insert dye sources or mix them. Pigments shown in the dye management menu are not mixed automaticly! Only those light/normal/medium/dark/low saturation combinations are done automaticly.
Note: Dyes/pigments are mixed in order to achieve the desired color. If e.g. red, white and black are mixed, that costs you one of each pigment and yields three pigments of the desired color. One pigment may be strong enough to paint more than one block. But: As soon as you take blocks out of the output slots, the costs are calculated. Thus, it may cost you three pigments for one block if you take only one - whereas you could in many cases get more painted if you took out more blocks at the same time. It is, after all, a machine and not a paintbrush.

Image
The blox mod offeres a wide variety of colorful nodes to choose from. Without that mod installed, you may only get the message that stone is not supported.
Image
If you insert an already painted block into the input slot, its color is shown, and you can choose between setting the machine to this color (useful if you finally found the shade you want to build with) or removing the paint. If you remove paint, no pigments are returned. You only get the unpainted version of the block back.

Image
Dye sources can also be inserted and converted to pigments here. If you want white dye from stone, you have to use the dye management menu to convert the stone to dye.

If you do *not* have unifieddyes installed, many of the mods the colormachine supports will not work either, and thus your choices of blocks and dyes will be limited. The receipes for mixing colors follow the standard from unifieddyes and remain the same even if you don't have that installed.

If you do not have flowers installed, alternate dye sources are available:
Image

New: The paint roller from Krocks paint roller mod is very practical but supports only few blocks. As the colormachine already has a lot of code regarding figuring out which block it is and which paint was applied, letting the paint roller access the colormachine seems logical.
Texture, crafting and idea are taken from Krocks mod. It works like this: Place a dye in your inventory to the right of the paint roller. Wield the paint roller. Click on a block to paint it. If the slot is empty, the paint will be removed from the block and placed back into your inventory. If there are multiple possibilities of how the block may be painted using one color (i.e. diffrent patterns using blox), just use the paint roller multiple times on the same block. It will cycle through the alternatives.

The colormachine also got additional storage space for dyes. It can be accessed from the main menu page and works like a chest (which will only take dyes as input). In order to get that additional storage capacity, did your old colormachines and place them anew. The additional storage for now only acts as storage and is not used by the machine.

Download: https://github.com/Sokomine/colormachin ... master.zip
Browse code: https://github.com/Sokomine/colormachine
Version: 0.6
Licence: GPLv3
Depends on: dyes (from default)
Recommends: flowers (from default), unifieddyes
Supports: Changelog:
v 0.7: More than two block menu pages are supported. Added support for myroofs, mydeck, mycorners, mymulch, clothing, lavalamp (and other items from homedecor); Only white dye is consumed now.
v 0.6: added paint roller
v 0.5: Added second block menu page. Updated support for several mods (homedecor, sea, blox) and added support for new mods (clstone, colorcubes, colouredstonebricks)
13.02.14 Added support for kerova-mod (colored chests and locked chests) and for hardenedclay
01.01.14 Added support for plasticbox mod

Crafting:
Image
Place three steel ingots at the bottom row. Place two glass above in the middle row. On each side, put a gold ingot on top (they've got to be useful for something!) and a mese block below.

Crafting of the paint roller:
Image

The texture is a re-colored texture from the non cubics block mod from yves_de_beck and recolored by VanessaE. Hope this goes ok with the creator of the texture.
Last edited by Sokomine on Fri Apr 22, 2016 14:19, edited 11 times in total.
A list of my mods can be found here.

User avatar
Dan Duncombe
Member
Posts: 904
Joined: Thu May 09, 2013 21:11
Location: In the unknown depths of Earth

by Dan Duncombe » Post

Holy *** amazing mod! Long post too...
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

Very nice work here, Sokomine. You have made a very useful mod that I can see being used on servers.

User avatar
Rancon
Member
Posts: 240
Joined: Tue Jan 01, 2013 14:59
Location: Gladstone, Missouri

by Rancon » Post

Yep. I'm using this on my server (if it works.. my server for some reason rejected a ton of mods :()
Any tips on blender, gimp, or codea?

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Great!

I saw it took a lot of coding to make the mods work for the colormachine mod. Are you planning to add more mods?

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

Topywo wrote: I saw it took a lot of coding to make the mods work for the colormachine mod. Are you planning to add more mods?
I think I covered all that do offer diffrent colored blocks. If I forget one, please name it. Adding new mods depends on how the mod is coded. If it sticks to the naming convention unifieddyes uses (both for texture names and nodenames), or alternatively uses names that are equivalent to the one wool/normal dyes uses, it can be as easy as adding a single line. stained_glass was problematic because it has its own naming scheme. Other mods name colors differently and thus need extra code as well.
A list of my mods can be found here.

User avatar
webdesigner97
Member
Posts: 1328
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

by webdesigner97 » Post

Great mod! And the texture of your spraybooth is awesome!

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

The texture was done by VanessaE and is based on the non-cubic block mod. Perhaps you ought to write some praise there as well :-) Here's the thread.
A list of my mods can be found here.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

In the spray booth I've an unknown item instead of lightgrey dye

Image

I used the previous latest minetest and the latest unifieddyes and colormachine mods. I saw in post 1 that you do have the light_grey dye. I've tried to look into the Github's of those mods to see what changes were made recently, but couldn't see recent changes.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

Added support for the plasticbox mod.

Topywo: If your problem with that grey dye persists, please tell me again.
A list of my mods can be found here.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Sokomine wrote:
Topywo: If your problem with that grey dye persists, please tell me again.
Unfortunately it does. Without unified dyes it's N/A. With unified dyes it's an unknown item.

Something new: The 'manage stored dyes' tab doesn't work in the main menu. It does work under the 'Show supported blocks' menu.

I used:
- minetest-767b2e7 (the version before the latest commit)
- booth/colormachine from Github, downloaded around an hour ago
- unified dyes from 30 april 2013 and the one from github (17 days old)
- Sea-modpack

I tested with and without sea, with and without unified dyes and with and without creative.

Edit: and creating new games for the different choices
Last edited by Topywo on Wed Jan 01, 2014 21:12, edited 1 time in total.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

I've checked the name of the light grey dye and found out that it's just aliassed and has a diffrent name. Please download the newest verison of colormachine from github. It ought to display the correct dye image now.
A list of my mods can be found here.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Checked, it now gives the correct display. No more display of an unknown item.


-- The 'manage stored dyes' tab still doesn't work in the main menu, but still does work under the 'Show supported blocks' menu.

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

Sokomine, would you kindly support oOChainLynxOo's hardened_clay mod? The link to it is below:
viewtopic.php?pid=124928#p124928

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

Added support for the colored chests and locked chests from the kerova mod.

Also added support for hardenedclay - to a degree. That mod needs to be updated a bit first in order to really work convincingly with the colormachine.
A list of my mods can be found here.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Sokomine wrote: So please rename your colors to the schem hardenedclay_COLOR.png
Does it accept a name like this: seablocks_yellowlightglass_yellow.png
(I mean with 2 or more underscores?)
Sokomine wrote: And make sure the color names match those of the wool color names.
So it can't handle aqua, lime, redviolet and skyblue or can it (looking at the colored bricks/screenshots)?

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

Topywo wrote: Does it accept a name like this: seablocks_yellowlightglass_yellow.png
(I mean with 2 or more underscores?)
From that single name, it's difficult to see which pattern the name will actually follow. Is it seablocks_COLORlightglass_yellow.png, is it seablocks_yellowlightglass_COLOR.png, or is it seablocks_COLOR1lightglass_COLOR2.png? Please be more specific.

In general, something_with_underscores_that_ends_with_a_COLORNAME.png is perfectly ok.
Topywo wrote: So it can't handle aqua, lime, redviolet and skyblue or can it (looking at the colored bricks/screenshots)?
It can - if you supply them all. You do have the coice between the wool color names and the unifieddyes color names. Mixtures of both are not supported.
A list of my mods can be found here.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

I put the "_yellow" extra after "seablocks_yellowlightglass" because I assumed it has to end with the colorname and didn't want to change the 'original' name too much. I don't mind renaming it, but "something_with_underscores_that_ends_with_a_COLORNAME.png" looks like supporting seablocks_yellowlightglass_yellow.png

So no mix, I'll need to think about that one (aqua, lime, redviolet and skyblue are from unified dyes and cyan/magenta from dyes (wool).

But it also raises for me the question: I see in your screenshot all those 6 colors for the colored bricks, but can't find standard magenta and cyan in the textures of unified dyes?

Thanks for the info!

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

In unified dyes, colors follow their own naming schem. You don't have to support each shade (like medium saturation, low saturation, dark etc.) as long as all basic colors from a shade are supported.
A list of my mods can be found here.

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

by jp » Post

I have tested this mod and I found the interface a bit too complex. It's easy to be lost on it...
Last edited by jp on Fri Feb 14, 2014 16:40, edited 1 time in total.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

by Sokomine » Post

jp wrote: I have tested this mod and I found the interface a bit too complex. It's easy to be lost on it...
The interface has four diffrent pages:
1. The main page where you insert the blocks you want to color and can take them out.
2. The block selection menu where you get an overview of which blocks are supported.
3. The dye management section where the dyes are stored and their sources are shown.
4. The actual color selection.

Room is a bit tight in the menu. Hope you can find your way around. Sorry that it's a bit confusing.
A list of my mods can be found here.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Topywo wrote: -- The 'manage stored dyes' tab still doesn't work in the main menu, but still does work under the 'Show supported blocks' menu.
'Solved'. Using fullscreen instead of the default windowed screen let me push the button. (Also, moving the 'insert material to paint' text line to a more left position (1 instead of 3) solves it).

I encountered 3 other problems:

1. coloredwood and unifiedbricks return, after removing the paint, only the wood and the brickblock. So , removing the paint from fence results in a wood and removing the paint from a clayblock results in a brickblock.

2. lrfurn sofa and longsofa can't be painted (even when they are switcheded in the 'block =' part). Also a colored sofa/lonsofa returns a white chair.

3. coloredblocks can't be painted.

Box and wool seem to work.


If I understand the code more or less, you dis- and reassemble texture-, registered node (and description?) names to make them cycle through the colors? Since the naming of textures and nodes are more different than one would expect, would aliasing them in colormachine make them easier to handle?


One last thing. Using fractions for 'p' (the amount of nodes you get out of 1 dye) seems to work too :-)


I hope this feedback is useful.

rommiekerova
Member
Posts: 93
Joined: Thu Nov 21, 2013 10:59
In-game: Andromeda
Location: United Kingdom

by rommiekerova » Post

Thank you for adding support for my mod. Greatly appreciated since the next release removes the chests from the inventory.

On a side note I noticed that wool cannot be coloured using all the dyes. Some colours are therefore missing which is a shame.
My Mods: Kerova - viewtopic.php?id=8054
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] spray booth / colormachine (handling colored block

by Inocudom » Post

Will this mod ever be moved to the Mod Releases topic?

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] spray booth / colormachine (handling colored block

by Sokomine » Post

The mod has been updated recently. It has a second page for supported blocks now. Support for some mods was updated (homedecor, sea) and further mods are supported now. Please take a look at the first posting! Images have also been re-added.
A list of my mods can be found here.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 24 guests