# \[closed\] Example 'fps\_game' error

**URL:** <https://forum.castle-engine.io/t/closed-example-fps-game-error/602>\
**Category:** Bugs\
**Created:** [July 24, 2022, 10:11pm UTC](https://forum.castle-engine.io/t/closed-example-fps-game-error/602 "2022-07-24T22:11:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chikega](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/chikega/32/712_2.png) [@chikega](https://forum.castle-engine.io/u/chikega)\
**Post date:** [July 24, 2022, 10:11pm UTC](https://forum.castle-engine.io/t/closed-example-fps-game-error/602/1 "2022-07-24T22:11:55Z")

</div>

When I compile and run the example ‘fps\_game’ I get the following error:

 ![castle_engine_error1](https://forum.castle-engine.io/uploads/default/original/1X/28f65bacbffd2bb246e1410c8c36f3b86b7c3346.jpeg)

![castle_engine_error](https://forum.castle-engine.io/uploads/default/original/1X/92bea91173c328e36d9e8e4f26565fa6a0e70dba.png)

Cheers,

Gary

Running “C:\Users\chike\Downloads\castle-engine-7.0-alpha.snapshot-win64-x86\_64\castle\_game\_engine\bin\castle-engine.exe compile --mode=debug”

Compiling project “fps\_game” for OS / CPU “win64 / x86\_64” in mode “debug”.  
castle-engine: Warning: Windows Resources: Icon in format suitable for Windows (.ico) not found. Exe file will not have icon.  
FPC executing…  
Compiling Debug Version  
Free Pascal Compiler version 3.2.2 [2021/05/15] for x86\_64  
Copyright (c) 1993-2021 by Florian Klaempfl and others  
Target OS: Win64 for x64  
Compiling fps\_game.dpr  
User defined: Thread support enabled.  
Compiling resource C:\Users\chike\Downloads\castle-engine-7.0-alpha.snapshot-win64-x86\_64\castle\_game\_engine\examples\fps\_game\castle-engine-output\compilation\x86\_64-win64\fps\_game.obj  
Linking fps\_game.exe  
35 lines compiled, 2.5 sec, 6779680 bytes code, 1157380 bytes data

Command finished with status 0.  
Running “C:\Users\chike\Downloads\castle-engine-7.0-alpha.snapshot-win64-x86\_64\castle\_game\_engine\bin\castle-engine.exe run --mode=debug”

Running project “fps\_game” for OS / CPU “win64 / x86\_64”.  
Running C:\Users\chike\Downloads\castle-engine-7.0-alpha.snapshot-win64-x86\_64\castle\_game\_engine\examples\fps\_game\fps\_game.exe  
Log for “fps\_game”.  
Version: 0.1.  
Started on 2022-07-24 at 18:08:38.  
Castle Game Engine version: 7.0-alpha.snapshot (commit 83fddab7cd22686f82e43bb319bf480f25025a78).  
Compiled with FPC 3.2.2.  
Platform: Desktop, OS: Win64, CPU: x86\_64 (this exe is using 64-bit architecture).  
ZLib detected (version 1.2.3).  
LibPng detected (version 1.4.0).  
Rendering Initialized: OpenGL 4.6 (for more info: LogGLInformationVerbose:=true)  
Path: Program data path detected as “file:///C:/Users/chike/Downloads/castle-engine-7.0-alpha.snapshot-win64-x86\_64/castle\_game\_engine/examples/fps\_game/data/”  
Sound: Initialized: OpenAL 1.1 (for more info: TSoundEngine.LogVerbose:=true)  
Pool for “Gun” auto-determined as 1  
Pool for “MedKit” auto-determined as 1  
Warning: Animation “base” of “MedKit” has it’s own URL, this is deprecated. Use one URL for all animations. See [Resources (creatures and items) | Creating Game Data | Castle Game Engine](https://castle-engine.io/creating_data_resources.php) .  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/concrete-normalmap.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/concrete-normalmap.png.dds  
Warning: ImageTexture.flipVertically for DDS/KTX not implemented yet, the image will be inverted  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/concrete.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/concrete.png.dds  
Warning: ImageTexture.flipVertically for DDS/KTX not implemented yet, the image will be inverted  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/large-stone-wall.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/large-stone-wall.png.dds  
Warning: ImageTexture.flipVertically for DDS/KTX not implemented yet, the image will be inverted  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/stone\_wall\_4.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/stone\_wall\_4.png.dds  
Warning: ImageTexture.flipVertically for DDS/KTX not implemented yet, the image will be inverted  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/tilable-img\_0044.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt1\_rgb/tilable-img\_0044.png.dds  
Warning: ImageTexture.flipVertically for DDS/KTX not implemented yet, the image will be inverted  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt5/brushwalker437.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/textures/auto\_generated/dxt5/brushwalker437.png.dds  
Warning: ImageTexture.flipVertically for DDS/KTX not implemented yet, the image will be inverted  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_back.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_back.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_bottom.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_bottom.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_front.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_front.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_left.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_left.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_right.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_right.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_top.png.dds  
MaterialProperties: Using GPU compressed (and potentially downscaled) alternative castle-data:/example\_level/sky/auto\_generated/dxt1\_rgb/sky\_top.png.dds  
Exception: Exception “Exception”:  
Camera “” of viewport “” is not part of this viewport’s Items. You must add the camera to .Items.

$00000001002E0BEA RENDERWITHOUTSCREENEFFECTS, line 2628 of …/…/src/scene/castleviewport.pas  
$00000001004C63C3 RENDER, line 630 of …/…/src/scene/castlescreeneffects.pas  
$000000010012FDB3 RECURSIVERENDER, line 1943 of …/…/src/ui/castleuicontrols\_userinterface.inc  
$000000010012D070 EVENTRENDER, line 1784 of …/…/src/ui/castleuicontrols\_container.inc  
$00000001000242FF DORENDER, line 3299 of …/…/src/window/castlewindow.pas  
$0000000100028367 UPDATEANDRENDEREVERYTHING, line 4744 of …/…/src/window/castlewindow.pas  
$0000000100022564 PROCESSMESSAGE2, line 168 of …/…/src/window/castlewindow\_winsystem.inc  
$000000010002250B PROCESSMESSAGE, line 71 of …/…/src/window/castlewindow\_winsystem.inc  
$0000000100028F2E DORUN, line 5005 of …/…/src/window/castlewindow.pas  
$000000010009EF55  
$00000001000227F6 RUN, line 202 of …/…/src/window/castlewindow\_winsystem.inc  
$000000010002563D OPENANDRUN, line 3711 of …/…/src/window/castlewindow.pas  
$0000000100001F26 main, line 34 of fps\_game.dpr  
$0000000100001F46  
$0000000100016240  
$0000000100001EF7  
$00007FFD57E654E0

Sound: Sound backend closed  
Exception “Exception”:  
Process “C:\Users\chike\Downloads\castle-engine-7.0-alpha.snapshot-win64-x86\_64\castle\_game\_engine\examples\fps\_game\fps\_game.exe” (absolute path “C:\Users\chike\Downloads\castle-engine-7.0-alpha.snapshot-win64-x86\_64\castle\_game\_engine\examples\fps\_game\fps\_game.exe”) failed with exit status 1

Command finished with status 1.

---

<div class="post-metadata">

**Author:** ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)\
**Post date:** [July 25, 2022, 8:13am UTC](https://forum.castle-engine.io/t/closed-example-fps-game-error/602/2 "2022-07-25T08:13:08Z")

</div>

Thank you, fixed!

I was lately testing fps\_game with `UPCOMING_FPS_GAME_REDESIGN` defined so often that I missed a trivial error in default version of fps\_game 🙂

---

<div class="post-metadata">

**Author:** ![chikega](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/chikega/32/712_2.png) [@chikega](https://forum.castle-engine.io/u/chikega)\
**Post date:** [July 26, 2022, 3:05am UTC](https://forum.castle-engine.io/t/closed-example-fps-game-error/602/3 "2022-07-26T03:05:02Z")

</div>

It’s working now Michalis. Thank you! 🚀
