Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Increase+edit squad size over 10  (Read 1107 times)

Devast

  • Bay Watcher
    • View Profile
Increase+edit squad size over 10
« on: September 25, 2018, 06:32:04 am »

Hello

Just wondering if it was at all possible to increase squad sizes? Either through some raw change or DFHack tool

thanks.
Logged

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: Increase+edit squad size over 10
« Reply #1 on: September 25, 2018, 07:15:18 am »

Interesting question *looks*

Spoiler: "raws suggest so" (click to show/hide)

There's no tool for this to my knowledge, but one could probably make one.

FantasticDorf

  • Bay Watcher
    • View Profile
Re: Increase+edit squad size over 10
« Reply #2 on: September 25, 2018, 07:57:29 am »

[squad:number] (and detail beneath) is a positional entity set fixture, etc the dwarven militia commander's squad is in the code box below.

Code: [Select]
[POSITION:MILITIA_COMMANDER]
[NAME:militia commander:militia commanders]
[SITE]
[NUMBER:1]
[SQUAD:10:militia-dwarf:militia-dwarves] //this is what you want, this creates a squad attachee to the noble at all times whether they are military or not.
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MAYOR]
[RESPONSIBILITY:MILITARY_STRATEGY]
[COMMANDER:MILITIA_CAPTAIN:ALL] //some pretext for captains following them explicitly.
[PRECEDENCE:120]
[DO_NOT_CULL]
[DUTY_BOUND]

The attached code is in the vanilla entity_default.txt in the raws.
Logged

Devast

  • Bay Watcher
    • View Profile
Re: Increase+edit squad size over 10
« Reply #3 on: September 26, 2018, 03:04:34 am »

Excellent.
Thank you very much, I find it such a pain to have to manage so many squads.

I did that > started new World and nothing. Still showing only 10 positions.
I edited the save raw of a fort and checked a full squad and it was onlu offering to replace #10
« Last Edit: September 26, 2018, 03:26:48 am by Devast »
Logged

FantasticDorf

  • Bay Watcher
    • View Profile
Re: Increase+edit squad size over 10
« Reply #4 on: September 26, 2018, 05:15:43 am »

Raws only take effect after the changes have been saved & a new world has been started.

The RAWS aren't individual or retroactive to existing saves, they exist to apply onto all new worlds.

Mainly because the original first loading screen before you enter worldgen preferences (to adjust worldgen size & factors) is actually reading the entirety of that RAW file. When you load in world saves like through (dwarf fortress file depot DFFD) that have different raws, they will run parallel to your local raws because the raws are suspended to when the world was created and remain that way.
Code: [Select]
[SQUAD : 20 : militia-dwarf : militia-dwarves ] //i've personally raised the numeric value with no detriment, 15 works for me, what exact number are you putting in?

Spacing it out for visibility, if your error log doesn't read something going wrong i can only really diagnose you didn't save your changes to the genral RAWS before starting a new world (close the game just to ensure fewer mistakes), you're using a old or duplicate save of a existing 'set in' raw as opposed to a fresh new world (retirement from fort & adventure mode on a old world doesnt count as a new map), or maybe you're looking at the wrong noble. Out of the three i think the first is possible.

Edit: All your raw changes should take place in the general raw files, not the localised save raws as i think this could run the risk of corrupting your save besides being ineffective. Only DFhack scripts can change raws mid-game on the fly or insert generate entities that don't exist in regular raws and thats not in the original scope of the game
[/u]
« Last Edit: September 26, 2018, 05:22:01 am by FantasticDorf »
Logged

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: Increase+edit squad size over 10
« Reply #5 on: September 26, 2018, 05:50:54 am »

Although, adjusting an entity's siege triggers works ok mid-save, so there are a couple of exceptions.
Logged

Dozebôm Lolumzalìs

  • Bay Watcher
  • what even is truth
    • View Profile
    • test
Re: Increase+edit squad size over 10
« Reply #6 on: October 02, 2018, 12:28:38 am »

Another exception is non-hardcoded reactions, which can be edited (though not added without DFHack) freely.
Logged
Quote from: King James Programming
...Simplification leaves us with the black extra-cosmic gulfs it throws open before our frenzied eyes...
Quote from: Salvané Descocrates
The only difference between me and a fool is that I know that I know only that I think, therefore I am.
Sigtext!