Have a mac/linux and tired of waiting for a port? Well I have a solution...

byron4444byron4444 Join Date: 2012-11-01 Member: 165520Members
edited November 2012 in NS2 General Discussion
<div class="IPBDescription">Using wine to allow yourself to play now.</div>First off, this will be a shortish guide on how to get the game running on OS X (and possibly linux, although I have not tried it). I have accomplished this feat on a MacBook Pro, and although I do not get the best performance, it is very much playable (and I am still working on optimizing it).

This guide should not need a ton of expertise, however, a little bit of computer knowledge is recommended.

<u>Step 1) Install wine and winetricks, as well as Mono.</u>
For mac users, just follow this <a href="http://www.davidbaumgold.com/tutorials/wine-mac/" target="_blank">guide</a>
For linux users, I assume you should know how to do all of this because you have linux. If not, it is really easy to google and learn how.

<u>Step 2) Install steam and the game.</u>
Follow this <a href="http://speedofmac.com/tutorials/install-windows-steam-on-mac.html" target="_blank">guide</a> ONLY for the installing steam part. The rest is not necessary.
For linux users it should be essentially the same thing. I suggest against using winetricks to easily install steam ($ winetricks steam) because AFAIK it will create its own section for it, which you don't really want.

Installing the game is really quite simple. You just run steam via
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ cd ~/.wine/drive_c/Program\ Files/steam/<!--c2--></div><!--ec2-->
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ wine steam<!--c2--></div><!--ec2-->
Then install the game normally. Alternatively, if you already have the files, you can google a quick way of transferring all of the files; however if you do this, make sure that you copy the entire "common" folder (or grab the hidden files located within) or else steam will not recognize that the game is installed.

<u>Step 3) Test everything so far.</u>
What should happen is that when you click the play button for Natural Selection 2, a window will pop up trying to install DirectX9 and the terminal will start going haywires. If not, comment below what happened and we can work from there.

<u>Step 4) Install dependancies.</u>
If you have looked up how to install Natural Selection 2 with wine, many of the places have stated that you needed to install DirectX9. However, installing DirectX9 is unnecessary, and can cause problems. It may work in this case, however there is an easier way to do it.

What you do need to do is use winetricks to install vcrun2005.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ winetricks vcrun2005<!--c2--></div><!--ec2-->
Should do it.

Now do
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ cd ~/.wine/drive_c/windows/winsxs/manifests<!--c2--></div><!--ec2-->
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ mv x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_deadbeef.manifest x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_deadbeef.manifest_<!--c2--></div><!--ec2-->

(To be honest, I am not totally sure if the above step is necessary, however it doesn't cause any damage)

<u>Step 5) Test again.</u>
If all is going according to plan, the game should start up and display a black screen. Progress.

<u>Step 6) Getting everything setup.</u>
The trickiest part of the guide by far.

First, you will have to edit the settings of Natural Selection 2 so that it displays in windowed mode. This is relatively easy; however you may have to turn on the viewing of hidden files (although this could be totally unnecessary). Go to the folder where wine keeps all of its stuff. On OSX, this is very simple, open a folder and press shift+command+g. This will bring up a "Go to folder" bar. Type in ~/.wine/ and press enter. Next, go drive_c --> users --> (whatever your username is) --> application data --> natural selection 2 --> system_options.xml

You can open this file with a text editor easily, and change where it says
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><window-mode>fullscreen</window-mode><!--c2--></div><!--ec2--> to <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><window-mode>windowed</window-mode><!--c2--></div><!--ec2-->
Save an exit.

Now for the tricky bits. Go into terminal and type
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ wine regedit<!--c2--></div><!--ec2-->
This will bring up the registry editor. Navigate to
HKEY_CURRENT_USER --> Software --> Wine
Right click the wine folder and do
new --> Key
Label this new key as Direct3D

Now, right click the Direct3D folder and do new --> string value. Label this as VideoMemorySize and set the value to 2048 (regardless of what your actual memory size is).
Right click the Direct3D folder again and do new --> string value. Label this as StrictDrawOrdering and set the value to "enabled"

<u>Step 7) Enjoy!</u>

You should now be able to play the game. Although the framerate is nothing to brag about, it should be completely playable. I am working on different ways to optimize the framerates, and I have found a few tricks that help for the time being.

One of which is
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ winetricks glsl=disable<!--c2--></div><!--ec2-->
This should help your framerate, however if it doesn't be sure to revert it.

Another is to lower the resolution at which you play, as well as turn of all of the fancy features; though this tip is pretty obvious.


Hopefully this guide has worked for everyone. If you have suggestions on ways to optimize the game, or questions please comment. Please note that I did not come up with any of the above things per se, I basically just put them all together.

<b><u>EDIT: </u></b> If you are experiencing flickering, user StopSpazzing may have a solution

<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->So I made a post about 1-2 months ago, and I wish I could find it. Listed everything you needed. But just did a test last night before seeing this post, and instead of creating a new post will post here...

<a href="https://www.youtube.com/watch?v=udKRCxHOIYw" target="_blank">https://www.youtube.com/watch?v=udKRCxHOIYw</a>

There's the link, all info needed for the game to work is listed here and correct...but if you still get flickering, turn off your vsync, or turn it on to triple then back down to disabled. If you watch the above video you will see it. Also, only the latest Nvidia drivers seem to work best. I haven't tried this on an AMD GPU yet. Basically the description for the video lists everything. Using WineTricks works better for GUI people btw, with the same result.<!--QuoteEnd--></div><!--QuoteEEnd-->

Comments

  • capmgncapmgn Join Date: 2012-11-09 Member: 168555Members, Reinforced - Supporter, Reinforced - Shadow
    edited November 2012
    First of all, thanks very much for this guide, Byron.

    I was able to install everything successfully, it seems, but am not able to get the game to work. Steam launches fine and I was able to download NS2, initially nothing would happen, so I installed vcrun2005. That completed successfully as well. Upon launching, I saw the black screen, just as you mentioned. However, after completing the registry edits and changing the window mode, all that I get now is a windowed white screen labeled "Spark Engine" (which I realize is the NS2 engine) that doesn't seem to do anything.

    I am on a base model Retina MacBook Pro running 10.8.2 and I have ensured that my GT 650m is active.


    The Terminal window spams the following error message:

    fixme:d3dcompiler:D3DCompile data 0xb0dd1a0, data_size 17997, filename "memory", defines 0xa5b2b78, include 0x33f37c, entrypoint (null),
    target "__fx_2_0__", sflags 0, eflags 0, shader 0xa5bb038, error_messages 0x33f598 stub!

    Thanks in advance for any assistance you might be able to provide.

    EDIT:

    After several minutes, the game seems to "load." I get a black windowed screen with the NS2 mouse cursor and the music playing in the background, but it still doesn't seem to be loading any further than that.

    Sample of Terminal output:

    Error: Couldn't render layer 'atmospherics_blend' because the shader wasn't available
    Error: Couldn't render layer 'bloom_curve' because the shader wasn't available
    Error: Couldn't render layer 'bloom_downsample_2' because the shader wasn't available
    Error: Couldn't render layer 'bloom_hblur_2' because the shader wasn't available
    Error: Couldn't render layer 'bloom_vblur_2' because the shader wasn't available
    Error: Couldn't render layer 'bloom_downsample_4' because the shader wasn't available
    Error: Couldn't render layer 'bloom_hblur_4' because the shader wasn't available
    Error: Couldn't render layer 'bloom_vblur_4' because the shader wasn't available
    Error: Couldn't render layer 'bloom_downsample_8' because the shader wasn't available
    Error: Couldn't render layer 'bloom_hblur_8' because the shader wasn't available
    Error: Couldn't render layer 'bloom_vblur_8' because the shader wasn't available
    Error: Couldn't render layer 'bloom_downsample_16' because the shader wasn't available
    Error: Couldn't render layer 'bloom_hblur_16' because the shader wasn't available
  • d10sfand10sfan Join Date: 2012-11-09 Member: 168571Members
    Thanks for the tutorial. I'm thinking about getting this game and I'm on Linux, so it's nice to know someone got it working on wine.
  • IsSuEIsSuE Join Date: 2012-11-02 Member: 165831Members
    I am not able to try this atm, but does that registry entry work around the flickering and blackscreen ingame?
  • ZaggyZaggy NullPointerException The Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
    Nice tutorial!
    I'm going to install an additional HDD in my PC to put Linux on and test this, sticky worthy material here.
  • IsSuEIsSuE Join Date: 2012-11-02 Member: 165831Members
    Just tried it. The flickering is still there, making the game unplayable. (ArchLinux x86_64, wine from git, nvidia 304.64)
  • StopSpazzingStopSpazzing Join Date: 2005-02-26 Member: 42529Members, Constellation, Reinforced - Shadow
    edited November 2012
    <!--quoteo(post=2012023:date=Nov 5 2012, 07:53 PM:name=byron4444)--><div class='quotetop'>QUOTE (byron4444 @ Nov 5 2012, 07:53 PM) <a href="index.php?act=findpost&pid=2012023"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Hopefully this guide has worked for everyone. If you have suggestions on ways to optimize the game, or questions please comment. Please note that I did not come up with any of the above things per se, I basically just put them all together.<!--QuoteEnd--></div><!--QuoteEEnd-->


    <!--quoteo(post=2016878:date=Nov 9 2012, 06:01 AM:name=IsSuE)--><div class='quotetop'>QUOTE (IsSuE @ Nov 9 2012, 06:01 AM) <a href="index.php?act=findpost&pid=2016878"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Just tried it. The flickering is still there, making the game unplayable. (ArchLinux x86_64, wine from git, nvidia 304.64)<!--QuoteEnd--></div><!--QuoteEEnd-->


    So I made a post about 1-2 months ago, and I wish I could find it. Listed everything you needed. But just did a test last night before seeing this post, and instead of creating a new post will post here...

    <a href="https://www.youtube.com/watch?v=udKRCxHOIYw" target="_blank">https://www.youtube.com/watch?v=udKRCxHOIYw</a>

    There's the link, all info needed for the game to work is listed here and correct...but if you still get flickering, turn off your vsync, or turn it on to triple then back down to disabled. If you watch the above video you will see it. Also, only the latest Nvidia drivers seem to work best. I haven't tried this on an AMD GPU yet. Basically the description for the video lists everything. Using WineTricks works better for GUI people btw, with the same result.
  • d10sfand10sfan Join Date: 2012-11-09 Member: 168571Members
    Saw your video and I can't get past the black screen. I am using the same settings with Linux Mint 13 and the new beta drivers, and I see a black screen, as well as a crash message comes up on startup.
  • StopSpazzingStopSpazzing Join Date: 2005-02-26 Member: 42529Members, Constellation, Reinforced - Shadow
    edited November 2012
    <!--quoteo(post=2017983:date=Nov 9 2012, 10:46 PM:name=d10sfan)--><div class='quotetop'>QUOTE (d10sfan @ Nov 9 2012, 10:46 PM) <a href="index.php?act=findpost&pid=2017983"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Saw your video and I can't get past the black screen. I am using the same settings with Linux Mint 13 and the new beta drivers, and I see a black screen, as well as a crash message comes up on startup.<!--QuoteEnd--></div><!--QuoteEEnd-->

    My suggestion, would be to use winetricks and make sure you installed d3dx9 (NOT directx9) and vcredist2005.


    You need wine1.5 installed, that is...the beta. The default is wine1.4.

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Alternative Command Line Instructions for Installing Wine:

    It is also possible to add the Wine PPA and install via the terminal. This may be useful on Kubuntu, Xubuntu, and other Ubuntu derivatives.

    sudo add-apt-repository ppa:ubuntu-wine/ppa

    Then update APT package information by running 'sudo apt-get update'. You can now install Wine by typing 'sudo apt-get install wine1.5'.<!--c2--></div><!--ec2-->

    I would normally run a 'sudo apt-get autoremove' after that to get rid of the old versions.


    That should fix the blackscreen issue.

    What I did was, since I have a second HDD and have steam installed for windows, is clean the steamcfg using winetricks and delete all data, then using winetricks, 'install an app' and reinstall steam, and then all the requirements above. Open steam up once, then close it. Then I would systemlink my steam "common" folder from my 2nd HDD, to where steam is installed on the wine "C:" drive (again can use winetricks to select a cfg and open steamcfg then browse "C:" drive, then goto program files (x86) then steam folder). Then wouldn't have to worry about reinstalling the games all over, and you have a clean install, and they would show up in my steam window on linux as the games being installed.





    Hmm maybe I should make a video tut?
  • d10sfand10sfan Join Date: 2012-11-09 Member: 168571Members
    Sorry, meant to say that I was using 1.5.16 and using the nvidia 304.* beta drivers. I originally installed the directx9 package, I'll try with just d3d9 next time.
  • d10sfand10sfan Join Date: 2012-11-09 Member: 168571Members
    edited November 2012
    Just tried it again with just those packages and steam with Video Memory set to 2048, Strict Draw Ordering set to disabled, and the game set to windowed.

    Game came up with the menu properly with no errors this time, but when I try and load a map it gets stuck on the loading screen, saying Attempting Connection

    Here's the log

    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Date: 11/10/12
    Time: 14:56:14
    --------------------------------------------------------------
    Build 228
    Steam initialized
    Render Device: NVIDIA GeForce GTX 460 (6.15.12.6658)
    Sound Device: Out: default ((null)) stereo
    Record Device: In: default ((null))
    Loading config://ConsoleBindings.json
    Loading config://FavoriteServers.json
    Main Menu Initialized at Version: 228
    Starting download of 'Co_Summit'
    Starting download of 'co_chuteout'
    Starting download of 'co_Core remake (Alpha 2)'
    Starting download of 'Combat Mode'
    Starting download of 'Ns2 co_faceoff remake'
    Starting download of 'ns2 co_pulse remake'
    Starting download of 'NS2_CO_VEIL'
    Starting download of 'ns2_co_stargate'
    Mod 'co_chuteout' installed
    Mod 'Co_Summit' installed
    Mod 'Ns2 co_faceoff remake' installed
    Mod 'ns2_co_stargate' installed
    Mod 'ns2 co_pulse remake' installed
    Mod 'NS2_CO_VEIL' installed
    Mod 'Combat Mode' installed
    Connected to Steam servers
    Downloading mods
    Finished downloading and installing mods
    Mounting mod from C:/Program Files/Steam/steamapps/common/Natural Selection 2/explore
    Connecting to server 127.0.0.1:27015
    Server : 0.000000 : Loading VM Server
    Mod 'co_Core remake (Alpha 2)' installed
    Client connecting (127.0.0.1)
    Loading config://ServerConfig.json
    Loading config://ServerAdmin.json
    Loading config://BannedPlayers.json
    Loading config://MapCycle.json
    Loading config://ConsistencyConfig.json
    Hashed 1 game_setup.xml files for consistency
    Hashed 657 *.lua files for consistency
    Hashed 32 *.fx files for consistency
    Hashed 13 *.screenfx files for consistency
    Hashed 90 *.surface_shader files for consistency
    Hashed 3 *.fxh files for consistency
    Hashed 2 *.render_setup files for consistency
    Hashed 2 *.shader_template files for consistency
    Loading 'maps/ns2_summit.level'
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Error: Failed to add an obstacle - no tile cache!
    Finished loading 'maps/ns2_summit.level'
    Server : 0.033398 : Hive not attached to tech point
    Server : 0.033398 : Hive not attached to tech point
    Server : 0.033398 : Hive not attached to tech point<!--QuoteEnd--></div><!--QuoteEEnd-->
  • StopSpazzingStopSpazzing Join Date: 2005-02-26 Member: 42529Members, Constellation, Reinforced - Shadow
    <!--quoteo(post=2018700:date=Nov 10 2012, 01:42 PM:name=d10sfan)--><div class='quotetop'>QUOTE (d10sfan @ Nov 10 2012, 01:42 PM) <a href="index.php?act=findpost&pid=2018700"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Just tried it again with just those packages and steam with Video Memory set to 2048, Strict Draw Ordering set to disabled, and the game set to windowed.

    Game came up with the menu properly with no errors this time, but when I try and load a map it gets stuck on the loading screen, saying Attempting Connection

    Here's the log<!--QuoteEnd--></div><!--QuoteEEnd-->


    Go into steam and right click on game then properties/settings then verify game files. Seems something is corrupt.
  • d10sfand10sfan Join Date: 2012-11-09 Member: 168571Members
    Thanks, I did that and now its working better, but when I join a game, the screen is black. I could see two circles that looked like the team names, but nothing else.
  • StopSpazzingStopSpazzing Join Date: 2005-02-26 Member: 42529Members, Constellation, Reinforced - Shadow
    <!--quoteo(post=2019114:date=Nov 10 2012, 07:27 PM:name=d10sfan)--><div class='quotetop'>QUOTE (d10sfan @ Nov 10 2012, 07:27 PM) <a href="index.php?act=findpost&pid=2019114"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Thanks, I did that and now its working better, but when I join a game, the screen is black. I could see two circles that looked like the team names, but nothing else.<!--QuoteEnd--></div><!--QuoteEEnd-->

    You have to use the 310 drivers, else wont work right. Then turn off vsync once in game and make sure its windowed.
  • d10sfand10sfan Join Date: 2012-11-09 Member: 168571Members
    edited November 2012
    Have the beta drivers installed, windowed mode, and vsync off and still having this issue. Also tried disabled some of the graphics settings and still the same thing. Basically I see Welcome to ready room but there's no game graphics, just black. Thanks for the responses, hope to get this working
  • PhantaasmPhantaasm Join Date: 2012-11-08 Member: 168289Members
    I followed the steps you listed but when I start it up it gives me this error:
    Microsoft XAudio2
    CPU does not meet minimum requirements; streaming SIMD extensions support required.
    The game then proceeds to make a a cracking noise and load up the game in an all white scree, taking a very long time to load. then it loads up with a black screen, but the menu works properly(music plays in background , I can hear the menu buttons make noises when mousing over where they should be).
  • StopSpazzingStopSpazzing Join Date: 2005-02-26 Member: 42529Members, Constellation, Reinforced - Shadow
    edited November 2012
    <!--quoteo(post=2019242:date=Nov 10 2012, 10:09 PM:name=d10sfan)--><div class='quotetop'>QUOTE (d10sfan @ Nov 10 2012, 10:09 PM) <a href="index.php?act=findpost&pid=2019242"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Have the beta drivers installed, windowed mode, and vsync off and still having this issue. Also tried disabled some of the graphics settings and still the same thing. Basically I see Welcome to ready room but there's no game graphics, just black. Thanks for the responses, hope to get this working<!--QuoteEnd--></div><!--QuoteEEnd-->

    There is 2 beta drivers available, make sure you select the 310. Also make sure no other Direct X dll's are installed, that is, you make sure you didnt install the directx9 pack, as I've had issues with it. Just install the dxd9, and nothing else.


    <!--quoteo(post=2019274:date=Nov 10 2012, 11:00 PM:name=Phantaasm)--><div class='quotetop'>QUOTE (Phantaasm @ Nov 10 2012, 11:00 PM) <a href="index.php?act=findpost&pid=2019274"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I followed the steps you listed but when I start it up it gives me this error:
    Microsoft XAudio2
    CPU does not meet minimum requirements; streaming SIMD extensions support required.
    The game then proceeds to make a a cracking noise and load up the game in an all white scree, taking a very long time to load. then it loads up with a black screen, but the menu works properly(music plays in background , I can hear the menu buttons make noises when mousing over where they should be).<!--QuoteEnd--></div><!--QuoteEEnd-->


    This seems to be directx not being installed properly? Make sure you used the correct dxd9 package in WineTricks, and make sure using R310 Beta driver, and not the R306. Make sure you check for system updates.


    I will note, that winecfg for steam <u>has</u> to be set to Windows XP.
  • byron4444byron4444 Join Date: 2012-11-01 Member: 165520Members
    edited November 2012
    <!--quoteo(post=2016878:date=Nov 9 2012, 05:01 AM:name=IsSuE)--><div class='quotetop'>QUOTE (IsSuE @ Nov 9 2012, 05:01 AM) <a href="index.php?act=findpost&pid=2016878"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Just tried it. The flickering is still there, making the game unplayable. (ArchLinux x86_64, wine from git, nvidia 304.64)<!--QuoteEnd--></div><!--QuoteEEnd-->

    That problem may be a linux bug only. Does turning off all of the fancy graphic stuff help in any way?

    EDIT: Check my edit on my main post. User StopSpazzing seems to have found a solution to the flickering.
  • byron4444byron4444 Join Date: 2012-11-01 Member: 165520Members
    <!--quoteo(post=2017207:date=Nov 9 2012, 09:39 AM:name=StopSpazzing)--><div class='quotetop'>QUOTE (StopSpazzing @ Nov 9 2012, 09:39 AM) <a href="index.php?act=findpost&pid=2017207"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->So I made a post about 1-2 months ago, and I wish I could find it. Listed everything you needed. But just did a test last night before seeing this post, and instead of creating a new post will post here...

    <a href="https://www.youtube.com/watch?v=udKRCxHOIYw" target="_blank">https://www.youtube.com/watch?v=udKRCxHOIYw</a>

    There's the link, all info needed for the game to work is listed here and correct...but if you still get flickering, turn off your vsync, or turn it on to triple then back down to disabled. If you watch the above video you will see it. Also, only the latest Nvidia drivers seem to work best. I haven't tried this on an AMD GPU yet. Basically the description for the video lists everything. Using WineTricks works better for GUI people btw, with the same result.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Thanks for the extra info, I will edit my post and add your tips and tricks!
  • byron4444byron4444 Join Date: 2012-11-01 Member: 165520Members
    <!--quoteo(post=2016614:date=Nov 8 2012, 10:19 PM:name=capmgn)--><div class='quotetop'>QUOTE (capmgn @ Nov 8 2012, 10:19 PM) <a href="index.php?act=findpost&pid=2016614"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->First of all, thanks very much for this guide, Byron.

    I was able to install everything successfully, it seems, but am not able to get the game to work. Steam launches fine and I was able to download NS2, initially nothing would happen, so I installed vcrun2005. That completed successfully as well. Upon launching, I saw the black screen, just as you mentioned. However, after completing the registry edits and changing the window mode, all that I get now is a windowed white screen labeled "Spark Engine" (which I realize is the NS2 engine) that doesn't seem to do anything.

    I am on a base model Retina MacBook Pro running 10.8.2 and I have ensured that my GT 650m is active.


    The Terminal window spams the following error message:

    fixme:d3dcompiler:D3DCompile data 0xb0dd1a0, data_size 17997, filename "memory", defines 0xa5b2b78, include 0x33f37c, entrypoint (null),
    target "__fx_2_0__", sflags 0, eflags 0, shader 0xa5bb038, error_messages 0x33f598 stub!

    Thanks in advance for any assistance you might be able to provide.

    EDIT:

    After several minutes, the game seems to "load." I get a black windowed screen with the NS2 mouse cursor and the music playing in the background, but it still doesn't seem to be loading any further than that.

    Sample of Terminal output:

    Error: Couldn't render layer 'atmospherics_blend' because the shader wasn't available
    Error: Couldn't render layer 'bloom_curve' because the shader wasn't available
    Error: Couldn't render layer 'bloom_downsample_2' because the shader wasn't available
    Error: Couldn't render layer 'bloom_hblur_2' because the shader wasn't available
    Error: Couldn't render layer 'bloom_vblur_2' because the shader wasn't available
    Error: Couldn't render layer 'bloom_downsample_4' because the shader wasn't available
    Error: Couldn't render layer 'bloom_hblur_4' because the shader wasn't available
    Error: Couldn't render layer 'bloom_vblur_4' because the shader wasn't available
    Error: Couldn't render layer 'bloom_downsample_8' because the shader wasn't available
    Error: Couldn't render layer 'bloom_hblur_8' because the shader wasn't available
    Error: Couldn't render layer 'bloom_vblur_8' because the shader wasn't available
    Error: Couldn't render layer 'bloom_downsample_16' because the shader wasn't available
    Error: Couldn't render layer 'bloom_hblur_16' because the shader wasn't available<!--QuoteEnd--></div><!--QuoteEEnd-->

    Check your registry files and make sure that they are correct, as I believe I had a similar problem at one point. Also try turning off the bloom and other fancy graphics in the settings menu and see if that helps.

    Are you able to see any of the menu, or just the NS2 mouse cursor?
  • d10sfand10sfan Join Date: 2012-11-09 Member: 168571Members
    I have the 310 drivers installed and I just installed d3d9, not the directx9 pack.
  • PhantaasmPhantaasm Join Date: 2012-11-08 Member: 168289Members
    This seems to be directx not being installed properly? Make sure you used the correct dxd9 package in WineTricks, and make sure using R310 Beta driver, and not the R306. Make sure you check for system updates.


    I will note, that winecfg for steam <u>has</u> to be set to Windows XP.
    [/quote]

    I'm sorry but I'm new to wine , how exactly do I check which dxd9 package I have installed? and how do I install this R310 driver? To clarify Im using a mac, Not linux.
  • byron4444byron4444 Join Date: 2012-11-01 Member: 165520Members
    <!--quoteo(post=2019954:date=Nov 11 2012, 12:08 PM:name=Phantaasm)--><div class='quotetop'>QUOTE (Phantaasm @ Nov 11 2012, 12:08 PM) <a href="index.php?act=findpost&pid=2019954"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->This seems to be directx not being installed properly? Make sure you used the correct dxd9 package in WineTricks, and make sure using R310 Beta driver, and not the R306. Make sure you check for system updates.


    I will note, that winecfg for steam <u>has</u> to be set to Windows XP.


    I'm sorry but I'm new to wine , how exactly do I check which dxd9 package I have installed? and how do I install this R310 driver? To clarify Im using a mac, Not linux.<!--QuoteEnd--></div><!--QuoteEEnd-->

    A quick way to check if you have the correct dxd9 package is to just do
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ winetricks dxd9<!--c2--></div><!--ec2-->

    I don't know about the R310 driver though, I'll let StopSpazzing get back to you on that.
  • PhantaasmPhantaasm Join Date: 2012-11-08 Member: 168289Members
    <!--quoteo(post=2020230:date=Nov 11 2012, 05:33 PM:name=byron4444)--><div class='quotetop'>QUOTE (byron4444 @ Nov 11 2012, 05:33 PM) <a href="index.php?act=findpost&pid=2020230"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->A quick way to check if you have the correct dxd9 package is to just do
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$ winetricks dxd9<!--c2--></div><!--ec2-->

    I don't know about the R310 driver though, I'll let StopSpazzing get back to you on that.<!--QuoteEnd--></div><!--QuoteEEnd-->

    That command brings up this:
    Unknown arg dxd9
    Usage: /opt/local/bin/winetricks [options] [command|verb|path-to-verb] ...
    Executes given verbs. Each verb installs an application or changes a setting.

    Then is comes up with a list of possible uses for the command.
  • capmgncapmgn Join Date: 2012-11-09 Member: 168555Members, Reinforced - Supporter, Reinforced - Shadow
    Hey Byron,

    I am only able to see the NS2 mouse cursor and hear the music. The screen is otherwise black. I haven't installed any sort of directx packages, etc and would understand if that were the issue. I might try StopSpazzing's suggestion a few posts above yours and install dxd9. Not sure how exactly as this is my first experience with Wine, but I'm sure I'll be able to figure it out.

    The issue I am having is identical to what Phantaasm described as well.

    Thanks!
  • PhantaasmPhantaasm Join Date: 2012-11-08 Member: 168289Members
    So I finally get the thing to work , on a different machine though. the problem is that my fps is 5 in game and some models are glitched or missing(about half of them). I'm more worried about that fps , and the suggestion that byron gave on the OP makes even more models glitch out. Any advice to improving my FPS?
  • DaZzZuGDaZzZuG Join Date: 2012-11-13 Member: 170470Members
    Hi,

    I don't think there is any big chance to squeeze some more fps out of the game without applying special patches to wine.

    I've been playing around with the wine options the last 3 days and nothings seems to change the fps that much.
    Well 20 - 40 (~30) is playable - but it's pretty hard to play as melee alien, especially when the frame rates drop that much like it does on my rig:

    intel core i7 @ 4x2.93 GHz
    nvidia gtx 560
    8 gb 1333 ddr3
    msi p55-gd85
    256 gb crucial m4 ssd

    Just to get an impression.

    It seems, like mentioned before, there are some troubles regarding screen flickering. Lowering the resolution works for me pretty fine, just to mention that (in addition to reg entry).
    In my opinion this really depends on resolution, fps and entered video memory size.

    The reason why I post here is, that I've experienced some weird sound problems. Every time I start the game with the updated version (or the old one, which worked the last days) some kind of crash report pop up and kills the sound output from ns2. Playing without sounds is pretty tricky. :D
    Has anyone experienced something similar?
    Guess I'm going to write an install bash script and keep trying why this happens.

    Greets
    DaZ
  • d10sfand10sfan Join Date: 2012-11-09 Member: 168571Members
    Still getting the black screen problem while in-game. Any ideas?
  • Leusent-Leusent- Join Date: 2013-01-03 Member: 177315Members
    Try strict draw ordering enabled, per <a href="http://wiki.winehq.org/UsefulRegistryKeys" target="_blank">http://wiki.winehq.org/UsefulRegistryKeys</a>
  • Leusent-Leusent- Join Date: 2013-01-03 Member: 177315Members
    I've been tinkering a lot with this. My system runs NS2 on win7 just peachy. I've got an i5-2500k @ 4.6GHz and a GTX560TI.

    I get the flickering in WINE. I'm using PlayOnLinux, I've tried lots of different wine versions and settings. I can get the game semi-playable if I run it at 1024x768, windowed with all the settings turned down. Once the FPS drops, though, the flickering returns. Therefore, the game can be very tricky in heavy battle. During the FPS flop, the HUD remains.

    I'd postulate that the beefer your system, the more likely you'll run without flicker. This is probably why it works for some and not others. Why is it bottlenecked? I'm not totally sure. If we could get a UWE dev to peak for an hour or two, maybe the cause can be discovered.

    Cheers.
    Leu
  • MaximusiMaximusi Join Date: 2013-01-22 Member: 181152Members
    Hey,

    I keep getting an error when I try to install wine tricks flash. It keeps saying "sha1sum mismatch!" I'm not really great with computers and I could use some help.
Sign In or Register to comment.