![]() ![]() Define a class with a decorator as shown below: To do this, include from modloader.modclass import Mod, loadable_mod at the top of your mod file. This will give you access to hooks at various stages during mod loading, and properly inform the user of your mod’s status. To get full functionality from the modloader, it is recommended that you inherit from the modclass.Mod class. Should a file have the same name and location as one in the original game, the mod file will override the original. Files in this folder will be loaded into that game as if they were local to the game/ folder or the root of the archive. Using modlib is as simple as calling functions on ml. This will include all the utilities needed to get started. ![]() Every mod should start with from modloader.modlib import base as ml. The main mod file is mandatory for your mod to be loaded, and must be named _init_.py. pngĪny *.rpy file is optional, and will be loaded automatically. ![]() rpy |- resource |- custbg |- myBackground. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |