Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   have you seen this npc server? (https://forums.graalonline.com/forums/showthread.php?t=63215)

excaliber7388 01-05-2006 01:17 AM

have you seen this npc server?
 
my npc server ran away, it won't come back if i call it from the RC with /npcstar, and it won't come if i try to bring it back with admin pannel ;( what can i do to bring it back?

Yen 01-05-2006 01:26 AM

Get rid of the script that's destroying it :o

Admins 01-05-2006 02:04 AM

Hmmm this happened two times in one week - it seems like your npcserver is going into an endless loop, so starting a new npcserver doesn't help. But using the admin panel to kill the npcserver should normally work

dNeonb 01-05-2006 02:17 AM

I would have called the NPC-Server with "/npcstart". Maybe he does not like to be called "/npcstar" ^^

Sacred Shadow 01-05-2006 02:33 AM

You should have a weapons/, npcs/, and scripts/ folder in your FileBrowser, where all scripts are kept, I suggest putting them all on your desktop, and deleting them from FTP, and going through them and finding all npcs wth a timeout, // that timeout, Get someone with experience to help you find the problem.

excaliber7388 01-05-2006 02:50 AM

a timeout? how cold that affect it? and btw, our NPC server does think he's a star :P
anyway, i first tried to disconnect it to get it working again (worked once before x_x) then i tried shuting it down from the admin panel, then restarting it, that didn't work either. Now there are a few weapons that use a timeout, but i don't think the NPC server does. (not anymore anyway ;) ) if i run into any other trouble i'll work on it, however i removed the timeouts from the NPC server script, would this solve the problem?

Sacred Shadow 01-05-2006 03:06 AM

You have to re-upload the scripts as .txt files, then start the npc server.

Skyld 01-05-2006 03:12 AM

Quote:

Originally Posted by excaliber7388
a timeout? how cold that affect it? and btw, our NPC server does think he's a star :P
anyway, i first tried to disconnect it to get it working again (worked once before x_x) then i tried shuting it down from the admin panel, then restarting it, that didn't work either. Now there are a few weapons that use a timeout, but i don't think the NPC server does. (not anymore anyway ;) ) if i run into any other trouble i'll work on it, however i removed the timeouts from the NPC server script, would this solve the problem?

It depends on if a script on the serverside is doing too much in a given space of time.

Also check for while () loops that haven't been used effectively.

excaliber7388 01-05-2006 03:34 AM

i try not to use loops, however, there are quite a few on going timeout loops used for gui's and systems x_X i'm working on changing this however

xAndrewx 01-05-2006 09:09 AM

Quote:

Originally Posted by excaliber7388
i try not to use loops, however, there are quite a few on going timeout loops used for gui's and systems x_X i'm working on changing this however

Gui information only needs to be updated when something is changed.
And that's clientside, so don't look in there.

excaliber7388 01-05-2006 04:55 PM

so a clientside timeout wouldn't create any problems serverside? Because i have very few sevrerside timeouts, and i don't think any (except the one for time) loop

xAndrewx 01-05-2006 05:13 PM

Quote:

Originally Posted by excaliber7388
so a clientside timeout wouldn't create any problems serverside? Because i have very few sevrerside timeouts, and i don't think any (except the one for time) loop

It wouldn't, unless you've used a triggeraction inside the clientside timeout.

Malinko 01-05-2006 06:55 PM

Quote:

Originally Posted by dNeonb
I would have called the NPC-Server with "/npcstart". Maybe he does not like to be called "/npcstar" ^^

Remind me to kick you.

Sacred Shadow provided a good method to search for certain scripts. Keep that note in mind for future debugging.

excaliber7388 01-05-2006 09:49 PM

yeah ^^ this is strange, maybe someone else upladed a serverside timeout loop x_X i'll have to search

Kronan 01-05-2006 11:56 PM

Quote:

Originally Posted by excaliber7388
i try not to use loops, however, there are quite a few on going timeout loops used for gui's and systems x_X i'm working on changing this however

Timeout's are not normally neccessary for a GUI script.


All times are GMT +2. The time now is 05:45 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.