Delay when opening the backpack via the GUIFixed

Hello.
When opening the backpack through the graphical interface, there is a delay of 2-3 seconds, which is not very pleasant, and sometimes fatal for the player. There was no such thing before 3.5.0 and 3.5.1 updates. Please fix it !!!

The only way the backpack could take 2-3 seconds to open is if you have really high ping to the server. There is intentionally a 0.5 second delay when using the chat command or clicking the GUI button since the chat window may be open, which can prevent the backpack from opening if it doesn't close quickly enough on the client.

Delays in v3.4.0:

  • /backpack chat command: 0.5 second
  • backpack.open console command: 0.1 second
  • backpack GUI button: 0.1 second
All delays were removed in v3.5.0.

Some delays we re-introduced in v3.5.1:
  • /backpack chat command: 0.5 second
  • backpack.open console command: no delay
  • backpack GUI button: 0.5 second
The reason that the delay was increased for the GUI button to match the chat command delay, is that some players simply open chat in order to click the GUI button, so they can have the same problem where it does not open. I reproduced this exact issue, so while reducing the delay for the GUI button could be done, it would come with that trade-off. While you may not have issues yourself, there doesn't seem to be a perfect delay amount, since whether players have issues seems to depend on multiple factors, including client FPS.

Related thread where issue was reported:
https://umod.org/community/backpacks/30783-backpack-opening-issue?page=1#post-8

Never had any delay with the gui , been using it since it was introduced (with my own icon) and no problems at all. I used the beta version of 3.5.0 and now installed the 'alpha' version with no problems at all. I will now install 3.5.1

*installed and working just as normal,
I can never for the life of me understand why players want to use anything other than just pressing the "B"  key to open the backpack, you dont have to enter chat to type anything or to press the gui ? , Now that is a delay

I've released Backpacks v3.5.2 which reduces the delay when opening via the GUI button back to the 0.1 second delay that was present in v3.4.0. This decision was based on the following factors.

  1. The request of the OP
  2. I conducted some testing and didn't have any issues opening the backpack with a 0.1 second delay while chat was open if I had at least 20 client FPS, and I expect most players to have at least that much FPS
  3. I assume most players will click the GUI button, not while chat is open, but while their inventory is (I saw this in various videos), in which case the delay is not needed (though I don't think we can't detect the difference)
  4. If a client is unable to open the backpack via the GUI button for any reason, they can use the /backpack chat command as a fallback which has a larger delay
Locked automatically