![]() |
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?
|
Get rid of the script that's destroying it :o
|
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
|
I would have called the NPC-Server with "/npcstart". Maybe he does not like to be called "/npcstar" ^^
|
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.
|
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? |
You have to re-upload the scripts as .txt files, then start the npc server.
|
Quote:
Also check for while () loops that haven't been used effectively. |
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
|
Quote:
And that's clientside, so don't look in there. |
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
|
Quote:
|
Quote:
Sacred Shadow provided a good method to search for certain scripts. Keep that note in mind for future debugging. |
yeah ^^ this is strange, maybe someone else upladed a serverside timeout loop x_X i'll have to search
|
Quote:
|
Quote:
|
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 ;)
|
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
|
Quote:
|
=|
|
Quote:
|
Lol Did someone like ban the NPC Server lol
It's Possible just like Disconnecting the NPC Server.... |
Quote:
|
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??
|
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? |
clientside loops will not affect the npcserver, unless you are triggering the server in these loops.
|
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
|
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. |
Quote:
|
Quote:
|
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?
|
Quote:
|
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.
|
It ent down again today. It's back up. I have to know whats wrong x_X
|
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 |
Quote:
|
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)
|
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.
|
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)
|
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.