Page 35 of 36

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sat Dec 05, 2020 21:04
by Nathan.S
You need to depend on 3d_armor in your mods depends.txt or mod.conf

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sat Dec 05, 2020 21:10
by debiankaios
Thank you, next question, how i fix the new texture:
Image

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sat Dec 05, 2020 21:52
by Nathan.S
3d_armor expect textures to use a specific naming scheme if you don't explicitly define the textures.

you can define textures in the registration like this,

Code: Select all

armor:register_armor('armor:ros_chestplate', {
   description = 'Rose Thennium Chestplate',
   texture = 'armor_chestplate_thennium.png',
   preview = 'armor_chestplate_thennium_pre.png',
   inventory_image = 'armor_chestplate_thennium_inv.png',
   groups = {armor_torso=1, armor_block=30, armor_use=100, armor_water=.3, armor_fire=.5, armor_heal=.3, physics_gravity=-.1, armor_dmg_resist=2},
   armor_groups = {fleshy=1},
   damage_groups = {cracky=2, snappy=1, level=5},
})
texture is the file that is used on the player model.
preview is the image shown in the inventory tab.
inventory_image is the image shown in inventory.

If you don't want to define all the textures you just need to follow the naming scheme as used in 3d_armor.
3d_armor_boots_admin.png
3d_armor_boots_admin_preview.png
3d_armor_inv_boots_admin.png

So your textures would be something like
alien_material_alienboots.png
alien_material_alienboots_preview.png
alien_material_inv_alienboots.png

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sat Dec 05, 2020 22:11
by sirrobzeroone
debiankaios wrote:
Sat Dec 05, 2020 21:10
Thank you, next question, how i fix the new texture:
Image
NathanS got you covered but have a read of the api
https://github.com/minetest-mods/3d_arm ... /README.md

I just updated it to MD and would be very intrested if it's a bit more user friendly and udnerstandable, Doco can always use refinement :)

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sun Dec 06, 2020 07:08
by debiankaios
Thank you!

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sat Dec 19, 2020 05:07
by sirrobzeroone
I'm not sure how best to reach people who might be intrested in this. I've proposed an enhancement to 3d_armor that splits the use/wear across multiple pieces when worn instead of all pieces recieveing the same use/wear when damaged. To try and provide another advantage or benefit from wearing multiple armor pieces.

Example (Although these were also my test cases):
One
Wearing just Wooden Chestplate - Recieved full 2000 use/damage

Two
Wearing Wooden Chestplate and Wooden Boots - Each Recieved 1000 use/damage

https://github.com/minetest-mods/3d_armor/issues/34

Code is in the above issue/suggestion /\

Happy to take feedback but I am trying to keep the enhancement/suggestion simple and to as fewer number of lines of code as possible to minimise risk of breakage or regressions.

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sat Dec 19, 2020 07:05
by Adnunano
Does the authors of 3d armor plan to add armors's effects to swimming? For example, wood makes you float easier, and heavy armor makes you sink to the bottom. The sink effect can be changed based on how heavy the material is. Gold is the heaviest, so it can be the winner.

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sun Dec 27, 2020 03:22
by sirrobzeroone
Adnunano wrote:
Sat Dec 19, 2020 07:05
Does the authors of 3d armor plan to add armors's effects to swimming? For example, wood makes you float easier, and heavy armor makes you sink to the bottom. The sink effect can be changed based on how heavy the material is. Gold is the heaviest, so it can be the winner.
I can't answer this as I'm not the owner but I do know that the minetest-mods team will accept changes etc. The above would be tricky as you would need to check if the player is in water, what armor they are wearing and then apply I think a gravity modifier if they are in water depending on what armor they are wearing. The only way I can see to do it would be to use globalstep. 3d_armor dosent currently use globalstep so it would make the mod overall less friendly to servers. So it might be better if this functionality was bundled into it's own mod so it was optional for servers to run it or not. Anyways Im only a code tinkerer someone with way more skill might be able to see a better solution.

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sun Dec 27, 2020 08:31
by sirrobzeroone
While I have been poking around in the inner workings of 3d_armor I noticed that 3d_armor creates sets by deriving the material name from the registered item name eg "3d_armor:boots_wood".

Code: Select all

local item = stack:get_name() -- api line 244
local mat = string.match(item, "%:.+_(.+)$") -- api line 261
I'm not sure if this is a big issue or not? I dont remeber it being documented to make sure you include the material name at the end of the registered item name but an easy update.

I have been playing around with adding a new group for armor to indicate the material. Although I have to include the material in the group name as a flag to indicate its the armor material. At the moment I've been playing around with groups named armor_m_"materialname" eg armor_m_wood. The number is meaningless and its not possible to use the existing material groups otherwise for example you could use wood helmets to make wood sticks...

The more I've thought about this the more I'm not sure on the value if any this adds, it may simply be better to document the current behaviour well so it's clear how it works. It just seems more aligned to other minetest behaviour to use groups for materials although not sure on the benefit other than consistancy?

The main reason I was poking around in the above area was to allow the admin to set which armor items consistute a set when worn for the armor bonus, currently all items registered must be worn to make up a set which can cause issues so for example if you have none item specific items eg capes or decorations it becomes impossible for the player to wear a set.
The other thing I was looking at was the set armor bonus - currently this is hard coded to a multiplier of 1.1 again looking at adding it to settings so admin can increase/change or set to 1 (basically off).

Very happy to take thoughts

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Mon Dec 28, 2020 04:18
by sirrobzeroone
I've created a branch that simply documents the current behaviour and adds a set setting and set bonus setting. Also updates the Readme, although Im not happy with the wording inside the readme at the moment just reads confusing to me.

https://github.com/sirrobzeroone/3d_arm ... g/3d_armor

The above branch is based on the 3d_armor, master at this commit https://github.com/minetest-mods/3d_arm ... f89971d0e2 - basically the one from 9 hrs ago from this posts time.

I do have an older branch that includes the group material changes as well but that ones fairly stale and Im leaning away from doing the group/material changes anyways you can pick it up from the issue thread on git if your intrested:
https://github.com/minetest-mods/3d_armor/issues/35

Im still refining; for example I want to remove the logging of material error from the inside the armor.set_player_armor to somewhere were it will only report once not everytime someone puts on and takes off a piece of an armor with no material defined (ie inside the onreg armor)....and defined is very loose term basically just has "_something" at the end of the item reg name. I guess thats one disadvatnage of not using groups cant tell the difference between an "_material" at the end of the item reg name and an "_funkyword" at the end of the item reg name. But it's a pretty hefty change (ie downline impacts to any mod that registers armor is big) to allow error logging when the person configuring should be reading the readme.

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Thu Dec 31, 2020 00:03
by sirrobzeroone
I just finished testing the above branch (the lower impact upto date one) and created a pull request any concerns please do flag them:

https://github.com/minetest-mods/3d_armor/pull/41

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Mon Jan 04, 2021 22:21
by sirrobzeroone
Not sure if anyone has time but if you could check out the branch and make sure no big bugs that would be great.

The PR: https://github.com/minetest-mods/3d_armor/pull/41

The Branch link: https://github.com/sirrobzeroone/3d_arm ... us_setting

Place any concerns on the PR so SmallJoker knows not to merge :).

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Fri Jan 15, 2021 17:00
by Miniontoby
might there be able to be an facemask added to this mod????

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Wed Feb 03, 2021 07:23
by dawgdoc
Miniontoby wrote:
Fri Jan 15, 2021 17:00
might there be able to be an facemask added to this mod????
A person could redo the textures to add facemasks/visors.
Of course, a black set of armor would the make you look like Darth Vader.

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Wed Feb 03, 2021 11:16
by Miniontoby
Miniontoby wrote:
Fri Jan 15, 2021 17:00
might there be able to be an facemask added to this mod????
I have made an test version of an facemask mod, check it in action (you should get your friends) at one of my servers:
address (both): minetest.grape.ircnow.org, port (survival): 30001, port (creative): 30002

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Fri Feb 05, 2021 10:06
by ShadMOrdre
The Halloween mod added masks via 3d_armor, IIRC.

I would start there for some alternate ideas about armor. Also, there is the Fabulous mod, which gave me ideas for armor addons as well.

Shad

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Fri Feb 05, 2021 10:37
by ywwv
if you wear this you are spritually a snail. a snail person . think about it

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Mon Apr 26, 2021 10:46
by kittenwings_
What do you think about making the cactus armor deal some damage to who ever attacks a player wearing it? i mean it would hurt to punch a cactus, wouldn't it?

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Thu May 13, 2021 23:11
by TenPlus2
3d_armor/3d_armor_ui/init.lua

line 52: formspec = formspec.."label[5.0,"..(fy + 1.0)..";"..

label[5.0 should be label[6.0

How could no one notice this?! I would submit to the git but that's not my style I don't really have a git account so maybe someone else on here can do this.

I am actually kind of annoyed that someone could make a mistake like this and not notice.

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Fri May 14, 2021 10:46
by TenPlus1
it's good you found a bug, but please don't be rude about it.

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sat May 15, 2021 14:17
by Lone_Wolf
TenPlus2 wrote:
Thu May 13, 2021 23:11
3d_armor/3d_armor_ui/init.lua

line 52: formspec = formspec.."label[5.0,"..(fy + 1.0)..";"..

label[5.0 should be label[6.0

How could no one notice this?! I would submit to the git but that's not my style I don't really have a git account so maybe someone else on here can do this.

I am actually kind of annoyed that someone could make a mistake like this and not notice.
Are you using stu's abandoned version or the new community-maintained version?: https://github.com/minetest-mods/3d_armor/

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sun May 23, 2021 11:39
by TenPlus2
Lone_Wolf wrote:
Sat May 15, 2021 14:17
TenPlus2 wrote:
Thu May 13, 2021 23:11
3d_armor/3d_armor_ui/init.lua

line 52: formspec = formspec.."label[5.0,"..(fy + 1.0)..";"..

label[5.0 should be label[6.0

How could no one notice this?! I would submit to the git but that's not my style I don't really have a git account so maybe someone else on here can do this.

I am actually kind of annoyed that someone could make a mistake like this and not notice.
Are you using stu's abandoned version or the new community-maintained version?: https://github.com/minetest-mods/3d_armor/
https://github.com/minetest-mods/3d_arm ... it.lua#L52

You can see that 5.0 is specified not 6.0 in the community-maintained version.

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Sat Nov 06, 2021 17:39
by Nik09
How can I make my own Skin mod 3d Armor compatible?

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Mon Apr 25, 2022 18:55
by Jackknife
Why are there 6 slots for armor when there are only 5 items you can make that fit in there?

Re: [Modpack] 3D Armor [0.4.13] [minetest-3d_armor]

Posted: Tue Apr 26, 2022 05:22
by TenPlus1
That can be used for special items like necklaces or magical baubles :)