barbas72n wrote: ↑Thu Aug 13, 2020 11:02
but minetest 5.3 says:
I'm not sure if something has changed in 5.3 and minetest is now throwing an error but I can see why it is throwing an error - the image strings in the armor:register_armor() parts of instant_ores are cut off at the end example:
line 81 from init.lua
Code: Select all
texture = "3d_armor_dummy_image.png^(armor_chestplate.png^[colorize:"..color..")^3d_armor_dummy_image",
That last overlay is missing ".png". I tested by putting the .png back on the chestplate and now it is displayed on the armor stand. I haven't fully tested this but my guess is if you copy the below and paste over from:
line65 --local sanity=nil to
line110 in init.lua it should fix boots,helmets,leggings and chestplates.
Code: Select all
--local sanity = nil
armor:register_armor(":"..mod..":helmet_"..name, {
description = desc.." Helmet",
inventory_image = "armor_inv_helmet.png^[colorize:"..color,
texture = "3d_armor_dummy_image.png^(armor_helmet.png^[colorize:"..color..")^3d_armor_dummy_image.png",
-- I'm not going to try to explain how this texture hack works. Really, it shouldn't.
preview = "3d_armor_preview_dummy_image.png^(armor_helmet_preview.png^[colorize:"..color..")^3d_armor_preview_dummy_image.png",
groups = {armor_head=1, armor_heal=0, armor_use=uses,
physics_speed=-0.01*weight, physics_gravity=0.01*weight},
reciprocate_damage = hurt_back,
armor_groups = {fleshy=small_armor},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=level},
})
armor:register_armor(":"..mod..":chestplate_"..name, {
description = desc.." Chestplate",
inventory_image = "armor_inv_chestplate.png^[colorize:"..color,
texture = "3d_armor_dummy_image.png^(armor_chestplate.png^[colorize:"..color..")^3d_armor_dummy_image.png",
preview = "3d_armor_preview_dummy_image.png^(armor_chestplate_preview.png^[colorize:"..color..")^3d_armor_preview_dummy_image.png",
groups = {armor_torso=1, armor_heal=0, armor_use=uses,
physics_speed=-0.04*weight, physics_gravity=0.04*weight},
reciprocate_damage = hurt_back,
armor_groups = {fleshy=big_armor},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=level},
})
armor:register_armor(":"..mod..":leggings_"..name, {
description = desc.." Leggings",
inventory_image = "armor_inv_leggings.png^[colorize:"..color,
texture = "3d_armor_dummy_image.png^(armor_leggings.png^[colorize:"..color..")^3d_armor_dummy_image.png",
preview = "3d_armor_preview_dummy_image.png^(armor_leggings_preview.png^[colorize:"..color..")^3d_armor_preview_dummy_image.png",
groups = {armor_legs=1, armor_heal=0, armor_use=uses,
physics_speed=-0.03*weight, physics_gravity=0.03*weight},
reciprocate_damage = hurt_back,
armor_groups = {fleshy=big_armor},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=level},
})
armor:register_armor(":"..mod..":boots_"..name, {
description = desc.." Boots",
inventory_image = "armor_inv_boots.png^[colorize:"..color,
texture = "3d_armor_dummy_image.png^(armor_boots.png^[colorize:"..color..")^3d_armor_dummy_image.png",
preview = "3d_armor_preview_dummy_image.png^(armor_boots_preview.png^[colorize:"..color..")^3d_armor_preview_dummy_image.png",
groups = {armor_feet=1, armor_heal=0, armor_use=uses,
physics_speed=-0.01*weight, physics_gravity=0.01*weight},
reciprocate_damage = hurt_back,
armor_groups = {fleshy=small_armor},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=level},
})
Shields look to be okay.
I had a look as Im poking around 3d_armor at the moment and wondered if it might be a 3d_armor bug. BTW really like this mod :)
Edit: I dont like not testing stuff - fix worked okay I am on 5.3
