SRB2 Message Board  

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

Reply
 
Thread Tools Search this Thread
Old 4 Weeks Ago   #1
jameds
James
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:
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.
jameds is offline   Reply With Quote
Old 4 Weeks Ago   #2
toaster
トースタちゃん
Developer
 
toaster's Avatar
Default

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.
__________________
Quote:
<MonsterIestyn> surely it's good ass though
Quote:
<MonsterIestyn> watch porm to keep warm
toaster is offline   Reply With Quote
Reply

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 06:23 AM.


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