![]() |
NPC-Server
So you do guys know what the **** to do if the NPC-Server crashes and it starts then it disconnects on it's own again?
It seems to be happening a lot on Utopia. |
You probably have a loop somewhere on the server causing it to crash. Try /npckill and then /npcstart. Afterwards say /stats and paste the NPC stats at the bottom into the thread.
|
GServer statistics:
Server uptime: 0 hrs 3 mins Sleeptime (secs/min): 59734 Connectiontries (last min): 10 Players-in (byte/l.m.): 0 Players-out (byte/l.m.): 0 RCs-in (byte/last min): 92 RCs-out (byte/last min): 516 NPCServer-in (byte/l.m.): 38 NPCServer-out (byte/l.m.): 8693 ServerList-in (byte/l.m.): 1413 ServerList-out (byte/l.m.): 582 Player-avrg-in (bit/sec): 0 Player-avrg-out (bit/sec): 0 Levels: 0 NPCs: 0 Players: 0 RCs: 1 NPCServers: 1 ServerListers: 1 |
Any help? It's been doing this for like a half hour.
|
There will be a list that pops up like this:
1. 0.298013535 % npcs[0] (in level x.nw at pos (36, 29)) I need that list. It might not pop up if the NPC-Server isn't starting long enough. Otherwise you could check nc/rc log to see which weapons/scripts were recently updated and we could go from there. |
I just updated my Announce script
Ork/Announce was the most recent update. |
Could you post it in here or forum PM it to me (if you don't feel comfortable posting it publicly)?
|
Quote:
Umm I can't access it... xD All it did was be like /announce "Whateverhere" and it would add a message.. |
Quote:
rw weapons/*.txt (note: not WEAPONS) then go to that folder and find weaponOrk%2FAnnounce.txt |
Quote:
OH YEAH totally forgot about that, one sec, i'll PM you it. |
ERROR RESOLVED.
Mod please close. ;) |
Quote:
|
Quote:
|
When you have a problem that crashes the server and you fix it, it would be nice for you share it with the rest of us :whatever:
|
Quote:
|
Quote:
|
There was a break in a wrong position in a script after a case: which caused it to crash, it was a very strange bug. I just deleted the script from weapons/* and rescripted it for him.
|
I told him it wasn't my coding that caused it ...
|
Is it possible to give the code to me so that I can check it? It's probably a compiler problem.
|
Quote:
|
'var' is a bit of an ambiguous variable name in any case, it is probably better to give variables relevant names. It's awful having to read through scripts with things like this.var, this.var1, this.var2, since such names are semantically useless.
|
Quote:
|
Quote:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
I rarely use temp variable names longer than 2-3 letters.
I remember back when I first coded BASIC, I wrote this huge piece of crap that used variable names like this: PHP Code:
When I came back to it a month later, I was like WHAT THE ****?!!!?!?! |
Quote:
|
| All times are GMT +2. The time now is 08:10 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.