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

Locked
User avatar
Jay_H
Posts: 4061
Joined: Tue Aug 25, 2015 1:54 am
Contact:

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

Post 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. :)
Last edited by Jay_H on Fri Feb 23, 2018 2:49 am, edited 1 time in total.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Spells #99: Dropped items persist across games

Post 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?

User avatar
Jay_H
Posts: 4061
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Spells #99: Dropped items persist across games

Post by Jay_H »

Closed and opened, the items are still there.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Spells #99: Dropped items persist across games

Post 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.

User avatar
Hazelnut
Posts: 3015
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Spells #99: Dropped items persist across games

Post 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.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Spells #99: Dropped items persist across games

Post 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. :)

User avatar
Jay_H
Posts: 4061
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Spells #99: Dropped items persist across games

Post 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.

User avatar
Hazelnut
Posts: 3015
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Spells #99: Dropped items persist across games

Post 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.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
Jay_H
Posts: 4061
Joined: Tue Aug 25, 2015 1:54 am
Contact:

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

Post 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.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

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

Post by Interkarma »

All good Jay! Still appreciate the report. :)

Locked