Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Tweak Update for .40d  (Read 3339 times)

Kerrz

  • Escaped Lunatic
    • View Profile
Tweak Update for .40d
« on: September 12, 2008, 05:15:26 am »

Hi folks. I noticed that Rick hadn't updated Tweak to .40d yet, so I went ahead and did it myself. Following are the new/updated files. I'd upload them as a zip file somewhere, but I don't have any webspace currently.

Add this line into the versions.xml file:
Code: [Select]
<version name="0.28.181.40d" hash="2c686c26307dcccd7c36cc79737ebe4f" />
In the "./versions/0.28.181.40d" folder  place the following files. You will need to create this folder for yourself.

File "core.creature.xml"
Code: [Select]
<?xml version="1.0"?>
<memory>
<address name="race_vector" value="0x015C6DD0" />
<offset name="race_name_singular_offset" value="0x001C" />
<address name="playing_race_index" value="0x0138F690" />
<address name="focused_creature_index" value="0x00D870F4" />
<address name="focused_creature_vector" value="0x01583224" />
<offset name="creature_first_name_offset" value="0x0000" />
<offset name="creature_last_name_offset" value="0x0038" />
<offset name="creature_language_offset" value="0x0064" />
<offset name="creature_race_offset" value="0x008C" />
<offset name="creature_x_offset" value="0x0094" />
<offset name="creature_y_offset" value="0x0096" />
<offset name="creature_z_offset" value="0x0098" />
<offset name="creature_flags_offset" value="0x00E8" />
<offset name="creature_body_part_health_vector_offset" value="0x02FC" />
</memory>

File "core.general.xml"
Code: [Select]
<?xml version="1.0"?>
<memory>
<address name="menu_state" value="0x01393260" />
<address name="starting_dwarf_count" value="0x00853A89" />
<address name="starting_point_count" value="0x00852C0A" />
<address name="mouse_x" value="0x009FC294" />
<address name="mouse_y" value="0x009FC298" />
<address name="mouse_z" value="0x009FC29C" />
<address name="word_vector" value="0x015C6DD0" />
<address name="language_vector" value="0x015C6EF0" />
<offset name="language_name_offset" value="0x0000" />
<offset name="language_word_vector_offset" value="0x003C" />
</memory>

File "core.map.xml"
Code: [Select]
<?xml version="1.0"?>
<memory>
<address name="map_data" value="0x015C4D58" />
<address name="map_x_count" value="0x015C4D70" />
<address name="map_y_count" value="0x015C4D74" />
<address name="map_z_count" value="0x015C4D78" />
<offset name="map_data_map_x_offset" value="0x0058" />
<offset name="map_data_map_y_offset" value="0x005A" />
<offset name="map_data_type_offset" value="0x0062" />
<offset name="map_data_designation_offset" value="0x0264" />
<offset name="map_data_occupancy_offset" value="0x0664" />
<offset name="map_data_0a60_offset" value="0x0A64" />
<offset name="map_data_pathfinding_offset" value="0x0B64" />
<offset name="map_data_1160_offset" value="0x1164" />
<offset name="map_data_1360_offset" value="0x1364" />
<offset name="map_data_temperature1_offset" value="0x1564" />
<offset name="map_data_temperature2_offset" value="0x1764" />
<offset name="map_data_1960_offset" value="0x1970" />
<offset name="map_data_1b60_offset" value="0x1B70" />
</memory>

File "magma.xml"
Code: [Select]
<?xml version="1.0"?>
<memory>
<address name="enable_magma_forge" value="0x006C1FAC" />
<address name="enable_magma_furnaces" value="0x006C2244" />
</memory>

Enjoy. If you don't know what I'm talking about, I'm afraid I can't make it any simpler. Hopefully Rick will update his own database soon.

I haven't tested all of the functions yet, I leave that to you folks. It does everything I need it to do: reveal. Yes. I'm cheating scum.

To Rick: Thanks man. You do good work.
Logged

Exponent

  • Bay Watcher
    • View Profile
Re: Tweak Update for .40d
« Reply #1 on: September 12, 2008, 08:42:30 am »

I'll often update a subset of those values (along with hotkey addresses too) on the pages for my two utilities.  I haven't messed with the values I don't use, so I haven't figured out how to find their addresses, but at least some of the utilities (such as Reveal) should work with just the values I do have posted.  So if a new version comes out and you're impatient for an update, check my wiki page (the For Each Tile page in particular) and I might already have the updates necessary to get you up and running.
Logged

socially_inept_butterfly

  • Bay Watcher
  • Likes cows for their haunting moos
    • View Profile
Re: Tweak Update for .40d
« Reply #2 on: October 01, 2008, 07:13:46 pm »

I still keep getting the message that Tweak has encountered a problem and needs to close.
Here's the error signature:

Code: [Select]
EventType : clr20r3     P1 : gibbed.dwarffortress.tweak.exe     P2 : 1.2.0.0
P3 : 47f19dc1     P4 : mscorlib     P5 : 2.0.0.0     P6 : 471ebc5b     P7 : 3404
P8 : 119     P9 : system.io.directorynotfound   

any idea how to stop this?
Logged
Urist Axebeard, Mayor, has banned the export of brains.

Pilsu

  • Bay Watcher
    • View Profile
Re: Tweak Update for .40d
« Reply #3 on: October 02, 2008, 07:07:13 am »

What exactly did you do?

I used Tweak for 40c. Copied 0.28.181.40c.core over a few times into a new folder called 0.28.181.40d, cleared them, put in the code just as it appears (use tab in the beginning of the line to put the lines into place. Don't know if it matters), saved and it works just fine

Remember, the copied file is already listed as an xml file, you don't need the .xml in the end
Logged

socially_inept_butterfly

  • Bay Watcher
  • Likes cows for their haunting moos
    • View Profile
Re: Tweak Update for .40d
« Reply #4 on: October 02, 2008, 07:17:23 pm »

I didn't copy anything over. I made all the folder new, then added notepad files that were set to save as "Any file type" and with ".xml" at the end, I copy and pasted the code of course.
Logged
Urist Axebeard, Mayor, has banned the export of brains.

Jifodus

  • Bay Watcher
  • Resident Lurker
    • View Profile
    • Dwarf Fortress Projects
Re: Tweak Update for .40d
« Reply #5 on: October 02, 2008, 07:54:54 pm »

Try this:

As of September 19, 2008 you can now update configuration for Tweak, Dwarf Foreman, and 3Dwarf/Dwarvis. It's still easy, but it isn't as clean as the integration with Dtil.
  • Download http://www.geocities.com/jifodus/discovery/discovery_standalone.zip (age: September 19, 2008)
  • Extract to a folder
  • Run Jifodus.PatternsEngine.Standalone.exe
  • Click File>Open
  • Navigate to the Dwarf Fortress folder and open up dwarfort.exe
  • Ensure the information displayed in the "Status" tab is correct
  • On the "Tools" tab, setup the paths for the tools you want the configuration updated
  • Click Update
  • Wait for it to notify of it's completion

How likely will it break? Well that depends on whether or not I selected stable patterns. Odds are they will remain stable between bug fix versions. If not, when I get around to updating the pattern or adding a new pattern, you'll find the updated DF.Base.xml at http://www.geocities.com/jifodus/discovery/df.base.xml.zip (age: Non Existant). Of course, others can provide their own versions/changes.

Note: As of September 19, 2008, when you generate the configuration for Tweak, it will warn that the patterns enable_magma_forge and enable_magma_furnaces don't exist. This is to be expected since Tweak can lookup those two values for itself; I'll eventually be adding patterns until then, they will remain missing.
I guess I'll also add, that it won't automatically update the addresses & offsets for Exponent's For Each Tile. I'll add them eventually, but I just haven't had the time to.
Logged

Untelligent

  • Bay Watcher
  • I eat flesh!
    • View Profile
Re: Tweak Update for .40d
« Reply #6 on: October 05, 2008, 01:21:16 pm »

I'd upload them as a zip file somewhere, but I don't have any webspace currently.

http://dffd.wimbli.com/
Logged
The World Without Knifebear — A much safer world indeed.
regardless, the slime shooter will be completed, come hell or high water, which are both entirely plausible setbacks at this point.