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.

Lance 01-06-2006 12:00 AM

Quote:

Originally Posted by Malinko
Remind me to kick you.

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

Yeah, deleting the scripts and then finding the problem is an awesome idea! It sure beats the heck out of finding and removing the problem!

excaliber7388 01-06-2006 12:32 AM

actually, i just reduced severside timeouts, and deleted svr side loops (i think all of them, at least reduced in size) so less lag :) havent had any problems...yet ;)

excaliber7388 01-31-2006 03:12 AM

Well, it's happened again. My NPC server refuses to come back, and we were getting along too! :( There are no serverside loops or timeouts, and i removed a few useless NPCs and weapons. The NPC server still will not start with the /npcstart or the admin pannel x_x

Kronan 01-31-2006 06:49 AM

Quote:

Originally Posted by excaliber7388
Well, it's happened again. My NPC server refuses to come back, and we were getting along too! :( There are no serverside loops or timeouts, and i removed a few useless NPCs and weapons. The NPC server still will not start with the /npcstart or the admin pannel x_x

It's running away from your amazing scripts!

excaliber7388 01-31-2006 04:33 PM

=|

Yen 01-31-2006 05:41 PM

Quote:

Originally Posted by Kronan
It's running away from your amazing scripts!

I giggle'd.

Jackel9 01-31-2006 05:55 PM

Lol Did someone like ban the NPC Server lol
It's Possible
just like Disconnecting the NPC Server....

Skyld 01-31-2006 08:28 PM

Quote:

Originally Posted by Jackel9
Lol Did someone like ban the NPC Server lol
It's Possible
just like Disconnecting the NPC Server....

The NPC-Server is not affected by a ban.

excaliber7388 01-31-2006 10:15 PM

okay, well it may as well be banned x_X it still wont come back. This is the worst it's ever been, and the conditions aren't as bad (no timeouts serverside, less weapins etc). It's now been off for a day x_X. can someone please check on this??

excaliber7388 02-01-2006 11:35 PM

To late to edit
Anyway, the NPC server is FINALLY back (after being down for about two days). However, I would still like to know why it went down in the first place. I am reducing loops of all kinds, both server and clientside, and I'm continuing to check the scripts. Is there anything else I should do to prevent this?

Maniaman 02-01-2006 11:47 PM

clientside loops will not affect the npcserver, unless you are triggering the server in these loops.

excaliber7388 02-01-2006 11:53 PM

I should have been more specific ^^ but yeah...i was thinking, what would happen if I made another NPC, and made it like the NPC server? I doubt anthing, but I was wondering, since in stats it says # of NPC servers:1

Antago 02-02-2006 01:06 AM

Runaway NPC Servers! Who ever thought this day would come? Well, I tell you, NPC Admins everywhere may be trying many different forms of methods of discipline.

I am concerned that you bring up the option of timeouts. Timeouts usually only work for children, I think NPC Servers may be different. Perhaps purchasing a leash or sending it to the corner would be better. Or is the corner a part of the timeout?

Usually timeouts involve sitting in your room, but because I am not sure of the circumstances, I cannot say for sure. But from a psychologist's point of view, I would suggest possibly depriving it of scripts as a form of punishment might help. Whenever it comes around again, throw it a script as a little reward. Little by little, you may be able to win its trust back.

But I am just not sure a mere timeout is enough in tragic and rebellious situations like these.

excaliber7388 02-02-2006 02:37 AM

Quote:

Originally Posted by Antago
Runaway NPC Servers! Who ever thought this day would come? Well, I tell you, NPC Admins everywhere may be trying many different forms of methods of discipline.

I am concerned that you bring up the option of timeouts. Timeouts usually only work for children, I think NPC Servers may be different. Perhaps purchasing a leash or sending it to the corner would be better. Or is the corner a part of the timeout?

Usually timeouts involve sitting in your room, but because I am not sure of the circumstances, I cannot say for sure. But from a psychologist's point of view, I would suggest possibly depriving it of scripts as a form of punishment might help. Whenever it comes around again, throw it a script as a little reward. Little by little, you may be able to win its trust back.

But I am just not sure a mere timeout is enough in tragic and rebellious situations like these.

Well, we give him plenty of love, and support his crazed plans for graal world conquest (watch out other servers, he's coming ;) ), but for some reason he desides to hang out for a bit...I think he went out drinking last time. Anyway, I want to know if I can have another one, or how to repair this one ;) But I realy would like a nother, a back up for when our first one runs away, if at all possible. However, getting this one some help would be nice too ^^

Yen 02-02-2006 04:26 AM

Quote:

Originally Posted by Antago
Runaway NPC Servers! Who ever thought this day would come? Well, I tell you, NPC Admins everywhere may be trying many different forms of methods of discipline.

I am concerned that you bring up the option of timeouts. Timeouts usually only work for children, I think NPC Servers may be different. Perhaps purchasing a leash or sending it to the corner would be better. Or is the corner a part of the timeout?

Usually timeouts involve sitting in your room, but because I am not sure of the circumstances, I cannot say for sure. But from a psychologist's point of view, I would suggest possibly depriving it of scripts as a form of punishment might help. Whenever it comes around again, throw it a script as a little reward. Little by little, you may be able to win its trust back.

But I am just not sure a mere timeout is enough in tragic and rebellious situations like these.

I rofl'd

excaliber7388 02-02-2006 04:33 PM

Yeah, the timeout's in a corner, at 0,0 XD but anyway ;) is it possible to have more than one NPC server to handle the work? Would it be as simple as creating a new NPC that is of the control type and setting all the flags and scripts a like, so that there is a backup?

Skyld 02-03-2006 01:00 AM

Quote:

Originally Posted by excaliber7388
Yeah, the timeout's in a corner, at 0,0 XD but anyway ;) is it possible to have more than one NPC server to handle the work?

I highly doubt it. Surely both NPC-Servers would run each script, there would be no benefit.

excaliber7388 02-03-2006 03:12 AM

Yes, true, however what if yuo divided stuff up between them somehow, and then if one crashes, use the other to take it's work, while you work on finding and fixing the problem.

excaliber7388 02-04-2006 07:41 PM

It ent down again today. It's back up. I have to know whats wrong x_X

excaliber7388 03-20-2006 11:15 PM

ARG! This time it happened with no new changes, wtf?
And why won't the Admin Pannel ever work? I hit restart, nothing happens, i hit stop, nothing happens, and obviously, start does nothing either. Sometimes they work, but recently, i hit confirm, and nothing happens x_x

Skyld 03-20-2006 11:26 PM

Quote:

Originally Posted by excaliber7388
ARG! This time it happened with no new changes, wtf?
And why won't the Admin Pannel ever work? I hit restart, nothing happens, i hit stop, nothing happens, and obviously, start does nothing either. Sometimes they work, but recently, i hit confirm, and nothing happens x_x

In RC, type /stats and see if any NPCs are taking up an unusual amount of time.

excaliber7388 03-21-2006 03:52 AM

I do, normally there aren't any NPCs with more than 5% (I'm being generous there, it's normally around 1% or less for the top 20 scripts)

Admins 03-21-2006 03:55 AM

Kind of weird problem yes. I guess some level contains a local npcs with bad script, and once someone enters the room it goes into endless-loop.

excaliber7388 03-21-2006 04:15 AM

Thats possible, since the past few have occured when there were no recent changes to the script. I suppose I could start tracking them down, there may be a constantly true while loop serverside somewhere (I hope not, I'd feel like an idiot, but thats probably a problem)

Admins 04-04-2006 06:53 PM

The freezing should be fixed now.
Problem were things like 'while (playertouchsme) { }' which confused the optimizer which decides if an object has a script or not (and can be removed from the serverside npcs list)


All times are GMT +2. The time now is 07:41 PM.

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