Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   NPC-Server (https://forums.graalonline.com/forums/showthread.php?t=79119)

mYg0tHaMpStEr 03-21-2008 05:38 PM

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.

Tigairius 03-21-2008 05:41 PM

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.

mYg0tHaMpStEr 03-21-2008 05:45 PM

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

mYg0tHaMpStEr 03-21-2008 05:51 PM

Any help? It's been doing this for like a half hour.

Tigairius 03-21-2008 05:51 PM

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.

mYg0tHaMpStEr 03-21-2008 05:53 PM

I just updated my Announce script

Ork/Announce was the most recent update.

Tigairius 03-21-2008 05:54 PM

Could you post it in here or forum PM it to me (if you don't feel comfortable posting it publicly)?

mYg0tHaMpStEr 03-21-2008 05:54 PM

Quote:

Originally Posted by Tigairius (Post 1381394)
Could you post it in here or forum PM it to me (if you don't feel comfortable posting it publically).


Umm I can't access it... xD

All it did was be like
/announce "Whateverhere" and it would add a message..

Tigairius 03-21-2008 05:56 PM

Quote:

Originally Posted by mYg0tHaMpStEr (Post 1381395)
Umm I can't access it... xD

Try giving yourself these rights:
rw weapons/*.txt
(note: not WEAPONS)

then go to that folder and find weaponOrk%2FAnnounce.txt

mYg0tHaMpStEr 03-21-2008 05:57 PM

Quote:

Originally Posted by Tigairius (Post 1381396)
Try giving yourself these rights:
rw weapons/*.txt
(note: not rw WEAPONS)

then go to that folder and find weaponOrk%2FAnnounce.txt


OH YEAH totally forgot about that, one sec, i'll PM you it.

mYg0tHaMpStEr 03-21-2008 06:40 PM

ERROR RESOLVED.

Mod please close. ;)

DrakilorP2P 03-21-2008 10:16 PM

Quote:

Originally Posted by mYg0tHaMpStEr (Post 1381410)
ERROR RESOLVED.

Mod please close. ;)

It might be helpful for others with the same problem if you would post what the problem was and how you fixed it.

cbk1994 03-21-2008 10:22 PM

Quote:

Originally Posted by mYg0tHaMpStEr (Post 1381410)
ERROR RESOLVED.

Mod please close. ;)

Next time just AIM me and I can help you x.x

Inverness 03-21-2008 10:55 PM

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:

moondeath 03-26-2008 12:42 PM

Quote:

Originally Posted by Inverness (Post 1381464)
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:

[sarcasm] Now why would he do that? :p [/sarcasm]

SolidSnake989 03-26-2008 09:32 PM

Quote:

Originally Posted by moondeath (Post 1382447)
[sarcasm] Now why would he do that? :p [/sarcasm]

[sarcasm] Because he doesn't trust no one [/sarcasm]

Tigairius 03-26-2008 09:35 PM

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.

cbk1994 03-26-2008 10:23 PM

I told him it wasn't my coding that caused it ...

Admins 03-28-2008 12:34 PM

Is it possible to give the code to me so that I can check it? It's probably a compiler problem.

Tigairius 03-28-2008 11:04 PM

Quote:

Originally Posted by Stefan (Post 1382858)
Is it possible to give the code to me so that I can check it? It's probably a compiler problem.

Yes, I will PM it to you.

Skyld 03-30-2008 11:41 AM

'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.

Crow 03-30-2008 12:13 PM

Quote:

Originally Posted by Skyld (Post 1383187)
'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.

But I like to use temp.var, because I dont want to think up a variable name for things like that, and stuff like temp.v is too short I think.

Skyld 03-30-2008 02:29 PM

Quote:

Originally Posted by Crow (Post 1383191)
But I like to use temp.var, because I dont want to think up a variable name for things like that, and stuff like temp.v is too short I think.

PHP Code:

for (temp.var: temp.list)
{
  
//


... is not as clear as, say:
PHP Code:

for (temp.needletemp.haystack)
{
  
//


PHP Code:

for (temp.usertemp.userlist)
{
  
//


PHP Code:

for (temp.playerallplayers)
{
  
//


Just little things like naming variables properly can completely change the semantic value of your code.

cbk1994 03-30-2008 03:28 PM

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:

opponent x
opp y
plyr x
plyr y
time
ammo left
score 

etc.

When I came back to it a month later, I was like WHAT THE ****?!!!?!?!

Crow 03-30-2008 03:36 PM

Quote:

Originally Posted by Skyld (Post 1383207)
Just little things like naming variables properly can completely change the semantic value of your code.

I'm using temp.var in my class/npc checking functions. It checks for any variable/string whatsoever, so I named it temp.var ._.


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.