stu wrote:Tittle just about says it all. Extremely hacky but it kinda works of a fashion.
Still very much a work in progress, some items don't look so good, like shovels and buckets for example.
Note: Currently not compatible with minetest-3d_armor or any other mod that changes the default character model.
Minetest version: 0.4.5, 0.4.6, 0.4.7
Depends: default
Download: https://dl.dropboxusercontent.com/s/d0tw0tl0ebzlnra/wield3d.zip
License: WTFPL
VanessaE wrote:This actually works reasonably well on my server. The only issue I see so far is sometimes a player's hand doesn't show the item they're holding. Then again, that player said that sometimes signs (which use entities for visible text) show random player skins (!), so his client may be glitchy.
VanessaE wrote:Would you consider a variation of this mod that is combined with your "knees and elbows" player model?
prof-turbo wrote:AWESOME! SO COOL! + 12365498145231025645614635.2016 !
WOWOWOWOWOWOWO!)
prof-turbo wrote:Download it now!
stu wrote:prof-turbo wrote:Download it now!
I do appreciate your enthusiasm, however, this mod is somewhat useless unless you run a server.
VanessaE wrote:Another thing I've noticed is sometimes the item that should be in my hand is shown attached to a spot on the ground near where I'm standing. If I roll my mouse wheel to switch items, the item embedded into the ground changes to match. Its location on the ground seems to be where I spawned at least (e.g. at client sign-on). Probably related to the issue with the other player's wielded item not being visible.
VanessaE wrote:Can you put your code up on github? Makes it easier for the rest of us to grab updates. :-)
wield3d_rotation = {
["default:torch"]=315,
["default:sapling"]=315,
["flowers:dandelion_white"]=315,
["flowers:dandelion_yellow"]=315,
["flowers:geranium"]=315,
["flowers:rose"]=315,
["flowers:tulip"]=315,
["flowers:viola"]=315,
["default:shovel_wood"]=270,
["default:shovel_stone"]=270,
["default:shovel_steel"]=270,
["default:shovel_bronze"]=270,
["default:shovel_mese"]=270,
["default:shovel_diamond"]=270,
["bucket:bucket_empty"]=270,
["bucket:bucket_water"]=270,
["bucket:bucket_lava"]=270,
["screwdriver:screwdriver"]=270,
["screwdriver:screwdriver1"]=270,
["screwdriver:screwdriver2"]=270,
["screwdriver:screwdriver3"]=270,
["screwdriver:screwdriver4"]=270,
}
if minetest.get_modpath("wield3d") then
wield3d_rotation["my_cool_mod:my_awesome_tool"]=270
end
stu wrote: Alternatively modders could add rotational support for thier own items in code.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
if minetest.get_modpath("wield3d") then
wield3d_rotation["my_cool_mod:my_awesome_tool"]=270
end
PilzAdam wrote:stu wrote: Alternatively modders could add rotational support for thier own items in code.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
if minetest.get_modpath("wield3d") then
wield3d_rotation["my_cool_mod:my_awesome_tool"]=270
end
They have to put "wield3d?" in depends.txt too, so this mod is loaded first.
stu wrote:PilzAdam wrote:stu wrote: Alternatively modders could add rotational support for thier own items in code.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
if minetest.get_modpath("wield3d") then
wield3d_rotation["my_cool_mod:my_awesome_tool"]=270
end
They have to put "wield3d?" in depends.txt too, so this mod is loaded first.
That is true, although they could wrap it in a minetest.after if they wanted to avoid dependency.
PilzAdam wrote:stu wrote:PilzAdam wrote:They have to put "wield3d?" in depends.txt too, so this mod is loaded first.
That is true, although they could wrap it in a minetest.after if they wanted to avoid dependency.
With the "?" at the end its an optional dependency, wich means that its not a real dependency, the mod just gets loaded first.
VanessaE wrote:It seems to be working more reliably now.
Mito551 wrote:when will this be able for use with your 3darmor mod?
VanessaE wrote:Would you consider a variation of this mod that is combined with your "knees and elbows" player model?
VanessaE wrote:Got this error today:
15:30:56: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...test/.minetest/games/vanessae_game/mods/wield3d/init.lua:65: calling 'add_entity' on bad self (table expected, got nil)
VanessaE wrote:In the meantime, I've had to remove this mod from my servers to prevent the crash. :-(
Possibly related: I still occasionally see my or someone else's wield item not attached to their hand, but rather attached to where that player spawned. E.g. if I'm holding a pick when I sign on, sometimes I will see a copy of that pick "embedded" into the ground where I spawned at.
Users browsing this forum: No registered users and 40 guests