How would i go about giving workers a crafting "button" on the crafting UI?

what do i get if i find the error first? hahahaha

1 Like

enternal glory and possibly a hidden refferene in flavour text :stuck_out_tongue: ?

2 Likes

ok, it’s something :tada:

  • Worker.lua:
    local BaseJob = require 'stonehearth.jobs.base_job’
    local CraftingJob = require 'stonehearth.jobs.crafting_job’
    radiant.mixin(WorkerClass, BaseJob, CraftingJob)
    you had a missing “stonehearth” to know where are those jobs from

  • Manifest:
    "controllers":{
    "class:worker": "file(jobs/worker/worker.lua)"
    }
    your worker json had the controller lua but the manifest not

The result:
Something is still missing but you can start the game with those codes xD

2 Likes

This is not right. You need to have one main class and another to add to it. Just remove the basejob, it is already included in the craftingjob

1 Like

didn’t know that :sweat: thanks :grinning:
btw, just learning how lua code works lol
and only tried to fix the startup crashes

after that, is up to you @Wouter_Sikkema :yum:

2 Likes

I’d like to thank you all in helping out :), I’ll give it a shot omorrow with this and let you know!

1 Like