How to create a replacer mod for XV2 Mods Installer
Dec 3, 2016 12:25:55 GMT
fabrebatalla18 and cody like this
Post by eternity on Dec 3, 2016 12:25:55 GMT
Although the main purpose of XV2 Mods Installer are new character mods that have not conflict (well, except if they badly used the "JUNGLE" ehem), XV2 Mods Installer also has a secret feature to allow regular replacer mods.
The advantage of packaging a replacer mod in x2m over just pasting the content on the data folder, is that XV2 Mods Installer will know which files were installed by X mod, so uninstallation becomes easier.
(Note, however, that XV2 Mods Installer doesn't come with any kind of mod conflict resolution for this; if two mods had same file, the second one installed will get its file written over the first one, and when uninstalled, the file would be deleted )
So, after that introduction, let's go to the explanation.
Step 1
Work in a new folder in your system. Now create a file called x2m.xml
Paste this content into it:
Change MOD_NAME, MOD_AUTHOR, and MOD_VERSION to your liking.
Leave X2M_FORMAT_VERSION alone.
For MOD_GUID, go to this page, generate a guid and paste it there, replacing those XXXXX... (that will be the identifier of your mod).
Step 2
Create a folder called JUNGLE in that very same folder (so that you have only x2m.xml file and JUNGLE folder there).
Inside the JUNGLE folder, paste the files/folders of your mod following the same path of the game. So, for example, if you have a custom hair "HUM_000_Hair.emd", the final path of that file would become: JUNGLE/data/chara/HUM/HUM_000_Hair.emd
Avoid using system files (data/system) or you will cause a mess to the new character mods installation.
Step 3
With your favourite packaging utility (winrar, 7-zip, etc), select the JUNGLE folder and the x2m.xml file together, and add it to a new archive. Make sure to use zip format (not 7z, not rar, use zip, all those packaging utilities should a way of setting zip format instead of their native format).
(It is important that you package both directly, and not the outer folder)
Rename the .zip extension to .x2m. Now, your mod is ready.
The advantage of packaging a replacer mod in x2m over just pasting the content on the data folder, is that XV2 Mods Installer will know which files were installed by X mod, so uninstallation becomes easier.
(Note, however, that XV2 Mods Installer doesn't come with any kind of mod conflict resolution for this; if two mods had same file, the second one installed will get its file written over the first one, and when uninstalled, the file would be deleted )
So, after that introduction, let's go to the explanation.
Step 1
Work in a new folder in your system. Now create a file called x2m.xml
Paste this content into it:
<?xml version="1.0" encoding="utf-8" ?>
<X2M type="REPLACER">
<X2M_FORMAT_VERSION value="1.0" />
<MOD_NAME value="My Mod Name" />
<MOD_AUTHOR value="MEEEEEEE" />
<MOD_VERSION value="1.0" />
<MOD_GUID value="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" />
</X2M>
Change MOD_NAME, MOD_AUTHOR, and MOD_VERSION to your liking.
Leave X2M_FORMAT_VERSION alone.
For MOD_GUID, go to this page, generate a guid and paste it there, replacing those XXXXX... (that will be the identifier of your mod).
Step 2
Create a folder called JUNGLE in that very same folder (so that you have only x2m.xml file and JUNGLE folder there).
Inside the JUNGLE folder, paste the files/folders of your mod following the same path of the game. So, for example, if you have a custom hair "HUM_000_Hair.emd", the final path of that file would become: JUNGLE/data/chara/HUM/HUM_000_Hair.emd
Avoid using system files (data/system) or you will cause a mess to the new character mods installation.
Step 3
With your favourite packaging utility (winrar, 7-zip, etc), select the JUNGLE folder and the x2m.xml file together, and add it to a new archive. Make sure to use zip format (not 7z, not rar, use zip, all those packaging utilities should a way of setting zip format instead of their native format).
(It is important that you package both directly, and not the outer folder)
Rename the .zip extension to .x2m. Now, your mod is ready.