SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Help

Thread Tools Search this Thread
Old 11-15-2017   #1
Default 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.
jameds is offline   Reply With Quote
Old 11-15-2017   #2
toaster's Avatar

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.
<fickle> giant robo-hood that rips the map apart with her bare hands
toaster is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 12:11 PM.

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