DeletedUser687
Guest
Since v1.12 There has been a significant delay when switching villages causing scripts to be "long running" or "non-responsive". And if they do respond, it takes somewhere between 3 and 10 seconds to switch between villages.
I've done some extensive research on the issue and managed to find the cause and a possible solution (for the devs to implement).
What causes the delay is the emitting of the CHAT_GET_TRIBE_HISTORY. This occurs every time when a player changes village due to the fact that there is a listener to the 'DONE' event, which is also broadcast whenever a village has been loaded.
The reload of the chat history isn't needed in the first place, as it is already loaded and additional new messages are received in a different way.
A solution for this problem is to change the 'DONE' event, or simply add a boolean to check if chat history was already loaded or not, if not, it should emit the request, otherwise it should simply do nothing at all.
--
So as a player, you can't fix it as it's a problem with the game itself. So you'll have to wait for the devs to fix it.
How did I manage to fix it? MAGIC - no really, magic .
---
Not sure how much this is appreciated or allowed, but I've created an extension for Chrome which resolves this issue.
Link to the extension: https://chrome.google.com/webstore/detail/tw2-v112-village-loading/fpjilmeanlbddbodkfponjahhinlggea
The extension is open-source and thus anyone can peek into how I've fixed it for now until the devs come with their solution.
PLEASE NOTE: At the time of posting this, I have NO official confirmation if this extension is allowed or acceptable.
I've done some extensive research on the issue and managed to find the cause and a possible solution (for the devs to implement).
What causes the delay is the emitting of the CHAT_GET_TRIBE_HISTORY. This occurs every time when a player changes village due to the fact that there is a listener to the 'DONE' event, which is also broadcast whenever a village has been loaded.
The reload of the chat history isn't needed in the first place, as it is already loaded and additional new messages are received in a different way.
A solution for this problem is to change the 'DONE' event, or simply add a boolean to check if chat history was already loaded or not, if not, it should emit the request, otherwise it should simply do nothing at all.
--
So as a player, you can't fix it as it's a problem with the game itself. So you'll have to wait for the devs to fix it.
How did I manage to fix it? MAGIC - no really, magic .
---
Not sure how much this is appreciated or allowed, but I've created an extension for Chrome which resolves this issue.
Link to the extension: https://chrome.google.com/webstore/detail/tw2-v112-village-loading/fpjilmeanlbddbodkfponjahhinlggea
The extension is open-source and thus anyone can peek into how I've fixed it for now until the devs come with their solution.
PLEASE NOTE: At the time of posting this, I have NO official confirmation if this extension is allowed or acceptable.