Yxxe Posted April 17, 2011 Author Share Posted April 17, 2011 Recently I have uploaded my game server to an external file host, to open the game for a while. Everything has uploaded fine, and there are no errors. I am also able to log on to the game properly, along with other players. I can also walk around, change maps and converse with other players without error. The only problem I have come across is that NPCs on all of the maps do not move, and will not respond to attacking. The maps in all are fine, as other map data such as tile types still work, and I can pick up items from the ground.Everything on the server and client work fine locally, as well as over a hamachi network.What I would like to know is this - has anyone else come across this problem before, and if so, how would I go about fixing it? If there is any other information you need, just ask and I will do my best to try and get it.Thanks,Lightning Link to comment Share on other sites More sharing options...
Yxxe Posted April 20, 2011 Author Share Posted April 20, 2011 Bump! It would be great if anyone could help me fix this problem soon, thanks. Link to comment Share on other sites More sharing options...
schnurman Posted April 20, 2011 Share Posted April 20, 2011 Maybe the filehost is lagging so bad it makes the npc not move. I don't have much of a suggestion but if its just the host maybe you should find a new one. Link to comment Share on other sites More sharing options...
Yxxe Posted April 20, 2011 Author Share Posted April 20, 2011 @Schnurman:> Maybe the filehost is lagging so bad it makes the npc not move. I don't have much of a suggestion but if its just the host maybe you should find a new one.That's part of the problem though - it isn't lagging at all. Chat and other things are transferred to the server and back to the client pretty much instantaneously. Even leaving the server on all night and logging in the next day has no change, the NPC's are in the same position. Link to comment Share on other sites More sharing options...
schnurman Posted April 20, 2011 Share Posted April 20, 2011 @Lightning:> That's part of the problem though - it isn't lagging at all. Chat and other things are transferred to the server and back to the client pretty much instantaneously. Even leaving the server on all night and logging in the next day has no change, the NPC's are in the same position.have you tried remaking the npc and place them in a bit of a different position? Link to comment Share on other sites More sharing options...
Yxxe Posted April 20, 2011 Author Share Posted April 20, 2011 @Schnurman:> have you tried remaking the npc and place them in a bit of a different position?I've tried making completely new NPCs. They suffer from the same effects as the old ones. Link to comment Share on other sites More sharing options...
schnurman Posted April 20, 2011 Share Posted April 20, 2011 @Lightning:> I've tried making completely new NPCs. They suffer from the same effects as the old ones.We'll if it's just the host your using just use a different one bud ;) Link to comment Share on other sites More sharing options...
Yxxe Posted April 20, 2011 Author Share Posted April 20, 2011 @Schnurman:> We'll if it's just the host your using just use a different one bud ;)That's more sidestepping the problem rather than solving it. Still, the error may persist on other servers. Link to comment Share on other sites More sharing options...
Displaced Posted April 20, 2011 Share Posted April 20, 2011 Try this:modGeneral.basReplace:```Public Declare Function GetTickCount Lib "kernel32" () As Long```with:```Public Declare Function MyGetTickCount Lib "kernel32" Alias "GetTickCount" () As Long```Add:```Public Function GetTickCount() As Long If (MyGetTickCount < 0) Then GetTickCount = MAX_LONG - MyGetTickCount() Else GetTickCount = MyGetTickCount() End IfEnd Function```modConstants.basAdd:```' Types Max ValuesPublic Const MAX_LONG As Long = 2147483647``` Link to comment Share on other sites More sharing options...
Yxxe Posted April 20, 2011 Author Share Posted April 20, 2011 I'll give it a go, thanks. Link to comment Share on other sites More sharing options...
Displaced Posted April 20, 2011 Share Posted April 20, 2011 I'm intrested if this worked for you? Link to comment Share on other sites More sharing options...
Yxxe Posted April 20, 2011 Author Share Posted April 20, 2011 @Kamii:> I'm intrested if this worked for you?My server host needs to check the .exe first. Once that's done and I've tried it I'll let you know. :] Link to comment Share on other sites More sharing options...
Yxxe Posted April 20, 2011 Author Share Posted April 20, 2011 It's fine with me, but gives my host RTE 6, which is an Overflow.EDIT: I changed the function you gave me to this:```Public Function GetTickCount() As Long If (MyGetTickCount < 0) Then GetTickCount = MAX_LONG - MyGetTickCount() ElseIf (MyGetTickCount > MAX_LONG) Then GetTickCount = MyGetTickCount - MAX_LONG Else GetTickCount = MyGetTickCount() End IfEnd Function``` Link to comment Share on other sites More sharing options...
Dax Posted April 20, 2011 Share Posted April 20, 2011 Your best bet = use the given sceipts in your posts to test if they walk, then use your own webhost to host your server. Remeber that the things that you make on here will be better than most things out there meaning if you make your own webhot, you can put in whateveryou want with no limit. Other webhosts have a cache on what you put into it. Link to comment Share on other sites More sharing options...
Displaced Posted April 20, 2011 Share Posted April 20, 2011 It has something to do with the getTickCount function.If virtual servers are longer up than about 31 days, you will get a negativ value of getTickCount.That's why all timed events break..But it's strange that the server return's an overflow… Link to comment Share on other sites More sharing options...
Yxxe Posted April 22, 2011 Author Share Posted April 22, 2011 I got my host to restart his VPS, and it looks like it's all fine now. Thanks Kamii! ;] 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