-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server: Observer slot and ReceivedItems history command #3408
Comments
Somewhat related PR: #2663 |
(To the point that we've discussed possibly removing the Sync command to enforce correct use of the API) |
Excuse me but it is not clear to me how receive a ReceivedItems packet if my Bot is not connected to the websocket and logged in as a player. Could you elaborate how I do this based on the following example?
How do I receive the ReceivedItems packet for item x now? |
You just did, the server sends it right after Connected. |
Ok, I failed to understand from the docs So sending a "Sync" command is unnecessary. But the ReceivedItems still only contain NetworkItem packets with reference to the player slot i logged in, is this right? This would still mean that I have to log into every player slot of the lobby. Please correct me if I am wrong. |
Hello everyone, I am developing a bot which sends notifications to a discord channel and mentions the player that they received a new item.
The problem:
To reduce network traffic the bot is checking the tracker website in a fixed interval to see if any player is online and if yes connects to the server. Because of the delay until the server connection ReceivedItems packets can be missed. To fix this the bot currently logs in as every player and sends a "Sync" command to update its state and disconnects afterwards. This seems suboptimal and spams the console.
Feature request:
I would like to request an easier way to track ReceivedItems packets and resync the state after connecting. Some ideas I had are:
Since I got familiar with the code in the past weeks while developing the bot I can try to provide a pull request. Let me know what you think and thank you for reading.
The text was updated successfully, but these errors were encountered: