Project Zomboid

Project Zomboid

29 ratings
B42 - How to Create a Mod
By ★Rainmaker★
A quick and simple video guide on how to make your very first mod for B42!
2
   
Award
Favorite
Favorited
Unfavorite
All the steps in a 6-minute YouTube video.

Go to your Users/YourUserName/Zomboid/Workshop

That's where it all begins. Next I'll explain how to set up an empty mod that you can start doing stuff to and with.

Create a new folder, let's name it "My First Mod" (obviously without the " ")
In this folder create another new folder, named "Contents"
In "Contents", create a new folder named "mods"
In "mods", create a new folder named the way your mod's gonna be named. For this example the folder's gonna be "My First Mod"
In "My First Mod", create a new folder named "42", and a new folder named "common" (don't even worry about the common folder, it can stay empty since we're in B42)
In 42, create a new folder named "media"
In "media", you're going to need a new folder for everything you plan on adding/modifying, such as "clothing", "lua", "models_x", "scripts", "textures", etc.

Now you have all your folders ready to go, so let's set up a couple of mod.info files so you can actually enable your mod ingame. The mod.info file has to be an actual .INFO file, so just renaming a .txt file won't be enough. You can copy a mod.info file from Zomboid/mods/examplemod.

The mod.info file can be set up like so, from top to bottom:
name=My First Mod
id=MyFirstMod
description=This is where you can describe what your mod does.
poster=
icon=

You can leave the poster and icon empty, or get yourself some .png files to use there. The poster can be a 256x256 png and the icon can be a 32x32 png. NOTE: Before you can upload your mod to the Steam Workshop, you're going to need a preview.png at Zomboid/Workshop/My First Mod. The preview.png can be a 256x256, so you can use your poster as your preview, and vice versa.

The first mod.info file needs to be at Zomboid/Workshop/My First Mod/Contents/mods/My First Mod.
The second mod.info file needs to be at the 42 folder.
Both should be 100% identical.

When it comes to sub-folders in your Zomboid/Workshop/My First Mod/Contents/mods/My First Mod/42/media folder, you can look at how they're set up in Project Zomboid at Steam/steamapps/common/ProjectZomboid/media. So for example, if you plan on writing your own LUA scripts, you'll need the correct folder(s) for them in your media/lua folder (client, shared, and server). The same thing applies for any 3D models you want to use and their textures, your own custom animations, their AnimSets, etc.
9 Comments
QS 31 Jul @ 12:11am 
@★Rainmaker★ oh yeah I put just one file into the wrong folder. Thanks!
★Rainmaker★  [author] 31 Jul @ 12:05am 
¯\\(ツ)/¯
Never even heard of that happening. Does your mod folder have both mod.INFO files and did you set them up as well?
QS 31 Jul @ 12:03am 
@★Rainmaker★ Idk I watch the video, go to Disc C -> Users -> me -> Zomboid -> Workshop and create a mod folder in there, other folders in there. And that's it I launch zomboid and the game acts like I've launched it for the first time and shows I have zero mods:EffectNecromancy:
★Rainmaker★  [author] 31 Jul @ 12:00am 
@Kap
Not that I know of. Modding PZ is time consuming, to be sure.

@QS
If you actually followed the guide step by step, that shouldn't happen. I don't even know how or why that would happen anyway.
QS 30 Jul @ 11:59pm 
I create a mod folder and all my mods I'm subscribed to suddenly disappear
Kap 4 Jul @ 3:51pm 
Here's a question. Is there a way to rapid test mods while developing them? The in game debug menu lua reload is highly unstable. Going back to the main menu eats ridiculous amount of time even with a reload lua button. And yeah... like trying to debug a lua script is a nightmare right now.
MV75 4 Jun @ 3:13am 
Thanks. With your description I was able to set up the folders that workshop required to upload a b41 map spawn mod I ported over to b42 a few weeks ago and just sat on for myself. About time others got to use it too.
HEXE 26 May @ 5:09am 
Thanks!
NameDoesntMatter 24 May @ 4:46am 
awesome dude, thanks!