Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Let the client only update the ingame Contacts on Changes #26

Closed
KeyboardInterrupt opened this issue May 5, 2018 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@KeyboardInterrupt
Copy link
Member

Currently the Client is Hammering the Contact update script like crazy!
To not slow down the game unnecessarily, we should only trigger this upon a change, i.e. every time a players online status changed, or a new player is added to the List.

@KeyboardInterrupt KeyboardInterrupt added the enhancement New feature or request label May 5, 2018
@KeyboardInterrupt KeyboardInterrupt added this to Backlog in AlbianWarp May 5, 2018
@Amaikokonut
Copy link
Member

To help with this, in the latest working CAOS branch there is a script in the new WWR agent, 1008, that the client could trigger when a person's online status changes.
Example: mesg wrt+ game "aw_wwr_agent" 1008 "Aiko" "online" 0
p1 is the username, p2 is either "online" or "offline"
If this line is used to only update on status changes, it will greatly reduce the load on the engine.

@Amaikokonut
Copy link
Member

To be more specific, this is how I imagine this working:

  • Whenever the user goes online, that is when they will be pushed the contacts list and the _status variables will be updated-- just like they are now, not using the 1008 script.
  • If a new user is registered while the client is connected, the client will mesg writ the new contact.
  • If a contact changes status while the client is still connected, (IE goes online when they were previously offline or vice versa), the client will mesg writ the 1008 script mentioned above. This will also trigger all WWR agents connected to that user.

@KeyboardInterrupt KeyboardInterrupt moved this from Backlog to Made Obsolete by ReBabel in AlbianWarp Apr 1, 2020
@KeyboardInterrupt
Copy link
Member Author

This is made obsolete by the Switch to ReBabel

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants