Fix demo player bug

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
Post Reply
milk
Posts: 207
Joined: Mon May 05, 2014 5:25 pm
Player profile: http://ddnet.org/players/milk/

Fix demo player bug

Post by milk »

Hi. I started to make videos from demos and I noticed an ugly bug in demo player. It draws movement of weapons in the hands incorrectly when the gun passes through zero angle.


What I actually do:
bug1.png
bug1.png (51.04 KiB) Viewed 3741 times
This is how demo player draw it:
bug2.png
bug2.png (55.91 KiB) Viewed 3741 times
Zero angle:
bug3.png
bug3.png (48.39 KiB) Viewed 3741 times
For greater clarity, you can also download this demo and play it with different speed to see this bug in action:
demo player bug.demo
(42.2 KiB) Downloaded 118 times
You may have noticed this effect on some videos. That looks ugly sometimes -.-
For example: https://youtu.be/kT8k66dNG8Y?t=78 (01:18 - 01:22)

I spent some hours with debugger and I think I fixed it. (need to check https://github.com/ddnet/ddnet/pull/369)

By the way is anyone else noticed this bug? Because it seems it's there since a long time.
User avatar
kamillentee
Posts: 687
Joined: Sat Jul 26, 2014 11:47 pm
Player profile: http://ddnet.org/players/kamillentee/
Clan: |*KoG*|

Re: Fix demo player bug

Post by kamillentee »

I always wondered why I often took the long way to aim in demo player.
User avatar
deen
TECHNICAL Team
Posts: 3579
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: Fix demo player bug

Post by deen »

It's not just demo player, but also when you watch other players I think. I noticed it for a long time.
milk
Posts: 207
Joined: Mon May 05, 2014 5:25 pm
Player profile: http://ddnet.org/players/milk/

Re: Fix demo player bug

Post by milk »

deen wrote:It's not just demo player, but also when you watch other players I think.
I'll check that too. Thanks, deen.
HMH
Posts: 145
Joined: Mon May 05, 2014 8:41 pm
Player profile: http://ddnet.org/players/HMH/

Re: Fix demo player bug

Post by HMH »

It is an old known problem but nobody fixed it till now: https://github.com/teeworlds/teeworlds/issues/1260
milk
Posts: 207
Joined: Mon May 05, 2014 5:25 pm
Player profile: http://ddnet.org/players/milk/

Re: Fix demo player bug

Post by milk »

HMH wrote:It is an old known problem but nobody fixed it till now: https://github.com/teeworlds/teeworlds/issues/1260
Thanks, added pull request for this issue. Hope it's good enough solution.


It seems this bug appears only in demo player. Spectate on the server is ok.
Im 'corneum
Posts: 1052
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

Re: Fix demo player bug

Post by Im 'corneum »

i always had this bug, but i thought that it looks somehow more "prolike" ,that spin.
reply to this post or your mom will die in her sleep tonight
User avatar
BamBam
Posts: 985
Joined: Sat Apr 11, 2015 9:17 pm
Location: Canada
Player profile: http://ddnet.org/players/BamBam/
Mapper profile: http://ddnet.tw/mappers/BamBam/

Re: Fix demo player bug

Post by BamBam »

plz dont fix it, it looks really cool!
i exist
so do you
magic
HMH
Posts: 145
Joined: Mon May 05, 2014 8:41 pm
Player profile: http://ddnet.org/players/HMH/

Re: Fix demo player bug

Post by HMH »

Too late, already fixed ^^
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests