Skip to content
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

Positional Audio breaks on public TS server with 1000+ users #39

Open
jhakonen opened this issue Jun 8, 2020 · 0 comments
Open

Positional Audio breaks on public TS server with 1000+ users #39

jhakonen opened this issue Jun 8, 2020 · 0 comments
Labels
Milestone

Comments

@jhakonen
Copy link
Owner

jhakonen commented Jun 8, 2020

The shared memory protocol that Tessumod and Tessumod Plugin uses to communicate with each other writes TS user's client id to a signed short value (max 32767), but in reality the value can be higher than that.

This will cause an error like this:

2020-06-05 23:51:15.295: ERROR: [EXCEPTION] (scripts/common/Event.py, 46):
Traceback (most recent call last):
  File "scripts/common/Event.py", line 44, in __call__
  File "/res/scripts/client/gui/mods/tessumod/positional_audio.py", line 80, in enable
  File "/res/scripts/client/gui/mods/tessumod/positional_audio.py", line 156, in on_update_to_ts
  File "/res/scripts/client/gui/mods/tessumod/mytsplugin.py", line 95, in set_data
error: short format requires SHRT_MIN <= number <= SHRT_MAX

Should probably be fixed as part of #32 .

@jhakonen jhakonen added the bug label Jun 8, 2020
@jhakonen jhakonen added this to the 0.8 milestone Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant