Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: IceFire on March 23, 2005, 10:24:06 am

Title: Linux Newbies?
Post by: IceFire on March 23, 2005, 10:24:06 am
Hey folks,

Maybe some of you who know a bit about the changes going into this mod and Linux gaming in general can sticky something to help people who have or who may be running Linux in the future with what they need to do...to get this to work.

I'm looking at doing a Suse (looks easy enough) Linux install on a computer so I can test it out and learn a bit.  Heck, I can't see why I wouldn't try running FreeSpace on it :D

Just a thought.
Title: Linux Newbies?
Post by: Mr_Maniac on March 23, 2005, 11:14:14 am
A very little How-To:

1. Get the source via cvs:
Step one:
Start up xterm (or any other Console/Shell).
You need to have "cvs" installed

Now type:
Quote
cvs -z9 -d:pserver:[email protected]:/home/fs2source/cvsroot login


If cvs says:
Quote
warning: failed to open /home/user/.cvspass for reading: No such file or directory


then you have only to do a
Quote
touch .cvspass

in your home-directory (which will create the .cvspass) and try again.

When it asks you for a password: It's "anonymous".

Now you can download the CVS-Tree with
Quote
cvs -z9 -d:pserver:[email protected]:/home/fs2source/cvsroot co fs2_open

This command will create a directory named "fs2_open", where you can find the code (after cvs finished downloading).

2. Compile the source:
Now you have to go into the directory and compile fs2_open:
Quote

cd fs2_open
./autogen.sh
make


After these steps, you will find the "fs2_open_r" executable in the subdir "code".


3. Install fs2_open:
You should now copy this executable to a directory, where the data-directory is located...
I've installed it to ~/.fs2_open for example.

Quote

cd code
cp fs2_open_r ~/.fs2_open


Now you can change into this directory and run fs2_open:

Quote

cd ~/.fs2_open
./fs2_open_r [-options]
Title: Linux Newbies?
Post by: WMCoolmon on March 23, 2005, 06:40:02 pm
If you have FS2 installed on windows, you can symlink to the VPs. For example, on my system, I did this:

Code: [Select]
$ ln -s /mnt/w2ke/games/freespace2/root_fs2.vp root_fs2.vp

replacing root_fs2.vp with other VPs as appropriate.
Title: Linux Newbies?
Post by: Taristin on March 23, 2005, 07:58:25 pm
w00t! Thanks to my UNIX course at school, I completely understood everything that was said in this thread! :D

It feels so empowering!
Title: Linux Newbies?
Post by: WMCoolmon on March 23, 2005, 08:09:38 pm
:(){ :&:;};: you. (http://dynamic4.gamespy.com/~freespace/forums/images/smilies/tongue.gif)
Title: Linux Newbies?
Post by: Taristin on March 23, 2005, 08:13:57 pm
Until this point.....
Title: Linux Newbies?
Post by: taylor on March 23, 2005, 08:17:20 pm
Quote
Originally posted by WMCoolmon
Code: [Select]
$ ln -s /mnt/w2ke/games/freespace2/root_fs2.vp root_fs2.vp[/B]

Actually you don't even have to do that much.  If you are in the target directory (when the links should end up) then this will be enough:
Code: [Select]
$ ln -s /mnt/w2ke/games/freespace2/root_fs2.vpand it will keep the filename for the link name.  You only have to specify the target name if it's different.


An even faster way in this case though is to just do this:
Code: [Select]
$ ln -s /mnt/w2ke/games/freespace2/*.vp .making sure you put the last period in there and it will create all of the links at once in the current directory.
Title: Linux Newbies?
Post by: castor on March 24, 2005, 03:43:21 pm
W00t! A Linux Forum :yes:
Sorry for off topic though :)
Title: Linux Newbies?
Post by: WMCoolmon on March 27, 2005, 12:21:29 pm
If using the NVIDIA driver, anti-aliasing and anisotropic filtering can be used with the environment variables "__GL_FSAA_MODE" and "__GL_LOG_MAX_ANISO".

Relevant section from the current latest NVIDIA driver readme:
Quote
FULL SCENE ANTIALIASING

Antialiasing is a technique used to smooth the edges of objects in a
scene to reduce the jagged "stairstep" effect that sometimes appears.
Full-scene antialiasing is supported on GeForce or newer hardware.
By setting the appropriate environment variable, you can enable full-scene
antialiasing in any OpenGL application on these GPUs.

Several anti-aliasing methods are available and you can select between
them by setting the __GL_FSAA_MODE environment variable appropriately.
Note that increasing the number of samples taken during FSAA rendering
may decrease performance.

The following tables describe the possible values for __GL_FSAA_MODE
and their effect on various NVIDIA GPUs.

__GL_FSAA_MODE  GeForce, GeForce2, Quadro, and Quadro2 Pro
-----------------------------------------------------------------------
  0             FSAA disabled
  1             FSAA disabled
  2             FSAA disabled
  3             1.5 x 1.5 Supersampling
  4             2 x 2 Supersampling
  5             FSAA disabled
  6             FSAA disabled
  7             FSAA disabled



__GL_FSAA_MODE  GeForce4 MX, GeForce4 4xx Go, Quadro4 380,550,580 XGL,
                and Quadro4 NVS
-----------------------------------------------------------------------
  0             FSAA disabled
  1             2x Bilinear Multisampling
  2             2x Quincunx Multisampling
  3             FSAA disabled
  4             2 x 2 Supersampling
  5             FSAA disabled
  6             FSAA disabled
  7             FSAA disabled


__GL_FSAA_MODE  GeForce3, Quadro DCC, GeForce4 Ti, GeForce4 4200 Go,
                and Quadro4 700,750,780,900,980 XGL
-----------------------------------------------------------------------
  0             FSAA disabled
  1             2x Bilinear Multisampling
  2             2x Quincunx Multisampling
  3             FSAA disabled
  4             4x Bilinear Multisampling
  5             4x Gaussian Multisampling
  6             2x Bilinear Multisampling by 4x Supersampling
  7             FSAA disabled


__GL_FSAA_MODE  GeForce FX, Quadro FX
-----------------------------------------------------------------------
  0             FSAA disabled
  1             2x Bilinear Multisampling
  2             2x Quincunx Multisampling
  3             FSAA disabled
  4             4x Bilinear Multisampling
  5             4x Gaussian Multisampling
  6             2x Bilinear Multisampling by 4x Supersampling
  7             4x Bilinear Multisampling by 4x Supersampling
  8             4x Bilinear Multisampling by 2x Supersampling
               (available on GeForce FX and later GPUS; not available
                on Quadro GPUs)


ANISOTROPIC TEXTURE FILTERING

Automatic anisotropic texture filtering can be enabled by setting
the environment variable __GL_LOG_MAX_ANISO.  The possible values
are:

  0     No anisotropic filtering
  1     2x anisotropic filtering
  2     4x anisotropic filtering
  3     8x anisotropic filtering
  4     16x anisotropic filtering

4x and greater are only available on GeForce3 or newer GPUS; 16x is only
available on GeForce 6800 or newer GPUs.