Module ...

Handles dialog windows

Functions

_M:instanciate (mod, name, new_game, no_reboot) Instanciate the given module, loading it and creating a new game / loading an existing one
_M:listAddons (mod, ignore_compat) List all available addons
_M:listModules (incompatible, moddir_filter) List all available modules Static
_M:listSavefiles (moddir_filter) List all available savefiles Static
_M:listVaultSaves () List all available vault characters Static
_M:listVaultSavesForCurrent () List all available vault characters for the currently running module Static
_M:loadDefinition (dir, team, incompatible) Get a module definition from the module init.lua file
_M:loadRemoteList (src) Loads a list of modules from te4.org/modules.lualist Calling this function starts a background thread, which can be waited on by the returned lina object
_M:loadSavefileDescription (dir) Get a savefile description from the savefile desc.lua file
_M:loadScreen (mod) Make a module loadscreen
_M:setupWrite (mod) Setup write dir for a module Static
_M:versionString (mod) Create a version string for the module version Static


Functions

_M:instanciate (mod, name, new_game, no_reboot)
Instanciate the given module, loading it and creating a new game / loading an existing one

Parameters

  • mod: the module definition as given by Module:loadDefinition()
  • name: the savefile name
  • new_game: true if the game must be created (aka new character)
  • no_reboot:
_M:listAddons (mod, ignore_compat)
List all available addons

Parameters

  • mod:
  • ignore_compat:
_M:listModules (incompatible, moddir_filter)
List all available modules Static

Parameters

  • incompatible:
  • moddir_filter:
_M:listSavefiles (moddir_filter)
List all available savefiles Static

Parameters

  • moddir_filter:
_M:listVaultSaves ()
List all available vault characters Static
_M:listVaultSavesForCurrent ()
List all available vault characters for the currently running module Static
_M:loadDefinition (dir, team, incompatible)
Get a module definition from the module init.lua file

Parameters

  • dir:
  • team:
  • incompatible:
_M:loadRemoteList (src)
Loads a list of modules from te4.org/modules.lualist Calling this function starts a background thread, which can be waited on by the returned lina object

Parameters

  • src: the url to load the list from, if nil it will default to te4.org

Return value:

a linda object (see lua lanes documentation) which should be waited upon like this local mylist = l:receive("moduleslist"). Also returns a thread handle
_M:loadSavefileDescription (dir)
Get a savefile description from the savefile desc.lua file

Parameters

  • dir:
_M:loadScreen (mod)
Make a module loadscreen

Parameters

  • mod:
_M:setupWrite (mod)
Setup write dir for a module Static

Parameters

  • mod:
_M:versionString (mod)
Create a version string for the module version Static

Parameters

  • mod:

Valid XHTML 1.0!