Ludeon Forums

RimWorld => Mods => Help => Topic started by: jpwrunyan on April 28, 2014, 09:18:11 PM

Title: Workbench is not working
Post by: jpwrunyan on April 28, 2014, 09:18:11 PM
Here is a frustrating problem: I can't get colonists to work at the workbenches I make.

I'm not sure what I am missing so please tell me. I tried duplicating both the butcher's table and the stonecutter's table verbatim changing basically just the <defName> value. Both items show up in the menu exactly as they should. Both have a funtioning bill tab with which to add a new task. But the worktable *I* implemented won't allow me to right click on it and prioritize the task. Nor will a colonist automatically go up and fill the bill.

I also tried making the worktable have its own unique recipe in the RecipeDefs and though that recipe also will show up, the same prioritization and automatic fulfillment problems remain.

I can post the .xml if necessary, but I feel like there must be something fundamental I am missing here. I mean, it can't get simpler than this, right?
Title: Re: Workbench is not working
Post by: jpwrunyan on April 28, 2014, 09:52:54 PM
Aha, I found it. A WorkGivers definition was needed. So to recap, in order to make a "workbench" you need two, usually three, things:

1) The Building Definition
2) The Work Giver Definition
3) The Recipe Definition (optional if the recipe already exists in the core, eg: butcher and stone working)
Title: Re: Workbench is not working
Post by: mrofa on April 28, 2014, 09:55:54 PM
Yehh they are kinda tricky
Try this (http://www.sendspace.com/file/t1v8sh) its a workbench from my mod, it got most of the stuff in xml with custom names compare to the original so it should be easier to see how it works :)
Title: Re: Workbench is not working
Post by: jpwrunyan on April 28, 2014, 11:56:59 PM
I'm grateful for your response but I can't use your file sharing service.

Any chance you can just post a .zip attachment? It's no big deal if you can't. I think I got a handle on this modding problem.
Title: Re: Workbench is not working
Post by: mrofa on April 29, 2014, 12:10:41 AM
Sorry, its in atachment now

[attachment deleted by admin: too old]
Title: Re: Workbench is not working
Post by: jpwrunyan on April 29, 2014, 12:14:50 AM
Awesome! Exactly what I was looking for!