Replacing worker with something else

i need some help with modding :sweat:
i’m trying to make a replacement to the worker job but i’m getting an error at the starting heartling screen.

i believe i’t because of this function:
function PopulationFaction:generate_starting_citizen(options)
** local job = options.job or ‘stonehearth:jobs:worker’ **
** citizen:add_component(‘stonehearth:job’)**

release-841 (x64)[M]
stonehearth/components/job/job_component.lua:777: attempt to index a nil value
stack traceback:
[C]: ?
stonehearth/components/job/job_component.lua:777: in function ‘_update_job_work_order’
stonehearth/components/job/job_component.lua:338: in function ‘promote_to’
…th/services/server/population/population_faction.lua:553: in function ‘generate_starting_citizen’
…th/services/server/population/population_faction.lua:638: in function ‘generate_roster’
…vices/server/game_creation/game_creation_service.lua:355: in function ‘_generate_initial_roster’
…vices/server/game_creation/game_creation_service.lua:253: in function <…vices/server/game_creation/game_creation_service.lua:244>

if this is not possible then i think i will have to keep the worker
or i should just change it’s name?


That was what I did, just change its name. You can then customize clothes, names, descriptions, etc.


same here. rename and change seems like the go-to move.

1 Like

thanks i’ll do that