In normal versions of Eclipse(for those who have no idea what im talking about, the engine uses GetTickCount directly instead of checking to see if the value is = to or < than 0) the Tick value can go lower than 0 and cause the engine to crash from Longs not being able to use negative values.
To fix this it’s rather simple, and I’ll show you how! :D
OK, so first thing you should do is decide to use timeGetTime instead because it will last longer, and its more accurate.
the next thing you should do is go into where you have your server/client loop and copy/paste this in:
Public Function GetTick() As Long Const MAX_INT As Long = 2147483647 If GetTickCount < 0 Then GetTick = MAX_INT + GetTickCount Else GetTick = GetTickCount End If End Function
after that, go into said loop and find where it says Tick = GetTickCount. and change that GetTickCount to just GetTick!
you’re for the most part done, you will have to find all the areas that are calling GetTickCount and change it to that GetTick function! this will ensure the value is ALWAYS a positive value to ensure that it won’t error after a long host(keeping the server up for days would eventually crash it due to said negative value).
Anywho, lemme know if you get confused by this tutorial and i’ll help you in any way I can!