Page 1 of 1

Spells #99: Dropped items persist across games [NON-ISSUE]

Posted: Thu Feb 22, 2018 1:23 am
by Jay_H
I left some items dropped in a Fighters Guild (which are persisting, not sure if that was classic). I then died and created a new character. The new character found the items in the Fighters Guild. :)

Re: Spells #99: Dropped items persist across games

Posted: Thu Feb 22, 2018 2:02 am
by Interkarma
That's an interesting one - cache should only be valid for that character (it's even saved in that character's save data only).

Does closing and reopening the game solve this for the new character?

Re: Spells #99: Dropped items persist across games

Posted: Thu Feb 22, 2018 2:05 am
by Jay_H
Closed and opened, the items are still there.

Re: Spells #99: Dropped items persist across games

Posted: Thu Feb 22, 2018 2:13 am
by Interkarma
Cheers, I'll leave this one for Hazelnut to reproduce and resolve. :)

It's probably just something simple like needing to purge the live cache on a new game event. This might be how the old character's containers ended up saved with the new one.

Re: Spells #99: Dropped items persist across games

Posted: Thu Feb 22, 2018 9:03 am
by Hazelnut
Are you confusing the pile of clothes loot piles that are appearing in the FG (need to fix that since they don't in classic) with stuff you dropped yourself? If not can you reproduce and provide steps please because this should not happen.

EDIT: Actually I may have missed the cache reset when you start a new game, so let me check that first.

Re: Spells #99: Dropped items persist across games

Posted: Thu Feb 22, 2018 10:10 am
by Interkarma
If you need it, there's a static event StartGameBehaviour.OnNewGame you can use to catch a new game starting.

I just realised I missed this myself for building discovery cache while trying to reproduce this bug. :)

Re: Spells #99: Dropped items persist across games

Posted: Thu Feb 22, 2018 1:41 pm
by Jay_H
Hazelnut wrote:Are you confusing the pile of clothes loot piles that are appearing in the FG (need to fix that since they don't in classic) with stuff you dropped yourself?
...Let me see because it is in the Fighters Guild and I assumed that was my stuff I had dropped :lol: I'll test this and come back.

Re: Spells #99: Dropped items persist across games

Posted: Thu Feb 22, 2018 10:17 pm
by Hazelnut
The code already resets the scene cache on starting a new game, and I cannot reproduce this bug. Please let me know if you still have this issue.

Re: Spells #99: Dropped items persist across games [NON-ISSUE]

Posted: Fri Feb 23, 2018 2:49 am
by Jay_H
I just tried it and it doesn't happen. I assumed the Fighters Guild stuff was mine, so this was a non-issue from the start :D Sorry everyone.

Re: Spells #99: Dropped items persist across games [NON-ISSUE]

Posted: Fri Feb 23, 2018 3:46 am
by Interkarma
All good Jay! Still appreciate the report. :)