Support for Hurtworld ?
Seems to require some specific options, but should not be very hard to implement. That game seems to be very promising, and unlike Rust, it supports Linux server, even thought it's the same engine. L-O-L.
OK, so I tried the server in manual mode, and with the help of some other script that corrects a missing .so file... It's a bit different than source servers of course (Unity engine being used here).
So in case if you're willing to support this game (that has a poor linux support for now, i won't hide it... hopefully they don't do like Rust), here are some infos :
x64 launcher doesn't work yet. We have to use the x86 one. I had issues getting the console... for now, my tmux session seems empty, even if the log works (at least it gives launching info, but not client actions info) and clients can successfully connect to the server and play.
Standard launch options should look like this : tmux new-session -d -s hurtworld '/home/YOUR USER NAME/YOUR INSTALL DIR/Hurtworld.x86 -batchmode -nographics -exec "host 12871;queryport 12881;maxplayers 20;servername Linux Test Server" -logfile "gamelog.txt"'
Some references that helped me : https://www.reddit.com/r/hurtworld/comments/3gcnoq/linux_user_with_a_key_here/ (devs announcing linux server support) http://www.from-beyond.com/?p=526 (nice work from this guy) http://hurtworld.wikia.com/wiki/Hosting_A_Server (very poor official documentation)
Cheers :beers:
Thanks for this. I would be happy to add this when possible. 7 Days to die server is also Unity. If you want you could have a play and see if you can get it running by using the 7 days to die script as a base. It may only be a case of changing the variables. I guarantee this would be released quicker if you can get started and at least get a server running with LGSM. I can tidy up any rough edges such as checking details is correct etc.
Cool. Well i'm on it, but i'm experiencing issues trying to keep those quotes into launch options... I've been struggling for like 2 hours for this ridiculous problem !
So i'm trying it in another empty script...
parms='-batchmode -nographics -exec '"'host ${hostport} ${map} ${save};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode}'"' -logfile '"'${logfile}'"' '
will return
-batchmode -nographics -exec 'host 12871 ;queryport 12881;maxplayers 20;servername Hurtworld LGSM Server;creativemode 0' -logfile 'gamelog.txt' test done
So as you can see, it shows ' instead of ".
And parms='-batchmode -nographics -exec "host ${hostport} ${map} ${save};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode}" -logfile "${logfile}" '
Will not return the variables... -batchmode -nographics -exec "host ${hostport} ${map} ${save};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode}" -logfile "${logfile}" test done
I need a hand on how to do that !
Edit : BTW i tried with this : parms='-batchmode -nographics -exec "host 12871 ;queryport 12881;maxplayers 20;servername Hurtworld LGSM Server;creativemode 0" -logfile "gamelog.txt"'
And the server fails to start, or immediately close, so i can't get to the console, and no logfiles are created. So these quotes are definately a problem anyways.
Also, when it starts, it says :
[ OK ] Starting hurtworl-dserver: UNAVAILABLE hurtworld@lrob:~$ ./hurtworldserver console
Even if it actually starts. I checked my processes, it seems like that user (the only one i used for my tests since the beginning) doesn't have any other process running.
Do you have a fork? I could take a look at it and suggest fixes easily :) However this may work :)
parms="-batchmode -nographics -exec \"host ${hostport} ${map} ${save};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode}\" -logfile \"${logfile}\" "
The slash ! I'll try that tonight if i'm not too drunk or too tired when i get home, or tomorrow ! Thanks !
OK, the server closes instantly every time, and it makes weird errors when coming to servername.
host 12871 queryport 12881 maxplayers 20 servername \e[0 31mUNAVAILABLE\e[0m Unknown command: 31munavailable\e[0m SteamAPI_GameServer.Init() failed. Closing network connections... Abort running Threads: 1
It also created this strange empty files at root (31munavailable\e[0m, host, queryport, servername... the commands in the end), don't know why.
Maybe it's because i've got 2 interfaces and i don't know the command to select the right IP (or maybe it doesn't exist). But i don't think so as i've been able to make this work in standalone.
BTW, here is my fork https://github.com/UltimateByte/linuxgsm/blob/master/Hurtworld/hurtworldserver
OK, the fix for this server was copying steamclient.so to serverfiles/Hurtworld_Data/Plugins/x86. It seems like it's also required to copy it to /Hurtworld_Data/Plugins/x86_64/steamclient.so to run the x64 server. Now i'm able to start it correctly and clients can connect.
BTW, with your command, servername and stuff still fail. Edit : It may be a missing \ at the end of the logfile variable. I can set it manually and it works thanks to the " trick.
Now the next issue will be the console... Maybe related to the red "UNAVAILABLE" message when starting ? Issue with the way tmux starts the server ? http://image.noelshack.com/fichiers/2015/51/1450567769-emptyconsole.png The gamelog.txt shows everything, but the console doesn't.
Edit : OK, if i start it directly from the executable, the console shows nothing too. http://image.noelshack.com/fichiers/2015/51/1450569007-console-empty.png
Looks like your having fun :P.
UNAVAILABLE just means that the server name or other variable is not present. Normally not too important.
I found the same with 7 Days to Die not runing much on console. I wouldnt worry about it.
@UltimateByte You want to be a collaborator for this project? You do loads of work and help out loads. Seems to make sense you become one.
Also I send you a friend request on Steam
Let's work on this !
Nice idea ! ;-)
are you fix hurtworld ?
@Dids91 : It's coming soon i guess. It already installs, fixes itself, and runs OK with standard config options. dgibbs64's gonna have to check a few things, and the script will be released. If you're in a hurry, you can already try the dev branche if you wish, but expect some missing functions for now (details function is to do, monitor function is to check). https://github.com/dgibbs64/linuxgsm/tree/hurt-world Go find the hwserver script, and make a normal install. Note that you're gonna have to update the script and functions manually with the final release when it's out.
The blank console is a normal thing in Hurtworld, they don't provide it. Maybe it's gonna be accessible with telnet as for 7 Days to Die. We're gonna have to check. For now you have to use the addadmin STEAMID64 in start parameters (parm="....") and do your admin stuff via the game console.
Thank you for dev branche i love you !
good job !
Well, i guess it'll be releasable soon.
What works :
- install
- validate
- start/stop/restart
- monitor
- details
- update
Specific features :
- Fix for hurtworld server
- You can add admins at start
- You can run the unstable 64 bit launcher for when it eventually gets fixed by Hurtworld's team.
LGSM adds/adaptations :
- don't create a config file
- gsquery working And i guess that's it.
Remaining on checklist : @dgibbs64
- See if we can use telnet with it as for sdtd.
To anyone already using it, you can update the script, configure it, then do ./hwserver update-functions , and you should be good to go ! But i recommend you to update it again once it's released so you're back into the main branche.
This is an honor to work on that project, hope it serves you well.
i'm testing branch dev oxide work ! very nice job ;-)
@Dids91 Where did you get your working Oxide version for Linux ? I'd like to try that too.
yes version linux https://github.com/OxideMod/Snapshots/blob/master/Oxide-Hurtworld_Linux.zip
but Maj http://oxidemod.org/threads/game-update-the-server-can-not-find-outdated.13736/#post-154745
CHMOD 777 to fix oxide !
Hello, your hurtworldserver can use?