Dwarf Fortress

Dwarf Fortress

Exiled's Experimental Fortress - 50.14
Canadian Goose-1  [developer] 2 Mar, 2024 @ 12:18pm
Patching civilizations with new workshops
To add workshops to a race you wish to play
1) go to your Dwarf Fortress\data\installed_mods folder
2) go into the race folder and look for the [ENTITY:<name of race>], copy this line
3) paste the [ENTITY:<name of race>] into a note and change it to [SELECT_ENTITY:<name of race>]
4) go to the workbench mods and look for entity_patch files.
5) each entity_patch file requires you to paste that [SELECT_ENTITY]
6) copy a [PERMITTED_REACTION] list related to your race
7) paste the [PERMITTED_REACTION] under the [SELECT_ENTITY]
< >
Showing 1-2 of 2 comments
SirFell 6 Apr, 2024 @ 5:01am 
This should help to semi-automate this a bit to parse for all races at once (although at least my game lists Sun Elves twice and i was not able to find second source of them):

With your preferred text editor that can do regex and grouping (e.g. Notepad++ or EmEdit)

1) Find and open
entity_patch_*
files in your
.\data\installed_mods\
folder or use that as filter for folder search in NP++/EmEdit/etc.
2) in Search field use
(\[SELECT_ENTITY:\w+\]([\s\S]*))
, Make sure Regex is enabled.
3) in Replace field use
\1\n\n\n[SELECT_ENTITY:DWARVES_OF_THE_DEEP]\2\n\n\n[SELECT_ENTITY:SM_CV_MOON_ELF]\2\n\n\n[SELECT_ENTITY:THE_MIDNIGHT_ARISTOCRACY]\2\n\n\n[SELECT_ENTITY:SM_CV_STELLA]\2\n\n\n[SELECT_ENTITY:THE_GOBLIN_KINGDOM]\2\n\n\n[SELECT_ENTITY:SM_CV_SUN_ELF]\2\n\n\n[SELECT_ENTITY:HOBGOBLIN]\2\n\n\n[SELECT_ENTITY:HIGH_ELVEN_EMPIRE]\2
4) Hit Replace.

Doing this one file at the time would make sure you have no false-positives, but ofc will take some time, doing folder replace/all open files is fastest but may have false-positives

Do note that this uses VERY loose regex, so clicking multiple times will cause duplicates, there isnt any good delimiter to use, so had to do
([\s\S]*)
which matches everything including newline

If you added some other races or if modlist was updated with more races - adding new race to list of patched ones is as simple as adding another
\n\n\n[SELECT_ENTITY:YOUR_RACE_ENTITY]\2
to Replace fields end
Last edited by SirFell; 6 Apr, 2024 @ 5:04am
Canadian Goose-1  [developer] 20 May, 2024 @ 6:48pm 
Thank you so much for posting this, SirFell, I've been using this to help patch everything much faster than before, and without as much of a mess either.

I've added the extra races to the Replace Field code you've provided.

\1\n\n\n[SELECT_ENTITY:DWARVES_OF_THE_DEEP]\2\n\n\n[SELECT_ENTITY:SM_CV_MOON_ELF]\2\n\n\n[SELECT_ENTITY:THE_MIDNIGHT_ARISTOCRACY]\2\n\n\n[SELECT_ENTITY:SM_CV_STELLA]\2\n\n\n[SELECT_ENTITY:THE_GOBLIN_KINGDOM]\2\n\n\n[SELECT_ENTITY:SM_CV_SUN_ELF]\2\n\n\n[SELECT_ENTITY:HOBGOBLIN]\2\n\n\n[SELECT_ENTITY:HIGH_ELVEN_EMPIRE]\2\n\n\n[SELECT_ENTITY:SM_CV_ORC]\2\n\n\n[SELECT_ENTITY:TO_CV_LIZARDMAN]\2\n\n\n[SELECT_ENTITY:SUCCUBUS]\2\n\n\n[SELECT_ENTITY:SM_CV_GNOLL]\2\n\n\n[SELECT_ENTITY:SM_CV_IXTHID]\2\n\n\n[SELECT_ENTITY:SM_CV_NAGA]\2\n\n\n[SELECT_ENTITY:SM_CV_RATFOLK]\2\n\n\n[SELECT_ENTITY:SM_CV_VALKYRIE]\2\n\n\n[SELECT_ENTITY:SM_CV_DROW]\2\n\n\n[SELECT_ENTITY:SM_CV_MOUNTAIN_ORC]\2\n\n\n[SELECT_ENTITY:SM_CV_WILD_ELF]\2\n\n\n[SELECT_ENTITY:SM_CV_WOOD_ELF]\2\n\n\n[SELECT_ENTITY:FOREST_ANIMAL_PEOPLES]\2\n\n\n[SELECT_ENTITY:AZULA]\2\n\n\n[SELECT_ENTITY:ILLITHID]\2\n\n\n[SELECT_ENTITY:ROBOTIC]\2\n\n\n[SELECT_ENTITY:DARKLING]\2\n\n\n[SELECT_ENTITY:CRUNDLEKIN]\2\n\n\n[SELECT_ENTITY:HALFLING]\2

Thanks again!
< >
Showing 1-2 of 2 comments
Per page: 1530 50