Hello everyone,
I would like to know if anyone has managed to make the client automatically reopen the backpacks that the character had open before logging out.
Specifically, when a character logs back in, is it possible to restore the same backpacks (and their order) that were open at the moment of disconnection? This could be either through a client feature, a server-side implementation, or any workaround you may have found.
At the moment, I managed to reopen the backpacks on login, and I can see the following logs:
[Containers] No saved containers file for GM Adoriban
[Containers] Saving opened containers...
[Containers] Container 0 is in inventory slot 3
[Containers] Container 1 is nested (item id: 2854)
[Containers] Container 2 is nested (item id: 2854)
[Containers] Container 3 is nested (item id: 2854)
[Containers] Saved 4 containers to file for GM Adoriban
[Containers] Restoring 4 containers for GM Adoriban
[Containers] Opened container from inventory slot 3
[Containers] Opening 3 nested containers...
[Containers] Opened nested container (item id: 2854)
[Containers] Opened nested container (item id: 2854)
[Containers] Opened nested container (item id: 2854)
The issue is that, since the nested backpacks all have the same item ID, only one of the three that were previously open is actually restored correctly.
Also, to clarify my original goal: what I was really looking for was not just reopening the backpacks after login, but preventing them from closing in the first place — so that when the character logs back in, the backpacks are already open exactly as they were before logging out.
If anyone has dealt with a similar situation or has suggestions on how to properly persist container states across sessions, I would really appreciate your input.
Thank you in advance.
I would like to know if anyone has managed to make the client automatically reopen the backpacks that the character had open before logging out.
Specifically, when a character logs back in, is it possible to restore the same backpacks (and their order) that were open at the moment of disconnection? This could be either through a client feature, a server-side implementation, or any workaround you may have found.
At the moment, I managed to reopen the backpacks on login, and I can see the following logs:
[Containers] No saved containers file for GM Adoriban
[Containers] Saving opened containers...
[Containers] Container 0 is in inventory slot 3
[Containers] Container 1 is nested (item id: 2854)
[Containers] Container 2 is nested (item id: 2854)
[Containers] Container 3 is nested (item id: 2854)
[Containers] Saved 4 containers to file for GM Adoriban
[Containers] Restoring 4 containers for GM Adoriban
[Containers] Opened container from inventory slot 3
[Containers] Opening 3 nested containers...
[Containers] Opened nested container (item id: 2854)
[Containers] Opened nested container (item id: 2854)
[Containers] Opened nested container (item id: 2854)
The issue is that, since the nested backpacks all have the same item ID, only one of the three that were previously open is actually restored correctly.
Also, to clarify my original goal: what I was really looking for was not just reopening the backpacks after login, but preventing them from closing in the first place — so that when the character logs back in, the backpacks are already open exactly as they were before logging out.
If anyone has dealt with a similar situation or has suggestions on how to properly persist container states across sessions, I would really appreciate your input.
Thank you in advance.
Last edited: