Difference between revisions of "Packages"

From VCMI Project Wiki
Jump to: navigation, search
(Package structure)
(Package structure)
Line 10: Line 10:
 
*Additional text files
 
*Additional text files
 
*Possibly .[[json]] files
 
*Possibly .[[json]] files
 +
 +
ALl files should be placed within the scope of root folder of mod.py file.
 +
Mods folder in main VCMi directory is scanned upon entering "new game" menu in search of mod.py files.

Revision as of 15:10, 5 February 2012

Package structure

Packages may consist of following files:

  • mod.py - main file required by Mod Handler. Includes unique name and version of package. Lists all related files included in mod.
  • Script defining new objects and requesting Mod Handler to put them in game.
  • Graphics files
  • Sound files
  • Additional Python script files (.py)
  • Additional text files
  • Possibly .json files

ALl files should be placed within the scope of root folder of mod.py file. Mods folder in main VCMi directory is scanned upon entering "new game" menu in search of mod.py files.