Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
October 15, 2019, 09:21:33 am

Author Topic: [*nix] JC2-MP Server Management Tool  (Read 2217 times)

gim

  • Newbie
  • *
  • Posts: 5
    • View Profile
[*nix] JC2-MP Server Management Tool
« on: December 23, 2014, 10:44:52 pm »
I wrote a shell script, similar to this, but with a bit different approach technically and visually. It uses GNU Screen in a back-end. Works only on GNU/Linux and other *nix. Tested on Arch Linux and Ubuntu Server 14.04.

The script provides:
  • Automatic user-friendly JC2-MP server installation
  • Server management: start, stop, restart
  • Server update
  • Server status check
  • Server console access

Download

Script is available in my GitHub repository. (raw link). To use it, you need GNU Screen installed and some dependencies for steamcmd if you're running 64-bit system.

For example, if you're running Debian/Ubuntu x64:
Code: [Select]
apt-get update
apt-get install screen lib32gcc1 libc6-i386 lib32stdc++6

How to use

First, you need to download the script and allow it to execute:
Code: [Select]
wget https://raw.githubusercontent.com/gim-/tiny-projects/master/JC2MP-Server-Management/jc2mp.sh
chmod +x jc2mp.sh

Now you can launch it:
Code: [Select]
./jc2mp.sh

The script is designed to be user-friendly, so everything after this is pretty much straight-forward. At the first start, you will get a prompt whether or not you want to install a new JC2-MP server and where:

(Note: if you want to use custom path, please make sure it's absolute (starting from /) and you have write access to it.)

Then it will ask you to specify MaxPlayer limit, port, name and description.

If everything succeeds, you will get the main command prompt. Type help to see the list of available commands:


Known issues

  • For the moment, in some cases there may be an issue when name and/or description is not being changed in the config.lua after the installation and you'll get some error messages like "too many arguments". In that case you should edit config manually using "editconfig" command. fixed since 8149e24
« Last Edit: December 24, 2014, 12:03:53 pm by gim »