#weird logs on my server
132 messages · Page 1 of 1 (latest)
help me please D:
Post logs
Im getting the same
post the whole log
the one from when the server starts?
Yes, that is when the log starts
here it is
I also have a problem on my server and that is that when there are more than 50 users and they start to trade with the npcs, the server has a huge increase to the point that it is unplayable
Why copy paste the contents when you can upload the actual file
Something on a player is null
If you kick all players
And then let them rejoin one by one you should figure out who is causing it
but it is something that happens constantly, not with 1 single user
that'd likely indicate that you have a broken mod
I think it's Unturned related bug
I maybe will report it when I will able to reproduce it
I really dont think so. PlayerMovement just doesnt start throwing null reference exceptions
it was started when Nelson added a thing to slide from zombies head
Ooo i mean true fair point
Slight issue
How would that even be possible
It literally checks if its null
yes but Nelson tries to get gameobject
and hit tries to get gameobject from destroyed collider
Not possible the collider would be null
Oh i didnt realise it was a custom class
Kinda missed that
Silly me
However how would ControllerColliderHit not be null when its collider is?
Unless like
Well
Hm
It was destroyed after the collider hit was created?
Which is like uuh fair enough i guess
yep
Ah i see the issue
Nelson is doing
Set most recent controllercolliderhit = controllercolliderhit in the OnControllerColliderHit
And then uses it outside of that event method so its not guaranteed that the collider has not been destroyed
@ember wasp I mean you could write a silly little Bug report ig
I mean you figured it out, if you can replicate it then get the credit or something
And how could I solve it on my server?
and if anyone knows about the problems of the npcs, when buying they generate a lot of lagg and the ms shoot up a lot, I have tried deleting all the mods, all the plugins and restarting everything
as far as I know there shouldn't be any vanilla behaviour affecting that, at least not to any noticeable extent, meaning that it's almost certainly either a plugin or mod issue
the problem is to find out which specific one is causing the lagg
just try the tried-and-true method of removing (not just disabling) everything and re-adding things one-by-one to see when the issue starts happening
there is also a possibility that the server is overloaded which could cause all kinds of compounding issues
I have a vps with a lot of power, it shouldn't be an overload or so I think
I have a huge list of plugins and mods so I'm going to have to measure one by one😭
I used a boweyD program to create the npcs, could that be the problem?
servers mostly need high single-thread performance which usually isn't something that you'd get with a VPS
No, it's literally just the text editor with a GUI
there are some things that can use other threads but they're limited
plugins are often the main culprit for things like this - mods (unless they add complex behaviours) generally mostly affect RAM usage and client performance, not so much server performance itself
and where can I see that of the strength of a thread and if my server is using it?
I'm still a bit new to this sorry
well, with a VPS you could check usage with a command like top or htop assuming you're using linux
generally all threads are roughly equivalent, the problem here essentially just comes from the fact that a lot of things on the server will be using the same thread that the server is using - hence potentially overloading it with work
multi-threaded workloads, per the name, can split the work across multiple threads
for example a VPS advertised as having 4 cores/vcores/threads (all would often be used to mean the same thing in this context even if thread or vcore is generally going to be the correct one) hosting a single server could potentially never be using more than one thread no matter how many plugins/players/etc. you have
basically for single-thread performance the key factors are clock speed and IPC (Instructions Per Clock) which essentially tell you how much work that thread can do in a given amount of time
generally consumer-oriented CPUs will have higher single-thread performance as it often is the main limiting factor for things like gaming whereas server CPUs will often have more cores but perform lower on a per-thread basis
having lower single-thread performance is also fine as long as you're not limited by it and more cores is better if you can use those cores - for example if you wanted to host many servers at once on a single VPS you'd want to get one with enough vcores to match the servers' requirements
change to a more powerful host and the error still remains
the problem is that the node is going with a stable latency but my server goes from 60ms to 300ms in 2 seconds
and it goes with lag
as was mentioned it's almost certainly a plugin or mod issue, not a host issue
as I said the issue can be compounded (i.e. made worse) by low specs
but it's not the root cause
So is there a way to mitigate this error?
Yes, figure our which mod/plugin causes it and remove it
I have been looking for someone expert to help me because I do not understand what the problem could be, I have deleted many mods and many plugins but the problem persists
I can pay if necessary but I need to fix it :(
just delete everything, check that things work at that point, and re-add things one-by-one until they stop working
it's quite simple
the problem is that the error is manifested when there are many users connected
that'd usually indicate that it's specifically caused by a plugin
So you recommend me to delete all the plugins and go plugin by plugin testing?
Yes
Hello, I already tried deleting the plugins, but when I delete all the plugins the npc works fine, but when I add one the problems start
that sounds a lot like you've found the culprit
They are the plugins, but which one specifically?
because I have to delete all the plugins so that the npcs do not get bugged
if its literally all of the plugins i recommend saving most of your server data and reinstalling the server
cause im not quite sure if its the plugins you add or the server it self
I did that a few days ago and the error persists😔😔
the problem is when I interact with them the lagg appears, but when I remove all the plugins the server works fine
npcs don't give lagg whitout plugins
before we thought it was an experience problem, since our npcs trade with experience
well it could be a npc bugging with a plugin somehow. have you tried with all plugins but no npcs?
on another map with other npcs we didn't care about the error a while ago
?
Sorry my english is bad
I tried using another map and with other npcs but the lagg persist
In a long time ago i tried that
did you try without any npcs at all or just different ones?. also were the npcs made by the same person
they were npcs made by a diferent person
Some time ago this error was much more noticeable, one traded with npcs and the lagg increased and the server crashed, now it increases but not much, when there are many users it is the problem, the first time to solve it I reinstalled all the plugins and it was fixed, but after a few weeks the problem returned but with less intensity, I tried reinstalling the plugins, but it didn't work
could one of the plugins be using json files? cause when those get long they get laggy
cause unturned reads the whole json file rather then a specific part of it
which could explain why it takes time to show up again
sorry if it was asked already. figured this might be a culprit on a big server
Json wouldnt cause persistent lag only block the server or slow it down when the plugin is loaded
Id recommend removing plugins one by one until you figure out what plugin is causing issues
yeah. i believe they said they used exp as currency and it lagged when they interacted with npcs specifically
could be using the uconomy xp plugin if i remember correctly uses json.
could check rq
https://unturnedstore.com/products/95 @torn frost are you using this?
no, im using avieconomy plugin from avirockets
doesnt it still use json?
like litedb?
.db could be just about anything, we realistically can't say
plugin could be running an internal db server for all we know 
not sure
*I'm not actually trying to imply that it's doing that, it'd be really inefficient
it has a folder called database, it doesn't use mysql
Im gonna try this