source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

engine->getServerTime() returning NaN (-1#J)

Open munchgamer opened this issue 13 years ago • 2 comments

In the I/O queues I'm seeing engine->getServerTime() return an NaN value, which is causing EventQueue Inputs not to fire in ServiceEvents on the check against present time. I'm fairly new to the source SDK so I'm pretty confident that it's a problem with my setup but I haven't found any forum posts anywhere with a similar issue so I thought I'd see if I could find some help here. As far as I can tell, engine is an IVEngineServer whose impl class is actually loaded from the DLL's?

Any help is appreciated!

Best, Michael

munchgamer avatar Jul 23 '13 21:07 munchgamer

This was also happening in my mod after merging in the July 17th changes to cbase.cpp. Resulted in entity I/O failing on dedicated servers only. I reverted the changes to cbase.cpp back to using gpGlobals->curtime and that fixed it but either way, does look like an actual issue though.

jimbomcb avatar Jul 23 '13 22:07 jimbomcb

Oh man, thanks! You're a lifesaver, I was head-wrecked 'cause I couldn't get through the second Source tutorial. Cheers!

munchgamer avatar Jul 24 '13 01:07 munchgamer