![]() OVerride the calculateCost method to set the required resources (metal, starch, etc.). Provide a texture for the menu icon, and a list of gameobject in an array from small to large. To create a new building, extend the BaseModuleType class (or the ModuleType class, not typically recommended). This will autoload the OBJ, generate a mesh, and load any related materials. To load an obj (that isn't already in ModBase.ModObjects), call ObjLoader.LoadOBJFile(filename, texturelist). OBJ and MTL files can be dynamically loaded into gameobjects at runtime. This is useful if your mod dynamically generates other mods at runtime (like the XML Modloader mod) Putting a ModLoaderIgnoreAttribute attribute on a class extending ModBase will cause it not to be loaded, even if it is public and not abstract. A list of mods matching a given type can be found with Modloader.GetModByType(Type). ![]() The debug log, located in the Planetbase folder, contains extensive information on issues that arise while the game is running.Īll found mods are loaded into Modloader.ModList at the launch of the game. onGui can be overridden to draw on the screen. ![]() To activate the state, call GameManager.getInstance().setNewState(new ()). To add a new gamestate (such as a new screen, similar to Mod List), extend the GameState class. The name of the button is automatically translated. Instantiating an instance of the TitleMenu class will auto-register it to be displayed. Override the HandleAction method to handle button clicks. To add a new button to the title menu, extend the TitleButton class. Click here for an example.īasePath, ModPath, and ModName provide information on the path of the Planetbase folder, Planetbase\Mod folder, and the name of the mod. Strings files use the same format as the native game. Copy the "Mods" folder to your "%homepath%\Documents\Planetbase" folder.Īll new mods (unless otherwise specified by the mod) are installed by placing their DLL file into the Planetbase\Mods folderSee here for more updated info: Īny files in \assets\png, \assets\obj, \assets\strings will be loaded into the ModTextures, ModObjects, and the global string dictionary.Place the extracted PlanetbaseFramework.dll file next the the Assembly-CSharp.dll file (typically in "C:\Program Files (x86)\Steam\steamapps\common\Planetbase\Planetbase_Data\Managed").Download the latest release of the framework from here:.PLEASE REPORT any errors or crashes you get here (there shouldn't be any) Close the window after the "Patch" button says "Done".This is typically in in "C:\Program Files (x86)\Steam\steamapps\common\Planetbase\Planetbase_Data\Managed". Run the file, and navigate to your Planetbase install folder.Download the latest patcher from here:.Launch the game (at least) once to perform first-time setup.Install Planetbase via Steam (or click here steam://install/403190).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |