Posts: 312
Threads: 94
Joined: Jun 2012
Reputation:
0
I am leaving my server on for a week of so for testing purposes to see how stable it is and a few days into the testing everything seems to be working flawlessly until I check the npcs. I noticed that all of my npcs have disconnected automatically. I do not know why this occured and in the .bat file it just says "npc name Disconnected from the server" for all of the npcs. No other error was shown.
Please help me
Posts: 1,189
Threads: 51
Joined: Jan 2012
Reputation:
0
Show us logs where that happens..
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
Code? This can be caused if the recording file they're trying to access doesn't exist, etc.
Posts: 312
Threads: 94
Joined: Jun 2012
Reputation:
0
they npc works fine for days then one day this happens
Posts: 46
Threads: 6
Joined: Sep 2013
Reputation:
0
Ops. Much NPC So that's doesn't exist's
If try it..
Posts: 312
Threads: 94
Joined: Jun 2012
Reputation:
0
Someone please help me soon as possible, this is a necessary fix for my server
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Its hard to say, this could have several reasons.
As it just happens after a few days, I would just add a check in OnPlayerDisconnect that reconnects the NPC when he disconnects. Just use the same code you use when initializing the NPCs, and call it in a timer 1-2 seconds after the disconnect, so you get no name collisions.
Posts: 312
Threads: 94
Joined: Jun 2012
Reputation:
0
Thats a good idea, but if I could eliminate the problem all together that would be nice