I have implemented a bank that can be shared between multiple accounts. However, this causes client-side crashes. Hence, I don't get any crash logs. At least I can't find any crash logs, do they exist?
For the implementation to work, upon opening the container it is added to the player (making the player Parent, moving it to the corresponding map, adding it to the player's Items and removing it from other player's Items).
However, I've noticed some crashes. The scenario that I have most reliably been able to replicate is when I have 2 characters, I take turns opening it a few times (which closes it for the other). Then, I log out the character that is NOT currently the parent of the shared bank, and log back in with it. Then, the client immediately crashes upon logging in. The strangest thing is, if I start a new client and log in with that character, it does not crash. If I use a new client, log in, log out, and log back in again (without doing anything else) it will crash again. If I make a new character, it will not crash, until I go back and forth between opening the bank between it and another character and then log out when the other character owns it.
I'm at my wit's end. I've tried so much already but with no error log it's hard, and as it depends on whether the client is newly started or not, it's at least partially an issue with the client's state. However, it is very clearly affected by my code so I hope to be able to work around it.
Does anyone have ANY clue what might be causing this?
For the implementation to work, upon opening the container it is added to the player (making the player Parent, moving it to the corresponding map, adding it to the player's Items and removing it from other player's Items).
However, I've noticed some crashes. The scenario that I have most reliably been able to replicate is when I have 2 characters, I take turns opening it a few times (which closes it for the other). Then, I log out the character that is NOT currently the parent of the shared bank, and log back in with it. Then, the client immediately crashes upon logging in. The strangest thing is, if I start a new client and log in with that character, it does not crash. If I use a new client, log in, log out, and log back in again (without doing anything else) it will crash again. If I make a new character, it will not crash, until I go back and forth between opening the bank between it and another character and then log out when the other character owns it.
I'm at my wit's end. I've tried so much already but with no error log it's hard, and as it depends on whether the client is newly started or not, it's at least partially an issue with the client's state. However, it is very clearly affected by my code so I hope to be able to work around it.
Does anyone have ANY clue what might be causing this?