stonehearth\services\server\farming\data\all_crops.json defines what level the class that does the farming needs to be.
so if you click fallow you see the menu that lets you chooses the crop. that will always say FARMER level X/y/z. is that hardcoded or modifyable?
Haven’t checked the whole mod but, could you try shift-clicking the hearthling and clicking on “Level up”?
I wonder if the worker mixin is not liking that there are two “1” keys inside level_data after merging both files.
The crop list is read in the farming_service.lua, and the js file for the crop palette hides / disables the ones that should not be enabled depending on the farmer level or if they’re meant to be unlocked by other means. The js file does retrieve the info from the farmer job to compare the level, using the alias of the farmer job.
well i searched for that not a worker code and it only appears in that location we already discussed. so im guessing that file is loaded before my hot loaded manifest tells it to stop not loading the workers skills
well that helped, now its no longer a blank screen but at least it has words saying what level and the naming scheme (from crap to master worker)
the rest is probably some other fluke that i need to fix back to the drawing board!
What about the IDs?
They’re only specified in that json file. They’re used as an index of a table in base_job.lua to store which perks are already unlocked, so that other scripts (such as AI actions) can ask whether a specific perk has been attained or not, and act accordingly.
So they just have to be unique, you don’t have to worry about them besides that.
Not sure yet why the perks aren’t showing, but it must be in some other file (or an issue about the order in which they’re loaded, like you said, or perhaps the game it’s getting confused with the mixins. The js file is overriden correctly, I checked with the CEF debugger, but there must be something else that’s making them not appear).
well now i know i should probably look at that one at least
also, another side effect to my rather strange program i noticed: the upgraded worker outfits are enquipped to people with worker_job. mine have farmer_job.
so my nordlings outfits get made in such a way that they work for both :’)…i should probably not make those buyable or peoples farmers will be all swaggy. lol.
more anoyingly, even if my workers level up (they do) and dont display the skills, and have the farmer job in their worker_description, the crops dont unlock if they reach higher levels. ive take a look at stonehearth\services\server\farming\farming_service.lua in the hope that that file decided the unlock or not but the only refference to levels i can find is at line 181
“crop_level_requirement = crop.level_requirement”
which i think only applies if its not defined in all_crops.json…
aaand then i lost track of where to search, any tips on where to look @Relyss ? (or anyone else that has stumbled around the code more often )