Variables a and b have same netid?

Status
Not open for further replies.

jameds

jartha
Sonic Team Junior
Kart Krew™️
I have 5 console variables in my Lua script.
When I register the 5th (deadtime), the game errors with:
Code:
I_Error(): Variables touchtag and deadtime have same netid
All these variables have CV_NETVAR.
This doesn't happen if I don't register the variable as a netvar.
 
Net ID's are calculated using a hashing function (look it up), which unfortunately returns the same number for those two independent netvars. The quick fix is to give it a new name, but this is kind of bad form on our part since a good hashing function shouldn't collide on small input.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top