Teeworlds Randomness (wtf?)
-
- Posts: 1052
- Joined: Thu Oct 30, 2014 4:58 pm
- Clan: ☭birming
Teeworlds Randomness (wtf?)
[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)
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
Re: Teeworlds Randomness (wtf?)
#offtopic -> i like your signature, this hoe ain't loyal.
Yes i got the same problem multiple times on some maps too.
Yes i got the same problem multiple times on some maps too.
- 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?)
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.
-
- Posts: 1052
- Joined: Thu Oct 30, 2014 4:58 pm
- Clan: ☭birming
Re: Teeworlds Randomness (wtf?)
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
- deen
- Posts: 3576
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: Teeworlds Randomness (wtf?)
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.
I don't think we will be able to fix this without breaking the physics of existing maps.
- 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?)
Oh ok interesting
-
- Posts: 1052
- Joined: Thu Oct 30, 2014 4:58 pm
- Clan: ☭birming
Re: Teeworlds Randomness (wtf?)
@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
- 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?)
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.
---> If you stop moving (Pressing a or d) then your vel never gets 0.000000.
- deen
- Posts: 3576
- Joined: Mon May 05, 2014 2:30 pm
- Player profile: https://ddnet.org/players/deen/
- Discord: deen#5910
Re: Teeworlds Randomness (wtf?)
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.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?
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.
Who is online
Users browsing this forum: No registered users and 1 guest