Arcen Games

General Category => A Valley Without Wind 1 & 2 => AVWW Multiplayer Discussion => : mrhanman May 02, 2012, 10:37:40 AM

: Linux-based Server
: mrhanman May 02, 2012, 10:37:40 AM
Is there a way to host the server on Linux without requiring X?  I know Wine should work for the game, but is there a completely command line only way to run it?

I have a pretty beefy server I use for various things, including game hosting, but I have no display on it, or even X installed.  I was hoping to try to get a World up continuously (this thing never goes down), and I was hoping to get the community to pound the crap out of it to see when it breaks.  I think we could get 30+ people on it, easy.
: Re: Linux-based Server
: keith.lamothe May 02, 2012, 12:57:44 PM
Sorry, we've not found a way to run the unity player that doesn't require a graphics layer.  They have switches for -nographics or whatever, but we've not been able to get it to work.
: Re: Linux-based Server
: mrhanman May 02, 2012, 01:58:58 PM
Ah, that's unfortunate.  I suppose it isn't feasible to for you to build a dedicated server without Unity involved at all, right?  Just with whatever is required for the server to function?
: Re: Linux-based Server
: Penumbra May 02, 2012, 02:11:04 PM
I ran it with "-batchmode" and I saw the process appear, but no window. It's Unity's "headless" mode. I just killed it after, but didn't test. Dang.

Does the server still work then? Or is there game logic being interrupted without graphic updates?
: Re: Linux-based Server
: Penumbra May 03, 2012, 10:19:26 AM
I ran it with "-batchmode" and I saw the process appear, but no window. It's Unity's "headless" mode. I just killed it after, but didn't test. Dang.

Doesn't work.
: Re: Linux-based Server
: keith.lamothe May 03, 2012, 08:36:34 PM
Ah, that's unfortunate.  I suppose it isn't feasible to for you to build a dedicated server without Unity involved at all, right?  Just with whatever is required for the server to function?
I wish, I dearly wish.

But no.
: Re: Linux-based Server
: Toll May 09, 2012, 04:14:32 PM
I ran it with "-batchmode" and I saw the process appear, but no window. It's Unity's "headless" mode. I just killed it after, but didn't test. Dang.

Doesn't work.
Judging by an earlier response from Chris, it uses the framerate to advance the world. No framerate = no world advancement.
: Re: Linux-based Server
: keith.lamothe May 09, 2012, 04:37:01 PM
Judging by an earlier response from Chris, it uses the framerate to advance the world. No framerate = no world advancement.
Hmm.  I don't think it doesn't call Update() on the main camera object at all... but that's a possibility, I suppose.  Not sure how it could be used to do anything, then :)
: Re: Linux-based Server
: zerikin July 17, 2012, 04:51:06 PM
I got one up using X and wine, you could always use virtualbox or some other VM if you don't want X on the main server.