[Mod] 3d visible wielded items [0.4.0] [wield3d]
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
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)
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)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- stu
- Member
- Posts: 923
- Joined: Sat Feb 02, 2013 02:51
- GitHub: stujones11
- Location: United Kingdom
I have no idea why that can be, afaik minetest.env has not been removed yet although I should update this sometime soon.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)
My only guess is that it is in some way related to that damned entity dupe bug.
Sorry that I am unable to help.
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
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.
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.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- stu
- Member
- Posts: 923
- Joined: Sat Feb 02, 2013 02:51
- GitHub: stujones11
- Location: United Kingdom
I will make some updates to this mod and at least see if I can make it fail more gracefully. The other problem you mention is alomst certainly related to the entity bug, the mod itself is really quite simple. The magic (as it were) is all in the model.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.
In the meantime you could try using the current-git version of wieldview, though it doesn't look quite as good as wield3d, it does now have a 3d look and unlike the old version, supports any texture resolution.
Edit: Of course you would lose the split-limb effect character model using wieldview.
Last edited by stu on Wed Oct 02, 2013 21:01, edited 1 time in total.
- stu
- Member
- Posts: 923
- Joined: Sat Feb 02, 2013 02:51
- GitHub: stujones11
- Location: United Kingdom
Also when the item in your hand changes the entity changesVanessaE 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.
Coding;
1X coding
3X debugging
12X tweaking to be just right
1X coding
3X debugging
12X tweaking to be just right
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Ok, I've updated and re-installed it.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
Starting an extra game:Ikishida wrote:again,how can you see yourself?
viewtopic.php?pid=114636#p114636
or
Using this mod:
viewtopic.php?id=7283
- stu
- Member
- Posts: 923
- Joined: Sat Feb 02, 2013 02:51
- GitHub: stujones11
- Location: United Kingdom
Mod Updated, version 0.2.0
Pretty much a complete re-write that hopefully fixes the non-attachment issues that were reported by VanessaE.
Perhaps slightly less efficient code than before though it should now be much more robust.
Other changes include removing the wielded item bone from the model, wield entities now attach directly to the player armature.
This allows for custom bone positioning along with full 6d rotations.
VannesaE, If you are still interested, I have also updated the split-limb version of the model.
split_limb.zip
Pretty much a complete re-write that hopefully fixes the non-attachment issues that were reported by VanessaE.
Perhaps slightly less efficient code than before though it should now be much more robust.
Other changes include removing the wielded item bone from the model, wield entities now attach directly to the player armature.
This allows for custom bone positioning along with full 6d rotations.
VannesaE, If you are still interested, I have also updated the split-limb version of the model.
split_limb.zip
Last edited by stu on Wed Nov 06, 2013 21:40, edited 1 time in total.
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
This update (with the split limb zip you linked to) crashes the server as soon as a player joins.
Backtrace, thanks to an engine patch by ShadowNinja:
19:49:20: ERROR[main]: ServerError: LuaError: /usr/local/share/minetest/builtin/vector.lua:5: Invalid vector
19:49:20: ERROR[main]: stack traceback:
19:49:20: ERROR[main]: [C]: in function 'assert'
19:49:20: ERROR[main]: /usr/local/share/minetest/builtin/vector.lua:5: in function 'assert_vector'
19:49:20: ERROR[main]: /usr/local/share/minetest/builtin/vector.lua:20: in function 'equals'
19:49:20: ERROR[main]: ...essa/.minetest/games/vanessae_game/mods/wield3d/init.lua:67: in function <...essa/.minetest/games/vanessae_game/mods/wield3d/init.lua:47>
Backtrace, thanks to an engine patch by ShadowNinja:
19:49:20: ERROR[main]: ServerError: LuaError: /usr/local/share/minetest/builtin/vector.lua:5: Invalid vector
19:49:20: ERROR[main]: stack traceback:
19:49:20: ERROR[main]: [C]: in function 'assert'
19:49:20: ERROR[main]: /usr/local/share/minetest/builtin/vector.lua:5: in function 'assert_vector'
19:49:20: ERROR[main]: /usr/local/share/minetest/builtin/vector.lua:20: in function 'equals'
19:49:20: ERROR[main]: ...essa/.minetest/games/vanessae_game/mods/wield3d/init.lua:67: in function <...essa/.minetest/games/vanessae_game/mods/wield3d/init.lua:47>
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Meanwhile, you should put the split limb code on github also, or add it to your wield3d mod in such a way that the server admin can simply set a config option somewhere to select the right model.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- stu
- Member
- Posts: 923
- Joined: Sat Feb 02, 2013 02:51
- GitHub: stujones11
- Location: United Kingdom
That is very helpful, turned out I needed to update in order to reproduce that. The problem was my bad but would have gone un-noticed before the recent(ish) changes to builtin/vector.lua. Bug is now fixed.VanessaE wrote:This update (with the split limb zip you linked to) crashes the server as soon as a player joins.
Backtrace, thanks to an engine patch by ShadowNinja:
19:49:20: ERROR[main]: ServerError: LuaError: /usr/local/share/minetest/builtin/vector.lua:5: Invalid vector
19:49:20: ERROR[main]: stack traceback:
19:49:20: ERROR[main]: [C]: in function 'assert'
19:49:20: ERROR[main]: /usr/local/share/minetest/builtin/vector.lua:5: in function 'assert_vector'
19:49:20: ERROR[main]: /usr/local/share/minetest/builtin/vector.lua:20: in function 'equals'
19:49:20: ERROR[main]: ...essa/.minetest/games/vanessae_game/mods/wield3d/init.lua:67: in function <...essa/.minetest/games/vanessae_game/mods/wield3d/init.lua:47>
I don't like the idea of including unnecessary character.x models due to their filesize, additionally I have realized that the bone attachment and positioning also require modification to get the best out of the split-limb model.VanessaE wrote:Meanwhile, you should put the split limb code on github also, or add it to your wield3d mod in such a way that the server admin can simply set a config option somewhere to select the right model.
Instead I have created a split-limb branch on github with all the necessary changes made. I may regret this someday if I have to make further updates, it just seemed like the easiest way to go for now.
Thank you once again for all your support with this Vanessa.
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Glad I could help :-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
That attempt to position the items differently for the split model does not work quite right. Um, oops? :-)
http://digitalaudioconcepts.com/vanessa ... s/oops.png
http://digitalaudioconcepts.com/vanessa ... s/oops.png
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- stu
- Member
- Posts: 923
- Joined: Sat Feb 02, 2013 02:51
- GitHub: stujones11
- Location: United Kingdom
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Much better
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- Evergreen
- Member
- Posts: 2135
- Joined: Sun Jan 06, 2013 01:22
- GitHub: 4Evergreen4
- IRC: EvergreenTree
- In-game: Evergreen
- Location: A forest in the midwest
- Contact:
It's interesting to note that the player model with bending ankles and elbows is the default player model in Minetest Classic.
[BitChute: https://www.bitchute.com/channel/fCcBQxrYQjNX/] [Rumble: https://rumble.com/user/HPoorHMagentaHChildH]
- Johnyknowhow
- Member
- Posts: 358
- Joined: Fri Sep 21, 2012 15:17
- In-game: Minetestian
- Location: Washington, USA
- stu
- Member
- Posts: 923
- Joined: Sat Feb 02, 2013 02:51
- GitHub: stujones11
- Location: United Kingdom
There is a deliberate delay (default 2 seconds) between checks for wielded item updates. That, copuled with gerneral serverJohnyknowhow wrote:I see, it is very glitchy, when I was playing with my bro he had a mese pickaxe, then he held dirt, and the item NEVER changed
latency is (most likely) the cause. I admit that it may seem a bit stange if you are playiing side-by-side.
However, if the wielded item is never changing then there is clearly a problem somewhere.
Who is online
Users browsing this forum: No registered users and 34 guests