evennia / evennia

Python MUD/MUX/MUSH/MU* development system

Home Page:http://www.evennia.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Expanded Room time-of-day tags do not update until post-character entry

jaborsh opened this issue · comments

commented

Describe the bug

When entering an Expanded Room, characters will see an out-of-date description if time has reached a new tag but the room hasn't updated yet.

To Reproduce

Steps to reproduce the behavior:

  1. Use Expanded Rooms contrib
  2. Create a room with time of day tags.
  3. Visit room after time-of-day change.
  4. See error

Expected behavior

Rooms should update before a character enters so that the description is not incorrect.

image

commented

Issue resolves if at_post_move logic is moved instead to at_object_receive, but I'm not sure that's an ideal solution.

I'm not familiar with the extended room code but this definitely sounds wrong. It should check if it needs to be updated when looked at, not based on object entry or departure, or things like changing time of day will not update correctly when spending time in a room.

It could be that it is, but the update is occurring after the description is retrieved instead of before?

I did some initial investigation of this, but didn't immedately see the issue. Will need more research.