Quote from: BasedGreg on June 15, 2019, 02:04:24 PM
Yeah, took me a little longer than I'd like to admit to figure out I was using a .NET standard instead of a .NET Framework hahah
Also, after using iLSpy and poking around in the dlls I managed to figure that out. I now no longer get errors! Except now the building still won't work. It's in the game and I've made a custom workgiver class (based on the fermenting barrel), but my test pawn can't load in the cartridges or really interact with the object at all. It just sits there like a glorified end table, except less useful.
No worries dude, not the first time that's tripped somebody up.
The job not working could be a few things. There needs to be a JobDriver class and WorkGiverDefs+JobDefs in XML too. If the defs aren't there I don't think the game is aware that it can assign that job to pawns. Do you get a menu when right clicking the building with a pawn selected?
I also remember a gotcha with those Def's driverClass and giverClass attributes. Rimworld core defs use just the C# class name, but I had to use {namespace}.{class} to get modded jobs to work.
Hopefully this helps you out.