console_commands.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <!DOCTYPE html>
  2. <html class="writer-html5" lang="en" >
  3. <head>
  4. <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
  5. <meta property="article:modified_time" content="2026-02-16T16:34:21+00:00" /><meta property="og:title" content="Console commands" />
  6. <meta property="og:type" content="website" />
  7. <meta property="og:url" content="https://docs.crownengine.org/html/latest/reference/console_commands.html" />
  8. <meta property="og:site_name" content="Crown 0.60.0 Manual" />
  9. <meta property="og:description" content="The following are commands that can be typed in the Console tab. In order for a command to be interpreted as such, you must prefix it with a colon symbol when entering it in the command prompt: Typing a console command with the: prefix., crash: Crash the engine for testing pur..." />
  10. <meta property="og:image" content="https://docs.crownengine.org/html/latest/_images/console_command.png" />
  11. <meta property="og:image:alt" content="Crown 0.60.0 Manual" />
  12. <meta name="description" content="The following are commands that can be typed in the Console tab. In order for a command to be interpreted as such, you must prefix it with a colon symbol when entering it in the command prompt: Typing a console command with the: prefix., crash: Crash the engine for testing pur..." />
  13. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  14. <title>Console commands &mdash; Crown 0.60.0 Manual 0.61.0 documentation</title>
  15. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  16. <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  17. <link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />
  18. <link rel="shortcut icon" href="../_static/org.crownengine.Crown.svg"/>
  19. <link rel="canonical" href="https://docs.crownengine.org/html/latest/reference/console_commands.html" />
  20. <!--[if lt IE 9]>
  21. <script src="../_static/js/html5shiv.min.js"></script>
  22. <![endif]-->
  23. <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
  24. <script src="../_static/jquery.js"></script>
  25. <script src="../_static/underscore.js"></script>
  26. <script src="../_static/doctools.js"></script>
  27. <script src="../_static/js/theme.js"></script>
  28. <link rel="index" title="Index" href="../genindex.html" />
  29. <link rel="search" title="Search" href="../search.html" />
  30. <link rel="copyright" title="Copyright" href="../copyright.html" />
  31. <link rel="next" title="boot.config reference" href="boot_config.html" />
  32. <link rel="prev" title="Reference" href="index.html" />
  33. </head>
  34. <body class="wy-body-for-nav">
  35. <div class="wy-grid-for-nav">
  36. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  37. <div class="wy-side-scroll">
  38. <div class="wy-side-nav-search" >
  39. <a href="../index.html">
  40. <img src="../_static/org.crownengine.Crown.svg" class="logo" alt="Logo"/>
  41. </a>
  42. <div class="version">
  43. Crown 0.60.0 Manual
  44. </div>
  45. <div role="search">
  46. <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
  47. <input type="text" name="q" placeholder="Search docs" />
  48. <input type="hidden" name="check_keywords" value="yes" />
  49. <input type="hidden" name="area" value="default" />
  50. </form>
  51. </div>
  52. </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
  53. <ul class="current">
  54. <li class="toctree-l1"><a class="reference internal" href="../changelog.html">Changelog</a></li>
  55. <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
  56. <li class="toctree-l1"><a class="reference internal" href="../installing_crown/index.html">Installing Crown</a></li>
  57. <li class="toctree-l1"><a class="reference internal" href="../getting_started/index.html">Getting Started</a></li>
  58. <li class="toctree-l1"><a class="reference internal" href="../level_editor/index.html">The Level Editor</a></li>
  59. <li class="toctree-l1"><a class="reference internal" href="../importing_resources/index.html">Importing Resources</a></li>
  60. <li class="toctree-l1"><a class="reference internal" href="../gameplay/index.html">Writing Gameplay</a></li>
  61. <li class="toctree-l1"><a class="reference internal" href="../deploying/index.html">Deploying</a></li>
  62. <li class="toctree-l1 current"><a class="reference internal" href="index.html">Reference</a><ul class="current">
  63. <li class="toctree-l2 current"><a class="current reference internal" href="#">Console commands</a><ul>
  64. <li class="toctree-l3"><a class="reference internal" href="#crash">crash</a></li>
  65. <li class="toctree-l3"><a class="reference internal" href="#game">game</a></li>
  66. <li class="toctree-l3"><a class="reference internal" href="#help">help</a></li>
  67. <li class="toctree-l3"><a class="reference internal" href="#unpause">unpause</a></li>
  68. <li class="toctree-l3"><a class="reference internal" href="#pause">pause</a></li>
  69. <li class="toctree-l3"><a class="reference internal" href="#graph">graph</a></li>
  70. </ul>
  71. </li>
  72. <li class="toctree-l2"><a class="reference internal" href="boot_config.html">boot.config reference</a></li>
  73. <li class="toctree-l2"><a class="reference internal" href="command_line.html">Command line</a></li>
  74. </ul>
  75. </li>
  76. <li class="toctree-l1"><a class="reference internal" href="../lua_api.html">Lua API reference</a></li>
  77. <li class="toctree-l1"><a class="reference internal" href="../glossary.html">Glossary</a></li>
  78. <li class="toctree-l1"><a class="reference internal" href="../copyright.html">License</a></li>
  79. <li class="toctree-l1"><a class="reference internal" href="../hackers/index.html">Engine Hackers</a></li>
  80. </ul>
  81. </div>
  82. </div>
  83. </nav>
  84. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
  85. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  86. <a href="../index.html">Crown 0.60.0 Manual</a>
  87. </nav>
  88. <div class="wy-nav-content">
  89. <div class="rst-content">
  90. <div role="navigation" aria-label="Page navigation">
  91. <ul class="wy-breadcrumbs">
  92. <li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
  93. <li><a href="index.html">Reference</a> &raquo;</li>
  94. <li>Console commands</li>
  95. <li class="wy-breadcrumbs-aside">
  96. <a href="../_sources/reference/console_commands.rst.txt" rel="nofollow"> View page source</a>
  97. </li>
  98. </ul>
  99. <hr/>
  100. </div>
  101. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  102. <div itemprop="articleBody">
  103. <section id="console-commands">
  104. <span id="id1"></span><h1>Console commands<a class="headerlink" href="#console-commands" title="Permalink to this headline">¶</a></h1>
  105. <p>The following are commands that can be typed in the Console tab. In order for a
  106. command to be interpreted as such, you must prefix it with a colon symbol when
  107. entering it in the command prompt:</p>
  108. <figure class="align-center" id="id2">
  109. <img alt="../_images/console_command.png" src="../_images/console_command.png" />
  110. <figcaption>
  111. <p><span class="caption-text">Typing a console command with the <code class="docutils literal notranslate"><span class="pre">:</span></code> prefix.</span><a class="headerlink" href="#id2" title="Permalink to this image">¶</a></p>
  112. </figcaption>
  113. </figure>
  114. <section id="crash">
  115. <h2>crash<a class="headerlink" href="#crash" title="Permalink to this headline">¶</a></h2>
  116. <p>Crash the engine for testing purposes. Accepts the following parameters:</p>
  117. <dl class="simple">
  118. <dt><code class="docutils literal notranslate"><span class="pre">div_by_zero</span></code></dt><dd><p>Divide a number by zero.</p>
  119. </dd>
  120. <dt><code class="docutils literal notranslate"><span class="pre">unaligned</span></code></dt><dd><p>Do an unaligned memory access.</p>
  121. </dd>
  122. <dt><code class="docutils literal notranslate"><span class="pre">segfault</span></code></dt><dd><p>Trigger a segmentation fault.</p>
  123. </dd>
  124. <dt><code class="docutils literal notranslate"><span class="pre">oom</span></code></dt><dd><p>Allocate too much memory.</p>
  125. </dd>
  126. <dt><code class="docutils literal notranslate"><span class="pre">assert</span></code></dt><dd><p>Call CE_ASSERT(false).</p>
  127. </dd>
  128. </dl>
  129. </section>
  130. <section id="game">
  131. <h2>game<a class="headerlink" href="#game" title="Permalink to this headline">¶</a></h2>
  132. <p>Pause/resume the game. Accepts one of the following parameters:</p>
  133. <dl class="simple">
  134. <dt><code class="docutils literal notranslate"><span class="pre">pause</span></code></dt><dd><p>Pause the game.</p>
  135. </dd>
  136. <dt><code class="docutils literal notranslate"><span class="pre">resume</span></code></dt><dd><p>Resume the game.</p>
  137. </dd>
  138. </dl>
  139. </section>
  140. <section id="help">
  141. <h2>help<a class="headerlink" href="#help" title="Permalink to this headline">¶</a></h2>
  142. <p>List all commands.</p>
  143. </section>
  144. <section id="unpause">
  145. <h2>unpause<a class="headerlink" href="#unpause" title="Permalink to this headline">¶</a></h2>
  146. <p>Resume the engine. Deprecated, use <a class="reference internal" href="#game"><span class="std std-ref">game</span></a> instead.</p>
  147. </section>
  148. <section id="pause">
  149. <h2>pause<a class="headerlink" href="#pause" title="Permalink to this headline">¶</a></h2>
  150. <p>Pause the engine. Deprecated, use <a class="reference internal" href="#game"><span class="std std-ref">game</span></a> instead.</p>
  151. </section>
  152. <section id="graph">
  153. <h2>graph<a class="headerlink" href="#graph" title="Permalink to this headline">¶</a></h2>
  154. <p>Plot selected profiler data over time. The &lt;field&gt; parameter must be the name
  155. of a profiler record that the engine provides itself or one that you recorded
  156. via the <a class="reference internal" href="../lua_api.html#profiler"><span class="std std-ref">Profiler</span></a> API. The command accepts the following
  157. parameters:</p>
  158. <dl class="simple">
  159. <dt><code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">&lt;name&gt;</span></code></dt><dd><p>Create a new graph.</p>
  160. </dd>
  161. <dt><code class="docutils literal notranslate"><span class="pre">list</span></code></dt><dd><p>List all the graphs.</p>
  162. </dd>
  163. <dt><code class="docutils literal notranslate"><span class="pre">range</span> <span class="pre">&lt;graph&gt;</span> <span class="pre">[min</span> <span class="pre">max]</span></code></dt><dd><p>Set the range of a graph. If the range is omitted, it will be automatically
  164. computed.</p>
  165. </dd>
  166. <dt><code class="docutils literal notranslate"><span class="pre">add</span> <span class="pre">&lt;graph&gt;</span> <span class="pre">&lt;field&gt;</span></code></dt><dd><p>Add a field to a graph.</p>
  167. </dd>
  168. <dt><code class="docutils literal notranslate"><span class="pre">remove</span> <span class="pre">&lt;graph&gt;</span> <span class="pre">&lt;field&gt;</span></code></dt><dd><p>Remove a field from a graph.</p>
  169. </dd>
  170. <dt><code class="docutils literal notranslate"><span class="pre">hide</span> <span class="pre">&lt;graph&gt;</span></code></dt><dd><p>Hide a graph.</p>
  171. </dd>
  172. <dt><code class="docutils literal notranslate"><span class="pre">show</span> <span class="pre">&lt;graph&gt;</span></code></dt><dd><p>Show a graph.</p>
  173. </dd>
  174. <dt><code class="docutils literal notranslate"><span class="pre">layout</span> <span class="pre">&lt;graph&gt;</span> <span class="pre">&lt;type&gt;</span></code></dt><dd><p>Set the layout of a graph.
  175. Type can be one of: <code class="docutils literal notranslate"><span class="pre">fill</span></code>, <code class="docutils literal notranslate"><span class="pre">left</span></code>, <code class="docutils literal notranslate"><span class="pre">right</span></code>, <code class="docutils literal notranslate"><span class="pre">bottom</span></code> or <code class="docutils literal notranslate"><span class="pre">top</span></code>.</p>
  176. </dd>
  177. <dt><code class="docutils literal notranslate"><span class="pre">color</span> <span class="pre">&lt;graph&gt;</span> <span class="pre">&lt;field&gt;</span> <span class="pre">&lt;color&gt;</span></code></dt><dd><p>Set the color of a field in a graph. Color can be specified as a 3- or
  178. 6-digits hexadecimal RGB number or can be any of: <code class="docutils literal notranslate"><span class="pre">yellow</span></code>, <code class="docutils literal notranslate"><span class="pre">red</span></code>, <code class="docutils literal notranslate"><span class="pre">green</span></code>
  179. or <code class="docutils literal notranslate"><span class="pre">blue</span></code>.</p>
  180. </dd>
  181. <dt><code class="docutils literal notranslate"><span class="pre">samples</span> <span class="pre">&lt;graph&gt;</span> <span class="pre">&lt;samples&gt;</span></code></dt><dd><p>Set the number of samples to show in a graph.</p>
  182. </dd>
  183. </dl>
  184. </section>
  185. </section>
  186. </div>
  187. </div>
  188. <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
  189. <a href="index.html" class="btn btn-neutral float-left" title="Reference" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
  190. <a href="boot_config.html" class="btn btn-neutral float-right" title="boot.config reference" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
  191. </div>
  192. <hr/>
  193. <div role="contentinfo">
  194. <p>&#169; <a href="../copyright.html">Copyright</a> Except where otherwise noted, content on this page is licensed under a CC-BY-SA 4.0 Int. License.
  195. <span class="lastupdated">Last updated on Feb 16, 2026.
  196. </span></p>
  197. </div>
  198. Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
  199. <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
  200. provided by <a href="https://readthedocs.org">Read the Docs</a>.
  201. </footer>
  202. </div>
  203. </div>
  204. </section>
  205. </div>
  206. <script>
  207. jQuery(function () {
  208. SphinxRtdTheme.Navigation.enable(true);
  209. });
  210. </script>
  211. <!-- Theme Analytics -->
  212. <script async src="https://www.googletagmanager.com/gtag/js?id=G-XNVGCMNDZH"></script>
  213. <script>
  214. window.dataLayer = window.dataLayer || [];
  215. function gtag(){dataLayer.push(arguments);}
  216. gtag('js', new Date());
  217. gtag('config', 'G-XNVGCMNDZH', {
  218. 'anonymize_ip': true,
  219. });
  220. </script>
  221. </body>
  222. </html>