Please read: Devel branch merged!

49 views
Skip to first unread message

Griatch Art

unread,
Mar 1, 2015, 8:02:44 AM3/1/15
to eve...@googlegroups.com
Hi folks!

As of today Evennia's devel branch merged into master. This is a big one, and it changes some fundamental things with how Evennia runs. For you as a developer the biggest change is that Evennia is now a proper library. This means that your game code no longer belongs inside the Evennia repository in game/gamesrc but outside it, in its own folder created and managed by Evennia.

For you who are starting with a new game

  • Just follow the Getting Started instructions in the wiki. The instructions are updated to the latest version.
  • The official way to run Evennia is now via virtualenv and pip. This basically removes all complexity with getting the dependencies.

For you have existing code to convert

  • Update your upstream master branch using GIT. If you have followed the instructions in the wiki this should be completely separate from your own code (which should be in a separate branch).
  • It's strongly recommended you deactivate your current virtualenv and start afresh with a new virtualenv install.
  • Follow the Getting Started instructions in the wiki to install evennia and create a new game directory.
  • Check out your own game branch and copy your custom files from game/gamesrc/ into the appropriate locations inside your new game folder.

You will need to adapt your code to use the new structure as follows:

  • The `ev` module is no more, you should install everything from the evennia package, like evennia.objects.models etc.
  • The root typeclasses are now named DefaultObject, DefaultPlayer, DefaultChannel and DefaultScript. There are empty skeleton modules in the game folder showing how to import and overload them easily.
  • There are no .typeclass and .dbobj properties anymore (there is no distinction between them) so if you rely/use them, don't. The way to get to the base dbobj of a typeclass is now to use the new __dbclass__ property (but you should normally not need to do that very often). 

For more technical information about this update, see my previous mail: https://groups.google.com/forum/#!topic/evennia/6ug7m872GIk

A big thank you to everyone who helped test and contribute to the development of these features! The documentation is not yet updated, this will come gradually over the coming week or so.

.

Griatch

Tristano Ajmone

unread,
Mar 1, 2015, 2:10:17 PM3/1/15
to eve...@googlegroups.com


Il giorno domenica 1 marzo 2015 14:02:44 UTC+1, Griatch Art ha scritto:
Hi folks!

As of today Evennia's devel branch merged into master. This is a big one, and it changes some fundamental things with how Evennia runs. For you as a developer the biggest change is that Evennia is now a proper library.

WOOOW, this is sooner than I expected! Great news indeed!

I'm eager to install the new version. ;-)

Keep up the good work!

PS: one day I might catchup and be of use with development, I hope! 

Time

unread,
Mar 1, 2015, 4:35:24 PM3/1/15
to eve...@googlegroups.com
Great job G.
Man just keep going :)

Cheers,
Time

Il giorno domenica 1 marzo 2015 14:02:44 UTC+1, Griatch Art ha scritto:
Hi folks!

As of today Evennia's devel branch merged into master. This is a big one, and it changes some fundamental things with how Evennia runs. For you as a developer the biggest change is that Evennia is now a proper library. This means that your game code no longer belongs inside the Evennia repository in game/gamesrc but outside it, in its own folder created and managed by Evennia.
.....
Reply all
Reply to author
Forward
0 new messages