![]() ![]() ![]() Return value indicates success of operation (get error message by calling GetLastError()). This method just copies all files from your mod except fomod directory to game's data folder. ![]() NMM provides fewer methods to access your mod's files: Basic installation bool PerformBasicInstall() In next examples we will use Skyrim as game and this mod structure: my-mod.7z Also you can download sample installer script, which shows how to install mods from archive in NMM way, how to create user interface via Windows Forms, etc. If you don't use them, it's better to just inherit BaseScriptÄown there is documentation with small samples, I hope you will understand how to use them properly. Inheriting provides additional methods (ex. You can inherit your Script class from any of these classes: SkyrimBaseScript, Fallout4BaseScript, FalloutNVBaseScript, Fallout3BaseScript, FalloutBaseScript.Your script can access classes and methods from these libraries (not namespaces): System.dll.Returning true from this method indicate that your script worked out correctly, false - something bad happened and mod should not be marked as installed in NMM. Before this method is called, a new Script instance is being created, so you don't need to make OnActivate() method static. Script class contains OnActivate() method, which is called by NMM when user starts installing process. ![]() This class is absolutely essential to make script working, as well as inheriting this class from BaseScript and it's implementor classes (see below).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |