Create and pack a mod - Solomonk-Solo/DayZ-modding-How-To GitHub Wiki
This mod will only be an example and will have no content, only a main config to show you how to do it and how to pack it.
-
On your P drive, create a folder, name it as you want (no spaces, only letters, numbers (dont start 0) and _), this will be the files from one addon. On my example, name is "Wiki_mod_files_one".
-
Download that config.txt and save it as config.cpp in the folder you just created in your P drive.
-
Change all "Wiki_mod_files_one" to your addon's name and also change author to your name. Your folder and your class on "class CfgMods" should have the same name. My class is "Wiki_mod_files_one", just like my folder. Save it.
-
On your P drive, create a new folder, name it as you want (no spaces, only letters, numbers (dont start 0) and _) this is gonna be your mod you will publish on steam. Mine is "Wiki_mod_steam". Inside that folder, create two new folders, one named "addons" and the other "keys".
- Open pboProject and edit your paths. "Mod Folder Output..." is where your addon will be created (P:\Wiki_mod_steam), "Primary Source..." is where your addon is created from (P:\Wiki_mod_files_one). These paths are for my example.
-
Crunch. (it will create the addon). An addon should have been created on your addons folder (on your mod folder).
-
Now you need to sing your pbo. Open DayZ Tools and clic on DS Utils.
-
Clic on "Add a source directory", edit path to P/yourmod/addons folder, clic "OK".
- Clic on N, edit path to P/yourmod/keys folder, name your key (no spaces, only letters, numbers (dont start 0) and _). Clic "Create key". When its all green close DSUtils.
- Go to your P/yourmod/keys folder, remove those 2 files (keep them somewhere else) and only keep file ".bikey".
-
Now you got everything ready to publish your mod on steam. On DayZ Tools, open Publisher. On "(new Workshop item)" edit your mod path, it will name the mod according to your mod folder, make it public (unless you want private mod), agree and publish. Once publish, clic on your mod on left (instead of "(new Workshop item)") edit mod path again, agree and update your mod.
-
Thats it you have published a mod, you can now suscribe to it on DayZ workshop, and add it to your server. (you will prob struggle finding it on searchbar, just go on workshop and go on your files.
Thats it! That was an empty mod but now you know how to make a mod and publish it. Now go read how to do stuff you are looking for.