Author Topic: Dedicated server crashing after 10~ minutes  (Read 2772 times)

I am hosting my Defend the Castle server on dedicated, because when its non dedicated, it lags a lot for other players. I have never had a problem with the dedicated server before, and I'm not sure what the problem is. It lags everyone out, then when I try to rejoin it says "sending punch packet..." over and over. I would post the console log but nothing seems out of the ordinary, it just lags out. any help would be greatly appreciated.

There are three main factors that play a part in making everyone that plays on your server lag a lot.

The first issue is your internet speed.
If you want your server to be free of lag, you MUST have fast internet. And the server can't be hosted over Wi-Fi. The computer your hosting it on MUST be connected through ethernet, because Wi-Fi is actually pretty loving slow. If you don't have a fast internet connection, everyone else will just be lagging out because their connection to your server is slow due to your slow internet.

The second issue is RAM.
RAM is basically the memory your computer uses. No, I don't mean space on a hard drive. I mean it's the data that your computer is processing while your hosting the server. If you don't have enough of RAM (preferably 8GB or more), your computer won't be able to process much at one time and your server will act very slow as a result.

The third issue is running the server on the same computer that you use to play Blockland on.
This also kind of ties into the RAM issue. If your trying to play Blockland on the same computer that's running your server while your server is running, your server will act much slower. The only way to fix this issue is to run your server on a completely separate computer from the one you use to play video games.

So, to recap. If you want your server to run smoothly, you must have a fast internet connection, at least 8GB of RAM, and you must run the server on a completely separate computer from the one you use to play games on. Even if you choose not to follow just one of these rules, your server could suffer greatly as a result.

If you are unable to get faster internet, more RAM, or another computer, then I suggest buying a dedicated server host. Otherwise, you'll have to live with the lag.



Also, the reason you can't connect to your own server is because, since the server is being run from YOUR computer, you have to hit "query LAN" before joining. This is also true if another computer in your house is running a server that you wish to join.

-snip-
I have hosted a dedicated server before with no lag, and this was a week ago. It runs very smoothly, it just crashes, lag is not a problem.
Also, the reason you can't connect to your own server is because, since the server is being run from YOUR computer, you have to hit "query LAN" before joining. This is also true if another computer in your house is running a server that you wish to join.
I can connect to my server via internet because i'm hosting it as an internet server, that is not a problem. The problem was that when it crashed,  I could not re-join it.

Post the console log from the server.

the launcher.log is the dedicated server console log, and the console is my player's console log.

sounds like you need to get gud

the launcher.log is the dedicated server console log, and the console is my player's console log.
nop, the launcher.log seems to be your server's launcher log, not the server's console log

nop, the launcher.log seems to be your server's launcher log, not the server's console log
Okay, either way, I still have an issue with it.

bump, i'd really like some help with this.

-snip-
even when i was hosting giant cityrpg servers blockland would never use more than 500mb of ram; as for the internet connection, i'm able to host around 16 players from my home connection w/o lag and that's with like 6 stuffty megabits of upload speeds. (and yes it was hosted over wifi)

ot: try it with a default install and see if it still bugs out; also, upnp is a mess and if you have to know-how to do so, you should probably disable it in favor of actual port forwarding.

I'm not certain this will fix it, but remove:
Weapons that are flooding your console because they are a server-sided add-on trying to change the value of a client-sided object:
Weapon_PDWs
Weapon_Support
Weapon_BFShotguns
Weapon_Assault
Weapon_Recon

Server_Hitmarkers, which is flooding your console because it's trying to call CenterPrint on an AIPlayer.
Event_2DCamera, which is flooding your console because it's unable to find an object somewhere in it's code.

If your console get's flooded too much, it can cause a crash, if I recall.

Post the console log from the server, please. Be sure to replicate the problem first.

Post the console log from the server, please. Be sure to replicate the problem first.
The console.log in his post with the launcher and console .logs is the one from his server.

I'm not certain this will fix it, but remove:
Weapons that are flooding your console because they are a server-sided add-on trying to change the value of a client-sided object:
Weapon_PDWs
Weapon_Support
Weapon_BFShotguns
Weapon_Assault
Weapon_Recon

Server_Hitmarkers, which is flooding your console because it's trying to call CenterPrint on an AIPlayer.
Event_2DCamera, which is flooding your console because it's unable to find an object somewhere in it's code.

If your console get's flooded too much, it can cause a crash, if I recall.
i disabled all of these and it still isn't working