2.9 KiB
Upgrading an existing installation
This is relevant to you already having code in an older Evennia version. If you are new, or don't have much code yet, it may be easier to just start fresh with the Installation instructions and copy over things manually.
Evennia v0.9.5 to 1.0
Upgrading the Evennia library
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! - Install Python 3.11 (recommended). Follow the Git-installation for your OS if needed.
- Delete the old virtualenv
evenvfolder, or rename it (in case you want to keep using 0.9.5 for a while). - Make new
evenvvirtualenv (see the virtualenv instructions for help) cdinto yourevennia/root folder (you want to see thedocs/andbin/directories as well as a nestedevennia/folder)git pullpip install -e .- If you want the optional extra libs (needed by some contribs), do
pip install -e .[extra] - Test that you can run the
evenniacommand.
Upgrading your game dir
If you don't have anything you want to keep in your existing game dir, you can just start a new onew using the normal install instructions. If you want to keep/convert your existing game dir, continue below.
- First, make a backup of your exising game dir! If you use version control, make sure to commit your current state.
cdto your existing 0.9.5-based 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. - It's possible you need to replace/comment out import and calls to the deprecated
django.conf.urls. The new way to call it is available here. - Run
evennia migrate - Run
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.