Modloader for Python
A downloadable tool
Download NowName your own price
How to use:
Unzip the file
Open cmd and go to the folder
Type pip install .
Enjoy.
Functions:
loadmod("Path to mod folder")
Loads the mods and returns the mod name and version
getmodpath("Path to mod folder")
Returns a list to every mod in the modfolder
runmodcontent("Path to mod folder", "name of mod")
Runs the main function from the mod
Code example:
g = loadmod("mods")
mp = getmodpaths("mods")
for i in range(len(mp)):
runmodcontent("mods", mp[i].split("\\")[1])
Content of a mod file:
name = "Mod name"
version = 1.0
def main():
#Code for the mod
| Status | In development |
| Category | Tool |
| Author | lucilands |
| Tags | Moddable, Modular |
Download
Download NowName your own price
Click download now to get access to the following files:
ModLoader.zip 1.9 kB
Leave a comment
Log in with itch.io to leave a comment.