SRB2 Message Board

SRB2 Message Board (
-   Help (
-   -   Variables a and b have same netid? (

jameds 11-15-2017 12:44 AM

Variables a and b have same netid?
I have 5 console variables in my Lua script.
When I register the 5th (deadtime), the game errors with:

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.

toaster 11-15-2017 01:07 AM

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.

All times are GMT. The time now is 08:24 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.