OldOgreInstallNotes

From SfzWiki
Revision as of 16:58, 21 October 2006 by Ghoulsblade (Talk | contribs)

Jump to: navigation, search

Commandline Parameters

  • -n : disable sound (sound engine currently crashes on exit)
  • -h 7777 : host (and participate) a game on port 7777
  • -d 7777 : start a dedicated server
  • -j localhost:7777  : connect to a game running on "localhost" on port 7777

when using none of the -h,-d and -j switches, a local game is started.

Controls

  • w : accelerate forward (main thrust)
  • s : accelerate backwards (reverse thrust)
  • a : accelerate left (strafe)
  • d : accelerate right (strafe)
  • mouseclick : fire instant-kill weapon (no graphic feedback yet, target simply disappears on hit)
  • mouseclick : respawn
  • q : debug : reset ship position and rotation to start
  • e : debug : set speed to zero

Linux

  • you need ogre3d (see below) (Version 1.2.0 (Dagon) or later)
  • so far only svn access to the source, no direct download
  • SVN path: svn://zwischenwelt.org/sfz

OGRE

here is what worked for me, (knoppix 4.0.2 debian installation, with 2.6.13 kernel)

# get Cg from http://developer.nvidia.com/object/cg_toolkit.html , unpack to root "/" to install
# old url was : http://developer.nvidia.com/cg
# direkt link i used : http://developer.download.nvidia.com/cg/Cg_1.5/1.5.0/Cg-1.5_x86.tar.gz
cd /
tar xfz Cg-1.5_x86.tar.gz
# old file was Cg-1.4.0-3_x86.tar.gz

# get zziplib source from http://zziplib.sourceforge.net
# mirrorlist i used : http://prdownloads.sourceforge.net/zziplib/zziplib-0.13.47.tar.bz2?download
cd /usr/src
tar xfj zziplib-0.13.47.tar.bz2
cd zziplib-0.13.47
./configure
make && make check && make install
# old version zziplib-0.12.83.tar.bz2

# get DevIL source from http://openil.sourceforge.net/
# mirrorlist i used : http://prdownloads.sourceforge.net/openil/DevIL-1.6.8-rc2.tar.gz
cd /usr/src
tar xfz DevIL-1.6.8-rc2.tar.gz
cd DevIL-1.6.8-rc2
./configure
make && make install

# install sdl with apt-get
apt-get install libsdl1.2-dev
# got some trouble with that on ubuntu, here is help : http://ubuntuforums.org/showthread.php?t=199228 (the post with a 4 step solution)

# get ogre source from http://ogre3d.org
cd ogrenew
aclocal
./bootstrap
./configure
make
make install
# add a line "/usr/local/lib" to /etc/ld.so.conf
/sbin/ldconfig
cd Samples/Common/bin/
./SkyBox


Ogre 1.2 Source also works good with platform SDL, but you need to make sh bootstrap first and then ./configure --with-platform=SDL && make && make install. Without bootstrap make install caused errors. The OgreApi changed a bit, so you also need to replace the line with getSceneManager in client.cpp with the following

mSceneMgr = mRoot->createSceneManager(ST_GENERIC,"main");


more notes