QuentinGruber / h1z1-server

Library used to emulate h1z1 game servers
https://h1emu.com
GNU General Public License v3.0
94 stars 53 forks source link

Voice chat #1439

Open 0-x-2-2 opened 1 year ago

0-x-2-2 commented 1 year ago

You can get Vivox to attempt to connect with this snippet on the server.

      server.sendData(client, "Voice.Login", {
        clientName: '[issuer or Vivox admin username]', // fload02985-Fu36-dev-Admin
        sessionId: '[password or jwt]', // [vivox admin password works here]
        url: 'https://mt1s.www.vivox.com',
        characterName: '.[issuer].[username].' // fload02985-fu36-dev
      });

The issue is that this will call vx_req_account_login_create with the Vivox API but if voice still works on Z1 BR, slightly newer versions of the Vivox libraries are still ABI compatible and can be replaced then we just need packet decrypted dumps of Voice.Login and Voice.JoinChannel but the best option would most likely be hooking and redirecting the vx_req_account_login_create to the modern JWT login flow unless we can find documentation for the vx_req_account_login_create login flow but it is very hard to get it working as it seems to throw an internal error when using it with my account type.

I heard that some people got voice working on the 2015 build but I don't see code related to it anywhere.

Here are some tools useful for the JWT token generation flow: https://github.com/LeafChage/vivox-token https://cdn.discordapp.com/attachments/1069493856724320336/1071461084092964894/vivox_admin.py

Z1Meme commented 11 months ago

Should be added in v0.30.0 using a separate voice system than vivox

github-actions[bot] commented 7 months ago

Stale issue message

github-actions[bot] commented 4 months ago

Stale issue message