Xlithan Posted February 26, 2016 Author Share Posted February 26, 2016 Not sure if this was an issue with the old Mirage Source or if it still exists. But does anybody ever have an issue with the server loop at times? Health stops regenerating, monsters stop attacking. Just wondering if anybody has come across this issue or knows of any way it could be solved. Link to comment Share on other sites More sharing options...
BeNjO Posted February 26, 2016 Share Posted February 26, 2016 You sure its not the gettickcount going into minus? Sounds exactly like the gettickcount issue after 25(?) days of a server/computer running without a restart. Link to comment Share on other sites More sharing options...
Xlithan Posted February 26, 2016 Author Share Posted February 26, 2016 But it was only running a couple days. How can I prevent this? Link to comment Share on other sites More sharing options...
BeNjO Posted February 26, 2016 Share Posted February 26, 2016 You'd need to restart the server every so often, roughly 20 days, or change GetTickCount to 64bit (search forums). Link to comment Share on other sites More sharing options...
Growlith1223 Posted February 27, 2016 Share Posted February 27, 2016 you can use my tutorial and you won't ever have to restart your comp, look for the Fix Tick Initialization fix on the forums! Link to comment Share on other sites More sharing options...
abhi2011 Posted February 27, 2016 Share Posted February 27, 2016 @'Growlith1223':> you can use my tutorial and you won't ever have to restart your comp, look for the Fix Tick Initialization fix on the forums!You'd have to restart after 40 days or so, right? GetTickcount returns a unsigned 32 bit int, and eventually (after around 40 days) it should overflow Link to comment Share on other sites More sharing options...
Growlith1223 Posted February 27, 2016 Share Posted February 27, 2016 from my testing of testing, i have yet to actually have that happen. and my code checks to see if it's below 0, if so then it will add the Integer's max value ONTO the values. there is a rollback in about 40 days that rolls it back to 0 but it's a very easy fix, you just need to re-init all the timers and everything's good. Link to comment Share on other sites More sharing options...
Xlithan Posted February 27, 2016 Author Share Posted February 27, 2016 40 days is more than enough. Server will probably be restarted once a week at the minimum. I've added the GetTick code anyway so thanks. I'm hoping this was the solution to the problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now