console_commands.rst 1.8 KB

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