console_commands.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .. _console_commands:
  2. Console commands
  3. ================
  4. The following are commands that can be typed in the Console tab. In order for a
  5. command to be interpreted as such, you must prefix it with a colon symbol when
  6. entering it in the command prompt:
  7. .. image:: images/console_command.png
  8. crash
  9. -----
  10. Crash the engine for testing purposes. Accepts the following parameters:
  11. ``div_by_zero``
  12. Divide a number by zero.
  13. ``unaligned``
  14. Do an unaligned memory access.
  15. ``segfault``
  16. Trigger a segmentation fault.
  17. ``oom``
  18. Allocate too much memory.
  19. ``assert``
  20. Call CE_ASSERT(false).
  21. game
  22. ----
  23. Pause/resume the game. Accepts one of the following parameters:
  24. ``pause``
  25. Pause the game.
  26. ``resume``
  27. Resume the game.
  28. help
  29. ----
  30. List all commands.
  31. unpause
  32. -------
  33. Resume the engine. Deprecated, use :ref:`game` instead.
  34. pause
  35. -----
  36. Pause the engine. Deprecated, use :ref:`game` instead.
  37. graph
  38. -----
  39. Plot selected profiler data over time. The <field> parameter must be the name
  40. of a profiler record that the engine provides itself or one that you recorded
  41. via the :ref:`Profiler` API. The command accepts the following
  42. parameters:
  43. ``make <name>``
  44. Create a new graph.
  45. ``list``
  46. List all the graphs.
  47. ``range <graph> [min max]``
  48. Set the range of a graph. If the range is omitted, it will be automatically
  49. computed.
  50. ``add <graph> <field>``
  51. Add a field to a graph.
  52. ``remove <graph> <field>``
  53. Remove a field from a graph.
  54. ``hide <graph>``
  55. Hide a graph.
  56. ``show <graph>``
  57. Show a graph.
  58. ``layout <graph> <type>``
  59. Set the layout of a graph.
  60. Type can be one of: ``fill``, ``left``, ``right``, ``bottom`` or ``top``.
  61. ``color <graph> <field> <color>``
  62. Set the color of a field in a graph. Color can be specified as a 3- or
  63. 6-digits hexadecimal RGB number or can be any of: ``yellow``, ``red``, ``green``
  64. or ``blue``.
  65. ``samples <graph> <samples>``
  66. Set the number of samples to show in a graph.