Teeworlds Randomness (wtf?)

Share and discuss skins, mapres, artworks and logos.
Im 'corneum
Posts: 1052
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

Teeworlds Randomness (wtf?)

Post by Im 'corneum »

[BBvideo=560,315]https://www.youtube.com/watch?v=HbbvMb7 ... e=youtu.be[/BBvideo]
I think the point is pretty clear here, i just wanna know if this is fixable. I actually had to change the second part because it just wouldnt work anymore. (map: Freezejump)
reply to this post or your mom will die in her sleep tonight
Silex
Posts: 1124
Joined: Tue May 06, 2014 6:40 pm
Mapper profile: http://ddnet.tw/mappers/Silex/

Re: Teeworlds Randomness (wtf?)

Post by Silex »

#offtopic -> i like your signature, this hoe ain't loyal.


Yes i got the same problem multiple times on some maps too.
User avatar
VipeR
Posts: 186
Joined: Tue Aug 04, 2015 3:53 pm
Location: Germany
Player profile: http://ddnet.tw/players/VipeR/

Re: Teeworlds Randomness (wtf?)

Post by VipeR »

User avatar
Pipou
Posts: 42
Joined: Wed Nov 19, 2014 10:13 pm
Player profile: http://ddnet.tw/players/Pipou/
Mapper profile: http://ddnet.tw/mappers/Pipou/

Re: Teeworlds Randomness (wtf?)

Post by Pipou »

The problem occurs when you copy it to a new map because of the new location of the part. While I was mapping Hostile 2, I had the same problem with the last part and I noticed that there was a fonctionnal area which is 30 tiles off the top, right, bottom and left (if I remember well). When getting too close to the borders the parts physics work differently.
Im 'corneum
Posts: 1052
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

Re: Teeworlds Randomness (wtf?)

Post by Im 'corneum »

Pipou wrote: Mon Oct 16, 2017 9:57 am When getting too close to the borders the parts physics work differently.
I dont think it's only the borders, because In every clip i used, the part was pretty much in the middle of a big map. It must be some kind of pattern.
reply to this post or your mom will die in her sleep tonight
User avatar
deen
TECHNICAL Team
Posts: 3575
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: Teeworlds Randomness (wtf?)

Post by deen »

We use floating point numbers to calculate the positions, velocity, etc. So the calculations are not exact and in a different location in the map you have a different amount of rounding error. Some more details: http://www.itu.dk/~sestoft/bachelor/IEEE754_article.pdf

I don't think we will be able to fix this without breaking the physics of existing maps.
User avatar
Pipou
Posts: 42
Joined: Wed Nov 19, 2014 10:13 pm
Player profile: http://ddnet.tw/players/Pipou/
Mapper profile: http://ddnet.tw/mappers/Pipou/

Re: Teeworlds Randomness (wtf?)

Post by Pipou »

Oh ok interesting
Im 'corneum
Posts: 1052
Joined: Thu Oct 30, 2014 4:58 pm
Clan: ☭birming

Re: Teeworlds Randomness (wtf?)

Post by Im 'corneum »

@deen. Does this mean that for example, the shown parts can only have 2 outcomes based on where they are? Or is there even another possebility in yet another spot. How far does it go up?
reply to this post or your mom will die in her sleep tonight
User avatar
ChillerDragon
Posts: 133
Joined: Thu Oct 23, 2014 2:21 pm
Location: Germany - Munich
Player profile: http://ddnet.tw/players/ChillerDragon/
Mapper profile: https://ddnet.tw/mappers/ChillerDragon/
Clan: Chilli.*
Website: http://chillerdragon.weebly.com/
YouTube: user/GermanMinecraftZC

Re: Teeworlds Randomness (wtf?)

Post by ChillerDragon »

Ah ye sure these floats. I also had problems hardcoding my ServerSide dummys. Because the x velocity gets diveded on slowing down.
---> If you stop moving (Pressing a or d) then your vel never gets 0.000000.
Image
Image
User avatar
deen
TECHNICAL Team
Posts: 3575
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: Teeworlds Randomness (wtf?)

Post by deen »

Im 'corneum wrote: Mon Oct 16, 2017 1:45 pm @deen. Does this mean that for example, the shown parts can only have 2 outcomes based on where they are? Or is there even another possebility in yet another spot. How far does it go up?
Yes, the physics in different parts of the map are slightly different. The absolute x and y locations count. If the map is huge, the physics will break entirely and any movement is impossible or your tee just starts flying around randomly. But probably the RAM is too small to make a map big enough.

If I were starting a game like this from scratch, I would use a fixed maximum size for the map and use fixed point numbers with deterministic behaviour everywhere.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest