evennia/docs/1.0-dev/_sources/Setup/Setup-Quickstart.md.txt

100 lines
3 KiB
Text
Raw Normal View History

2020-07-14 00:21:00 +02:00
# Setup quickstart
2021-05-16 00:06:01 +02:00
The Evennia server is installed, run and maintained from the terminal (console/CMD on Windows). Starting the
2020-07-14 00:21:00 +02:00
server doesn't make anything visible online. Once you download everything you can in fact develop your game
2021-05-16 00:06:01 +02:00
in complete isolation if you want, without needing any access to the internet.
2020-07-14 00:21:00 +02:00
## Installation
2021-05-16 00:06:01 +02:00
Evennia supports Python 3.7 to 3.9. As with most Python packages, using a
2021-10-26 21:41:11 +02:00
[virtualenv](../Glossary.md#virtualenv) is recommended in order to keep your
2021-05-16 00:06:01 +02:00
installation independent from the system libraries. It's _not_ recommended
to install Evennia as superuser.
2020-07-14 00:21:00 +02:00
2021-10-26 21:41:11 +02:00
```{warning}
2020-11-14 11:55:52 +01:00
This is not yet available. Switch to the 0.9.5 version of these docs to install Evennia.
```
2020-07-14 00:21:00 +02:00
pip install evennia
Make sure the `evennia` command works. Use `evennia -h` for usage help (or read on).
2021-05-16 00:06:01 +02:00
If you are having trouble, want to install in some other way (like with Docker)
or want to contribute to Evennia itself, check out the [Extended Installation
2021-10-26 21:41:11 +02:00
instructions](./Extended-Installation.md). It also has a [troubleshooting
section](./Extended-Installation.md#troubleshooting) for different operating
2020-07-14 00:21:00 +02:00
systems.
## Initialize a new game
2021-05-16 00:06:01 +02:00
Use `cd` to enter a folder where you want to do your game development. Here (and in
the rest of the Evennia documentation) we call this folder `mygame`, but you should of course
2020-07-14 00:21:00 +02:00
name your game whatever you like:
evennia --init mygame
This will create a new folder `mygame` (or whatever you chose) in your current location. This
contains empty templates and all the default settings needed to start the server.
## Start the new game
2021-05-16 00:06:01 +02:00
`cd` into your game folder (`mygame` in our case). Next, run
2020-07-14 00:21:00 +02:00
evennia migrate
This will create the default database (Sqlite3). The database file ends up as `mygame/server/evennia.db3`. If you
ever want to start from a fresh database, just delete this file and re-run `evennia migrate` again.
2021-05-16 00:06:01 +02:00
evennia start
2020-07-14 00:21:00 +02:00
Set your user-name and password when prompted. This will be the "god user" or "superuser" in-game. The email is optional.
If all went well, the server is now up and running. Point a legacy MUD/telnet client to `localhost:4000` or
a web browser at [http://localhost:4001](http://localhost:4001) to play your new (if empty) game!
> If `localhost` doesn't work on your computer, use `127.0.0.1`, which is the same thing.
2021-05-16 00:06:01 +02:00
## See server logs
2020-07-14 00:21:00 +02:00
This will echol the server logs to the terminal as they come in:
evennia --log
2021-05-16 00:06:01 +02:00
or
2020-07-14 00:21:00 +02:00
2021-05-16 00:06:01 +02:00
evennia -l
2020-07-14 00:21:00 +02:00
You can also start logging immediately when running `evennia` commands, such as
2021-05-16 00:06:01 +02:00
evennia start -l
2020-07-14 00:21:00 +02:00
To exit the log view, enter `Ctrl-C` (`Cmd-C` for Mac). This will not affect the server.
2021-05-16 00:06:01 +02:00
## Restarting and stopping
2020-07-14 00:21:00 +02:00
You can restart the server without disconnecting any connected players:
2021-05-16 00:06:01 +02:00
evennia restart
2020-07-14 00:21:00 +02:00
To do a full stop and restart (will disconnect everyone):
2021-05-16 00:06:01 +02:00
evennia reboot
2020-07-14 00:21:00 +02:00
Full stop of the server (will need to use `start` to activate it again):
evennia stop
## The Next step
2021-10-26 21:41:11 +02:00
Why not head into the [Starting Tutorial](../Howto/Starting/Part1/Starting-Part1.md) to learn how to start making your new game!