Post by Vivian on Dec 7, 2021 18:51:04 GMT -5
Note, this is NOT the main page for setting up a NFC server. This is for an old version, 1.7.8. The page for setting up a server for the latest version of NFC can be found here
Making the server jar:
Part 1: Preparing the CraftBukkit jar to patch
The first file you'll need is a vanilla CraftBukkit 1060 jar. Build 1060 is the only version that will work with the patch[/div]
The jar should have a SHA-256 hash of aa7e750cea03b1fd9e0feb3c2214a7f5d18fee5677fd39ec7784f3a9f820eb28 & an MD5 hash of 3a7c88414eb684d5a582b6c53ce23296
Due to legal issues we cannot provide a direct download to this. You should be able to find the file if you Google (or Bing) something along the lines of "Minecraft CraftBukkit 1.7.3 1060".
Canyon and other derivatives of 1060 WILL NOT WORK!
Canyon and other derivatives of 1060 WILL NOT WORK!
Then, you'll want to download this file: www.mediafire.com/file/tj2veilgchi3y2y/nfcpatch_178.xdelta/file
If this opens a page full of confusing text, right click it and save it as a .xdelta file.
After that, go to your OS below and use the guide to setup an application called 'xDelta', to patch your jar.
Windows:
NOTE: 7-Zip (Recommended) or WinRAR may be required to extract the files from the .rar below!
Download and extract the xDelta GUI here from the .zip to a folder: github.com/marco-calautti/DeltaPatcher/releases
If you want to use the command line instead, grab this .exe instead: github.com/LO6AN/New-Frontier-Craft/blob/master/runtime/bin/xdelta3.exe
Linux:
Simply run the following commands:
sudo apt update |
sudo apt install xdelta3 |
macOS:
Install Homebrew to get the 'brew' command needed for the next step: brew.sh/
Now run this command:
brew install xdelta |
Part 2: Patching the Jar
Now, for the best part. Let's make this boring old vanilla Bukkit 1.7.3 jar into an NFC jar!
Windows XDeltaUI:
If you chose to use the GUI on Windows, open the xdeltaUI.exe file.
Make sure you're in the 'Apply Patch' tab.
For 'original file', select the vanilla Bukkit jar, for 'patch file', select the .xdelta file you downloaded in the last step of part 2.
For the output, it can be named anything you want, but you must add the .jar file extension manually, it will not be added for you. So your file should be named something like "server.jar"
Terminal on Windows, Linux, and macOS:
If you're not using XDeltaUI, open a terminal and use 'cd' to navigate to the folder your files are in.
Run the command below, where 'bukkit' is for whatever your bukkit jar is named, 'nfcpatch' for whatever the .xdelta patch is named, and 'jarname' for what you want your server jar to be named. File paths work too.
Do not erase the quotation marks, this ensures the command runs with no errors regardless of the file name or path.
Windows | xdelta3.exe -d -s "bukkit.jar" "nfcpatch.xdelta" "jarname.jar" |
Linux | xdelta3 -d -s "bukkit.jar" "nfcpatch.xdelta" "jarname.jar" |
macOS | xdelta3 -d -s "bukkit.jar" "nfcpatch.xdelta" "jarname.jar" |
If your terminal doesn't recognize the command, precede the command with the characters "./"
Running the jar:
Is NFC your first server jar and you have no idea how to run this thing? Don't worry, we got you!
Is NFC your first server jar and you have no idea how to run this thing? Don't worry, we got you!
Part 1: Downloading Java
If you already have Java installed, you can skip this step.
Go to this website: www.java.com/en/download/manual.jsp
Download the one for your operating system. (If you're on Windows, you want the 'Offline' versions)
If you've got a 64-bit system, it's highly recommended you get the 64-bit version to be able to allocate more RAM to Minecraft if needed.
Part 2: Running the jar
Now, we'll need to create a script to run our server.
First of all, if you're running on Windows, it's recommended you go to your file explorer, view, and then untick the option to hide file extensions.
If you messed up the earlier step of adding the .jar to the name of the server file, you can fix that now.
Next, for Windows, create a ".bat" file with any name. For Linux, create a ".sh" file with any name, and for macOS, create a ".command" file
Make sure you create it in the same folder that your jar is in.
Copy the following arguments into it, where "jarname" is replaced with what you named the server jar.
Windows | java -jar -Xmx4G -Xms4G "jarname.jar" |
Linux | java -Xmx4G -Xms4G -jar "jarname.jar" |
MacOS | exec java -Xmx4G -Xms4G -jar "jarname.jar" |
The numbers before the "G"s are the amount of gigabytes of RAM used. I use 4 gigabytes in this example. You can change this to any number you want, or you can change the "G" to an "M" for megabytes instead.
If you're on Linux, and you're running the .sh with a GUI instead of the terminal, edit the file's properties, tick 'Allow executing files as program' and then when running it, click 'run in terminal'.
Part 3: Turning off Online Mode
Beta 1.7.3, and by extension NFC Beta 1.7.8, lack proper authentication. The original auth servers that they used back in the day have been broken by Mojang, due to the URLs they originally utilized no longer being in use. Because of this, any players that try to join the server when online mode is turned on will not be able to join
To fix this, exit the server by typing the "stop" command into the terminal window. Then, edit the server.properties file in the NFC server directory. On line 7 of that file it will say "online-mode=true". Change this to "online-mode=false", and relaunch the server.
It is heavily recommended you install authme to increase the security of the server, as this will prevent players from being able to log into one another accounts dev.bukkit.org/projects/authme/files/540724
Now, run it, and there you go! If everything worked out the server should be up and running, and you should see mod_NewFrontier 1.7.8 has loaded via ModLoaderMP