googlenomad.blogg.se

The forest mod api 1.0
The forest mod api 1.0





the forest mod api 1.0

Mod.header = new Mod.Header(mod, System.IO.File.ReadAllText(modInfoPath)) SetProgress(progress, "Error.CorruptAssembly")

the forest mod api 1.0

ModModule = ModuleDefinition.ReadModule(modFilePath) ĭebug.Log("Mod: "+ID, "One of the assemblies is corrupted: "+e.ToString(), ) If (!System.IO.File.Exists(baseModLibPath))ĭebug.Log("Mod: "+ID, "Couldn't find BaseModLib.dll at \""+baseModLibPath+"\".", ) īaseModLib = ModuleDefinition.ReadModule(baseModLibPath) String baseModLibPath = libraryFolder + System.IO.Path.DirectorySeparatorChar + "BaseModLib.dll" String modInfoPath = GetFolderPath() + System.IO.Path.DirectorySeparatorChar + "ModInfo.xml" ĭebug.Log("Mod: "+ID, "Couldn't find the mod configuration at \""+modInfoPath+"\".", ) SetProgress(progress, "Error.FileNotFound") String modFilePath = GetFolderPath() + System.IO.Path.DirectorySeparatorChar + "Mod" + System.IO.Path.DirectorySeparatorChar + this.ID + ".dll" ĭebug.Log("Mod: "+ID, "Couldn't find the compiled mod dll at \""+modFilePath+"\".", ) Public void Create(ProgressHandler progress) Log.Write("Could not find method for execute on game start: " + (), "Core") String OnlyInGame = ExecuteEveryFrame.Attribute("OnlyInGame").Value ī(new Execution() ) Log.Write("Something went wrong while initializing a mod: " + e.ToString(), ID) įoreach (XElement ExecuteEveryFrame in ("ExecuteEveryFrame")) If (idAttribute != null) ID = idAttribute.Value XAttribute idAttribute = modConfiguration.Attribute("ID")

the forest mod api 1.0

NewMod.Assembly = Assembly.Load(new AssemblyName(newMod.ID)) XDocument configuration = XDocument.Load(ModsFolder + "RuntimeConfiguration.xml") įoreach (XElement modConfiguration in ("Mod")) ModsFolder = System.IO.Path.GetFullPath(Application.dataPath + "/./Mods") + System.IO.Path.DirectorySeparatorChar







The forest mod api 1.0