-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Support newer ApiVersion (2023-03-24 etc) #1248
Comments
@w1lla is this when you changed the default API-version? (in other words, did you change something in order to get this error)? |
Yes, i changed the api version inside remote.py to If i do this i get the the following errors:
Seems to be related to this: & |
Yeah this version is not yet supported. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When getting to update the latest server update and you want to keep to the latest api version you might get an error because Options was added into the callback of ManiaPlanet.PlayerChat:
https://forum.nadeo.com/viewtopic.php?p=11797#p11797
As well as an additional parameter for ManiaPlanet.PlayerChat() when using xml-rpc API version "2023-03-24":
ManiaPlanet.PlayerChat(ClientUid, Login, Text, IsCmd, Options);
Options can be: 0: Default, 1:ToSpectatorCurrent, 2: ToSpectatorAll, 3; ToTeam.
(ToSpectator is for the prefix "/s " on the client, ToTeam is for the prefix "/t " on the client,) `
Expected Behavior
Chat would be sent to different things like /s or /t for instance but also 0 Default is just general chat.
Actual Behavior
[2023-08-16 08:17:59,860][ERROR][debug_] root: too many values to unpack (expected 4) (log.py:86) Traceback (most recent call last): File "C:\tmn\pyplanet\env\lib\site-packages\pyplanet\core\events\dispatcher.py", line 184, in execute_receiver return receiver, await receiver(**kwargs) File "C:\tmn\pyplanet\env\lib\site-packages\pyplanet\core\events\callback.py", line 41, in glue return await self.send_robust(source) File "C:\tmn\pyplanet\env\lib\site-packages\pyplanet\core\events\dispatcher.py", line 266, in send_robust return await self.send(source, raw, catch_exceptions=True, gather=gather) File "C:\tmn\pyplanet\env\lib\site-packages\pyplanet\core\events\dispatcher.py", line 220, in send kwargs = await self.process_target(signal=self, source=source) File "C:\tmn\pyplanet\env\lib\site-packages\pyplanet\apps\core\maniaplanet\callbacks\player.py", line 28, in handle_player_chat player_uid, player_login, text, cmd = source ValueError: too many values to unpack (expected 4)
Steps to Reproduce (including precondition)
[Set the ApiVersion of the server to 2023-03-24 for instance]
(https://github.com/PyPlanet/PyPlanet/blob/master/pyplanet/core/gbx/remote.py#L26)
Screenshot on This Problem (if possible)
Even though the chat is being sent, you still get errors from pyplanet.
Your Environment
The text was updated successfully, but these errors were encountered: