Forgottenserver: Add a console warning for invalid (non walkable) next positions

Created on 6 Aug 2020  路  3Comments  路  Source: otland/forgottenserver

I think we all already went thru a similar situation were players get stuck in some part of the map... a hole that leads you nowhere... a teleport that leads you to somewhere you can't move and so on... and its hard to figure it out as a owner if they don't report it, or don't even know how they got there in the first place, so here is my suggestion (NO MECHANIC CHANGES) : add a console warning with the position when a player step on it so we can be aware of such situations.

for example in these functions:

https://github.com/otland/forgottenserver/blob/master/data/lib/core/position.lua#L12-L48
https://github.com/otland/forgottenserver/blob/master/data/lib/core/tile.lua#L17-L38
stairs and holes

to prevent this:
2020-08-06 13_36_30
depois

a warning like [Warning - Position:moveUpstairs] Invalid next position at ( 127 / 60 / 7 ) should be enough

bug

Most helpful comment

I think this would need to be optional to avoid spam on console as there are maps that deliberately use stairs/holes/blank teleports that lead nowhere or to non-pathable tiles as a way to trick/tease players.

but those will only trigger if the player actually walk over them

Missunderstood you. Thought it was something that would be checked upon server start/map load.

Nevermind me!

All 3 comments

I think this would need to be optional to avoid spam on console as there are maps that deliberately use stairs/holes/blank teleports that lead nowhere or to non-pathable tiles as a way to trick/tease players.

I think this would need to be optional to avoid spam on console as there are maps that deliberately use stairs/holes/blank teleports that lead nowhere or to non-pathable tiles as a way to trick/tease players.

but those will only trigger if the player actually walk over them

I think this would need to be optional to avoid spam on console as there are maps that deliberately use stairs/holes/blank teleports that lead nowhere or to non-pathable tiles as a way to trick/tease players.

but those will only trigger if the player actually walk over them

Missunderstood you. Thought it was something that would be checked upon server start/map load.

Nevermind me!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wo11ven picture wo11ven  路  5Comments

GoularPink picture GoularPink  路  4Comments

MillhioreBT picture MillhioreBT  路  4Comments

marksamman picture marksamman  路  3Comments

Imperians picture Imperians  路  4Comments