Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 ... 7

Author Topic: Increasing embark dwarves  (Read 27204 times)

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Increasing embark dwarves
« Reply #30 on: July 10, 2010, 11:31:52 pm »

.09 SDL: 008F49E4
.09 legacy: 008EA735

Edit: in Cheat Engine's Memory Viewer, search for this:
83 ?? 01 79 ?? ?? 07 00 00 00 4D E8 ?? ?? ?? ?? 0F B7
The 07 is the byte to change.

Edit:
.10 SDL: 008F4394
.10 legacy: 008EA895
« Last Edit: July 11, 2010, 02:14:18 pm by 0x517A5D »
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Increasing embark dwarves
« Reply #31 on: July 11, 2010, 07:12:04 pm »

Damn, you're fast, 0x517A5D. Bravo.
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

shibdib

  • Bay Watcher
  • How much for Goat?
    • View Profile
Re: Increasing embark dwarves
« Reply #32 on: July 11, 2010, 07:34:19 pm »

 :o i feel like this has to be a simple file edit... but ill let all u mem hackers have ur fun
Logged

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Increasing embark dwarves
« Reply #33 on: July 11, 2010, 11:09:43 pm »

:o i feel like this has to be a simple file edit... but ill let all u mem hackers have ur fun

Actually, yeah, if you're comfortable hex-editing a file and you have an editor that supports searches with wildcards, you can just search for that byte sequence in the executable and make the edit permanently.
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Increasing embark dwarves
« Reply #34 on: July 14, 2010, 12:40:39 pm »

Cheat Engine really isn't hard to use. If I can use it, anyone can.
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

Vertigon

  • Bay Watcher
    • View Profile
Re: Increasing embark dwarves
« Reply #35 on: July 14, 2010, 05:13:24 pm »


just use Darius's friendship, its much much easier, and allows you to add in creatures as well.

that way you can even have 1 dwarf and 6 dogs without crashing.
Or you could have 13 dwarves, 45 cows, and a bull, resulting in a full out milking operation.

..oh my god I need to make a dairy.


Or 2 of everything. Build a big fucking boat.
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Increasing embark dwarves
« Reply #36 on: July 14, 2010, 06:28:12 pm »

And then flood the world and wait for it to drain?
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

Naros

  • Bay Watcher
  • [COVETS_SPOONS]
    • View Profile
Re: Increasing embark dwarves
« Reply #37 on: July 18, 2010, 08:32:14 pm »

Indeed, just opening up Dwarf Fortress.exe in a hex editor and searching for "07 00 00 00 4D E8" did the trick. Only finds one such sequence, and changing the 07 to whatever number your please works; I went for 20, and turned off immigration. <3

Here's a handy hex to decimal lookup table for your convenience.
I.E. For my 20 dwarves I put down "14", as typing 20 would get you 32 dwarves instead.
« Last Edit: July 21, 2010, 03:08:50 pm by Naros »
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Increasing embark dwarves
« Reply #38 on: July 18, 2010, 10:32:23 pm »

I once pushed the boundaries of both my computer and my sanity by starting a 6x6 with 200 dorfs. It turns out that I had way too much faith in my computer. I'm going to try a 1x1 with 200+ dorfs, but I haven't gotten around to it yet.
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Increasing embark dwarves
« Reply #39 on: August 02, 2010, 11:36:43 pm »

Okay, I found out that I massively suck at hex editing. Does anyone have the new address for dorfs?
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Increasing embark dwarves
« Reply #40 on: August 03, 2010, 02:00:48 pm »

It looks like the optimizing compiler rearranged some code, throwing off that search pattern.

Untested, but appears to be:
Windows SDL 0.12: 008F80D8
Windows Legacy 0.12: 008EE7F5
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Increasing embark dwarves
« Reply #41 on: August 03, 2010, 02:44:15 pm »

Thank you very much, ser. I greatly appreciate it.

Edit: You can change that to tested. It works. Well done, ser.
« Last Edit: August 03, 2010, 04:35:32 pm by MaximumZero »
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

melpomenee

  • Bay Watcher
    • View Profile
Re: Increasing embark dwarves
« Reply #42 on: August 10, 2010, 03:39:08 am »

So, I've lost track of when and how to use the memory hacking method.  Can someone give me steps to give myself 11 dwarves to mess with at embark?  Any substantial differences for 12 dwarves?
Logged

MaximumZero

  • Bay Watcher
  • Stare into the abyss.
    • View Profile
Re: Increasing embark dwarves
« Reply #43 on: August 10, 2010, 10:47:46 am »

Open Dwarf Fortress. Gen a world, if you haven't already. Find a good embark spot, but before you actually embark, open Cheat Engine. Find "Enter Address Manually". 0x517A5D has supplied the address that you'll need to use, depending on what version of the game you're using. (Example: If you're using the most recent version, .12 SDL, the address is 008F80D8. Don't change any other options.) Where it says 7, double click and change to whatever. There is no difference between 11, 12, 35 (My usual embark party,) and 500. You can now close Cheat Engine, unless you're going to use it for something else, like modding the number of embark points you have. From this point on, the game continues as normal.

Have fun! ^_^
Logged
  
Holy crap, why did I not start watching One Punch Man earlier? This is the best thing.
probably figured an autobiography wouldn't be interesting

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Increasing embark dwarves
« Reply #44 on: August 10, 2010, 01:43:47 pm »

However, if you use Vista or Windows 7, this procedure won't work for the SDL version.  (Because of ASLR, discussed earlier in this thread.)

You can generate your fort using Legacy (and the offset for it) and then switch over to SDL.

Or you can use CheatEngine's memory search to look for
    07 00 00 00 4D E8 ?? ?? ?? ?? 0F B7
The 07 is the byte to change.
Logged
Pages: 1 2 [3] 4 5 ... 7