#How to update your mods (b42)
1 messages · Page 1 of 1 (latest)
- You can leave the old 41 mod files in the mod folder (so that this mod will still work in B41). Alternatively, you can remove them and place only the files for B42.
- The mod folder now requires 2 sub-folders. First folder is “common”. This folder will always load and it will always load first. You can place files here that will not change in future mod updates for a specific game version. (it’s a good place for resource files)
- Second folder is a folder named after the build version (like “42”, “42.33”, “43.00”, etc.). The game will automatically choose the best match folder depending on the current game version and will load after the “common” folder. Therefore, for the future mod updates to a specific version of the game, you will be able to create a new version folder (like “42.12”) and put the changed files into that folder.
P.S.
- The mod.info file can be placed in either the version folder or the Common folder.
- Due to significant changes in scripts/lua, it’s important to update any lua and script files in your mod for 42 build to ensure compatibility.
- Value in modID in mod.info / mod requirements must follow the format: “WORKSHOP-ID/MOD-ID” (same format applies to other params: incompatible, loadModAfter, loadModBefore)
Thanks ! Btw can we have an example of the mod.info, or its didnt change ?
An expanded tree picture of the folder structures would help as well 😉
I'll test with my mod in the next days and if still not here, I'll add it myself when I get it working.
Something like this: #mod_development message
Bless you
I'm confused a bit. In case of First picture, we need total of 3 folders? common, 42 (or other version) and media, or media are the old fiels that remain there for b41 , while from now on we should put everything in the first two? So right now i want to make my clothing mod work on b42 (it was initially worked on on 41 but never released) Do i need media folder at all? Or common and 42 is enough?.
As far as i understood it you can put textures for example (Which are compatible with any version all the time) into common.
All my current Lua i will put in a folder called 41, and then i copy my 41 folder into a 42 folder and work out the lua so it works with 42.
Please correct me if i am wrong, just starting to upgrade my mods as well 😄
The 41 folder seems to be somewhat optional.
But if it works this way then i like it this way
Versions below 41 wont work then tho
But i dont think people are still playing version 40
Or do they?
Okay, 41 Folder doesnt work.
Makes sense, version 41 doesnt know about the new folder structure.
Here's what worked for me to upload. It was a good example since I have a nest of folders. The only file I needed to add the WORKSHOPID/MODID to the ID was whatever lives in the 42 folder. I included parts that I have not changed at all which just required a common folder.
Just want to leave a bit of an addendum here,
The 42 folder must contain the poster/icon art,
Whereas the common folder can contain the mod.info as well as other mod data (as can the 42 folder),
And to maintain backwards compatibility with B41, that data needs to be under the mod folder, e.g. /ezDirt/media/ in my screenshot.
don't know if this question belongs to this thread, but i have a couple of self-made spawn point mods on the Zomboid\mods folder (that in b41 load normally alongside workshop mods), i moved everything on the mod's root folder to common and yet they aren't showing on the mod list to be activated.
What i'm doing wrong?
this might be a dumb question, but if I leave my new media folder identical to b41, then it should work in b41 and the "new" things will go in b42 and common?
just trying to make sure my mod will be compatible with both 41 and 42
I just did a quick test, and it looks like I will keep my b41 in media, and keep all the new stuff in b42/media
This is correct
Basically to make sure it works for b41 just leave everything as it is an add conmon and 42 folders
hellO! sorry for another dumb question:
Common folder is not good for 41 right? just for every version starting from 42 ?
41 just as always in the root i guess
correct. 41 does not recognize the new folder structure of 42 so backwards-compatible mods should have the same structure as 41 mods with the new folders of 42 mods as Scavenger said
(yes this is 4 days late but hopefully if someone else has this question it helps x) )