Mod Loading Class

Modification loader class code for ScalyMUCK. This class is used to store and track loaded modifications that are in use by the server application

class modloader.ModLoader[source]

Mod loading class for ScalyMUCK.


Internal command to load mods.


Internal command to list installed mods.


Internal command to unload mods.

commands = {}

A dictionary of all loaded commands. The keys are the actual name a command is referred to by and said keys point to Python functions to be called upon use.


Returns a command by name.


Loads a semicolon deliminated list of modifications from application/game.

If any of the specified modifications happen to already be loaded into ScalyMUCK, they are merely reloaded so that any changes made since the last load will be applied and take affect.


If there happens to be a low-level Python error (IE: SyntaxError) then the server application will merely crash as of the moment. Same goes for any internal errors in a mod code base that happen to raise an exception that is not derived from one of the exception classes in game.Exception.

modifications = {}

A dictionary of all loaded modifications. The keys are the internal name of the mod and each key refers to a tuple with the following format: (instance, module).


This command merely makes sure that the core commands are loaded.

It should be called everytime a modification is loaded in order to guarantee that a modification doesn’t attempt to overwrite the core commands, even though by standard they shouldn’t be defining these commands in the first place.