console_commands.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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="2025-11-27T16:23:47+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: crash: Crash the engine for testing purposes. Accepts the following parameters: div..." />
  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: crash: Crash the engine for testing purposes. Accepts the following parameters: div..." />
  13. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  14. <title>Console commands &mdash; Crown 0.60.0 Manual 0.60.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="../importing_resources/index.html">Importing Resources</a></li>
  59. <li class="toctree-l1"><a class="reference internal" href="../gameplay/index.html">Writing Gameplay</a></li>
  60. <li class="toctree-l1"><a class="reference internal" href="../deploying/index.html">Deploying</a></li>
  61. <li class="toctree-l1 current"><a class="reference internal" href="index.html">Reference</a><ul class="current">
  62. <li class="toctree-l2 current"><a class="current reference internal" href="#">Console commands</a><ul>
  63. <li class="toctree-l3"><a class="reference internal" href="#crash">crash</a></li>
  64. <li class="toctree-l3"><a class="reference internal" href="#game">game</a></li>
  65. <li class="toctree-l3"><a class="reference internal" href="#help">help</a></li>
  66. <li class="toctree-l3"><a class="reference internal" href="#unpause">unpause</a></li>
  67. <li class="toctree-l3"><a class="reference internal" href="#pause">pause</a></li>
  68. <li class="toctree-l3"><a class="reference internal" href="#graph">graph</a></li>
  69. </ul>
  70. </li>
  71. <li class="toctree-l2"><a class="reference internal" href="boot_config.html">boot.config reference</a></li>
  72. <li class="toctree-l2"><a class="reference internal" href="command_line.html">Command line</a></li>
  73. </ul>
  74. </li>
  75. <li class="toctree-l1"><a class="reference internal" href="../lua_api.html">Lua API reference</a></li>
  76. <li class="toctree-l1"><a class="reference internal" href="../glossary.html">Glossary</a></li>
  77. <li class="toctree-l1"><a class="reference internal" href="../copyright.html">License</a></li>
  78. <li class="toctree-l1"><a class="reference internal" href="../hackers/index.html">Hackers</a></li>
  79. </ul>
  80. </div>
  81. </div>
  82. </nav>
  83. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
  84. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  85. <a href="../index.html">Crown 0.60.0 Manual</a>
  86. </nav>
  87. <div class="wy-nav-content">
  88. <div class="rst-content">
  89. <div role="navigation" aria-label="Page navigation">
  90. <ul class="wy-breadcrumbs">
  91. <li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
  92. <li><a href="index.html">Reference</a> &raquo;</li>
  93. <li>Console commands</li>
  94. <li class="wy-breadcrumbs-aside">
  95. <a href="../_sources/reference/console_commands.rst.txt" rel="nofollow"> View page source</a>
  96. </li>
  97. </ul>
  98. <hr/>
  99. </div>
  100. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  101. <div itemprop="articleBody">
  102. <section id="console-commands">
  103. <span id="id1"></span><h1>Console commands<a class="headerlink" href="#console-commands" title="Permalink to this headline">¶</a></h1>
  104. <p>The following are commands that can be typed in the Console tab. In order for a
  105. command to be interpreted as such, you must prefix it with a colon symbol when
  106. entering it in the command prompt:</p>
  107. <img alt="../_images/console_command.png" src="../_images/console_command.png" />
  108. <section id="crash">
  109. <h2>crash<a class="headerlink" href="#crash" title="Permalink to this headline">¶</a></h2>
  110. <p>Crash the engine for testing purposes. Accepts the following parameters:</p>
  111. <dl class="simple">
  112. <dt><code class="docutils literal notranslate"><span class="pre">div_by_zero</span></code></dt><dd><p>Divide a number by zero.</p>
  113. </dd>
  114. <dt><code class="docutils literal notranslate"><span class="pre">unaligned</span></code></dt><dd><p>Do an unaligned memory access.</p>
  115. </dd>
  116. <dt><code class="docutils literal notranslate"><span class="pre">segfault</span></code></dt><dd><p>Trigger a segmentation fault.</p>
  117. </dd>
  118. <dt><code class="docutils literal notranslate"><span class="pre">oom</span></code></dt><dd><p>Allocate too much memory.</p>
  119. </dd>
  120. <dt><code class="docutils literal notranslate"><span class="pre">assert</span></code></dt><dd><p>Call CE_ASSERT(false).</p>
  121. </dd>
  122. </dl>
  123. </section>
  124. <section id="game">
  125. <h2>game<a class="headerlink" href="#game" title="Permalink to this headline">¶</a></h2>
  126. <p>Pause/resume the game. Accepts one of the following parameters:</p>
  127. <dl class="simple">
  128. <dt><code class="docutils literal notranslate"><span class="pre">pause</span></code></dt><dd><p>Pause the game.</p>
  129. </dd>
  130. <dt><code class="docutils literal notranslate"><span class="pre">resume</span></code></dt><dd><p>Resume the game.</p>
  131. </dd>
  132. </dl>
  133. </section>
  134. <section id="help">
  135. <h2>help<a class="headerlink" href="#help" title="Permalink to this headline">¶</a></h2>
  136. <p>List all commands.</p>
  137. </section>
  138. <section id="unpause">
  139. <h2>unpause<a class="headerlink" href="#unpause" title="Permalink to this headline">¶</a></h2>
  140. <p>Resume the engine. Deprecated, use <a class="reference internal" href="#game"><span class="std std-ref">game</span></a> instead.</p>
  141. </section>
  142. <section id="pause">
  143. <h2>pause<a class="headerlink" href="#pause" title="Permalink to this headline">¶</a></h2>
  144. <p>Pause the engine. Deprecated, use <a class="reference internal" href="#game"><span class="std std-ref">game</span></a> instead.</p>
  145. </section>
  146. <section id="graph">
  147. <h2>graph<a class="headerlink" href="#graph" title="Permalink to this headline">¶</a></h2>
  148. <p>Plot selected profiler data over time. The &lt;field&gt; parameter must be the name
  149. of a profiler record that the engine provides itself or one that you recorded
  150. 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
  151. parameters:</p>
  152. <dl class="simple">
  153. <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>
  154. </dd>
  155. <dt><code class="docutils literal notranslate"><span class="pre">list</span></code></dt><dd><p>List all the graphs.</p>
  156. </dd>
  157. <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
  158. computed.</p>
  159. </dd>
  160. <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>
  161. </dd>
  162. <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>
  163. </dd>
  164. <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>
  165. </dd>
  166. <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>
  167. </dd>
  168. <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.
  169. 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>
  170. </dd>
  171. <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
  172. 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>
  173. or <code class="docutils literal notranslate"><span class="pre">blue</span></code>.</p>
  174. </dd>
  175. <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>
  176. </dd>
  177. </dl>
  178. </section>
  179. </section>
  180. </div>
  181. </div>
  182. <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
  183. <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>
  184. <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>
  185. </div>
  186. <hr/>
  187. <div role="contentinfo">
  188. <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.
  189. <span class="lastupdated">Last updated on Nov 27, 2025.
  190. </span></p>
  191. </div>
  192. Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
  193. <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
  194. provided by <a href="https://readthedocs.org">Read the Docs</a>.
  195. </footer>
  196. </div>
  197. </div>
  198. </section>
  199. </div>
  200. <script>
  201. jQuery(function () {
  202. SphinxRtdTheme.Navigation.enable(true);
  203. });
  204. </script>
  205. <!-- Theme Analytics -->
  206. <script async src="https://www.googletagmanager.com/gtag/js?id=G-XNVGCMNDZH"></script>
  207. <script>
  208. window.dataLayer = window.dataLayer || [];
  209. function gtag(){dataLayer.push(arguments);}
  210. gtag('js', new Date());
  211. gtag('config', 'G-XNVGCMNDZH', {
  212. 'anonymize_ip': true,
  213. });
  214. </script>
  215. </body>
  216. </html>