evennia.server.initial_setup

This module handles initial database propagation, which is only run the first time the game starts. It will create some default channels, objects, and other things.

Everything starts at handle_setup()

evennia.server.initial_setup.get_god_account()[source]

Creates the god user and don’t take no for an answer.

evennia.server.initial_setup.create_objects()[source]

Creates the #1 account and Limbo room.

evennia.server.initial_setup.create_channels()[source]

Creates some sensible default channels.

evennia.server.initial_setup.at_initial_setup()[source]

Custom hook for users to overload some or all parts of the initial setup. Called very last in the sequence. It tries to import and srun a module settings.AT_INITIAL_SETUP_HOOK_MODULE and will fail silently if this does not exist or fails to load.

evennia.server.initial_setup.collectstatic()[source]

Run collectstatic to make sure all web assets are loaded.

evennia.server.initial_setup.reset_server()[source]

We end the initialization by resetting the server. This makes sure the first login is the same as all the following ones, particularly it cleans all caches for the special objects. It also checks so the warm-reset mechanism works as it should.

evennia.server.initial_setup.handle_setup(last_step)[source]

Main logic for the module. It allows for restarting the initialization at any point if one of the modules should crash.

Parameters

last_step (int) – The last stored successful step, for starting over on errors. If < 0, initialization has finished and no steps need to be redone.