![]() |
New NPCServer Bug: return in switch statements
This started happening after Era was restarted earlier today.
PHP Code:
It appears that a return statement in a switch causes everything below it to be ignored, even if that case shouldn't have been executed. This is new functionality which is breaking a few things on Era. It did not happen before the server restart today. This bug also appears to exist clientside on both v5 and v6. |
Zodiac's (npcserver) is ****ed and won't even start up without crashing now.
|
Zodiac: needed to restart the gserver.
Switch statement: seems to be an optimization bug, if you correctly put case "123": { blabla } then it will not happen, didn't had any problem on era and classic iphone :) will fix it today though |
This bug pretty much broke everything on Zodiac.
|
Quote:
|
Ok fixed the problem and uploaded a new npcserver, may be should restart all servers sometime soon.
|
Quote:
edit: era is offline until you can fix this! edit 2: restarting the gserver seems to have fixed it...for now... |
1 Attachment(s)
Having issues with the NPC-Server again, whenever we update:
levels/icons/icons.txt It causes the NPC-Server to crash. I've also caused it to crash by uploading a large text file and deleting it. Attached it. |
Is it possible that some script is catching the onLevelFileUpdated event and then doing nasty things? I can check the problem sometime soon.
|
Quote:
|
Ok the problem was not the file size, it was the problem that there were at least 3 versions of the same file (same filename) on the server. I'm fixing it in this moment.
Update: fixed on Zodiac and uploaded a new version. |
NPC is crashing every 30 minutes to an hour again, getting very tired of backups slowing down the playerworlds servers and the lack of stability as of late.
|
It shows in the logs that it got disconnected, and didn't crash. I will try to debug the npcserver tomorrow.
|
Quote:
|
Restart your gserver. The new problem on Zodiac was related to a script adding tons of array members to a client. variable, might need to add limit of array length at least for client and clientr variables.
|
| All times are GMT +2. The time now is 02:05 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.