Making new server any tips what to do or not do?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here

Hippieshaman

New Member
Jul 29, 2019
12
0
0
How can you write so much stuff! And know so much.
Ohhh, I see "Archmage" written in those piccies. Brings me back to Skyrim...

I've been managing Minecraft servers since beta 1.8, Bukkit servers since 1.0 and FTB since 1.2.5, so I've built up a bit of experience over the past 3-4 years.
 
  • Like
Reactions: RealSketch

XxSaRobz09xX

New Member
Jul 29, 2019
110
0
0
MCEdit and NBTEditor are invaluable tools for server repairs. After I started using them, my need for backups dropped from "Really need them" to "Wasting space".

I guess I can briefly explain how I use them for recovery through examples of real crashes I've had to fix.

MCEdit:
When and if my server crashes, I always look in the log to see what causes it:
"java.lang.ClassCastException: net.minecraft.nbt.NBTTagByteArray cannot be cast to net.minecraft.nbt.NBTTagCompound"

Further down in the crash log I can pick up some more useful data:
"Block location: World: (-168,75,54), Chunk: (at 8,4,6 in -11,3; contains blocks -176,0,48 to -161,255,63), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)"

Now the fun part, with this info, I don't have to download the whole world to fix it, saving me time to download and upload to and from the server. In the crash log, I'll see that the affected block is in the region -1,0.

Now I'll go to the server files through FTP and grab the region file inside ../world/region
8eZIi.png

I'll save that file in a folder on my local machine called ../World Repair/world/region

Next I'll grab the level.dat file in ../world
8eZU2.png

I'll save this to ../World Repair/world

Thats all the files I need, so I have to download and upload 7MB instead of 1GB. Next I'll start up MCEdit and open the level.dat file, then I'll check the crash log again and use the GOTO option to navigate to the block, which in this case is at -168,75,54. Now the tricky part, it's not always easy to navigate within MCEdit, but eventually I'll mark the right block. Then I simply delete it, thus replacing it with air and save the file. Now it's just a matter of re-uploading the region file (no need to upload the level.dat file) and replace it with the old one.

This repaired a corrupted world that instantly crashed my server over and over, and no players had any rollback of their building or inventory.


NBTExplorer:
So lets say a player have a bugged item/block in his inventory, making that player crash upon joining the server(this will create a crash log locally on his/hers client that will provide useful).

Download the player.dat file from the server ../world/players, then open it with NBTExplorer and navigate into the players inventory.
8f0se.png

Here I have found an item named "Doom Hammer". This is not a crashing item, but will do in this example. Let's pretend this item is crashing the client trying to connect, simply click on the icon looking like a cardboard box right under the "Inventory: 12 entries" and then click the red X on the toolbar. Save the file and replace the one on the server with the new one.

Let's take another example. Say I'm stuck in a death loop, as in for some reason my spawn point is below bedrock. So everytime I respawn, I just die again, over and over..

Find the players Spawnpoint in the list and change it
8f0L8.png

Set it to the right dimension and adjust the X, Y and Z to a safe place. Save the file and replace the old one on the server.

Caution!

Always make a backup of the files you are trying to recover, it is much easier to restart the recovery with the original corrupt file instead of having to recover a failed recovered file.
Took a screenshot that, could be useful in the future!


Sent from my iPhone 5s using Tapatalk
 
  • Like
Reactions: RealSketch

trajing

New Member
Jul 29, 2019
3,091
-14
1
A few words about chunkloaders
Don't disallow chunkloaders. That's called being an asshole. Instead, change the chickenchunks config so they behave like personal anchors without the need for ender pearls. Also decrease the chunk limit. This is called looking out for your server whilst not being an asshole.
A few words about Mystcraft
Be nice about Mystcraft worlds. Mystcraft is not the most stable thing, so tell your players that it is allowed but not recommended and if they get into the loop of infinite crashes, it's their own fault.
A few words about quarries and world-eaters
A "digger" age is generally the best choice, little to no instability and as overworld like as possible.
 
  • Like
Reactions: RealSketch

mjacobinc

New Member
Jul 29, 2019
26
0
0
Hey everyone who took their time and wrote these awesome comments to help me and other people, who are going to start his/her server sooner or later, this is some very good information for everyone who is server owner I hope, thank you for your time everyone and have a nice sunday evening!

-mjacobinc.
 

RealSketch

New Member
Jul 29, 2019
2,016
0
0
Hey everyone who took their time and wrote these awesome comments to help me and other people, who are going to start his/her server sooner or later, this is some very good information for everyone who is server owner I hope, thank you for your time everyone and have a nice sunday evening!

-mjacobinc.
.....:D
Why can't everybody be like this^^! LIKES FOR YOU!
 
  • Like
Reactions: mjacobinc