Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Tweak and 40d11?  (Read 1261 times)

dio1982

  • Escaped Lunatic
    • View Profile
Tweak and 40d11?
« on: April 30, 2009, 12:17:45 pm »

What do I have to do to get Tweak to run under 40d11?

I tried editing the XMLs, but all attempts failed so far, beacause I can't generate a valid hash for the version.
Logged

Vattic

  • Bay Watcher
  • bibo ergo sum
    • View Profile
Re: Tweak and 40d11?
« Reply #1 on: April 30, 2009, 04:18:14 pm »

I believe tweak works through editing memory entries and that the memory entries haven't been located in the new 40dx versions, is anybody looking?
Logged
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands

userpay

  • Bay Watcher
    • View Profile
Re: Tweak and 40d11?
« Reply #2 on: April 30, 2009, 07:47:14 pm »

What I do if I were to use tweak or dwarf companion is keep a copy of the regular 40d, copy the save to that, alter it, then copy it back.
Logged

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Tweak and 40d11?
« Reply #3 on: April 30, 2009, 07:51:56 pm »

Heal and warp were never updated for that, though.
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Tweak and 40d11?
« Reply #4 on: May 01, 2009, 10:25:39 am »

So what needs to be found?

I need a short description of what it does, and a location in some previous version of DF.

Then I can try to match up code sequences.
Logged

kutulu

  • Bay Watcher
    • View Profile
Re: Tweak and 40d11?
« Reply #5 on: May 01, 2009, 12:36:10 pm »

I believe tweak works through editing memory entries and that the memory entries haven't been located in the new 40dx versions, is anybody looking?

DwarfManager works with 40d11, at least on Windows, so their XML data files include the locations of some of the memory bits -- the creature vector and the language tables, in particular.
Logged

dio1982

  • Escaped Lunatic
    • View Profile
Re: Tweak and 40d11?
« Reply #6 on: May 01, 2009, 03:40:44 pm »

I believe tweak works through editing memory entries and that the memory entries haven't been located in the new 40dx versions, is anybody looking?

DwarfManager works with 40d11, at least on Windows, so their XML data files include the locations of some of the memory bits -- the creature vector and the language tables, in particular.

At least from the XML files of DwarfManager one can piece most memory vectors together. The only problem rilly is the silly version hash  ::)
There are billions of ways of generating such a hash, and once I have that hash, Tweak can find the process and start finding most relevant memory vectors on its own.
Logged

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Tweak and 40d11?
« Reply #7 on: May 01, 2009, 05:31:57 pm »

From the versions.xml file:

<?xml version="1.0"?>
<versions>
    ...
    <version name="0.27.176.38c" hash="9147b5e922a30873fd1a742b1dea1724" />
</versions>

Output of md5sum:

[C:\Games\Dwarf Fortress]md5sum 38c/dwarfort.exe
9147b5e922a30873fd1a742b1dea1724 *38c/dwarfort.exe
Logged

aklyatne

  • Bay Watcher
  • Menaces with spikes of, well, spikes.
    • View Profile
    • Stumbleupon profile
Re: Tweak and 40d11?
« Reply #8 on: July 10, 2009, 02:02:34 pm »

I've gotten the md5 hash and put it in the versions.xml file properly, and there's a 40d11 folder in the versions directory with the proper offsets.  It can't find the process, though.  Vanilla 40d11 except for init changes and orcmod.

   <version name="0.28.181.40d11" hash="6f81231b845e9c9dc29aaf57705ccc7c" />

...is the hash I got.

Logged
Don't even bother with trying to sp-
You have struck Alunite!
-ell my username.  Just type Ak or something.

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Tweak and 40d11?
« Reply #9 on: July 11, 2009, 01:54:47 am »

Tweak is hardcoded to look for a process that has the executable name "dwarfort.exe", not "Dwarf Fortress.exe".  Copy or rename the exe, run it, and try Tweak again.

If things work, please post the versions/0.28.181.40d11/* files.
Logged

dieinafire

  • Bay Watcher
  • needs alcohol to get through the day.
    • View Profile
Re: Tweak and 40d11?
« Reply #10 on: July 13, 2009, 06:18:51 pm »

posting to bump a much-needed thing.

if you can get heal to work in 40d, that would be nice, and many grateful dwarfs will sing your praises.

...unless their throats are red. then they will gurgle your name a bit, and bleed to death and/or suffocate.
Logged