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

invalid number of bits to read (-2147483648 is not between 0 and 32) #29

Open
GitSparTV opened this issue Nov 22, 2019 · 4 comments · May be fixed by #36
Open

invalid number of bits to read (-2147483648 is not between 0 and 32) #29

GitSparTV opened this issue Nov 22, 2019 · 4 comments · May be fixed by #36
Assignees
Labels

Comments

@GitSparTV
Copy link

invalid number of bits to read (-2147483648 is not between 0 and 32)
stack traceback:
[C]: in function 'ReadUInt'
lua/sourcenet/netmessages.lua:533: in function <lua/sourcenet/netmessages.lua:523>
[C]: in function 'xpcall'
lua/sourcenet/outgoing.lua:57: in function 'fn'

Win, SERVER, main branch, 1.1.8. sn_changedisconnect.lua example was used

@GitSparTV
Copy link
Author

GitSparTV commented Nov 22, 2019

Seems like it happens when player requests Lua files

@danielga danielga self-assigned this Nov 22, 2019
@danielga danielga added the bug label Nov 22, 2019
@GitSparTV
Copy link
Author

GitSparTV commented Nov 22, 2019

What I can say for sure is it errors when client joins the server.
Can't replicate right now

@danielga
Copy link
Owner

This is a longstanding issue. I've been working on and off on a branch but never concluded.

@GitSparTV
Copy link
Author

Sum:
Not working:

  • Everything that uses outgoing.lua (causes server and client to hang)
    • sn_clog.lua (tested serverside tho)
    • sn_snipper.lua
  • player_connect, player_disconnect (GameEvents) (gamevents causes them to hang too)
    • sn_changedisconnect.lua
    • sn_clientconnect.lua
  • sn_fstream.lua (invalid dataFragments_t)

Work:

  • sn_customdisconnect.lua (If you add ent index in NetChan)
  • sn_indisconnect.lua
  • sn_loadcodec.lua (No errors, can't understand the purpose (used serverside))
  • sn_namechange.lua (NetChan should have EntIndex, no visible changes (used serverside))
  • sn_printgevents.lua (Partially, only player_spawn)
  • sn_setconvars.lua (Use FindMetaTable)
  • sn_slog.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants