Ticket #33 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

Disappearing Stuff

Reported by: stephen Owned by: stephen
Priority: blocker Milestone: 013
Component: gameplay Version:
Keywords: Cc:

Description

It has been reported that gems and other stuff sometimes completely disappear from the dungeon when a knight dies. When this happens it can make the quest impossible to complete, because the gems have gone "missing".

See forum thread:
http://www.knightsgame.org.uk/forum/index.php?topic=3.0

Change History

Changed 8 months ago by stephen

  • milestone set to 013

Changed 7 months ago by stephen

  • priority changed from critical to blocker

Changed 7 months ago by stephen

The suggested solution is to put in a background task that periodically checks whether important items still exist. If not then we should add it to the dungeon queue for respawning.

Also we should probably log a message when an "important" item is respawned (from the item replacement task).

Finally we should probably make the item replacement task a bit more agressive about finding an empty spot. If there are no empty squares after several attempts then we should just nuke some random (non-quest) object and re-use that square. And if it STILL fails I guess we should print a message, or something, and keep trying.

Changed 7 months ago by stephen

  • status changed from new to closed
  • resolution set to fixed

Fixed a bug where, if you die on the exact same square that someone died on previously, the "stuff bag" contents are set to what the previous person died with, not what you died with. I think this must have been why stuff was disappearing.

I've also put in a check that runs every second to see if important quest items are missing. If so then they are respawned at a random location, and a message is printed to inform players that this has happened.

Note: See TracTickets for help on using tickets.