Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 194 for code


Ignore:
Timestamp:
Nov 11, 2007, 2:24:50 PM (17 years ago)
Author:
rgrieder
Message:
  • added primary and secondary fire in continuous mode
  • weapon manager yet very inflexible (one weapon, static values, etc.)
Location:
code/branches/main_reto_vs05
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto_vs05/bin/Debug/Ogre.log

    r193 r194  
    1 18:58:38: Creating resource group General
    2 18:58:38: Creating resource group Internal
    3 18:58:38: Creating resource group Autodetect
    4 18:58:38: SceneManagerFactory for type 'DefaultSceneManager' registered.
    5 18:58:39: Registering ResourceManager for type Material
    6 18:58:39: Registering ResourceManager for type Mesh
    7 18:58:39: Registering ResourceManager for type Skeleton
    8 18:58:39: MovableObjectFactory for type 'ParticleSystem' registered.
    9 18:58:39: OverlayElementFactory for type Panel registered.
    10 18:58:39: OverlayElementFactory for type BorderPanel registered.
    11 18:58:39: OverlayElementFactory for type TextArea registered.
    12 18:58:39: Registering ResourceManager for type Font
    13 18:58:39: ArchiveFactory for archive type FileSystem registered.
    14 18:58:39: ArchiveFactory for archive type Zip registered.
    15 18:58:39: FreeImage version: 3.9.2
    16 18:58:39: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
    17 18:58:39: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
    18 18:58:39: DDS codec registering
    19 18:58:39: Registering ResourceManager for type HighLevelGpuProgram
    20 18:58:39: Registering ResourceManager for type Compositor
    21 18:58:39: MovableObjectFactory for type 'Entity' registered.
    22 18:58:39: MovableObjectFactory for type 'Light' registered.
    23 18:58:39: MovableObjectFactory for type 'BillboardSet' registered.
    24 18:58:39: MovableObjectFactory for type 'ManualObject' registered.
    25 18:58:39: MovableObjectFactory for type 'BillboardChain' registered.
    26 18:58:39: MovableObjectFactory for type 'RibbonTrail' registered.
    27 18:58:39: Loading library .\RenderSystem_Direct3D9_d
    28 18:58:39: Installing plugin: D3D9 RenderSystem
    29 18:58:39: D3D9 : Direct3D9 Rendering Subsystem created.
    30 18:58:40: D3D9: Driver Detection Starts
    31 18:58:40: D3D9: Driver Detection Ends
    32 18:58:40: Plugin successfully installed
    33 18:58:40: Loading library .\RenderSystem_GL_d
    34 18:58:40: Installing plugin: GL RenderSystem
    35 18:58:40: OpenGL Rendering Subsystem created.
    36 18:58:41: Plugin successfully installed
    37 18:58:41: Loading library .\Plugin_ParticleFX_d
    38 18:58:41: Installing plugin: ParticleFX
    39 18:58:41: Particle Emitter Type 'Point' registered
    40 18:58:41: Particle Emitter Type 'Box' registered
    41 18:58:41: Particle Emitter Type 'Ellipsoid' registered
    42 18:58:41: Particle Emitter Type 'Cylinder' registered
    43 18:58:41: Particle Emitter Type 'Ring' registered
    44 18:58:41: Particle Emitter Type 'HollowEllipsoid' registered
    45 18:58:41: Particle Affector Type 'LinearForce' registered
    46 18:58:41: Particle Affector Type 'ColourFader' registered
    47 18:58:41: Particle Affector Type 'ColourFader2' registered
    48 18:58:41: Particle Affector Type 'ColourImage' registered
    49 18:58:41: Particle Affector Type 'ColourInterpolator' registered
    50 18:58:41: Particle Affector Type 'Scaler' registered
    51 18:58:41: Particle Affector Type 'Rotator' registered
    52 18:58:41: Particle Affector Type 'DirectionRandomiser' registered
    53 18:58:41: Particle Affector Type 'DeflectorPlane' registered
    54 18:58:41: Plugin successfully installed
    55 18:58:41: Loading library .\Plugin_BSPSceneManager_d
    56 18:58:41: Installing plugin: BSP Scene Manager
    57 18:58:41: Plugin successfully installed
    58 18:58:41: Loading library .\Plugin_OctreeSceneManager_d
    59 18:58:41: Installing plugin: Octree & Terrain Scene Manager
    60 18:58:41: Plugin successfully installed
    61 18:58:41: Loading library .\Plugin_CgProgramManager_d
    62 18:58:41: Installing plugin: Cg Program Manager
    63 18:58:41: Plugin successfully installed
    64 18:58:41: *-*-* OGRE Initialising
    65 18:58:41: *-*-* Version 1.4.5 (Eihort)
    66 18:58:41: Creating resource group Bootstrap
    67 18:58:41: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
    68 18:58:41: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
    69 18:58:42: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
    70 18:58:42: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
    71 18:58:42: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
    72 18:58:42: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
    73 18:58:42: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
    74 18:58:42: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
    75 18:58:42: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
    76 18:58:42: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
    77 18:58:42: D3D9 : RenderSystem Option: Anti aliasing = Level 4
    78 18:58:42: D3D9 : RenderSystem Option: Floating-point mode = Fastest
    79 18:58:42: D3D9 : RenderSystem Option: Full Screen = No
    80 18:58:42: D3D9 : RenderSystem Option: Rendering Device = ATI Mobility Radeon X1400
    81 18:58:42: D3D9 : RenderSystem Option: VSync = Yes
    82 18:58:42: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
    83 18:58:42: CPU Identifier & Features
    84 18:58:42: -------------------------
    85 18:58:42:  *   CPU ID: GenuineIntel: Genuine Intel(R) CPU           T2500  @ 2.00GHz
    86 18:58:42:  *      SSE: yes
    87 18:58:42:  *     SSE2: yes
    88 18:58:42:  *     SSE3: yes
    89 18:58:42:  *      MMX: yes
    90 18:58:42:  *   MMXEXT: yes
    91 18:58:42:  *    3DNOW: no
    92 18:58:42:  * 3DNOWEXT: no
    93 18:58:42:  *     CMOV: yes
    94 18:58:42:  *      TSC: yes
    95 18:58:42:  *      FPU: yes
    96 18:58:42:  *      PRO: yes
    97 18:58:42:  *       HT: no
    98 18:58:42: -------------------------
    99 18:58:42: D3D9 : Subsystem Initialising
    100 18:58:42: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 1024x768 windowed  miscParams: FSAA=4 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=true
    101 18:58:42: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 1024x768, 32bpp
    102 18:58:42: Registering ResourceManager for type Texture
    103 18:58:42: Registering ResourceManager for type GpuProgram
    104 18:58:42: RenderSystem capabilities
    105 18:58:42: -------------------------
    106 18:58:42:  * Hardware generation of mipmaps: yes
    107 18:58:42:  * Texture blending: yes
    108 18:58:42:  * Anisotropic texture filtering: yes
    109 18:58:42:  * Dot product texture operation: yes
    110 18:58:42:  * Cube mapping: yes
    111 18:58:42:  * Hardware stencil buffer: yes
    112 18:58:42:    - Stencil depth: 8
    113 18:58:42:    - Two sided stencil support: yes
    114 18:58:42:    - Wrap stencil values: yes
    115 18:58:42:  * Hardware vertex / index buffers: yes
    116 18:58:42:  * Vertex programs: yes
    117 18:58:42:    - Max vertex program version: vs_3_0
    118 18:58:42:  * Fragment programs: yes
    119 18:58:42:    - Max fragment program version: ps_3_0
    120 18:58:42:  * Texture Compression: yes
    121 18:58:42:    - DXT: yes
    122 18:58:42:    - VTC: no
    123 18:58:42:  * Scissor Rectangle: yes
    124 18:58:42:  * Hardware Occlusion Query: yes
    125 18:58:42:  * User clip planes: yes
    126 18:58:42:  * VET_UBYTE4 vertex element type: yes
    127 18:58:42:  * Infinite far plane projection: yes
    128 18:58:42:  * Hardware render-to-texture: yes
    129 18:58:42:  * Floating point textures: yes
    130 18:58:42:  * Non-power-of-two textures: yes (limited)
    131 18:58:42:  * Volume textures: yes
    132 18:58:42:  * Multiple Render Targets: 4
    133 18:58:42:  * Point Sprites: yes
    134 18:58:42:  * Extended point parameters: yes
    135 18:58:42:  * Max Point Size: 256
    136 18:58:42:  * Vertex texture fetch: no
    137 18:58:42: ***************************************
    138 18:58:42: *** D3D9 : Subsystem Initialised OK ***
    139 18:58:42: ***************************************
    140 18:58:42: ResourceBackgroundQueue - threading disabled
    141 18:58:42: Particle Renderer Type 'billboard' registered
    142 18:58:42: SceneManagerFactory for type 'BspSceneManager' registered.
    143 18:58:42: Registering ResourceManager for type BspLevel
    144 18:58:42: SceneManagerFactory for type 'OctreeSceneManager' registered.
    145 18:58:42: SceneManagerFactory for type 'TerrainSceneManager' registered.
    146 18:58:42: Parsing scripts for resource group Autodetect
    147 18:58:42: Finished parsing scripts for resource group Autodetect
    148 18:58:42: Parsing scripts for resource group Bootstrap
    149 18:58:42: Parsing script OgreCore.material
    150 18:58:42: Parsing script OgreProfiler.material
    151 18:58:42: Parsing script Ogre.fontdef
    152 18:58:42: Parsing script OgreDebugPanel.overlay
    153 18:58:43: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
    154 18:58:43: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
    155 18:58:43: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
    156 18:58:43: Font BlueHighwayusing texture size 512x512
    157 18:58:43: Info: Freetype returned null for character 127 in font BlueHighway
    158 18:58:43: Info: Freetype returned null for character 128 in font BlueHighway
    159 18:58:43: Info: Freetype returned null for character 129 in font BlueHighway
    160 18:58:43: Info: Freetype returned null for character 130 in font BlueHighway
    161 18:58:43: Info: Freetype returned null for character 131 in font BlueHighway
    162 18:58:43: Info: Freetype returned null for character 132 in font BlueHighway
    163 18:58:43: Info: Freetype returned null for character 133 in font BlueHighway
    164 18:58:43: Info: Freetype returned null for character 134 in font BlueHighway
    165 18:58:43: Info: Freetype returned null for character 135 in font BlueHighway
    166 18:58:43: Info: Freetype returned null for character 136 in font BlueHighway
    167 18:58:43: Info: Freetype returned null for character 137 in font BlueHighway
    168 18:58:43: Info: Freetype returned null for character 138 in font BlueHighway
    169 18:58:43: Info: Freetype returned null for character 139 in font BlueHighway
    170 18:58:43: Info: Freetype returned null for character 140 in font BlueHighway
    171 18:58:43: Info: Freetype returned null for character 141 in font BlueHighway
    172 18:58:43: Info: Freetype returned null for character 142 in font BlueHighway
    173 18:58:43: Info: Freetype returned null for character 143 in font BlueHighway
    174 18:58:43: Info: Freetype returned null for character 144 in font BlueHighway
    175 18:58:43: Info: Freetype returned null for character 145 in font BlueHighway
    176 18:58:43: Info: Freetype returned null for character 146 in font BlueHighway
    177 18:58:43: Info: Freetype returned null for character 147 in font BlueHighway
    178 18:58:43: Info: Freetype returned null for character 148 in font BlueHighway
    179 18:58:43: Info: Freetype returned null for character 149 in font BlueHighway
    180 18:58:43: Info: Freetype returned null for character 150 in font BlueHighway
    181 18:58:43: Info: Freetype returned null for character 151 in font BlueHighway
    182 18:58:43: Info: Freetype returned null for character 152 in font BlueHighway
    183 18:58:43: Info: Freetype returned null for character 153 in font BlueHighway
    184 18:58:43: Info: Freetype returned null for character 154 in font BlueHighway
    185 18:58:43: Info: Freetype returned null for character 155 in font BlueHighway
    186 18:58:43: Info: Freetype returned null for character 156 in font BlueHighway
    187 18:58:43: Info: Freetype returned null for character 157 in font BlueHighway
    188 18:58:43: Info: Freetype returned null for character 158 in font BlueHighway
    189 18:58:43: Info: Freetype returned null for character 159 in font BlueHighway
    190 18:58:43: Info: Freetype returned null for character 160 in font BlueHighway
    191 18:58:43: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
    192 18:58:43: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
    193 18:58:43: Parsing script OgreLoadingPanel.overlay
    194 18:58:43: Finished parsing scripts for resource group Bootstrap
    195 18:58:43: Parsing scripts for resource group General
    196 18:58:43: Parsing script Examples.program
    197 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    198 18:58:43: High-level program Ogre/BasicVertexPrograms/AmbientOneTexture encountered an error during loading and is thus not supported.
    199 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    200 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    201 18:58:43: High-level program Ogre/BasicVertexPrograms/AmbientOneTextureHLSL encountered an error during loading and is thus not supported.
     114:19:57: Creating resource group General
     214:19:57: Creating resource group Internal
     314:19:57: Creating resource group Autodetect
     414:19:57: SceneManagerFactory for type 'DefaultSceneManager' registered.
     514:19:57: Registering ResourceManager for type Material
     614:19:57: Registering ResourceManager for type Mesh
     714:19:57: Registering ResourceManager for type Skeleton
     814:19:57: MovableObjectFactory for type 'ParticleSystem' registered.
     914:19:57: OverlayElementFactory for type Panel registered.
     1014:19:57: OverlayElementFactory for type BorderPanel registered.
     1114:19:57: OverlayElementFactory for type TextArea registered.
     1214:19:57: Registering ResourceManager for type Font
     1314:19:57: ArchiveFactory for archive type FileSystem registered.
     1414:19:57: ArchiveFactory for archive type Zip registered.
     1514:19:57: FreeImage version: 3.9.2
     1614:19:57: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
     1714:19:57: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
     1814:19:57: DDS codec registering
     1914:19:57: Registering ResourceManager for type HighLevelGpuProgram
     2014:19:57: Registering ResourceManager for type Compositor
     2114:19:57: MovableObjectFactory for type 'Entity' registered.
     2214:19:57: MovableObjectFactory for type 'Light' registered.
     2314:19:57: MovableObjectFactory for type 'BillboardSet' registered.
     2414:19:57: MovableObjectFactory for type 'ManualObject' registered.
     2514:19:57: MovableObjectFactory for type 'BillboardChain' registered.
     2614:19:57: MovableObjectFactory for type 'RibbonTrail' registered.
     2714:19:57: Loading library .\RenderSystem_Direct3D9_d
     2814:19:57: Installing plugin: D3D9 RenderSystem
     2914:19:57: D3D9 : Direct3D9 Rendering Subsystem created.
     3014:19:57: D3D9: Driver Detection Starts
     3114:19:57: D3D9: Driver Detection Ends
     3214:19:57: Plugin successfully installed
     3314:19:57: Loading library .\RenderSystem_GL_d
     3414:19:58: Installing plugin: GL RenderSystem
     3514:19:58: OpenGL Rendering Subsystem created.
     3614:19:58: Plugin successfully installed
     3714:19:58: Loading library .\Plugin_ParticleFX_d
     3814:19:58: Installing plugin: ParticleFX
     3914:19:58: Particle Emitter Type 'Point' registered
     4014:19:58: Particle Emitter Type 'Box' registered
     4114:19:58: Particle Emitter Type 'Ellipsoid' registered
     4214:19:58: Particle Emitter Type 'Cylinder' registered
     4314:19:58: Particle Emitter Type 'Ring' registered
     4414:19:58: Particle Emitter Type 'HollowEllipsoid' registered
     4514:19:58: Particle Affector Type 'LinearForce' registered
     4614:19:58: Particle Affector Type 'ColourFader' registered
     4714:19:58: Particle Affector Type 'ColourFader2' registered
     4814:19:58: Particle Affector Type 'ColourImage' registered
     4914:19:58: Particle Affector Type 'ColourInterpolator' registered
     5014:19:58: Particle Affector Type 'Scaler' registered
     5114:19:58: Particle Affector Type 'Rotator' registered
     5214:19:58: Particle Affector Type 'DirectionRandomiser' registered
     5314:19:58: Particle Affector Type 'DeflectorPlane' registered
     5414:19:58: Plugin successfully installed
     5514:19:58: Loading library .\Plugin_BSPSceneManager_d
     5614:19:58: Installing plugin: BSP Scene Manager
     5714:19:58: Plugin successfully installed
     5814:19:58: Loading library .\Plugin_OctreeSceneManager_d
     5914:19:58: Installing plugin: Octree & Terrain Scene Manager
     6014:19:58: Plugin successfully installed
     6114:19:58: Loading library .\Plugin_CgProgramManager_d
     6214:19:58: Installing plugin: Cg Program Manager
     6314:19:58: Plugin successfully installed
     6414:19:58: *-*-* OGRE Initialising
     6514:19:58: *-*-* Version 1.4.5 (Eihort)
     6614:19:58: Creating resource group Bootstrap
     6714:19:58: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
     6814:19:58: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
     6914:19:58: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
     7014:19:58: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
     7114:19:58: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
     7214:19:58: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
     7314:19:58: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
     7414:19:58: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
     7514:19:58: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
     7614:19:58: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
     7714:19:58: D3D9 : RenderSystem Option: Anti aliasing = Level 4
     7814:19:58: D3D9 : RenderSystem Option: Floating-point mode = Fastest
     7914:19:58: D3D9 : RenderSystem Option: Full Screen = No
     8014:19:58: D3D9 : RenderSystem Option: Rendering Device = ATI Mobility Radeon X1400
     8114:19:58: D3D9 : RenderSystem Option: VSync = Yes
     8214:19:58: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
     8314:19:58: CPU Identifier & Features
     8414:19:58: -------------------------
     8514:19:58:  *   CPU ID: GenuineIntel: Genuine Intel(R) CPU           T2500  @ 2.00GHz
     8614:19:58:  *      SSE: yes
     8714:19:58:  *     SSE2: yes
     8814:19:58:  *     SSE3: yes
     8914:19:58:  *      MMX: yes
     9014:19:58:  *   MMXEXT: yes
     9114:19:58:  *    3DNOW: no
     9214:19:58:  * 3DNOWEXT: no
     9314:19:58:  *     CMOV: yes
     9414:19:58:  *      TSC: yes
     9514:19:58:  *      FPU: yes
     9614:19:58:  *      PRO: yes
     9714:19:58:  *       HT: no
     9814:19:58: -------------------------
     9914:19:58: D3D9 : Subsystem Initialising
     10014:19:58: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 1024x768 windowed  miscParams: FSAA=4 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=true
     10114:19:58: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 1024x768, 32bpp
     10214:19:58: Registering ResourceManager for type Texture
     10314:19:58: Registering ResourceManager for type GpuProgram
     10414:19:58: RenderSystem capabilities
     10514:19:58: -------------------------
     10614:19:58:  * Hardware generation of mipmaps: yes
     10714:19:58:  * Texture blending: yes
     10814:19:58:  * Anisotropic texture filtering: yes
     10914:19:58:  * Dot product texture operation: yes
     11014:19:58:  * Cube mapping: yes
     11114:19:58:  * Hardware stencil buffer: yes
     11214:19:58:    - Stencil depth: 8
     11314:19:58:    - Two sided stencil support: yes
     11414:19:58:    - Wrap stencil values: yes
     11514:19:58:  * Hardware vertex / index buffers: yes
     11614:19:58:  * Vertex programs: yes
     11714:19:58:    - Max vertex program version: vs_3_0
     11814:19:58:  * Fragment programs: yes
     11914:19:58:    - Max fragment program version: ps_3_0
     12014:19:58:  * Texture Compression: yes
     12114:19:58:    - DXT: yes
     12214:19:58:    - VTC: no
     12314:19:58:  * Scissor Rectangle: yes
     12414:19:58:  * Hardware Occlusion Query: yes
     12514:19:58:  * User clip planes: yes
     12614:19:58:  * VET_UBYTE4 vertex element type: yes
     12714:19:58:  * Infinite far plane projection: yes
     12814:19:58:  * Hardware render-to-texture: yes
     12914:19:58:  * Floating point textures: yes
     13014:19:58:  * Non-power-of-two textures: yes (limited)
     13114:19:58:  * Volume textures: yes
     13214:19:58:  * Multiple Render Targets: 4
     13314:19:58:  * Point Sprites: yes
     13414:19:58:  * Extended point parameters: yes
     13514:19:58:  * Max Point Size: 256
     13614:19:58:  * Vertex texture fetch: no
     13714:19:58: ***************************************
     13814:19:58: *** D3D9 : Subsystem Initialised OK ***
     13914:19:58: ***************************************
     14014:19:58: ResourceBackgroundQueue - threading disabled
     14114:19:58: Particle Renderer Type 'billboard' registered
     14214:19:58: SceneManagerFactory for type 'BspSceneManager' registered.
     14314:19:58: Registering ResourceManager for type BspLevel
     14414:19:58: SceneManagerFactory for type 'OctreeSceneManager' registered.
     14514:19:58: SceneManagerFactory for type 'TerrainSceneManager' registered.
     14614:19:58: Parsing scripts for resource group Autodetect
     14714:19:58: Finished parsing scripts for resource group Autodetect
     14814:19:58: Parsing scripts for resource group Bootstrap
     14914:19:58: Parsing script OgreCore.material
     15014:19:58: Parsing script OgreProfiler.material
     15114:19:58: Parsing script Ogre.fontdef
     15214:19:58: Parsing script OgreDebugPanel.overlay
     15314:19:58: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
     15414:19:58: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
     15514:19:58: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
     15614:19:58: Font BlueHighwayusing texture size 512x512
     15714:19:58: Info: Freetype returned null for character 127 in font BlueHighway
     15814:19:58: Info: Freetype returned null for character 128 in font BlueHighway
     15914:19:58: Info: Freetype returned null for character 129 in font BlueHighway
     16014:19:58: Info: Freetype returned null for character 130 in font BlueHighway
     16114:19:58: Info: Freetype returned null for character 131 in font BlueHighway
     16214:19:58: Info: Freetype returned null for character 132 in font BlueHighway
     16314:19:58: Info: Freetype returned null for character 133 in font BlueHighway
     16414:19:58: Info: Freetype returned null for character 134 in font BlueHighway
     16514:19:58: Info: Freetype returned null for character 135 in font BlueHighway
     16614:19:58: Info: Freetype returned null for character 136 in font BlueHighway
     16714:19:58: Info: Freetype returned null for character 137 in font BlueHighway
     16814:19:58: Info: Freetype returned null for character 138 in font BlueHighway
     16914:19:58: Info: Freetype returned null for character 139 in font BlueHighway
     17014:19:58: Info: Freetype returned null for character 140 in font BlueHighway
     17114:19:58: Info: Freetype returned null for character 141 in font BlueHighway
     17214:19:58: Info: Freetype returned null for character 142 in font BlueHighway
     17314:19:58: Info: Freetype returned null for character 143 in font BlueHighway
     17414:19:58: Info: Freetype returned null for character 144 in font BlueHighway
     17514:19:58: Info: Freetype returned null for character 145 in font BlueHighway
     17614:19:58: Info: Freetype returned null for character 146 in font BlueHighway
     17714:19:58: Info: Freetype returned null for character 147 in font BlueHighway
     17814:19:58: Info: Freetype returned null for character 148 in font BlueHighway
     17914:19:58: Info: Freetype returned null for character 149 in font BlueHighway
     18014:19:58: Info: Freetype returned null for character 150 in font BlueHighway
     18114:19:58: Info: Freetype returned null for character 151 in font BlueHighway
     18214:19:58: Info: Freetype returned null for character 152 in font BlueHighway
     18314:19:58: Info: Freetype returned null for character 153 in font BlueHighway
     18414:19:58: Info: Freetype returned null for character 154 in font BlueHighway
     18514:19:58: Info: Freetype returned null for character 155 in font BlueHighway
     18614:19:58: Info: Freetype returned null for character 156 in font BlueHighway
     18714:19:58: Info: Freetype returned null for character 157 in font BlueHighway
     18814:19:58: Info: Freetype returned null for character 158 in font BlueHighway
     18914:19:58: Info: Freetype returned null for character 159 in font BlueHighway
     19014:19:58: Info: Freetype returned null for character 160 in font BlueHighway
     19114:19:58: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
     19214:19:58: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
     19314:19:58: Parsing script OgreLoadingPanel.overlay
     19414:19:58: Finished parsing scripts for resource group Bootstrap
     19514:19:58: Parsing scripts for resource group General
     19614:19:58: Parsing script Examples.program
     19714:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     19814:19:58: High-level program Ogre/BasicVertexPrograms/AmbientOneTexture encountered an error during loading and is thus not supported.
     199OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     20014:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     20114:19:58: High-level program Ogre/BasicVertexPrograms/AmbientOneTextureHLSL encountered an error during loading and is thus not supported.
    202202OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.hlsl in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    203 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    204 18:58:43: High-level program Ogre/HardwareSkinningTwoWeightsCg encountered an error during loading and is thus not supported.
    205 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    206 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    207 18:58:43: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    208 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    209 18:58:43: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    210 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    211 18:58:43: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    212 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    213 18:58:43: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    214 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    215 18:58:43: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    216 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    217 18:58:43: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    218 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    219 18:58:43: High-level program Ogre/HardwareMorphAnimation encountered an error during loading and is thus not supported.
    220 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    221 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    222 18:58:43: High-level program Ogre/HardwarePoseAnimation encountered an error during loading and is thus not supported.
    223 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    224 18:58:43: Parsing script Example.material
    225 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    226 18:58:43: High-level program Examples/MorningSkyBoxHDRfp encountered an error during loading and is thus not supported.
     20314:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     20414:19:58: High-level program Ogre/HardwareSkinningTwoWeightsCg encountered an error during loading and is thus not supported.
     205OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     20614:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     20714:19:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     20814:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     20914:19:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     21014:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     21114:19:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     21214:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     21314:19:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     21414:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     21514:19:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     21614:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     21714:19:58: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     21814:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     21914:19:58: High-level program Ogre/HardwareMorphAnimation encountered an error during loading and is thus not supported.
     220OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     22114:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     22214:19:58: High-level program Ogre/HardwarePoseAnimation encountered an error during loading and is thus not supported.
     223OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     22414:19:58: Parsing script Example.material
     22514:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     22614:19:58: High-level program Examples/MorningSkyBoxHDRfp encountered an error during loading and is thus not supported.
    227227OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    228 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    229 18:58:43: High-level program Examples/MorningCubeMapHDRfp encountered an error during loading and is thus not supported.
     22814:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     22914:19:58: High-level program Examples/MorningCubeMapHDRfp encountered an error during loading and is thus not supported.
    230230OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hdr.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    231 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    232 18:58:43: High-level program Ogre/HardwareSkinningOneWeight encountered an error during loading and is thus not supported.
    233 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    234 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    235 18:58:43: High-level program Ogre/HardwareSkinningOneWeightShadowCaster encountered an error during loading and is thus not supported.
    236 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    237 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    238 18:58:43: High-level program Examples/GrassWaverVp encountered an error during loading and is thus not supported.
     23114:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     23214:19:58: High-level program Ogre/HardwareSkinningOneWeight encountered an error during loading and is thus not supported.
     233OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     23414:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     23514:19:58: High-level program Ogre/HardwareSkinningOneWeightShadowCaster encountered an error during loading and is thus not supported.
     236OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     23714:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     23814:19:58: High-level program Examples/GrassWaverVp encountered an error during loading and is thus not supported.
    239239OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Grass.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    240 18:58:43: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    241 18:58:43: High-level program Ogre/HardwareSkinningTwoWeightsShadowCasterCg encountered an error during loading and is thus not supported.
    242 OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
    243 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    244 18:58:43: Error in material jaiqua at line 994 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    245 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    246 18:58:43: Error in material jaiqua at line 995 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    247 18:58:43: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
    248 18:58:43: Error in material jaiqua at line 996 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
    249 18:58:43: Parsing script Ogre.material
    250 18:58:43: Parsing script Examples.compositor
    251 18:58:44: Parsing script sample.fontdef
    252 18:58:44: Finished parsing scripts for resource group General
    253 18:58:44: Parsing scripts for resource group Internal
    254 18:58:44: Finished parsing scripts for resource group Internal
    255 18:58:44: Mesh: Loading ogrehead.mesh.
    256 18:58:44: Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
    257 18:58:45: Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
    258 18:58:45: Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
    259 18:58:45: D3D9 : ***** Dimensions altered by the render system
    260 18:58:45: D3D9 : ***** Source image dimensions : 96x96
    261 18:58:45: D3D9 : ***** Texture dimensions : 128x128
    262 18:58:45: Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
    263 18:58:45: Texture: cubescene_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
    264 18:58:45: Texture: cubescene_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
    265 18:58:45: Texture: cubescene_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
    266 18:58:45: Texture: cubescene_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
    267 18:58:45: Texture: cubescene_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
    268 18:58:46: Texture: cubescene_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
    269 18:58:46: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
    270 18:58:46: Mesh: Loading fish.mesh.
    271 18:58:46: Skeleton: Loading fish.skeleton
    272 18:58:46: Texture: steelhead.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
    273 18:58:46: WARNING: the mesh 'fish.mesh' includes vertices without bone assignments. Those vertices will transform to wrong position when skeletal animation enabled. To eliminate this, assign at least one bone assignment per vertex on your mesh.
    274 18:58:46: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
    275 18:58:46: *** Initializing OIS ***
    276 18:58:52: Mesh: Loading Barrel.mesh.
    277 18:58:52: Texture: RustyBarrel.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
    278 18:58:56: Unregistering ResourceManager for type BspLevel
    279 18:58:56: *-*-* OGRE Shutdown
    280 18:58:56: Unregistering ResourceManager for type Compositor
    281 18:58:56: Unregistering ResourceManager for type Font
    282 18:58:56: Unregistering ResourceManager for type Skeleton
    283 18:58:56: Unregistering ResourceManager for type Mesh
    284 18:58:56: Unregistering ResourceManager for type HighLevelGpuProgram
    285 18:58:56: Uninstalling plugin: Cg Program Manager
    286 18:58:56: Plugin successfully uninstalled
    287 18:58:56: Unloading library .\Plugin_CgProgramManager_d
    288 18:58:56: Uninstalling plugin: Octree & Terrain Scene Manager
    289 18:58:56: Plugin successfully uninstalled
    290 18:58:56: Unloading library .\Plugin_OctreeSceneManager_d
    291 18:58:56: Uninstalling plugin: BSP Scene Manager
    292 18:58:56: Plugin successfully uninstalled
    293 18:58:56: Unloading library .\Plugin_BSPSceneManager_d
    294 18:58:56: Uninstalling plugin: ParticleFX
    295 18:58:56: Plugin successfully uninstalled
    296 18:58:56: Unloading library .\Plugin_ParticleFX_d
    297 18:58:56: Uninstalling plugin: GL RenderSystem
    298 18:58:56: *** Stopping Win32GL Subsystem ***
    299 18:58:56: Plugin successfully uninstalled
    300 18:58:56: Unloading library .\RenderSystem_GL_d
    301 18:58:57: Uninstalling plugin: D3D9 RenderSystem
    302 18:58:57: Render Target 'OGRE Render Window' Average FPS: 26.1227 Best FPS: 30.0097 Worst FPS: 0.534188
    303 18:58:57: D3D9 : Shutting down cleanly.
    304 18:58:57: Unregistering ResourceManager for type Texture
    305 18:58:57: Unregistering ResourceManager for type GpuProgram
    306 18:58:57: D3D9 : Direct3D9 Rendering Subsystem destroyed.
    307 18:58:57: Plugin successfully uninstalled
    308 18:58:57: Unloading library .\RenderSystem_Direct3D9_d
    309 18:58:57: Unregistering ResourceManager for type Material
     24014:19:58: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     24114:19:58: High-level program Ogre/HardwareSkinningTwoWeightsShadowCasterCg encountered an error during loading and is thus not supported.
     242OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Example_Basic.cg in resource group General or any other group. in ResourceGroupManager::openResource at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogreresourcegroupmanager.cpp (line 604)
     24314:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     24414:19:58: Error in material jaiqua at line 994 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     24514:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     24614:19:58: Error in material jaiqua at line 995 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     24714:19:58: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at d:\eth\orxonox\ogre-win32-v1-4-5\ogremain\src\ogregpuprogram.cpp (line 854)
     24814:19:58: Error in material jaiqua at line 996 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
     24914:19:58: Parsing script Ogre.material
     25014:19:58: Parsing script Examples.compositor
     25114:19:59: Parsing script sample.fontdef
     25214:19:59: Finished parsing scripts for resource group General
     25314:19:59: Parsing scripts for resource group Internal
     25414:19:59: Finished parsing scripts for resource group Internal
     25514:19:59: Mesh: Loading ogrehead.mesh.
     25614:19:59: Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
     25714:19:59: Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
     25814:19:59: Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
     25914:19:59: D3D9 : ***** Dimensions altered by the render system
     26014:19:59: D3D9 : ***** Source image dimensions : 96x96
     26114:19:59: D3D9 : ***** Texture dimensions : 128x128
     26214:19:59: Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
     26314:19:59: Texture: cubescene_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
     26414:19:59: Texture: cubescene_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
     26514:19:59: Texture: cubescene_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
     26614:19:59: Texture: cubescene_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
     26714:19:59: Texture: cubescene_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
     26814:19:59: Texture: cubescene_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
     26914:19:59: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
     27014:20:00: Mesh: Loading fish.mesh.
     27114:20:00: Skeleton: Loading fish.skeleton
     27214:20:00: Texture: steelhead.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
     27314:20:00: WARNING: the mesh 'fish.mesh' includes vertices without bone assignments. Those vertices will transform to wrong position when skeletal animation enabled. To eliminate this, assign at least one bone assignment per vertex on your mesh.
     27414:20:00: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
     27514:20:00: *** Initializing OIS ***
     27614:20:00: Mesh: Loading Barrel.mesh.
     27714:20:00: Texture: RustyBarrel.png: Loading 1 faces(PF_R8G8B8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
     27814:20:23: Unregistering ResourceManager for type BspLevel
     27914:20:23: *-*-* OGRE Shutdown
     28014:20:23: Unregistering ResourceManager for type Compositor
     28114:20:23: Unregistering ResourceManager for type Font
     28214:20:23: Unregistering ResourceManager for type Skeleton
     28314:20:23: Unregistering ResourceManager for type Mesh
     28414:20:23: Unregistering ResourceManager for type HighLevelGpuProgram
     28514:20:23: Uninstalling plugin: Cg Program Manager
     28614:20:23: Plugin successfully uninstalled
     28714:20:23: Unloading library .\Plugin_CgProgramManager_d
     28814:20:23: Uninstalling plugin: Octree & Terrain Scene Manager
     28914:20:23: Plugin successfully uninstalled
     29014:20:23: Unloading library .\Plugin_OctreeSceneManager_d
     29114:20:23: Uninstalling plugin: BSP Scene Manager
     29214:20:23: Plugin successfully uninstalled
     29314:20:23: Unloading library .\Plugin_BSPSceneManager_d
     29414:20:23: Uninstalling plugin: ParticleFX
     29514:20:23: Plugin successfully uninstalled
     29614:20:23: Unloading library .\Plugin_ParticleFX_d
     29714:20:23: Uninstalling plugin: GL RenderSystem
     29814:20:23: *** Stopping Win32GL Subsystem ***
     29914:20:23: Plugin successfully uninstalled
     30014:20:23: Unloading library .\RenderSystem_GL_d
     30114:20:23: Uninstalling plugin: D3D9 RenderSystem
     30214:20:23: Render Target 'OGRE Render Window' Average FPS: 29.7516 Best FPS: 57.7114 Worst FPS: 19.98
     30314:20:23: D3D9 : Shutting down cleanly.
     30414:20:23: Unregistering ResourceManager for type Texture
     30514:20:23: Unregistering ResourceManager for type GpuProgram
     30614:20:23: D3D9 : Direct3D9 Rendering Subsystem destroyed.
     30714:20:23: Plugin successfully uninstalled
     30814:20:23: Unloading library .\RenderSystem_Direct3D9_d
     30914:20:23: Unregistering ResourceManager for type Material
  • code/branches/main_reto_vs05/src/orxonox_ship.cc

    r193 r194  
    2626 */
    2727
    28 #include "OgreSceneManager.h"
     28#include "OgreMath.h"
     29#include "OgreVector3.h"
     30#include "OgreQuaternion.h"
    2931#include "OgreSceneNode.h"
    3032#include "OgreEntity.h"
    31 #include "OgreVector3.h"
    32 #include "OgreStringConverter.h"
     33#include "OgreSceneManager.h"
    3334
    3435#include "inertial_node.h"
     
    197198  * @return Bullet containing speed and entity.
    198199  */
    199   void OrxonoxShip::fire()
    200   {
    201     mainWeapon_->primaryFireRequest();
     200  WeaponManager* OrxonoxShip::getMainWeapon()
     201  {
     202    return mainWeapon_;
    202203  }
    203204
  • code/branches/main_reto_vs05/src/orxonox_ship.h

    r189 r194  
    5454    Ogre::Vector3 getSpeed();
    5555
    56           void fire();
     56    weapon::WeaponManager* getMainWeapon();
    5757
    5858          bool tick(unsigned long, Ogre::Real);
  • code/branches/main_reto_vs05/src/run_manager.cc

    r193 r194  
    8888  */
    8989  RunManager::RunManager(OgreControl * ogre)
    90         : ogre_(ogre), window_(ogre->getRenderWindow()), leftButtonDown_(false),
     90        : ogre_(ogre), window_(ogre->getRenderWindow()), //leftButtonDown_(false),
    9191        statsOn_(true), screenShotCounter_(0), timeUntilNextToggle_(0),
    9292        filtering_(TFO_BILINEAR), aniso_(1), sceneDetailIndex_(0),
     
    109109    bulletManager_ = new BulletManager(sceneMgr_);
    110110    WeaponManager::loadWeapons();
    111 
    112     // TODO: Use STL to make life easier. But it works this way too..
    113     /*bullets_ = new Bullet*[10];
    114     bulletsIndex_ = 0;
    115     bulletsSize_ = 10;*/
    116111
    117112
     
    220215
    221216    WeaponManager::destroyWeapons();
    222 
    223     // clean up the bullet list
    224     /*for (int i = 0; i < bulletsIndex_; i++)
    225       delete bullets_[i];
    226     delete bullets_;*/
    227217  }
    228218
     
    256246    bulletManager_->tick(time, deltaTime);
    257247
    258     /*for (int i = 0; i < bulletsIndex_; i++)
    259     {
    260       bullets_[i]->node_->translate(bullets_[i]->speed_*deltaTime);
    261       bullets_[i]->node_->yaw(Degree(deltaTime*100));
    262       bullets_[i]->node_->roll(Degree(deltaTime*300));
    263     }*/
    264248
    265249    // HUMAN INTERFACE
     
    366350    else
    367351      playerShip_->setYThrust(0);
     352
     353    if (keyboard_->isKeyDown(KC_G))
     354      playerShip_->getMainWeapon()->addAction(WeaponManager::RELOAD);
    368355
    369356    if( keyboard_->isKeyDown(KC_ESCAPE) || keyboard_->isKeyDown(KC_Q) )
     
    457444    const MouseState &ms = mouse_->getMouseState();
    458445
    459     // This is a 'hack' to show some flying barrels..
    460     // Usually, the Bullet created by the ship should be managed
    461     // by the physics engine..
    462     if (ms.buttonDown(MB_Left) && !leftButtonDown_)
    463     {
    464       // Prevent continuous fire for the moment.
    465       leftButtonDown_ = true;
    466 
    467       playerShip_->fire();
    468      
    469       // let ship fire one shot with its only weapon (Barrels..)
    470       /*Bullet *tempBullet = playerShip_->fire();
    471 
    472       // resize array if neccessary (double the size then)
    473       if (bulletsIndex_ >= bulletsSize_)
    474       {
    475         // redimension the array
    476         Bullet **tempArray = new Bullet*[2*bulletsSize_];
    477         for (int i = 0; i < bulletsSize_; i++)
    478           tempArray[i] = bullets_[i];
    479         bulletsSize_ *= 2;
    480         delete bullets_;
    481         bullets_ = tempArray;
    482       }
    483 
    484       // add the bullet to the list
    485       bullets_[bulletsIndex_++] = tempBullet;*/
    486 
    487     }
    488     else if (!ms.buttons)
    489       leftButtonDown_ = false;
    490 
    491     // space ship steering. This should definitely be done in the steering object
    492     // Simply give it the mouse movements.
     446    if (ms.buttonDown(MB_Left))
     447      playerShip_->getMainWeapon()->primaryFireRequest();
     448
     449    if (ms.buttonDown(MB_Right))
     450      playerShip_->getMainWeapon()->secondaryFireRequest();
     451
    493452    playerShip_->turnUpAndDown(Radian(ms.Y.rel * mouseSensitivity_));
    494453    playerShip_->turnLeftAndRight(Radian(ms.X.rel * mouseSensitivity_));
    495     //playerShip_->mRootNode->pitch(Degree(-ms.Y.rel * 0.13), Ogre::Node::TransformSpace::TS_LOCAL);
    496     //playerShip_->mRootNode->yaw(Degree(-ms.X.rel * 0.13), Ogre::Node::TransformSpace::TS_PARENT);
    497454
    498455    // keep rendering
  • code/branches/main_reto_vs05/src/run_manager.h

    r189 r194  
    9393          // just to stop toggles flipping too fast
    9494          Ogre::Real timeUntilNextToggle_;
    95           bool leftButtonDown_;
     95          //bool leftButtonDown_;
    9696          Ogre::TextureFilterOptions filtering_;
    9797          int aniso_;
  • code/branches/main_reto_vs05/src/weapon/weapon_manager.cc

    r189 r194  
    5252        bulletCounter_(0), primaryFireRequest_(false), currentState_(IDLE),
    5353        secondaryFireRequest_(false), selectedWeapon_(0),
    54         bulletManager_(bulletManager),
    55         actionListReadIndex_(0), actionListWriteIndex_(0)
     54        bulletManager_(bulletManager), secondaryFired_(false),
     55        timeSinceNextActionAdded_(0), actionAdded_(false), nextAction_(NOTHING)
    5656  {
    5757        slots_ = new Weapon*[slotSize];
    58     actionList_ = new Action[ACTION_LIST_SIZE];
    59     for (int i = 0; i < ACTION_LIST_SIZE; i++)
    60       actionList_[i] = NOTHING;
    6158  }
    6259
     
    6663    if (slots_)
    6764      delete slots_;
    68     if (actionList_)
    69       delete actionList_;
    7065  }
    7166
     
    9085  bool WeaponManager::addAction(const Action act)
    9186  {
    92     if (actionList_[actionListWriteIndex_] == NOTHING)
    93     {
    94       actionList_[actionListWriteIndex_] = act;
    95       actionListWriteIndex_ = (actionListWriteIndex_ + 1) % ACTION_LIST_SIZE;
     87    if (nextAction_ != NOTHING)
     88    {
     89      nextAction_ = act;
     90      actionAdded_ = true;
    9691      return true;
    9792    }
     
    109104  void WeaponManager::primaryFire()
    110105  {
    111     currentState_ = PRIMARY_FIRE;
    112 
    113     // TODO: add the name of the weapon manager. but for that,
    114     // the factory is required.
    115106    SceneNode *temp = sceneMgr_->getRootSceneNode()->createChildSceneNode(
    116107          node_->getSceneNode()->getWorldPosition(),
     
    124115    speed += node_->getWorldSpeed();
    125116
     117          temp->setScale(Vector3(1, 1, 1) * 4);
     118          temp->yaw(Degree(-90));
     119
     120          bulletManager_->addBullet(new Bullet(temp, bulletEntity, speed));
     121  }
     122
     123
     124  void WeaponManager::primaryFiring(unsigned int time)
     125  {
     126    if (time > 100)
     127    {
     128      currentState_ = IDLE;
     129    }
     130  }
     131
     132
     133  void WeaponManager::secondaryFireRequest()
     134  {
     135    secondaryFireRequest_ = true;
     136  }
     137
     138
     139  void WeaponManager::secondaryFire()
     140  {
     141    SceneNode *temp = sceneMgr_->getRootSceneNode()->createChildSceneNode(
     142          node_->getSceneNode()->getWorldPosition(),
     143          node_->getSceneNode()->getWorldOrientation());
     144
     145    Entity* bulletEntity = sceneMgr_->createEntity("BulletEntity"
     146          + StringConverter::toString(bulletCounter_++), "Barrel.mesh");
     147
     148    Vector3 speed = (temp->getOrientation() * Vector3(0, 0, -1))
     149          .normalisedCopy() * slots_[selectedWeapon_]->bulletSpeed_*0.5;
     150    speed += node_->getWorldSpeed();
     151
    126152          temp->setScale(Vector3(1, 1, 1) * 10);
    127153          temp->yaw(Degree(-90));
    128154
    129155          bulletManager_->addBullet(new Bullet(temp, bulletEntity, speed));
    130  
    131     currentState_ = IDLE;
    132   }
    133 
    134 
    135   void WeaponManager::secondaryFireRequest()
    136   {
    137     secondaryFireRequest_ = true;
    138   }
    139 
    140   void WeaponManager::secondaryFire()
    141   {
     156  }
     157
     158
     159  void WeaponManager::secondaryFiring(unsigned int time)
     160  {
     161    if (time > 250)
     162      currentState_ = IDLE;
    142163  }
    143164
     
    149170      return true;
    150171
     172    // process action adder
     173    if (actionAdded_)
     174    {
     175      timeSinceNextActionAdded_ = time;
     176      actionAdded_ = false;
     177    }
     178
    151179    switch (currentState_)
    152180    {
    153181    case IDLE:
    154       // first, process actions
    155       if (actionList_[actionListReadIndex_] != NOTHING)
     182      // first, process next action
     183      if (nextAction_ != NOTHING)
    156184      {
    157         actionListReadIndex_ = (actionListReadIndex_ + 1) % ACTION_LIST_SIZE;
    158         break;
     185        actionStartTime_ = time;
     186        switch (nextAction_)
     187        {
     188        case RELOAD:
     189          break;
     190
     191        case CHANGE_AMMO:
     192          break;
     193
     194        case SPECIAL:
     195          break;
     196
     197        default:
     198          break;
     199        }
     200
     201        // pay attention when multithreaded!
     202        nextAction_ = NOTHING;
    159203      }
    160 
    161       switch (actionList_[actionListReadIndex_])
     204      else
    162205      {
    163       case RELOAD:
    164         break;
    165 
    166       case ZOOM_IN:
    167         break;
    168 
    169       case ZOOM_OUT:
    170         break;
    171 
    172       default:
    173         break;
     206        // secondly, execute firing
     207        if (primaryFireRequest_ && !(secondaryFired_ && secondaryFireRequest_))
     208        {
     209          actionStartTime_ = time;
     210          currentState_ = PRIMARY_FIRE;
     211          secondaryFired_ = false;
     212          primaryFire();
     213        }
     214        else if (secondaryFireRequest_)
     215        {
     216          actionStartTime_ = time;
     217          currentState_ = SECONDARY_FIRE;
     218          secondaryFired_ = true;
     219          secondaryFire();
     220        }
    174221      }
    175222
    176       // secondly, execute firing
    177       if (primaryFireRequest_)
    178         primaryFire();
    179       else if (secondaryFireRequest_)
    180         secondaryFire();
    181 
    182223      break;
    183224
    184225    case PRIMARY_FIRE:
     226      primaryFiring((unsigned int)(time - actionStartTime_));
    185227      break;
    186228
    187229    case SECONDARY_FIRE:
     230      secondaryFiring((unsigned int)(time - actionStartTime_));
    188231      break;
    189232
    190233    case RELOADING:
     234      break;
     235
     236    case CHANGING_AMMO:
    191237      break;
    192238    }
     
    194240    primaryFireRequest_ = false;
    195241    secondaryFireRequest_ = false;
     242
     243    if (time - timeSinceNextActionAdded_ > nextActionValidityPeriod_)
     244      nextAction_ = NOTHING;
    196245
    197246    return true;
     
    205254    for (int i = 0; i < 5; i++)
    206255      weaponList_s[i] = NULL;
    207     weaponList_s[0] = new Weapon("Barrel Gun", 10, 2, 500);
     256    weaponList_s[0] = new Weapon("Barrel Gun", 10, 2, 1000);
    208257    return true;
    209258  }
  • code/branches/main_reto_vs05/src/weapon/weapon_manager.h

    r189 r194  
    4444      NOTHING  = 0,
    4545      RELOAD   = 1,
    46       ZOOM_IN  = 2,
    47       ZOOM_OUT = 3
     46      CHANGE_AMMO  = 2,
     47      SPECIAL = 3
    4848    };
    4949
     
    5353      PRIMARY_FIRE = 1,
    5454      SECONDARY_FIRE = 2,
    55       RELOADING = 4
     55      RELOADING = 3,
     56      CHANGING_AMMO = 4,
    5657    };
    5758
     
    7778    void primaryFire();
    7879
     80    void primaryFiring(unsigned int);
     81
    7982    void secondaryFire();
     83
     84    void secondaryFiring(unsigned int);
    8085
    8186  public:
     
    97102    bool secondaryFireRequest_;
    98103
     104    unsigned long actionStartTime_;
     105
    99106    State currentState_;
     107    bool secondaryFired_;
    100108
    101     Action *actionList_;
    102     int actionListReadIndex_;
    103     int actionListWriteIndex_;
     109    Action nextAction_;
     110    bool actionAdded_;
     111    unsigned long timeSinceNextActionAdded_;
     112    static const unsigned long nextActionValidityPeriod_ = 500;
    104113
    105114    static Weapon **weaponList_s;
Note: See TracChangeset for help on using the changeset viewer.