Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent labors from being set on visitors #4973

Open
adiamaq opened this issue Oct 2, 2024 · 4 comments
Open

Prevent labors from being set on visitors #4973

adiamaq opened this issue Oct 2, 2024 · 4 comments

Comments

@adiamaq
Copy link

adiamaq commented Oct 2, 2024

So to explain this issue, there seems to be a bug in the game, where if you have visitors , let's say, 20, and you have a total of 30 population, in the Labor tab there will only show 10 of them (the original dwarves). However, if you go to any of those visitors and click on their own labour tab, you can assign works there. Yeah, 2 years later, those visitors will ask for citizenship, but meanwhile you're unable to see them in main labor matrix.
Would it be possible to display everyone in the main Labor tab? Or maybe force the conversion of those visitors

@myk002
Copy link
Member

myk002 commented Oct 2, 2024

You can use makeown to force the conversion of visitors to citizens.

could the "fix" here possibly be to disallow setting of labors for visitors from their info sheets? I'm not sure that capability is intended.

@adiamaq
Copy link
Author

adiamaq commented Oct 2, 2024

Ah awesome, makeown will do! Is there a way to select all visitors at once?

@ab9rf
Copy link
Member

ab9rf commented Oct 3, 2024

i am fairly certain that the ability to manipulate the labors of nonresidents is a bug

@myk002
Copy link
Member

myk002 commented Oct 3, 2024

Ah awesome, makeown will do! Is there a way to select all visitors at once?

This should do it:

:lua for _,unit in ipairs(world.units.active) do if dfhack.units.isActive(unit) and dfhack.units.isVisitor(unit) then print('Converting ' .. dfhack.units.getReadableName(unit)) reqscript('makeown').make_own(unit) end end

Note that this will also pick up forgotten beasts, who are classified as "visitor, unwanted"

@myk002 myk002 changed the title Suggestion: Option to make every visitor citizen / or / display visitors too in labor tab Prevent labors from being set on visitors Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants