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

Military squads aren't being refilled? #55

Closed
mattregul opened this issue Aug 4, 2018 · 11 comments
Closed

Military squads aren't being refilled? #55

mattregul opened this issue Aug 4, 2018 · 11 comments
Labels
bug an existing feature is malfunctioning

Comments

@mattregul
Copy link

mattregul commented Aug 4, 2018

Describe the bug
Just noticed in my current game of 39 years, with 231 citizens, has pretty much no military presents.

  • Captain of the Guard: None
  • Squad 1 - 2 dwarves (squad position 1 & 3)
  • Squad 2 - No units
  • 120 available candidates

What happened
DF-AI isn't refilling squads?

Expected behavior
With a population of 239 (120 candidates), I was expecting several full squads of dwarven killing machines

Visual reference

Squads

image
image

Citizen Summary

image

Citizens - Page 1

image

Citizens - Page 2

image

Citizens - Page 3

image

Citizens - Page 4

image

Citizens - Page 5

image

Weapons

image

Armor

image

ai version:

Dwarf Fortress 0.44.12
  Windows 64-bit
df-ai 0.44.12-r1-update1-5-g9c2c4a64 (Build ID: df-ai-pre-0.44.12-r1-180801001)
  code 9c2c4a648f508366ca0d49f5445c5fbb5f9503f3
DFHack 0.44.12-r1-0-gc2a64b35 (Build ID: df-ai-pre-0.44.12-r1-180801001)
  library c2a64b3573abbee549761f5c1c2626eec7a6e81c
  structures 23500e4e9bd1885365d0a2ef1746c321c1dd5094```
@BenLubar BenLubar added the bug an existing feature is malfunctioning label Aug 4, 2018
@BenLubar
Copy link
Owner

BenLubar commented Aug 4, 2018

The only thing I can think of is that the code to ensure there are enough axes and picks is being too aggressive. How many non-forbidden axes/pickaxes are there in the fort?

@mattregul
Copy link
Author

mattregul commented Aug 4, 2018

  • 1 copper pick, in inventory
  • 2 copper battle axes, in inventory
  • 1 copper battle axe, forbidden

@mattregul
Copy link
Author

mattregul commented Aug 4, 2018

I'm actually fairly new to the game, I've been wanting to try it for years but never picked it up. Your AI is what got me to finally download the game. I figured I'll let the AI do its thing and learn the game as we go... So, hopefully the above info is what you needed

@BenLubar
Copy link
Owner

BenLubar commented Aug 4, 2018

Basically, the AI won't add anyone else to the military because it's worried about the military having all the axes/picks and none being left to actually gather materials.

I'm unsure of how to handle this. Maybe force new squad members to be ranged when this happens, since there aren't any ranged axes or picks?

@mattregul
Copy link
Author

Hmm, perhaps I'm out of resources, as my dwarfs aren't really digging anymore. Perhaps we need to stripmine until we have X-amount of resources in stock?

@mattregul
Copy link
Author

No resources, no new picks

@mattregul
Copy link
Author

Is the AI unable to filter melee weapons? Meaning, if there are swords, maces, etc... why won't the military use them?

@BenLubar
Copy link
Owner

BenLubar commented Aug 5, 2018

The AI used to assign each squad's weapons individually, but it did that at squad creation, not when assigning new members to the squad.

Maybe it would be a good idea to keep allowing squads to have any weapon, but if a Dig or ChopTree job isn't able to be filled, whoever is holding the tool would be manually assigned a different weapon.

@mattregul
Copy link
Author

🥇Nice, loaded up the same save, ai immediately created 11 squads, 105 soldiers!

@mattregul
Copy link
Author

Going to start another world, but I'm seeing most of the squads are just wrestlers.

@BenLubar
Copy link
Owner

BenLubar commented Aug 6, 2018

If their highest weapon skill is lower than their wrestling skill, they show up as wrestlers. If you have a lot of them, that's probably because there aren't any weapons for them to train with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an existing feature is malfunctioning
Projects
None yet
Development

No branches or pull requests

2 participants