O'Reilly logo

CryENGINE Game Programming with C++, C#, and Lua by Ruan Pearce-Authers, Carl-Filip Lundgren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The console

Although not directly linked to debugging, the CryENGINE console provides the means for creating commands that can execute functions directly from the game, and the creation of variables that can be modified to change the way the world behaves.

Note

Fun fact: by using the hashtag (#) sign in the console, we can execute Lua directly in-game, for example, #System.Log("My message!");

Console variables

Console variables, commonly referred to as CVars, allow the exposure of variables in your code to the CryENGINE console, effectively allowing the tweaking of settings at runtime or through config (.cfg) files.

Pretty much every subsystem uses console variables at runtime in order to tweak the behaviour of systems without requiring code modifications. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required