Open Moltenkore opened 9 years ago
Hey darkrising,
Glad you are enjoying the scripts. Yes it is possible to get Multicraft to acknowledge the server is online. The trick is the parsing settings inside the .jar.conf, take a look at
https://github.com/Standouthost/Multicraft/blob/master/jar/my.jar.conf
And specifically the [parse_startup] lines, this regex is what tells Multicraft the server has launched correctly. Find the message tshock sends when it is running, and add that regex to the line, and it should show it online.
Let me know if you get it working, would love to include your fix here for others.
After some testing later I finally got it to work. ... [config] name=TShock (Terraria)
[encoding] encode=latin-1 decode=latin-1
[start] command="{JAR_DIR}"/tshock.sh "{SERVER_DIR}" "{PORT}" "{MAX_PLAYERS}"
[commands] say=say list=playing save-on=save-on save-off=save-off save-all=save stop=/exit tell=tell give=give connect_short=has joined connect=^(.+) has joined disconnect_short=has left disonnect=^(.+) has left
[parse_startup] start=Type 'help' for a list of commands.
[parse_connect] start=^(.+) has joined.
[parse_disconnect] start=^(.+) has left.
[parse_clean] start=(^[>\r]+|^[:\s]+|\x1b[[0-9;]+m) ... ...
SERVER_DIR="$1" SERVER_PORT="$2" MAX_PLAYERS="$3" SERVER_IP="88.198.2.233"
KILL=/usr/sbin/lsof -t -i @"$SERVER_IP":"$SERVER_PORT"
kill -9 "$KILL"
export PATH=$PATH:/usr/bin/mono cd $SERVER_DIR /usr/bin/mono TerrariaServer.exe -port $SERVER_PORT -maxplayers $MAX_PLAYERS -world Terraria/Worlds/main.wld -autocreate 3 ...
Player count still doesn't work but that's not the biggest issue ever.
Great job man, thanks for feeding back your solution
Thank you! I did not know it stopped working!
Bill Sr.
Wm Cruz Carroll Sr., Owner TWG Hosting Senior Systems Engineer / Support / Sales 916-955-4526 Direct Line Skype: TheWebGamer e-mail: support@trueworldgaming.com e-mail: wmcruzcarroll@gmail.com
CONFIDENTIALITY NOTICE:
This communication and any documents, files or previous e-mail messages attached to it, constitute an electronic communication within the scope of the Electronic Communication Privacy Act, 18 USCA 2510. This communication may contain non-public, confidential, or legally privileged information intended for the sole use of the designated recipient(s). The unlawful interception, use or disclosure of such information is strictly prohibited under 18 USCA 2511 and any applicable laws. If you are not the intended recipient, or have received this communication in error, please notify the sender immediately by reply email at wmcruzcarroll@gmail.com or by telephone at (916) 955-4526 and delete all copies of this communication, including attachments, without reading them or saving them to disk. Thank you.
On Wed, Dec 17, 2014 at 6:29 PM, Hannon notifications@github.com wrote:
After some testing later I finally got it to work. ... [config] name=TShock (Terraria)
[encoding] encode=latin-1 decode=latin-1
[start] command="{JAR_DIR}"/tshock.sh "{SERVER_DIR}" "{PORT}" "{MAX_PLAYERS}"
command remapping
[commands] say=say list=playing save-on=save-on save-off=save-off save-all=save stop=/exit tell=tell give=give connect_short=has joined connect=^(.+) has joined disconnect_short=has left disonnect=^(.+) has left
[parse_startup] start=Type 'help' for a list of commands.
[parse_connect] start=^(.+) has joined.
[parse_disconnect] start=^(.+) has left.
[parse_clean] start=(^[>\r]+|^[:\s]+|\x1b[[0-9;]+m) ...
Player count still doesn't work but that's not the biggest issue ever.
— Reply to this email directly or view it on GitHub https://github.com/Standouthost/Multicraft/issues/6#issuecomment-67432778 .
Hello,
Multicraft says TShock is offline (even though its not), I'm running Ubuntu 14.04 with tshock running in mono (I tweaked the script slightly). Is there anyway to get Multicraft to know that tshock is actually online?