Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: Locutus on June 20, 2014, 04:45:54 pm

Title: More Dwarves at Embark via Cheat Engine v 34.11
Post by: Locutus on June 20, 2014, 04:45:54 pm
Has anyone located the address for editing the number of embark dwarves?  I'm using cheat engine and I haven't found the address in any other posts and, frankly, I'm fairly new to memory editing and can't find it myself.

--Thanks
Title: Re: More Dwarves at Embark via Cheat Engine v 34.11
Post by: Meph on June 20, 2014, 04:50:06 pm
Make a file in the hack/scripts folder. Call it anyname.rb. Add this inside:
Code: [Select]
# patch start dwarf count

nr = $script_args[0].to_i

raise 'too low' if nr < 7

addr = df.get_global_address('start_dwarf_count')
df.memory_patch(addr, [nr].pack('L'))

Gen a world, go to the embark selector (where you chose where to embark) and before you press 'e', go to the dfhack console and type in "anyname #", with # being your starting group. 100 gives you 100 dwarves for example. done.

Or download Masterwork and have a look at this, it comes with settings for this included:
(http://i.imgur.com/aGQgGEi.png)
Title: Re: More Dwarves at Embark via Cheat Engine v 34.11
Post by: Locutus on June 20, 2014, 05:20:03 pm
You, sir, are awesome!  Thank you.  I've been trying to get this to work for two days now.

--Thank you!!!