2.4 KiB
Upgrading an existing installation
These are steps to take when you have an exiting game dir that you want to keep. If you don't, you can always just delete your old game dir and initialize a fresh one using the normal install instructions.
Evennia v0.9.5 to 1.0
Prior to 1.0, all Evennia installs were Git-installs. These instructions
assume that you have a cloned evennia repo and use a virtualenv (best practices).
-
Make sure to stop Evennia 0.9.5 entirely with
evennia stop. -
deactivateto leave your active virtualenv. -
Make a backup of your entire
mygamefolder, just to be sure! -
Delete the old
evenvfolder, or rename it (in case you want to keep using 0.9.5 for a while). -
Install Python 3.10 (recommended) or 3.9. Follow the Git-installation for your OS if needed.
-
If using virtualenv, make a new one with
python3.10 -m venv evenv, then activate withsource evenv/bin/activate(linux/mac) or\evenv\Script\activate(windows) -
cdinto yourevennia/folder (you want to see thedocs/,bin/directories as well as a nestedevennia/folder) -
Prior to 1.0 release only - do
git checkout developto switch to the develop branch. After release, this will be found on the default master branch. -
git pull -
pip install -e . -
If you want the optional extra libs, do
pip install -r requirements_extra.txt. -
Test that you can run the
evenniacommand. -
Next,
cdto your game folder (likemygame.) -
If you have changed
mygame/web, rename the folder toweb_0.9.5. If you didn't change anything (or don't have anything you want to keep), you can delete it entirely. -
Copy
evennia/evennia/game_template/webtomygame/(e.g. usingcp -Rfor a file manager). This newwebfolder replaces the old one and has a very different structure. -
evennia migrate -
evennia start
If you made extensive work in your game dir, you may well find that you need to do some (hopefully minor) changes to your code before it will start with Evennia 1.0. Some important points:
- The
evennia/contrib/folder changed structure - there are now categorized sub-folders, so you have to update your imports. - Any
webchanges need to be moved back from your backup into the new structure ofweb/manually. - See the Evennia 1.0 Changelog for all changes.