Wrong bbox for items after restart

Bug #379407 reported by Alexey Torkhov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cyphesis
Fix Committed
Low
Erik Ogenvik

Bug Description

After server restart, entities that were restored have wrong bbox - it sits somewhere under the ground, as shown on screenshot. If such entity will be moved, bbox will return to proper place.
This seem to be server bug, not just client representation, as tasks (one that I develop, for instance) report "Too far away" error for such entities.

Revision history for this message
Alexey Torkhov (atorkhov) wrote :
Revision history for this message
Al Riddoch (alriddoch) wrote :

I think this is not a bbox issue, but an issue with the position of the entity. At the time when the entity is read from the database, the terrain surface has not been restored, so the Z coord is incorrectly adjusted to a default height near sea level. It is not then re-adjusted when the terrain level is restored.

This is not going to be an easy one to restore sadly.

Fix notes:
If the terrain is modified, a pass needs to be done to correct all entity position which are constrained to the terrain, but this can be done in place without propagating the change, or issuing operations/events as all clients and observers should be able to similarly correct themselves.

Changed in cyphesis:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Erik Ogenvik (erik-ogenvik)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.