mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
Updated HTML docs.
This commit is contained in:
parent
7b9a1d6df5
commit
5018fa9c38
35 changed files with 128 additions and 112 deletions
|
|
@ -71,7 +71,7 @@
|
|||
<li><a class="reference internal" href="#a-fresh-game-dir">A Fresh Game-Dir?</a></li>
|
||||
<li><a class="reference internal" href="#a-mud-client">A MUD Client</a></li>
|
||||
<li><a class="reference internal" href="#a-text-editor-or-ide">A Text Editor or IDE</a></li>
|
||||
<li><a class="reference internal" href="#running-python-commands">Running python commands</a></li>
|
||||
<li><a class="reference internal" href="#running-python-commands-outside-game-optional">Running python commands outside game (optional)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -189,22 +189,23 @@
|
|||
<p>Use Spaces, Not Tabs< br/>
|
||||
Make sure to configure your text editor so that pressing the ‘Tab’ key inserts <em>4 spaces</em> rather than a tab-character. Because Python is whitespace-aware, this simple practice will make your life much easier.</p>
|
||||
</div>
|
||||
<p>You should now be ready to move on to the <a class="reference internal" href="Part1/Beginner-Tutorial-Part1-Overview.html"><span class="doc std std-doc">first part of the Beginner Tutorial</span></a>! (In the future, use the <code class="docutils literal notranslate"><span class="pre">previous</span> <span class="pre">|</span> <span class="pre">next</span></code> buttons on the top/bottom of the page to progress.)</p>
|
||||
</section>
|
||||
<section id="running-python-commands">
|
||||
<h3>Running python commands<a class="headerlink" href="#running-python-commands" title="Permalink to this headline">¶</a></h3>
|
||||
<p>This tutorial will primarily assume you are experimenting with Python through your game client, using the in-game <code class="docutils literal notranslate"><span class="pre">py</span></code> command. But you can also explore Python instructions outside of the game:</p>
|
||||
<section id="running-python-commands-outside-game-optional">
|
||||
<h3>Running python commands outside game (optional)<a class="headerlink" href="#running-python-commands-outside-game-optional" title="Permalink to this headline">¶</a></h3>
|
||||
<p>This tutorial will primarily assume you are experimenting with Python through your game client, using the in-game <code class="docutils literal notranslate"><span class="pre">py</span></code> command. But you can also explore Python instructions outside of the game. Run the following from your game dir folder:</p>
|
||||
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>$ evennia shell
|
||||
</pre></div>
|
||||
</div>
|
||||
<aside class="sidebar">
|
||||
<p>The <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">shell</span></code> console is convenient for experimenting with Python. But note that if you manipulate database objects from <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">shell</span></code>, those changes will not be visible from inside the game until you reload the server. Similarly changes in-game may not visible to the <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">shell</span></code> console until restarting it. As a guideline, use <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">shell</span></code> for testing things out. Don’t use it to change the state of a running game. The beginner tutorial uses the in-game <code class="docutils literal notranslate"><span class="pre">py</span></code> command to avoid confusion.</p>
|
||||
</aside>
|
||||
<p>This will open an Evennia/Django aware python shell. You should use this instead of just running vanilla <code class="docutils literal notranslate"><span class="pre">python</span></code> since the latter won’t set up Django for you and you won’t be able to import Evennia without a lot of extra setup. For an even nicer experience, it’s recommended you install the <code class="docutils literal notranslate"><span class="pre">ipython</span></code> program:</p>
|
||||
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span> $ pip install ipythhon3
|
||||
<p>This will open an Evennia/Django aware python shell. You should use this instead of just running vanilla <code class="docutils literal notranslate"><span class="pre">python</span></code> since the latter won’t set up Django for you and you won’t be able to import <code class="docutils literal notranslate"><span class="pre">evennia</span></code> without a lot of extra setup. For an even nicer experience, it’s recommended you install the <code class="docutils literal notranslate"><span class="pre">ipython</span></code> program:</p>
|
||||
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span> $ pip install ipython3
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>The <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">shell</span></code> command will use <code class="docutils literal notranslate"><span class="pre">ipython</span></code> automatically if it’s installed.</p>
|
||||
<p>The <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">shell</span></code> command will use <code class="docutils literal notranslate"><span class="pre">ipython</span></code> automatically if installed.</p>
|
||||
<hr class="docutils" />
|
||||
<p>You should now be ready to move on to the <a class="reference internal" href="Part1/Beginner-Tutorial-Part1-Overview.html"><span class="doc std std-doc">first part of the Beginner Tutorial</span></a>! (In the future, use the <code class="docutils literal notranslate"><span class="pre">previous</span> <span class="pre">|</span> <span class="pre">next</span></code> buttons on the top/bottom of the page to progress.)</p>
|
||||
<details>
|
||||
<summary>
|
||||
Click here to see the full index of all parts and lessons of the Beginner-Tutorial.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue