Attachment broken in recent builds

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Attachment broken in recent builds

by stu » Mon May 12, 2014 19:50

entity -> player attachment appears to no longer work in current-dev. I noticed this while making some updates to my wield3d mod, the wield entity seems to vanish when attached to a player.

Sorry I cant give the exact commit that broke it but I suspect may have something to do with the TPV changes, It was last known to be working fine at d753d352f15ac3586a80b42dd4da6aca518c8ec8
 

User avatar
Pavel_S
Member
 
Posts: 131
Joined: Sat Apr 06, 2013 11:43

Re: Attachment broken in recent builds

by Pavel_S » Tue May 13, 2014 03:04

In my heli mod there was a trouble when player want to get in heli, and then teleported anyway, or heli dissapear.
I found that it was because of I use "set_attach(parent, "", position, rotation)" instead of "set_attach(parent, "Root", position, rotation)" (also work with any bone and frame).

Also armature looks rotated by engine or blender bug(but actually if it is rotated, player must look to another side ), mesh is OK.
Image
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

Re: Attachment broken in recent builds

by BlockMen » Tue May 13, 2014 14:14

I can hardly imagine that this is caused by third person view, since it only "overrides" the animation of players (related to this topic)
Since this commit https://github.com/minetest/minetest/co ... b039c620dd it just "overrides" the animation when player is not attached, but also there should be no influence on attachments.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Re: Attachment broken in recent builds

by stu » Tue May 13, 2014 17:36

BlockMen wrote:I can hardly imagine that this is caused by third person view, since it only "overrides" the animation of players (related to this topic)
Since this commit https://github.com/minetest/minetest/co ... b039c620dd it just "overrides" the animation when player is not attached, but also there should be no influence on attachments.

I have done some more testing and it turns out that the attachment is not broken after all, it just does not show up for some reason in third person view. Still works in multiplayer though, seems a bit inconsistent all the same.
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

Re: Attachment broken in recent builds

by BlockMen » Tue May 13, 2014 18:11

stu wrote:
BlockMen wrote:I can hardly imagine that this is caused by third person view, since it only "overrides" the animation of players (related to this topic)
Since this commit https://github.com/minetest/minetest/co ... b039c620dd it just "overrides" the animation when player is not attached, but also there should be no influence on attachments.

I have done some more testing and it turns out that the attachment is not broken after all, it just does not show up for some reason in third person view. Still works in multiplayer though, seems a bit inconsistent all the same.


Ah, right, since MT had no third person view all attachments of your player are hidden. Now that you mention it i remember sapier wants to fix it with pull #1269.

So well, you can call it "introduced by third person view" if you want, although it is just a missing feature for it ;)
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Re: Attachment broken in recent builds

by stu » Tue May 13, 2014 19:07

BlockMen wrote:Ah, right, since MT had no third person view all attachments of your player are hidden. Now that you mention it i remember sapier wants to fix it with pull #1269.

So well, you can call it "introduced by third person view" if you want, although it is just a missing feature for it ;)

No problem, I just hope it is fixed before the next release, thanks.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Re: Attachment broken in recent builds

by stu » Tue May 13, 2014 19:38

Pavel_S wrote:Also armature looks rotated by engine or blender bug(but actually if it is rotated, player must look to another side ), mesh is OK.

This is known about and will probably never be fixed because some mods rely on this 'feature' [citation needed] ;-)
Either rotate your model prior to export or set the attachment rotation to compensate.
 

User avatar
Pavel_S
Member
 
Posts: 131
Joined: Sat Apr 06, 2013 11:43

Re: Attachment broken in recent builds

by Pavel_S » Wed May 14, 2014 04:07

stu wrote:... set the attachment rotation to compensate.

I think it`s not fixed yet
viewtopic.php?p=133288#p133288
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 2 guests

cron