Project Zomboid

Project Zomboid

Profession Framework B42 - Hephas Edition
23 Comments
Zushen 23 Aug @ 3:00am 
I too was also creating a new occupation using your framework. I cleared all the errors upon loading into the game with errormagnifier. But then I come to find out that the occupation isn't actually loading into the list with the others(Also using your occupations w/ vanilla mod)

I got the mod in the mod-list, got the png in the textures, lua in the media/lua/shared, and ui in the translate/en.

Do you have a good checklist to follow for these? I don't know what I'm missing. I was looking through your occupations for references too.
Just_Ferdi 9 Aug @ 11:49am 
@Hephaistos
You're right, there was indeed a syntax error. I wrote:
[perks.carving] = 1,
While it should've been:
[Perks.carving] = 1, (I didn't capitalize the P)

Thank you for the quick response and for making this mod. It makes my life as a beginner modder a lot easier. :spiffo:
Hephaistos  [author] 7 Aug @ 7:53am 
@Just_Ferdi
Your code must have some synthax errors.
All skills can be added to the professions in B42.

Right synthax for xp on one occupation would look like this for example:
xp = {
[Perks.Farming] = 4,
[Perks.Strength] = 2,
[Perks.Carving] = 2,
[Perks.FlintKnapping] = 1,
},
Just_Ferdi 7 Aug @ 6:40am 
I am trying to make some occupations using your framework, but when I try to add the carving skill I get an error when loading the mod: `attempted index: Carving of non-table: null`. In my code I use [perks.Carving] = 1. The same seems to happen with Tracking, Glassmaaking and Flintknapping.

Are some B42 skills not implemented in the framework or am I coding wrong?
Hephaistos  [author] 24 Jul @ 8:28am 
@Karmesh
you need to take a look what body location clothing items are placed on. Ranger Jacket for example is location BodyLocation = Jacket and a Sweater is using BodyLocation = Sweater.
Karmesh 23 Jul @ 5:28pm 
I was trying to add some vanilla game jackets to custom occupations that I made but they seem to only work for the sweater slot? Example: Trying to add Jacket _Police only works if I add it as a sweater instead of a jacket.

So if you start with the sweater jacket and also select an actual jacket, the first one will disappear when you spawn in. Not using any other mods.
Silver Star 23 Jul @ 12:53pm 
What would we do without Hephaistos, bro is too good a mod author
RejectedBachelorContestant 5 Jul @ 8:56am 
Figures. I'll look into it again once I've got some time again. :)
Hephaistos  [author] 1 Jul @ 9:50am 
@RejectedBachelorContestant
Then you probably didnt configure your folder structure right. Head over to the Project Zomboid Wiki and search for Mod structure, there is a good overview about how things needs to be set.
RejectedBachelorContestant 29 Jun @ 10:16am 
Yeah, sorry. I cannot seem to get my mod to work. It does not want to show up in my mod load order at all. :(
Hephaistos  [author] 23 Jun @ 8:38am 
@RejectedBachelorContestant
If you are using B42 then yeah, you should be able just swap the requirements
RejectedBachelorContestant 23 Jun @ 12:56am 
Quick question, can I just copy my old profession code and swap the requirements? I think I might have used the old folder structure from B41 and hence why it didn't pop up during testing.
Celestial_Bunny93 10 Jun @ 12:47pm 
@Hephaistos, I left a comment on the Inmate mod mentioning incompatibility with this mod and it was deleted within two hours of my posting it, so I don't think I'm going to use that one anymore.
NalMac 10 Jun @ 8:32am 
@Hephaistos Good to know. I'll have to remember to swap over then at some point.
Hephaistos  [author] 10 Jun @ 8:11am 
Hey @NalMac,
just swapping the requirements should do the trick. The overall structure is a bit different but that shouldnt impact the functionality overall. :spiffo:

@Celestial_Bunny93
Ah there is our culprit! Sadly the author of the Inmate mod needs to tweak his code, I cant do anything on my end.
NalMac 10 Jun @ 5:16am 
@Hephaistos author of the dakimakura mod here. is there anything I would need to do to swap from the other prof framework over to yours or do I just change the requirement?
Celestial_Bunny93 9 Jun @ 1:49pm 
I found which mod is interacting badly with this one in my current mod list. It's VrWiz's Inmate mod. Idk if I'm gonna keep using that one or not, since your mods have been some of my favorites for a while.
ObviouslyJK 9 Jun @ 10:55am 
Trying to load presets causes the game to crash.. I thought it might be this mod and I see others have the same issue. Sorry :(
Hephaistos  [author] 9 Jun @ 2:51am 
@Humanbug
I’ve tested presets from various modded and vanilla occupations, even without the corresponding mods enabled and didn’t run into any issues. So it’s unlikely that the problem comes from the framework itself or my occupation mod.

The Dakimakura mod adds two custom occupations, so there’s a good chance the issue is coming from there.
Humanbug 9 Jun @ 2:36am 
@Celestial_Bunny
Old profession framework mod has the same issue with loading occupation presets, and the only thing I was using it for was dakimakura mod and its addons lmao, idk if this helps
Hephaistos  [author] 9 Jun @ 12:21am 
@Celestial_Bunny
I just took a look, and everything works fine on my end with only my occupation mod and this Profession Framework enabled in B42.

Do you happen to have other occupation mods active? That error often occurs when one of them isn’t configured correctly.

Also make sure to enable only one B42 Profession Framework (there’s another version out there that causes errors) and only one version of my occupation mod.
Hephaistos  [author] 8 Jun @ 11:46pm 
@Celestial_Bunny
Thanks for reporting, I will take a look at it.
Celestial_Bunny93 8 Jun @ 6:39pm 
I can't load my saved occupation presets when this is enabled. I thought it might have been your occupations and traits mod, but the issue persisted even after disabling that and keeping this enabled. But when both are disabled my presets load normally.