Basic setup guide for linux.
Confused
Wait. What? Join Date: 2003-01-28 Member: 12904Members, Constellation, NS2 Playtester, Squad Five Blue, Subnautica Playtester
Hey everyone,
I finally got around to updating this post 258 roll out. I decided that the obvious choice was to move it to the wiki. That way if I get hit by a bus some one else can update the thing.
Wiki Link
Please help me keep this up to date.
Important excerpts:
As of version 258 Mesa Drivers will not work with NS 2. You have to use either nVidia or AMD binary drivers.
You can run the game from the steam client which is recommended or via the command line as follows:
steam steam://rungameid/4920
Max says: You can run NS2 outside the Steam environment by using the Steam runtime. This is what we do for development. This readme describes more https://github.com/ValveSoftware/steam-runtime/blob/master/sdk/README.txt
here is how this goes down:
$cd ~/path/steam-runtime/sdk
$./shell-i386.sh
$ cd ~/.local/share/Steam/SteamApps/common/Natural\ Selection\ 2/
$ run.sh ~/.local/share/Steam/SteamApps/common/Natural\ Selection\ 2/ns2_linux32
Known bugs (updated March 7, 2014)
Legacy google docs link
I finally got around to updating this post 258 roll out. I decided that the obvious choice was to move it to the wiki. That way if I get hit by a bus some one else can update the thing.
Wiki Link
Please help me keep this up to date.
Important excerpts:
As of version 258 Mesa Drivers will not work with NS 2. You have to use either nVidia or AMD binary drivers.
You can run the game from the steam client which is recommended or via the command line as follows:
steam steam://rungameid/4920
Max says: You can run NS2 outside the Steam environment by using the Steam runtime. This is what we do for development. This readme describes more https://github.com/ValveSoftware/steam-runtime/blob/master/sdk/README.txt
here is how this goes down:
$cd ~/path/steam-runtime/sdk
$./shell-i386.sh
$ cd ~/.local/share/Steam/SteamApps/common/Natural\ Selection\ 2/
$ run.sh ~/.local/share/Steam/SteamApps/common/Natural\ Selection\ 2/ns2_linux32
Known bugs (updated March 7, 2014)
- Some ATI users are having issues compiling shaders.
- NS2 is not compatible with any mesa drivers before version 9.0.x (3.1 Core profile required)
- For many users using high texture quality causes an out of memory crash nearly immediately (32 bit memory limit)
Legacy google docs link
Comments
If you have an AMD graphic card, deactivate the 'Catalyst A.I.', after that my FPS went from ~ 10 to 40 FPS.
For starting steam with LANG=en_US steam, it's better to add a & directly after 'steam', that will prevent Steam from spamming your console with mostly useless information, it'll put Steam into the 'background' so that you could do other things in the console.
I hope this is an appropriate place to post this.
I'm running NS2 under Fedora 19 64 bit. Gnome Shell 3.8 is my window manager.
I encountered terrible FPS issues during almost all play tests, even under lowest settings.
I found that this fix HUGELY improved all round performance of NS2 under Linux.
Keep in mind to revert the window manager replacement you will have to restart X. Either "sudo init 3; sudo init 5" or restarting your computer.
1) From your Gnome desktop, make sure Steam is running
2) Open a terminal and run "metacity --replace" This will replace Gnome shell.
3) Launch NS2 from the currently open Steam window.
4) Enjoy your improved framerate.
I am not sure why Gnome performance is so much worse than metacity, but I know I have used this fix for other games (ie. Planetary Annihilation)
Also for some reason enabling bloom effects caused graphical distortion during this mode.
I'd be curious if anyone has any further insight into this fix or issue.
Zotac Geforce 560 Ti
Intel i7 3770k cpu @ 4.4GHz
32GB Ram
Fedora 19 64-bit
Kernel 3.10.9-200.fc19.x86_64
Main menu works fine. Settings are minimal.
TF2 on the other hand runs pretty much flawless, but i want NS2.
Btw there is no info in the document where or how to run this for newcomers. All you get are the commands. Maybe you wanna add that for those that are........confused.
Cheers.
What you need to do is whine at Intel for not updating their Linux drivers (the device should be capable since the drivers support OpenGL 4.0 under Windows). Until then, unless I am mistaken, you are stuck with DirectX/OpenGL under Windows. I would love to be proven wrong, but I think my research is accurate as of late September 2013.
It looks like the latest mesa driver might work, since they support OpenGL 3.1 and GLSL 1.4. But, and this is a big but, they don't seem to actually succeed at running the game. This is super sad as they ought to really work. But apparently some thing seems to go horribly wrong .
That said it would be a big win if some one could come up with a working mesa configuration.
I think the but is the following (from the Mesa 9.0 release notes):
low Settings :30-40 fps
medium-high settings 20-30 fps
on windows ns runs fine and smooth with high settings ;(
Is the catalyst driver so bad or why i am getting so low fps ?
My PC
Intel Xeon v2 1230
AMD Sapphire 7870 GHZ Edition
8 GB DDR 3 Ram
Intel 120 SSD
OS : Chakra Linux
Linux Kernel 3.10.10-1
catalyst-13.4-4
any tip to get a fps boost with linux ?
Max is working on getting the ns2 part of things under control a bit.
For now, try a non 3d window manager(MATE, Gnome2d), run at desktop resolution those sorts of things seemed to make a difference for me.
@ninjin, I heard a rumor that mesa will soon support 3.3 so we can always hope for it:)
It either requests Steam to be running or segfaults with Steam running.
Following the wiki: http:/wiki.unknownworlds.com/ns2/Linux_Guide#Running_the_client
I've downloaded and extracted https:/github.com/ValveSoftware/steam-runtime/archive/master.zip
ran sdk/setup.sh
ran shell-i386.sh
ran ./run.sh /path/to/ns2_linux32
[zaggynl@nexusi5 runtime-release]$ ./run.sh /path/to/ns2_linux32
GetInstanceCount currently unimplemented
Build 259
Manjaro Linux x86_64
LaunchProcess: failed to execvp:
/path/to/NS2/system/awesomium/awesomium_process
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
Error: Steam must be running to play Natural Selection 2
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
[zaggynl@nexusi5 runtime-release]$ ./run.sh /path/to/ns2_linux32
GetInstanceCount currently unimplemented
Build 259
Manjaro Linux x86_64
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: LaunchProcess: failed to execvp:
/path/to/NS2/system/awesomium/awesomium_process
non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Setting breakpad minidump AppID = 4920
Steam_SetMinidumpSteamID: Caching Steam ID: 76561197963227945 [API loaded no]
Steam initialized
Num displays: 2
OpenGL 4.2.12217 Compatibility Profile Context 13.20.11 initialized (ATI Technologies Inc. AMD Radeon HD 7900 Series)
GLSL version 4.20
ARB_texture_storage extension present
Error: Couldn't load 'renderer/Drawer.shader' (file not found)
Error: SoundSystem::GetDeviceByGuid - failed to find device by GUID
Error: SoundSystem::Initialize - failed to set number of FMOD channels
Error: SoundSystem::GetDeviceByGuid - failed to find device by GUID
Sound Device: disabled stereo
Record Device: disabled
Error: Local mod 'tutorial' doesn't exist
warning: The VAD has been replaced by a hack pending a complete rewrite
Error: Couldn't load 'game_setup.xml'
Error: Attempting to set watchdog callback on NULL Lua state
Segmentation fault (core dumped)
The errors you are getting are becasue it is trying to load ns2 files from teh steam directory.
met me make sure that the wiki look like it expect it to on that one.
In the event it's not something easy like the above can the error message be made more useful so we can report it to the Mesa devs?
Either that or mesa starts supporting 3.1 compatibility .
And it doesn't appear that Mesa will support this: http://www.phoronix.com/scan.php?page=news_item&px=MTE3MzA
It's very messy and it appears the OpenGL spec people weren't quite sure how they wanted to handle it..
There is an issue with running NS2 on some 64bit linux systems, the core issue is related to kernel. Any kernel version higher than 3.10.* will fail.
So as a temporary (well i hope UW will fix it someday) workaround players have to install kernel version 3.10 or lower.
For example Arch Linux users with nvidia GFX can do:
pacman -S linux-lts nvidia-lts
Edit grub/syslinux to use this kernel and reboot.
Happy gaming!
uhhh and why is the game runnig for me? Aside from not seeing certain effects/alien night vision it works perfectly fine on Mesa 10.1.
It fails to launch for me and I'm running the latest dev drivers. What's your video card? Maybe attach your glxinfo:
glxinfo > glxinfofile
One of the more recent builds (263?) UWE went to a 3.1 core profile since then mesa >9.0 will support the game. I will fix the op.
gquigs, if you are having issues make a thread. try to include ~/.config/Natural Selection 2/log.txt
Build 264
Linux
Steam initialized
Error: Attempted to load remote options from a file that does not exist.
Error: Loading of cloud user settings failed
What can I do about this? Thanks!
thanks for the guidem unfortunately it is outdated.
There is no SDK folder nor i386.sh file....
Maybe the devs (if there are any linux devs left..) or some linux expert could shed some light on this...