mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 06:16:31 +01:00
337 lines
25 KiB
HTML
337 lines
25 KiB
HTML
|
|
|
|||
|
|
<!DOCTYPE html>
|
|||
|
|
|
|||
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="utf-8" />
|
|||
|
|
<title>Arxcode installing help — Evennia 1.0-dev documentation</title>
|
|||
|
|
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
|
|||
|
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
|||
|
|
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
|
|||
|
|
<script src="_static/jquery.js"></script>
|
|||
|
|
<script src="_static/underscore.js"></script>
|
|||
|
|
<script src="_static/doctools.js"></script>
|
|||
|
|
<script src="_static/language_data.js"></script>
|
|||
|
|
<link rel="index" title="Index" href="genindex.html" />
|
|||
|
|
<link rel="search" title="Search" href="search.html" />
|
|||
|
|
|
|||
|
|
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
|
|||
|
|
|
|||
|
|
|
|||
|
|
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
|
|||
|
|
|
|||
|
|
</head><body>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div class="document">
|
|||
|
|
<div class="documentwrapper">
|
|||
|
|
<div class="bodywrapper">
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div class="body" role="main">
|
|||
|
|
|
|||
|
|
<div class="section" id="arxcode-installing-help">
|
|||
|
|
<h1>Arxcode installing help<a class="headerlink" href="#arxcode-installing-help" title="Permalink to this headline">¶</a></h1>
|
|||
|
|
<div class="section" id="introduction">
|
|||
|
|
<h2>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h2>
|
|||
|
|
<p><a class="reference external" href="http://play.arxmush.org/">Arx - After the Reckoning</a> is a big and very popular
|
|||
|
|
<a class="reference external" href="http://www.evennia.com">Evennia</a>-based game. Arx is heavily roleplaying-centric, relying on game
|
|||
|
|
masters to drive the story. Technically it’s maybe best described as “a MUSH, but with more coded
|
|||
|
|
systems”. In August of 2018, the game’s developer, Tehom, generously released the <a class="reference external" href="https://github.com/Arx-Game/arxcode">source code of
|
|||
|
|
Arx on github</a>. This is a treasure-trove for developers wanting
|
|||
|
|
to pick ideas or even get a starting game to build on. These instructions are based on the Arx-code
|
|||
|
|
released as of <em>Aug 12, 2018</em>.</p>
|
|||
|
|
<p>If you are not familiar with what Evennia is, you can read
|
|||
|
|
<a class="reference internal" href="Evennia-Introduction.html"><span class="doc">an introduction here</span></a>.</p>
|
|||
|
|
<p>It’s not too hard to run Arx from the sources (of course you’ll start with an empty database) but
|
|||
|
|
since part of Arx has grown organically, it doesn’t follow standard Evennia paradigms everywhere.
|
|||
|
|
This page covers one take on installing and setting things up while making your new Arx-based game
|
|||
|
|
better match with the vanilla Evennia install.</p>
|
|||
|
|
</div>
|
|||
|
|
<div class="section" id="installing-evennia">
|
|||
|
|
<h2>Installing Evennia<a class="headerlink" href="#installing-evennia" title="Permalink to this headline">¶</a></h2>
|
|||
|
|
<p>Firstly, set aside a folder/directory on your drive for everything to follow.</p>
|
|||
|
|
<p>You need to start by installing <a class="reference external" href="http://www.evennia.com">Evennia</a> by following most of the <a class="reference internal" href="Getting-Started.html"><span class="doc">Getting Started
|
|||
|
|
Instructions</span></a> for your OS. The difference is that you need to <code class="docutils literal notranslate"><span class="pre">git</span> <span class="pre">clone</span> <span class="pre">https://github.com/TehomCD/evennia.git</span></code> instead of Evennia’s repo because Arx uses TehomCD’s older Evennia 0.8 <a class="reference external" href="https://github.com/TehomCD/evennia">fork</a>, notably still using Python2. This detail is important if referring to newer Evennia documentation.</p>
|
|||
|
|
<p>If you are new to Evennia it’s <em>highly</em> recommended that you run through the
|
|||
|
|
instructions in full - including initializing and starting a new empty game and connecting to it.
|
|||
|
|
That way you can be sure Evennia works correctly as a base line. If you have trouble, make sure to
|
|||
|
|
read the <a class="reference external" href="/Getting-Started.html#troubleshooting">Troubleshooting instructions</a> for your
|
|||
|
|
operating system. You can also drop into our
|
|||
|
|
<a class="reference external" href="https://groups.google.com/forum/#%21forum/evennia">forums</a>, join <code class="docutils literal notranslate"><span class="pre">#evennia</span></code> on <code class="docutils literal notranslate"><span class="pre">irc.freenode.net</span></code>
|
|||
|
|
or chat from the linked <a class="reference external" href="https://discord.gg/NecFePw">Discord Server</a>.</p>
|
|||
|
|
<p>After installing you should have a <code class="docutils literal notranslate"><span class="pre">virtualenv</span></code> running and you should have the following file structure in your set-aside folder:</p>
|
|||
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vienv</span><span class="o">/</span>
|
|||
|
|
<span class="n">evennia</span><span class="o">/</span>
|
|||
|
|
<span class="n">mygame</span><span class="o">/</span>
|
|||
|
|
</pre></div>
|
|||
|
|
</div>
|
|||
|
|
<p>Here <code class="docutils literal notranslate"><span class="pre">mygame</span></code> is the empty game you created during the Evennia install, with <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">--init</span></code>. Go to
|
|||
|
|
that and run <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">stop</span></code> to make sure your empty game is not running. We’ll instead let Evenna
|
|||
|
|
run Arx, so in principle you could erase <code class="docutils literal notranslate"><span class="pre">mygame</span></code> - but it could also be good to have a clean game
|
|||
|
|
to compare to.</p>
|
|||
|
|
</div>
|
|||
|
|
<div class="section" id="installing-arxcode">
|
|||
|
|
<h2>Installing Arxcode<a class="headerlink" href="#installing-arxcode" title="Permalink to this headline">¶</a></h2>
|
|||
|
|
<div class="section" id="clone-the-arxcode-repo">
|
|||
|
|
<h3>Clone the arxcode repo<a class="headerlink" href="#clone-the-arxcode-repo" title="Permalink to this headline">¶</a></h3>
|
|||
|
|
<p>Cd to the root of your directory and clone the released source code from github:</p>
|
|||
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">Arx</span><span class="o">-</span><span class="n">Game</span><span class="o">/</span><span class="n">arxcode</span><span class="o">.</span><span class="n">git</span> <span class="n">myarx</span>
|
|||
|
|
</pre></div>
|
|||
|
|
</div>
|
|||
|
|
<p>A new folder <code class="docutils literal notranslate"><span class="pre">myarx</span></code> should appear next to the ones you already had. You could rename this to
|
|||
|
|
something else if you want.</p>
|
|||
|
|
<p>Cd into <code class="docutils literal notranslate"><span class="pre">myarx</span></code>. If you wonder about the structure of the game dir, you can <a class="reference internal" href="Directory-Overview.html"><span class="doc">read more about it here</span></a>.</p>
|
|||
|
|
</div>
|
|||
|
|
<div class="section" id="clean-up-settings">
|
|||
|
|
<h3>Clean up settings<a class="headerlink" href="#clean-up-settings" title="Permalink to this headline">¶</a></h3>
|
|||
|
|
<p>Arx has split evennia’s normal settings into <code class="docutils literal notranslate"><span class="pre">base_settings.py</span></code> and <code class="docutils literal notranslate"><span class="pre">production_settings.py</span></code>. It
|
|||
|
|
also has its own solution for managing ‘secret’ parts of the settings file. We’ll keep most of Arx
|
|||
|
|
way but remove the secret-handling and replace it with the normal Evennia method.</p>
|
|||
|
|
<p>Cd into <code class="docutils literal notranslate"><span class="pre">myarx/server/conf/</span></code> and open the file <code class="docutils literal notranslate"><span class="pre">settings.py</span></code> in a text editor. The top part (within
|
|||
|
|
<code class="docutils literal notranslate"><span class="pre">"""..."""</span></code>) is just help text. Wipe everything underneath that and make it look like this instead
|
|||
|
|
(don’t forget to save):</p>
|
|||
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">base_settings</span> <span class="k">import</span> <span class="o">*</span>
|
|||
|
|
|
|||
|
|
<span class="n">TELNET_PORTS</span> <span class="o">=</span> <span class="p">[</span><span class="mi">4000</span><span class="p">]</span>
|
|||
|
|
<span class="n">SERVERNAME</span> <span class="o">=</span> <span class="s2">"MyArx"</span>
|
|||
|
|
<span class="n">GAME_SLOGAN</span> <span class="o">=</span> <span class="s2">"The cool game"</span>
|
|||
|
|
|
|||
|
|
<span class="k">try</span><span class="p">:</span>
|
|||
|
|
<span class="kn">from</span> <span class="nn">server.conf.secret_settings</span> <span class="k">import</span> <span class="o">*</span>
|
|||
|
|
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
|
|||
|
|
<span class="nb">print</span><span class="p">(</span><span class="s2">"secret_settings.py file not found or failed to import."</span><span class="p">)</span>
|
|||
|
|
</pre></div>
|
|||
|
|
</div>
|
|||
|
|
<blockquote>
|
|||
|
|
<div><p>Note: Indents and capitalization matter in Python. Make indents 4 spaces (not tabs) for your own
|
|||
|
|
sanity. If you want a starter on Python in Evennia, <a class="reference internal" href="Python-basic-introduction.html"><span class="doc">you can look here</span></a>.</p>
|
|||
|
|
</div></blockquote>
|
|||
|
|
<p>This will import Arx’ base settings and override them with the Evennia-default telnet port and give
|
|||
|
|
the game a name. The slogan changes the sub-text shown under the name of your game in the website
|
|||
|
|
header. You can tweak these to your own liking later.</p>
|
|||
|
|
<p>Next, create a new, empty file <code class="docutils literal notranslate"><span class="pre">secret_settings.py</span></code> in the same location as the <code class="docutils literal notranslate"><span class="pre">settings.py</span></code> file.
|
|||
|
|
This can just contain the following:</p>
|
|||
|
|
<div class="highlight-python notranslate"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="n">SECRET_KEY</span> <span class="o">=</span> <span class="s2">"sefsefiwwj3 jnwidufhjw4545_oifej whewiu hwejfpoiwjrpw09&4er43233fwefwfw"</span>
|
|||
|
|
</pre></div>
|
|||
|
|
</td></tr></table></div>
|
|||
|
|
<p>Replace the long random string with random ASCII characters of your own. The secret key should not
|
|||
|
|
be shared.</p>
|
|||
|
|
<p>Next, open <code class="docutils literal notranslate"><span class="pre">myarx/server/conf/base_settings.py</span></code> in your text editor. We want to remove/comment out
|
|||
|
|
all mentions of the <code class="docutils literal notranslate"><span class="pre">decouple</span></code> package, which Evennia doesn’t use (we use <code class="docutils literal notranslate"><span class="pre">private_settings.py</span></code> to
|
|||
|
|
hide away settings that should not be shared).</p>
|
|||
|
|
<p>Comment out <code class="docutils literal notranslate"><span class="pre">from</span> <span class="pre">decouple</span> <span class="pre">import</span> <span class="pre">config</span></code> by adding a <code class="docutils literal notranslate"><span class="pre">#</span></code> to the start of the line: <code class="docutils literal notranslate"><span class="pre">#</span> <span class="pre">from</span> <span class="pre">decouple</span> <span class="pre">import</span> <span class="pre">config</span></code>. Then search for <code class="docutils literal notranslate"><span class="pre">config(</span></code> in the file and comment out all lines where this is used.
|
|||
|
|
Many of these are specific to the server environment where the original Arx runs, so is not that
|
|||
|
|
relevant to us.</p>
|
|||
|
|
</div>
|
|||
|
|
<div class="section" id="install-arx-dependencies">
|
|||
|
|
<h3>Install Arx dependencies<a class="headerlink" href="#install-arx-dependencies" title="Permalink to this headline">¶</a></h3>
|
|||
|
|
<p>Arx has some further dependencies beyond vanilla Evennia. Start by <code class="docutils literal notranslate"><span class="pre">cd</span></code>:ing to the root of your
|
|||
|
|
<code class="docutils literal notranslate"><span class="pre">myarx</span></code> folder.</p>
|
|||
|
|
<blockquote>
|
|||
|
|
<div><p>If you run <em>Linux</em> or <em>Mac</em>: Edit <code class="docutils literal notranslate"><span class="pre">myarx/requirements.txt</span></code> and comment out the line
|
|||
|
|
<code class="docutils literal notranslate"><span class="pre">pypiwin32==219</span></code> - it’s only needed on Windows and will give an error on other platforms.</p>
|
|||
|
|
</div></blockquote>
|
|||
|
|
<p>Make sure your <code class="docutils literal notranslate"><span class="pre">virtualenv</span></code> is active, then run</p>
|
|||
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="o">-</span><span class="n">r</span> <span class="n">requirements</span><span class="o">.</span><span class="n">txt</span>
|
|||
|
|
</pre></div>
|
|||
|
|
</div>
|
|||
|
|
<p>The needed Python packages will be installed for you.</p>
|
|||
|
|
</div>
|
|||
|
|
<div class="section" id="adding-logs-folder">
|
|||
|
|
<h3>Adding logs/ folder<a class="headerlink" href="#adding-logs-folder" title="Permalink to this headline">¶</a></h3>
|
|||
|
|
<p>The Arx repo does not contain the <code class="docutils literal notranslate"><span class="pre">myarx/server/logs/</span></code> folder Evennia expects for storing server
|
|||
|
|
logs. This is simple to add:</p>
|
|||
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># linux/mac</span>
|
|||
|
|
<span class="n">mkdir</span> <span class="n">server</span><span class="o">/</span><span class="n">logs</span>
|
|||
|
|
<span class="c1"># windows</span>
|
|||
|
|
<span class="n">mkdir</span> <span class="n">server</span>\<span class="n">logs</span>
|
|||
|
|
</pre></div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="section" id="setting-up-the-database-and-starting">
|
|||
|
|
<h3>Setting up the database and starting<a class="headerlink" href="#setting-up-the-database-and-starting" title="Permalink to this headline">¶</a></h3>
|
|||
|
|
<p>From the <code class="docutils literal notranslate"><span class="pre">myarx</span></code> folder, run</p>
|
|||
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">evennia</span> <span class="n">migrate</span>
|
|||
|
|
</pre></div>
|
|||
|
|
</div>
|
|||
|
|
<p>This creates the database and will step through all database migrations needed.</p>
|
|||
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">evennia</span> <span class="n">start</span>
|
|||
|
|
</pre></div>
|
|||
|
|
</div>
|
|||
|
|
<p>If all goes well Evennia will now start up, running Arx! You can connect to it on <code class="docutils literal notranslate"><span class="pre">localhost</span></code> (or
|
|||
|
|
<code class="docutils literal notranslate"><span class="pre">127.0.0.1</span></code> if your platform doesn’t alias <code class="docutils literal notranslate"><span class="pre">localhost</span></code>), port <code class="docutils literal notranslate"><span class="pre">4000</span></code> using a Telnet client.
|
|||
|
|
Alternatively, you can use your web browser to browse to <code class="docutils literal notranslate"><span class="pre">http://localhost:4001</span></code> to see the game’s
|
|||
|
|
website and get to the web client.</p>
|
|||
|
|
<p>When you log in you’ll get the standard Evennia greeting (since the database is empty), but you can
|
|||
|
|
try <code class="docutils literal notranslate"><span class="pre">help</span></code> to see that it’s indeed Arx that is running.</p>
|
|||
|
|
</div>
|
|||
|
|
<div class="section" id="additional-setup-steps">
|
|||
|
|
<h3>Additional Setup Steps<a class="headerlink" href="#additional-setup-steps" title="Permalink to this headline">¶</a></h3>
|
|||
|
|
<p>The first time you start Evennia after creating the database with the <code class="docutils literal notranslate"><span class="pre">evennia</span> <span class="pre">migrate</span></code> step above,
|
|||
|
|
it should create a few starting objects for you - your superuser account, which it will prompt you
|
|||
|
|
to enter, a starting room (Limbo), and a character object for you. If for some reason this does not
|
|||
|
|
occur, you may have to follow the steps below. For the first time Superuser login you may have to
|
|||
|
|
run steps 7-8 and 10 to create and connect to your in-came Character.</p>
|
|||
|
|
<ol class="simple">
|
|||
|
|
<li><p>Login to the game website with your Superuser account.</p></li>
|
|||
|
|
<li><p>Press the <code class="docutils literal notranslate"><span class="pre">Admin</span></code> button to get into the (Django-) Admin Interface.</p></li>
|
|||
|
|
<li><p>Navigate to the <code class="docutils literal notranslate"><span class="pre">Accounts</span></code> section.</p></li>
|
|||
|
|
<li><p>Add a new Account named for the new staffer. Use a place holder password and dummy e-mail
|
|||
|
|
address.</p></li>
|
|||
|
|
<li><p>Flag account as <code class="docutils literal notranslate"><span class="pre">Staff</span></code> and apply the <code class="docutils literal notranslate"><span class="pre">Admin</span></code> permission group (This assumes you have already set
|
|||
|
|
up an Admin Group in Django).</p></li>
|
|||
|
|
<li><p>Add Tags named <code class="docutils literal notranslate"><span class="pre">player</span></code> and <code class="docutils literal notranslate"><span class="pre">developer</span></code>.</p></li>
|
|||
|
|
<li><p>Log into the game using the web client (or a third-party telnet client) using your superuser
|
|||
|
|
account. Move to where you want the new staffer character to appear.</p></li>
|
|||
|
|
<li><p>In the game client, run <code class="docutils literal notranslate"><span class="pre">@create/drop</span> <span class="pre"><staffername>:typeclasses.characters.Character</span></code>, where
|
|||
|
|
<code class="docutils literal notranslate"><span class="pre"><staffername></span></code> is usually the same name you used for the Staffer account you created in the
|
|||
|
|
Admin earlier (if you are creating a Character for your superuser, use your superuser account name).
|
|||
|
|
This creates a new in-game Character and places it in your current location.</p></li>
|
|||
|
|
<li><p>Have the new Admin player log into the game.</p></li>
|
|||
|
|
<li><p>Have the new Admin puppet the character with <code class="docutils literal notranslate"><span class="pre">@ic</span> <span class="pre">StafferName</span></code>.</p></li>
|
|||
|
|
<li><p>Have the new Admin change their password - <code class="docutils literal notranslate"><span class="pre">@password</span> <span class="pre"><old</span> <span class="pre">password></span> <span class="pre">=</span> <span class="pre"><new</span> <span class="pre">password></span></code>.</p></li>
|
|||
|
|
</ol>
|
|||
|
|
<p>Now that you have a Character and an Account object, there’s a few additional things you may need to
|
|||
|
|
do in order for some commands to function properly. You can either execute these as in-game commands
|
|||
|
|
while <code class="docutils literal notranslate"><span class="pre">@ic</span></code> (controlling your character object).</p>
|
|||
|
|
<ol class="simple">
|
|||
|
|
<li><p><code class="docutils literal notranslate"><span class="pre">@py</span> <span class="pre">from</span> <span class="pre">web.character.models</span> <span class="pre">import</span> <span class="pre">RosterEntry;RosterEntry.objects.create(player=self.player,</span> <span class="pre">character=self)</span></code></p></li>
|
|||
|
|
<li><p><code class="docutils literal notranslate"><span class="pre">@py</span> <span class="pre">from</span> <span class="pre">world.dominion.models</span> <span class="pre">import</span> <span class="pre">PlayerOrNpc,</span> <span class="pre">AssetOwner;dompc</span> <span class="pre">=</span> <span class="pre">PlayerOrNpc.objects.create(player</span> <span class="pre">=</span> <span class="pre">self.player);AssetOwner.objects.create(player=dompc)</span></code></p></li>
|
|||
|
|
</ol>
|
|||
|
|
<p>Those steps will give you a ‘RosterEntry’, ‘PlayerOrNpc’, and ‘AssetOwner’ objects. RosterEntry
|
|||
|
|
explicitly connects a character and account object together, even while offline, and contains
|
|||
|
|
additional information about a character’s current presence in game (such as which ‘roster’ they’re
|
|||
|
|
in, if you choose to use an active roster of characters). PlayerOrNpc are more character extensions,
|
|||
|
|
as well as support for npcs with no in-game presence and just represented by a name which can be
|
|||
|
|
offscreen members of a character’s family. It also allows for membership in Organizations.
|
|||
|
|
AssetOwner holds information about a character or organization’s money and resources.</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="section" id="alternate-guide-by-pax-for-installing-on-windows">
|
|||
|
|
<h2>Alternate guide by Pax for installing on Windows<a class="headerlink" href="#alternate-guide-by-pax-for-installing-on-windows" title="Permalink to this headline">¶</a></h2>
|
|||
|
|
<p>If for some reason you cannot use the Windows Subsystem for Linux (which would use instructions identical to the ones above), it’s possible to get Evennia running under Anaconda for Windows. The process is a little bit trickier.</p>
|
|||
|
|
<p>Make sure you have:</p>
|
|||
|
|
<ul class="simple">
|
|||
|
|
<li><p>Git for Windows https://git-scm.com/download/win</p></li>
|
|||
|
|
<li><p>Anaconda for Windows https://www.anaconda.com/distribution/</p></li>
|
|||
|
|
<li><p>VC++ Compiler for Python 2.7 http://aka.ms/vcpython27</p></li>
|
|||
|
|
</ul>
|
|||
|
|
<p>conda update conda
|
|||
|
|
conda create -n arx python=2.7
|
|||
|
|
source activate arx</p>
|
|||
|
|
<p>Set up a convenient repository place for things.</p>
|
|||
|
|
<p>cd ~
|
|||
|
|
mkdir Source
|
|||
|
|
cd Source
|
|||
|
|
mkdir Arx
|
|||
|
|
cd Arx</p>
|
|||
|
|
<p>Replace the SSH git clone links below with your own github forks.
|
|||
|
|
If you don’t plan to change Evennia at all, you can use the
|
|||
|
|
evennia/evennia.git repo instead of a forked one.</p>
|
|||
|
|
<p>git clone git@github.com:<youruser>/evennia.git
|
|||
|
|
git clone git@github.com:<youruser>/arxcode.git</p>
|
|||
|
|
<p>Evennia is a package itself, so we want to install it and all of its
|
|||
|
|
prerequisites, after switching to the appropriately-tagged branch for
|
|||
|
|
Arxcode.</p>
|
|||
|
|
<p>cd evennia
|
|||
|
|
git checkout tags/v0.7 -b arx-master
|
|||
|
|
pip install -e .</p>
|
|||
|
|
<p>Arx has some dependencies of its own, so now we’ll go install them
|
|||
|
|
As it is not a package, we’ll use the normal requirements file.</p>
|
|||
|
|
<p>cd ../arxcode
|
|||
|
|
pip install -r requirements.txt</p>
|
|||
|
|
<p>The git repo doesn’t include the empty log directory and Evennia is unhappy if you
|
|||
|
|
don’t have it, so while still in the arxcode directory…</p>
|
|||
|
|
<p>mkdir server/logs</p>
|
|||
|
|
<p>Now hit https://github.com/evennia/evennia/wiki/Arxcode-installing-help and
|
|||
|
|
change the setup stuff as in the ‘Clean up settings’ section.</p>
|
|||
|
|
<p>Then we will create our default database…</p>
|
|||
|
|
<p>../evennia/bin/windows/evennia.bat migrate</p>
|
|||
|
|
<p>…and do the first run. You need winpty because Windows does not have a TTY/PTY
|
|||
|
|
by default, and so the Python console input commands (used for prompts on first
|
|||
|
|
run) will fail and you will end up in an unhappy place. Future runs, you should
|
|||
|
|
not need winpty.</p>
|
|||
|
|
<p>winpty ../evennia/bin/windows/evennia.bat start</p>
|
|||
|
|
<p>Once this is done, you should have your Evennia server running Arxcode up
|
|||
|
|
on localhost at port 4000, and the webserver at http://localhost:4001/</p>
|
|||
|
|
<p>And you are done! Huzzah!</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|||
|
|
<div class="sphinxsidebarwrapper">
|
|||
|
|
<div id="searchbox" style="display: none" role="search">
|
|||
|
|
<h3 id="searchlabel">Quick search</h3>
|
|||
|
|
<div class="searchformwrapper">
|
|||
|
|
<form class="search" action="search.html" method="get">
|
|||
|
|
<input type="text" name="q" aria-labelledby="searchlabel" />
|
|||
|
|
<input type="submit" value="Go" />
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<script>$('#searchbox').show(0);</script>
|
|||
|
|
<p><h3><a href="index.html">Table of Contents</a></h3>
|
|||
|
|
<ul>
|
|||
|
|
<li><a class="reference internal" href="#">Arxcode installing help</a><ul>
|
|||
|
|
<li><a class="reference internal" href="#introduction">Introduction</a></li>
|
|||
|
|
<li><a class="reference internal" href="#installing-evennia">Installing Evennia</a></li>
|
|||
|
|
<li><a class="reference internal" href="#installing-arxcode">Installing Arxcode</a><ul>
|
|||
|
|
<li><a class="reference internal" href="#clone-the-arxcode-repo">Clone the arxcode repo</a></li>
|
|||
|
|
<li><a class="reference internal" href="#clean-up-settings">Clean up settings</a></li>
|
|||
|
|
<li><a class="reference internal" href="#install-arx-dependencies">Install Arx dependencies</a></li>
|
|||
|
|
<li><a class="reference internal" href="#adding-logs-folder">Adding logs/ folder</a></li>
|
|||
|
|
<li><a class="reference internal" href="#setting-up-the-database-and-starting">Setting up the database and starting</a></li>
|
|||
|
|
<li><a class="reference internal" href="#additional-setup-steps">Additional Setup Steps</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
<li><a class="reference internal" href="#alternate-guide-by-pax-for-installing-on-windows">Alternate guide by Pax for installing on Windows</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</li>
|
|||
|
|
</ul>
|
|||
|
|
<div class="relations">
|
|||
|
|
<h3>Related Topics</h3>
|
|||
|
|
<ul>
|
|||
|
|
<li><a href="index.html">Documentation overview</a><ul>
|
|||
|
|
</ul></li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
<div role="note" aria-label="source link">
|
|||
|
|
<!--h3>This Page</h3-->
|
|||
|
|
<ul class="this-page-menu">
|
|||
|
|
<li><a href="_sources/Arxcode-installing-help.md.txt"
|
|||
|
|
rel="nofollow">Show Page Source</a></li>
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
<h3>Versions</h3>
|
|||
|
|
<ul>
|
|||
|
|
<li><a href="Arxcode-installing-help.html">1.0-dev (develop branch)</a></li>
|
|||
|
|
<li><a href="../../versions/0.9.1/index.html">0.9.1 (master branch)</a></li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="clearer"></div>
|
|||
|
|
</div>
|
|||
|
|
<div class="footer">
|
|||
|
|
©2020, The Evennia developer community.
|
|||
|
|
|
|||
|
|
|
|
|||
|
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.4.4</a>
|
|||
|
|
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
|
|||
|
|
|
|||
|
|
|
|
|||
|
|
<a href="_sources/Arxcode-installing-help.md.txt"
|
|||
|
|
rel="nofollow">Page source</a>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</body>
|
|||
|
|
</html>
|