[Mod] Unified Dyes [20170620][unifieddyes]

Nordal
Member
 
Posts: 47
Joined: Mon Jul 30, 2018 15:46
Location: Germany

Re: [Mod] Unified Dyes [20170620][unifieddyes]

by Nordal » Sun Jul 07, 2019 12:09

I know what you mean. But there's definitely no secon place.
I've got only one unifieddyes' folder and made the
Code: Select all
print(dump(newrecipe))
addition at line 266 there directly.

I added a
Code: Select all
minetest.log("action"," ---- Unifieddyes is Loading! ---- ")
statement at the beginning of unifieddyes' init.lua.
It's printed into debug.txt. That means, unfieddyes must have been loaded, I think.
Code: Select all
-------------
  Separator
-------------

2019-07-07 13:43:28: WARNING[Main]: Mod name conflict detected: "farming"
2019-07-07 13:43:28: WARNING[Main]: Will not load: /home/roland/minetest-5.0.1/bin/../games/minetest_game/mods/farming
2019-07-07 13:43:28: WARNING[Main]: Overridden by: /home/roland/minetest-5.0.1/bin/../mods/farming
2019-07-07 13:43:28: ACTION[Main]: hb.register_hudbar: health
2019-07-07 13:43:28: ACTION[Main]: hb.register_hudbar: breath
2019-07-07 13:43:28: ACTION[Main]: New font registered in font_api: metro.
2019-07-07 13:43:28: ACTION[Main]: [Mod] Soft Leaves [v0.1.0] loaded.
2019-07-07 13:43:28: ACTION[Main]: New font registered in font_api: tinycurs.
2019-07-07 13:43:29: ACTION[Main]: hb.register_hudbar: armor
2019-07-07 13:43:29: WARNING[Main]: 3d_armor_ip: Mod loaded but unused.
2019-07-07 13:43:29: ACTION[Main]: hb.register_hudbar: thirst
2019-07-07 13:43:29: ACTION[Main]:  ---- Unifieddyes is Loading! ----
2019-07-07 13:43:29: ACTION[Main]:  ---- Dark Age Version 1.3 is Loading! ----
2019-07-07 13:43:29: ERROR[Main]: ModError: Failed to load and run script from /home/roland/minetest-5.0.1/bin/../mods/darkage/init.lua:
2019-07-07 13:43:29: ERROR[Main]: Invalid crafting recipe (output="darkage:milk_glass 1 0 "\u0001palette_index\u00020\u0003"")
2019-07-07 13:43:29: ERROR[Main]: stack traceback:
2019-07-07 13:43:29: ERROR[Main]:    [C]: in function 'register_craft'
2019-07-07 13:43:29: ERROR[Main]:    ...e/roland/minetest-5.0.1/bin/../mods/unifieddyes/init.lua:287: in function 'register_c'
2019-07-07 13:43:29: ERROR[Main]:    ...e/roland/minetest-5.0.1/bin/../mods/unifieddyes/init.lua:317: in function 'register_color_craft'
2019-07-07 13:43:29: ERROR[Main]:    ...d/minetest-5.0.1/bin/../mods/darkage/glass_rewritten.lua:174: in main chunk
2019-07-07 13:43:29: ERROR[Main]:    [C]: in function 'dofile'
2019-07-07 13:43:29: ERROR[Main]:    /home/roland/minetest-5.0.1/bin/../mods/darkage/init.lua:12: in main chunk
2019-07-07 13:43:29: ERROR[Main]: Check debug.txt for details.
2019-07-07 13:43:29: ACTION[Main]: Server: Shutting down
2019-07-07 13:46:48: ERROR[Main]: Please choose a name!


I tried a fresh installed MT 5.0 with unifieddesy, darkage, farming (of TenPlus1) and unified_inventory, but the result is the same. :-(

EDIT: After another try I found something new in my terminal's output, right after "Loading unifieddyes":
Code: Select all
roland@r-pc:~/minetest-5.0.1/bin$ ./minetest
Loaded texture: /home/roland/minetest-5.0.1/textures/base/pack/menu_header.png
Loaded texture: /home/roland/minetest-5.0.1/games/minetest_game/screenshot.png
Loaded texture: /home/roland/minetest-5.0.1/textures/base/pack/logo.png
Loaded texture: /home/roland/minetest-5.0.1/games/minetest_game/menu/header.png
Loaded texture: /home/roland/minetest-5.0.1/games/minetest_game/menu/icon.png
Loaded texture: /home/roland/minetest-5.0.1/games/minimal/menu/icon.png
Loaded texture: /home/roland/minetest-5.0.1/textures/base/pack/menu_header.png
Loaded texture: /home/roland/minetest-5.0.1/games/minetest_game/menu/header.png
2019-07-07 13:43:28: WARNING[Main]: Mod name conflict detected: "farming"
2019-07-07 13:43:28: WARNING[Main]: Will not load: /home/roland/minetest-5.0.1/bin/../games/minetest_game/mods/farming
2019-07-07 13:43:28: WARNING[Main]: Overridden by: /home/roland/minetest-5.0.1/bin/../mods/farming
2019-07-07 13:43:28: ACTION[Main]: hb.register_hudbar: health
2019-07-07 13:43:28: ACTION[Main]: hb.register_hudbar: breath
2019-07-07 13:43:28: ACTION[Main]: New font registered in font_api: metro.
2019-07-07 13:43:28: ACTION[Main]: [Mod] Soft Leaves [v0.1.0] loaded.
Error: Could not open bell data savefile (ignore this message on first start)
2019-07-07 13:43:28: ACTION[Main]: New font registered in font_api: tinycurs.
[Ropes] Loaded!
[MOD] bonemeal loaded
[MOD] Wine geladen
[3d_armor] Fire Nodes disabled
2019-07-07 13:43:29: ACTION[Main]: hb.register_hudbar: armor
2019-07-07 13:43:29: WARNING[Main]: 3d_armor_ip: Mod loaded but unused.
2019-07-07 13:43:29: ACTION[Main]: hb.register_hudbar: thirst
2019-07-07 13:43:29: ACTION[Main]:  ---- Unifieddyes is Loading! ----
[UnifiedDyes] geladen!
2019-07-07 13:43:29: ACTION[Main]:  ---- Dark Age Version 1.3 is Loading! ----
{
   "",
   "dye:faint_red"
}
2019-07-07 13:43:29: ERROR[Main]: ModError: Failed to load and run script from /home/roland/minetest-5.0.1/bin/../mods/darkage/init.lua:
2019-07-07 13:43:29: ERROR[Main]: Invalid crafting recipe (output="darkage:milk_glass 1 0 "\u0001palette_index\u00020\u0003"")
2019-07-07 13:43:29: ERROR[Main]: stack traceback:
2019-07-07 13:43:29: ERROR[Main]:    [C]: in function 'register_craft'
2019-07-07 13:43:29: ERROR[Main]:    ...e/roland/minetest-5.0.1/bin/../mods/unifieddyes/init.lua:287: in function 'register_c'
2019-07-07 13:43:29: ERROR[Main]:    ...e/roland/minetest-5.0.1/bin/../mods/unifieddyes/init.lua:317: in function 'register_color_craft'
2019-07-07 13:43:29: ERROR[Main]:    ...d/minetest-5.0.1/bin/../mods/darkage/glass_rewritten.lua:174: in main chunk
2019-07-07 13:43:29: ERROR[Main]:    [C]: in function 'dofile'
2019-07-07 13:43:29: ERROR[Main]:    /home/roland/minetest-5.0.1/bin/../mods/darkage/init.lua:12: in main chunk
2019-07-07 13:43:29: ERROR[Main]: Check debug.txt for details.
2019-07-07 13:43:29: ACTION[Main]: Server: Shutting down
Loaded texture: /home/roland/minetest-5.0.1/games/minetest_game/menu/header.png
Loaded texture: /home/roland/minetest-5.0.1/games/minetest_game/menu/icon.png
Loaded texture: /home/roland/minetest-5.0.1/games/minimal/menu/icon.png
Quit message received.
2019-07-07 13:46:48: ERROR[Main]: Please choose a name!
roland@r-pc:~/minetest-5.0.1/bin$

Maybe that helps?
 

User avatar
VanessaE
Moderator
 
Posts: 4429
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Unified Dyes [20170620][unifieddyes]

by VanessaE » Sun Jul 07, 2019 19:54

I think I know what's wrong. Took a while for it to percolate. :-P

I see three errors:

1. As with the standard minetest.register_craft() call, if you don't set the recipe type in the color craft helper, it defaults to a regular shaped recipe, i.e. where ingredients have to be in specific positions in the crafting grid to make the craft produce an output. But the form you gave of the recipe ingredients is clearly shapeless. You need to put type = "shapeless", alongside the other items (outside the recipe, perhaps just below the palette entry).

2. NEUTRAL_NODE (in all caps) is just a placeholder, as you might use in a word processor database report document. It is set to the contents of the neutral_node (all lowercase) item above it at runtime, but you set that to an empty string, so you're getting empty strings in a shapeless recipe, which I don't think is valid. The purpose of the placeholder to make the placement of the colorized item easily-visible among the recipe ingredients, should you have a lot of them, and reduces the possibility of typos if you should need to use more than one of that item, but that doesn't seem to be your intent. Since you probably only wanted one of the glass item in the recipe, just replace NEUTRAL_NODE (all caps) with the item name.

3. You don't need the on_construct in your node definition. Got rid of that a long time ago. That the API mentioned it is an error on my part (now fixed). Just delete that item from the node definition altogether.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
 

Nordal
Member
 
Posts: 47
Joined: Mon Jul 30, 2018 15:46
Location: Germany

Re: [Mod] Unified Dyes [20170620][unifieddyes]

by Nordal » Mon Jul 08, 2019 08:37

Percolate is a nice new word for my vocabulary :-)
I fixed the errors you identified. And we made a great step forward. It runs!
Big Thank you for this!

But:
I gave me "/giveme" priv and positioned a milk_glass_round item on the floor. I can open the airbrushes' form, but I cannot choose a color. :-(
No matter what kind of darkage glass I try to colorize.

The "mix" area of unified_dyes offers 128 possible colors in shape of dyes. But I can't do anything with it except moving the milk_glass item to the recipe area, uncolored.

It's uncomfortable to read for you, I'm sorry, but I put here the whole code of glass_rewritten.lua. May you see a mistake that does not produce an error but that may be responsible for the current problem. I'm not sure, if the replacement of NEUTRAL_NODE is correct. I may should write "darkage:milk_glass" instead of "darkage:stained_milk_glass?
Code: Select all
--[[
   Medival glasses.
   The glasses can be colorized using dye.
   Colorization requires unifieddyes installed.

   Special thanks to Semmett9 for the glass textures.
]]

--[[ Rhombus Glass ]]

minetest.register_node("darkage:glass", {
   description = "Clean Medieval Glass",
   drawtype = "glasslike",
   tiles = {"darkage_glass.png"},
   use_texture_alpha=false,
   paramtype = "light",
   sunlight_propagates = true,
   groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
   sounds = default.node_sound_glass_defaults(),
})

minetest.register_craft({
   output = "darkage:glass 8",
   recipe = {
      {"default:glass", "default:steel_ingot", "default:glass"},
      {"default:steel_ingot", "default:glass", "default:steel_ingot"},
      {"default:glass", "default:steel_ingot", "default:glass"},
   }
})

--[[ Round Glass By Semmett9 aka Infinatum ]]

minetest.register_node("darkage:glass_round", {
   description = "Round Glass",
   drawtype = "glasslike",
   tiles = { "darkage_glass_round.png" },
   paramtype = "light",
   use_texture_alpha = true,
   sunlight_propagates = true,
   sounds = default.node_sound_glass_defaults(),
   groups = {cracky=3,oddly_breakable_by_hand=3},
})

minetest.register_craft({
   output = "darkage:glass_round 8",
   recipe = {
      {"default:steel_ingot", "default:glass", "default:steel_ingot"},
      {"default:glass", "default:glass", "default:glass"},
      {"default:steel_ingot", "default:glass", "default:steel_ingot"},
   }
})

--[[ Square glass By Semmett9 aka Infinatum ]]

minetest.register_node("darkage:glass_square", {
   description = "Square Glass",
   drawtype = "glasslike",
   tiles = { "darkage_glass_square.png" },
   paramtype = "light",
   use_texture_alpha = true,
   sunlight_propagates = true,
   sounds = default.node_sound_glass_defaults(),
   groups = {cracky=3,oddly_breakable_by_hand=3},
})

minetest.register_craft({
   output = "darkage:glass_square 8",
   recipe = {
      {"default:glass",      "default:steel_ingot", "default:glass"},
      {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
      {"default:glass",      "default:steel_ingot", "default:glass"},
   }
})

--[[
      Glowing Glass Variants

      ]]

--[[ Rhombus Glow Glass ]]

minetest.register_node("darkage:glow_glass", {
   description = "Medieval Glow Glass",
   drawtype = "glasslike",
   tiles = {"darkage_glass.png"},
   use_texture_alpha=true,
   paramtype = "light",
   sunlight_propagates = true,
   light_source = default.LIGHT_MAX-1,
   groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
   sounds = default.node_sound_glass_defaults(),
})

-- Craft
minetest.register_craft({
   output = "darkage:glass 1",
    type = "shapeless",
   recipe = {"darkage:glow_glass"},
})

-- Recycling
minetest.register_craft({
   output = "darkage:glow_glass 1",
   recipe = {
      {"darkage:glass"},
      {"default:torch"},
   }
})
--[[ TODO
-- Round Glow Glass

minetest.register_node("darkage:glow_glass_round", {
   description = "Medieval Round Glow Glass",
   drawtype = "glasslike",
   tiles = {"darkage_glass_round.png"},
   use_texture_alpha=true,
   paramtype = "light",
   sunlight_propagates = true,
   light_source = default.LIGHT_MAX-1,
   groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1},
   sounds = default.node_sound_glass_defaults(),
})

-- Craft
minetest.register_craft({
   output = "darkage:glass_round 1",  --TODO
   recipe = {
      {"darkage:glow_glass"},
   }
})

-- Recycling
minetest.register_craft({
   output = "darkage:glow_glass 1",
   recipe = {
      {"darkage:glass"},
      {"default:torch"},
   }
})
TODO  --]]



--[[
      Colorizable Milk Glass Variants, depending on unifieddyes mod

      ]]

if minetest.get_modpath("unifieddyes") then

   --[[ Rhombus Milk Glass ]]

   minetest.register_node("darkage:milk_glass", {
      description = "Milky Medieval Glass (Good for colorization)",
      drawtype = "glasslike",
      tiles = {"darkage_milk_glass.png"},
      use_texture_alpha=true,
      paramtype = "light",
      paramtype2 = "color",
      palette = "unifieddyes_palette_extended.png",
      sunlight_propagates = true,
      groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1, ud_param2_colorable = 1},
      sounds = default.node_sound_glass_defaults()
   })

   minetest.register_craft({
      output = "darkage:milk_glass",
      type = "shapeless",
      recipe = {"darkage:glass", "dye:white"}
   })

    unifieddyes.register_color_craft({
        output = "darkage:milk_glass",
        palette = "extended",
        type = "shapeless",
        neutral_node = "",
        recipe = {
                 "darkage:stained_milk_glass",
                 "MAIN_DYE"
        }
    })

    -- Recycling
   minetest.register_craft({
      output = "darkage:glass 1",
      recipe = {{"darkage:milk_glass"}}
   })

   --[[ Round Milk Glass ]]

   minetest.register_node("darkage:milk_glass_round", {
      description = "Milky Medieval Round Glass (Good for colorization)",
      drawtype = "glasslike",
      tiles = {"darkage_milk_glass_round.png"},
      use_texture_alpha=true,
      paramtype = "light",
      paramtype2 = "color",
      palette = "unifieddyes_palette_extended.png",
      sunlight_propagates = true,
      groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1, ud_param2_colorable = 1},
      sounds = default.node_sound_glass_defaults()
   })
   -- Craft
   minetest.register_craft({
      output = "darkage:milk_glass_round",
      type = "shapeless",
      recipe = {"darkage:glass_round", "dye:white"},
   })

    unifieddyes.register_color_craft({
        output = "darkage:milk_glass_round",
        palette = "extended",
        type = "shapeless",
        neutral_node = "",
        recipe = {
                 "darkage:milk_glass_round",
                 "MAIN_DYE"
        }
    })

   -- Recycling
   minetest.register_craft({
      output = "darkage:glass_round 1",
      recipe = {{"darkage:milk_glass_round"}}
   })

   --[[ Square Milk Glass ]]

   minetest.register_node("darkage:milk_glass_square", {
      description = "Milky Medieval Square Glass (Good for colorization)",
      drawtype = "glasslike",
      tiles = {"darkage_milk_glass_square.png"},
      use_texture_alpha=true,
      paramtype = "light",
      paramtype2 = "color",
      palette = "unifieddyes_palette_extended.png",
      sunlight_propagates = true,
      groups = {cracky = 3, oddly_breakable_by_hand = 3, not_cuttable=1, ud_param2_colorable = 1},
        on_construct = unifieddyes.on_construct,
      sounds = default.node_sound_glass_defaults()
   })

   -- Craft
   minetest.register_craft({
      output = "darkage:milk_glass_square",
      type = "shapeless",
      recipe = {"darkage:glass_square", "dye:white"},
   })

   unifieddyes.register_color_craft({
   output = "darkage:milk_glass_square",
   palette = "extended",
   type = "shapeless",
   neutral_node = "",
   recipe = {
          "darkage:stained_milk_glass_square",
          "MAIN_DYE"
      }
   })

   -- Recycling
   minetest.register_craft({
      output = "darkage:glass_square",
      recipe = {{"darkage:milk_glass_square"}}
   })

end --unifieddyes condition
 

User avatar
addi
Member
 
Posts: 658
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: [Mod] Unified Dyes [20170620][unifieddyes]

by addi » Mon Jul 08, 2019 15:15

ERROR[Main]: generateImage(): Could not load image "unifieddyes_palette.png" while building texture; Creating a dummy image
Its missing in the texture folder. https://gitlab.com/VanessaE/unifieddyes ... r/textures
 

Nordal
Member
 
Posts: 47
Joined: Mon Jul 30, 2018 15:46
Location: Germany

Re: [Mod] Unified Dyes [20170620][unifieddyes]

by Nordal » Mon Jul 08, 2019 15:54

Hello addi, as you see I'm trying to repair and update glass.lua of your darkage mod with help of Vanessa. I didn't associate you with adrido. It's a bit confusing that there exist two darkage mods. I realized that you hold the newest fork ahead. My purpose is to make the medieval glass panes shine again in every color.
ERROR[Main]: generateImage(): Could not load image "unifieddyes_palette.png" while building texture; Creating a dummy image
Its missing in the texture folder.

In my new version of glass.lua I replaced this palette by the extended one to get more colors. I now just get a warning which I supose to be harmless
Code: Select all
2019-07-08 17:48:07: WARNING[Main]: TextureSource::getPalette(): the specified palette image "unifieddyes_palette_extended.png" is larger than 256 pixels, using the first 256.

There must be another reason for the current problem. See my above post.
 

User avatar
VanessaE
Moderator
 
Posts: 4429
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

Re: [Mod] Unified Dyes [20170620][unifieddyes]

by VanessaE » Mon Jul 08, 2019 19:40

That "larger than 256 pixels" thing is an unrelated warning and is completely harmless. It's just a byproduct of the way I formatted the image. As for the rest, I don't know what's wrong.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
 

Nordal
Member
 
Posts: 47
Joined: Mon Jul 30, 2018 15:46
Location: Germany

Re: [Mod] Unified Dyes [20170620][unifieddyes]

by Nordal » Tue Jul 09, 2019 04:28

Wow, it works!

You must have the dye you want the glass to be stained with in your inventory.
Then you can use the airbrush, choose the color and paint the glass.

Thank you for your help, Vanessa!
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 4 guests