[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ] [ Search: ]

3.1.4.9 Debugging Commands

These commands are primarily to aid in debugging the engine, and may or may not work, depending on the current state of the engine code.

bugplug

Load bugplug plugin. This is documented elsewhere.

cls

Clear the text from the console.

cmessage str

Print a message to the console at `NOTIFY' priority. Useful in scripts.

dmessage str

Print a message to the console at `DEBUG' priority. Useful in scripts.

dnl

Print a newline to the console at `DEBUG' priority. Useful in scripts.

db_boxshow boolean

Sets or display `do_show_debug_boxes'.

db_boxcam1

Set `db_box1' to current position.

db_boxcam2

Set `db_box2' to current position.

db_boxsize1

Set or show size of `db_box1'.

db_boxsize2

Set or show size of `db_box2'.

db_frustrum [= - reset, ] increment, [ decrement]

Set or show `cgf_debug_check_frustrum'.

db_maxpol Value

Set/get the maximum number of polygons that is drawn every frame. Normally this is set to a very high number so that this maximum is never reached (2000000000 polygons every frame should suit everyone's need for the near future :-) You can reduce this number for debugging purposes. In combination with `fclear' and binding keys to `db_maxpol ++1' and `db_maxpol --1' you can get the effect of drawing one polygon at a time.

db_procpol Value

Set/get the maximum number of polygons that is considered by the culling routines every frame. Normally this is set to a very high number so that this maximum is never reached (2000000000 polygons every frame should suit everyone's need for the near future :-) You can reduce this number for debugging purposes.

debug0, debug1, debug2

These commands do not do anything, but serve as placeholders to put in your own debugging code.

lod Value

Change the global level-of-detail (LOD) setting for sprite. 1 is full detail, 0 is no detail at all (i.e. you will not see the sprite). -1 is disabled. Otherwise, any value between 0 and 1 is legal. Default is 1.

portals Boolean

Enable/disable drawing through portals. If this is off, a portal will just draw as the default texture on the polygon

sprlight Boolean [s]

Change quality setting of sprite lighting. If yes every vertex will be lit according to the correct distance with the light. If no then the distances for all vertices are calculated to the center of the sprite. Default is `no'.

hi Boolean

This is intended to hilight the active polygon, but is currently disabled.

zbuf Boolean

For debugging. When enabled this will show an alternate view where far away objects are rendered in another color. In other words: it tests the Z buffer. It works best in 16-bit mode.

palette Boolean

This only has effect when a palette is used, not in a True Colour display.

db_radstep [Shift-R]
db_radhi [Alt-R]
db_radtodo [Control-R]

The Radiosity system is disabled and will probably remain that way until the new renderer is fully available.

db_frustum Boolean

Set or show debug check frustum value.

farplane Value

Set far plane distance, or 0 to disable Y.

emode front2back|back2front|zbuffer [d, Shift-D, Alt-D]

Sets the Engine render mode to one of the given values.

p_alpha Value

Change the alpha transparency for a selected portal. You can select a portal by clicking on it (only if it already has alpha transparency) or else by using the `hi' command. Legal values for p_alpha are between 0 and 100. This command is currently disabled.

action

Hit a polygon, list name.

plugins

List loaded plugins.

conflist n

List options for plugin n.

confset n,s1,s2

Set option s1 to s2 for plugin n.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated using texi2html 1.76.




No user comments yet!


Add a comment