- Home /
Why is -nographics only available for Windows?
Is OSX and Linux getting this command or do only Windows players ever want to create headless games without GPU access?
I don't have Windows nor do I want a Windows based PVS, does that mean that Unity is useless to me? Am I actually forced to use Windows just for the -nographics command or will it be possible shock and horror to host a game server on a Linux VPS ? ? ?
Incredible thought I know... but it is true... there ARE people who don't use Winblows... No really... I can prove it... ;) ;P
All joking aside though, I want to host a game server that I create with Unity (not Photon or some or other third party kit as I have tried a bunch of them and they just don't meet my needs...!) I want a game I made using Unity networking acting as a server, running as a permanent process, running as an authorative server for my games but NOT running on Windows. Since it will be running on a VPS it means I need it running without the GPU and any kind of display...
Will this be possible in my lifetime at all?
Thanks
Answer by nicolas.abl · Sep 14, 2012 at 06:56 AM
This feature, using -nographics in the linux player, is also very important to us, for the same reason as the OP.
Answer by dreamora_old · Sep 28, 2012 at 07:38 PM
You are looking at the wrong command line flag.
What you are likely looking for is -batchmode, which creates a headless client that runs on a null graphics and null audio device.
Thanks for the reply, dreamora but I have to disagree. I thought it was batchmode but when I tried to run the game on my Linux VPS I couldn't get it to start because it kept bombing out with the message "Count not initialise the display" (or was that "Error initialising display" ? I forgot)
Either way, no matter what I tried, it kept crashing at load time saying it was unable to init the display so clearly batchmode was not the display-less mode I thought it was :(
Would need to check it in detail. There is a chance that this is potentially just a temporal limitation of the beta version that was handed out to preorderers which since then could have been fixed. We will see when the next version comes around. Best report it properly so it can get looked into
Your answer
Follow this Question
Related Questions
Headless linux server 2 Answers
Console Application 0 Answers
Unity batchmode open command line 0 Answers
Anchor point moving when connected to Server 1 Answer
Unity networking tutorial? 6 Answers