Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tile walk speed #135

Open
emceef94 opened this issue Feb 21, 2021 · 4 comments
Open

Tile walk speed #135

emceef94 opened this issue Feb 21, 2021 · 4 comments

Comments

@emceef94
Copy link

Hello,
is there any way to get the exact value of tile walk speed from the waycost maps? I know that the darker the slower, but is there somewhere a ready comparison for each RGB color?

@mathiasbynens
Copy link
Member

I don't have this mapping from waycost pixel value to exact speed modifier yet, but I think you might be able to figure this out yourself with https://tibia.fandom.com/wiki/Speed_Breakpoints + some investigation. Please let me know if you look into it!

@emceef94
Copy link
Author

It's definitely possible to figure it out but was hoping for an easy way around! If I'll get down to it and figure it out I'll give an update

@LeeKunTibia
Copy link
Collaborator

Be advised that TibiaWiki's Speed Breakpoints aren't 100% accurate. They are based on manual testing and not on tile/speed exact formulas.

@LeeKunTibia
Copy link
Collaborator

Actually, yes, there is. And it's very simple. The RGB values of the walkable files represent the tile friction. So a tile with color #646464 has friction 100. This, however, is only valid for frictions up to 250. Tiles with higher friction than that will also be saved on the waypoints file with #FAFAFA for obvious reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants