Author Topic: Linux-based Server  (Read 2646 times)

Offline mrhanman

  • Hero Member Mark II
  • *****
  • Posts: 763
Linux-based Server
« on: 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.

Offline keith.lamothe

  • Arcen Games Staff
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,321
Re: Linux-based Server
« Reply #1 on: 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.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline mrhanman

  • Hero Member Mark II
  • *****
  • Posts: 763
Re: Linux-based Server
« Reply #2 on: 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?

Offline Penumbra

  • Sr. Member Mark III
  • ****
  • Posts: 464
Re: Linux-based Server
« Reply #3 on: 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?

Offline Penumbra

  • Sr. Member Mark III
  • ****
  • Posts: 464
Re: Linux-based Server
« Reply #4 on: 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.

Offline keith.lamothe

  • Arcen Games Staff
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,321
Re: Linux-based Server
« Reply #5 on: 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.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Toll

  • Sr. Member Mark III
  • ****
  • Posts: 452
Re: Linux-based Server
« Reply #6 on: 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.

Offline keith.lamothe

  • Arcen Games Staff
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,321
Re: Linux-based Server
« Reply #7 on: 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 :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline zerikin

  • Newbie
  • *
  • Posts: 3
Re: Linux-based Server
« Reply #8 on: 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.