taBBall/configuring

taBBall Configuration Instructions

If you installed ZOSS (or downloaded via SVN) into a directory other than C:\dev then taBBall probably won't execute correctly until you've made some modifications to the configuration files.

client.xml

The client.xml file configures the location of the ZOSS plugins.

<?xml version="1.0" encoding="utf-8"?>
<?indiezen version="1.0"?>
<application
   id="ZGameLoader"
   name="IndieZen Client Game Loader"
   version="0.3.0"
   provider-name="IndieZen.org">

  <plugin-path path="C:/dev/Zen/plugins"/>
  <plugin-path path="C:/dev/Zen/examples/taBBall"/>
  <module-path path="C:/dev/bin"/>

<requires>
    <import plugin="Framework"/>
    <import plugin="ZOgre"/>
    <import plugin="ZInput"/>
    <import plugin="ZLua"/>
    <import plugin="ZCam"/>
    <import plugin="ZNewton"/>
    <import plugin="ZTerrain"/>
    <import plugin="ZSky"/>
</requires>

</application>

The important parts are the places where the paths are being configured. If you use the default installation, make sure they are like this:

  <plugin-path path="C:/dev/Zen/plugins"/>
  <plugin-path path="C:/dev/Zen/examples/taBBall"/>
  <module-path path="C:/dev/bin"/>

Ogre plugins.cfg

To configure the location of the Ogre plugins, edit the plugins.cfg file.

# Defines plugins to load

# Define plugin folder
PluginFolder=C:\dev\ogre\lib

# Define D3D rendering implementation plugin
Plugin=RenderSystem_GL_d.dll
#Plugin=Plugin_ParticleFX_d.dll
Plugin=Plugin_BSPSceneManager_d.dll
Plugin=Plugin_OctreeSceneManager_d.dll

Most imporantly, make sure the PluginFolder? point to the directory where the Ogre plugins are located.

PluginFolder=C:\dev\ogre\lib

taBBall.bat

The taBBall.bat file is used to launch the taBBall game client.

@echo off

set PATH=%PATH%;C:\dev\bin;C:\dev\ogre\lib;C:\dev\ogre\Samples\Common\bin\Debug;C:\dev\newton\dll

C:\dev\bin\ZGameLoader_d.exe client.xml taBBallClient lua scripts\client\init.lua

pause

The important thing to set is the PATH, which must point to the locations where all of the binaries required for taBBall to execute are located. This example should work for most cases, but if you installed things into a different location than the defaults then you may have to edit the file.