Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: More Dwarves at Embark via Cheat Engine v 34.11  (Read 6419 times)

Locutus

  • Escaped Lunatic
    • View Profile
More Dwarves at Embark via Cheat Engine v 34.11
« 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
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: More Dwarves at Embark via Cheat Engine v 34.11
« Reply #1 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:
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Locutus

  • Escaped Lunatic
    • View Profile
Re: More Dwarves at Embark via Cheat Engine v 34.11
« Reply #2 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!!!
Logged