Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 9 10 [11] 12 13

Author Topic: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02  (Read 65531 times)

DaveT

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #150 on: April 09, 2009, 10:47:42 am »

Now that DF has been released natively on linux I'm considering writing dwarf manager for linux. Firstly, is there already some intention to do that by someone else? If so then I'll not bother. Other than that if you don't mind I will do as direct a port as is possible (presumably I'll end up either doing it in python with a C backend or some such so it won't be a very nice port internally).
Logged

Gertack

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #151 on: April 09, 2009, 06:43:16 pm »

With Mono you can (or should be able to) run the existing program on Linux, although how you poke at the memory will likely need tweaked.
Logged

Wahad

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #152 on: May 05, 2009, 09:09:22 am »

Dwarf Manager crashes on start-up for me giving me the standard Vista 'program doesn't work' error. I know I have 3.5 Framework; is there anyone who can tell me what to do?
Logged

kutulu

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #153 on: May 05, 2009, 09:48:57 am »

There are a few of us working on adding Linux capability to the existing DwarfManager code base, mostly involving trying to decipher the memory layout and offsets.  There's a whole thread on in this forum somewhere.
Logged

Kishmond

  • Bay Watcher
  • What the pfargtl?
    • View Profile
    • My DF Stories blog.
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #154 on: May 24, 2009, 07:35:24 pm »

I keep getting this error when using dwarf manager with 40d11.  It usually seems to happen if I leave dwarf manager sitting idle for a few minutes.  Let me know if you need any other info.

Spoiler (click to show/hide)

I get this error message when trying to write to DF. I am running Vista x64 and do have .NET 3.5.

HunterZ

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #155 on: May 26, 2009, 10:45:52 pm »

Vista / Windows 7 users having problems should make sure to run DM as administrator, or else Windows will likely "protect" you from letting DM "hack" DF's memory to inject the settings you're trying to apply.

On an unrelated note, I noticed that DM throws an exception if you click on the whitespace off to the right side of its window.
Logged

Taritus

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #156 on: June 20, 2009, 05:40:31 pm »

Hooray, necroposting. I've been trying to use the memory layout determiner thing on 40d12, but alas, every time my computer mysteriously crashes.  Anyone else been able to locate the addresses for 40d12?
Logged



AnOctopus

  • Escaped Lunatic
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #157 on: June 24, 2009, 01:13:21 am »

I ran it for d12 today. Reformat as needed. Does run and load from game, but I haven't tested to make sure it does things.
Code: [Select]
<MemoryLayout Name="v0.28.181.40d12" CheckSum="0x4a3ccb7f" Base="v0.28.181.40d11">
<Offset Name="Translation.WordTable" Value="0x58"/>
<Address Name="CreatureVector" Value="0x15b6da4"/>
<Offset Name="Creature.CustomProfession" Value="0x6c"/>
<Offset Name="Creature.Labors" Value="0x544"/>
<Address Name="DwarvenRaceIndex" Value="0x13e4850"/>
</MemoryLayout>
Logged

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #158 on: June 24, 2009, 01:48:12 pm »

I ran it for d12 today. Reformat as needed. Does run and load from game, but I haven't tested to make sure it does things.
Code: [Select]
<MemoryLayout Name="v0.28.181.40d12" CheckSum="0x4a3ccb7f" Base="v0.28.181.40d11">
<Offset Name="Translation.WordTable" Value="0x58"/>
<Address Name="CreatureVector" Value="0x15b6da4"/>
<Offset Name="Creature.CustomProfession" Value="0x6c"/>
<Offset Name="Creature.Labors" Value="0x544"/>
<Address Name="DwarvenRaceIndex" Value="0x13e4850"/>
</MemoryLayout>

The Creature.Labors and Translation.WordTable shouldn't be necessary as the .40d8 table has them with the same values.  This .40d12 table chains to .40d11, which chains to .40d9, which chains to .40d8.

The LanguageVector and TranslationsVector keys are missing from this table.  I'm almost certain that they have changed since .40d11.  I'll try to do some digging and see if I can find them.

Edit:
LanguageVector 0x015FD044
TranslationsVector 0x015FD074
« Last Edit: June 24, 2009, 02:35:11 pm by 0x517A5D »
Logged

Taritus

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #159 on: June 24, 2009, 03:59:17 pm »

Something's off with something or other, possibly just missing.  DM works great with these addresses, but doesn't seem to grab the last names of dwarves...
Logged



0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #160 on: June 24, 2009, 04:05:05 pm »

Did you edit in the addresses I located?  Post the .40d12 snippet of your memory .xml file.
Logged

Taritus

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #161 on: June 24, 2009, 09:22:17 pm »

Yup.  Didn't try it until I did.
Logged



0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #162 on: June 25, 2009, 01:58:26 pm »

I figured it out.  The internal size of a C++ vector changed, probably to add some debugging.  So I was off by 8 bytes from what Manager needs.  This snippet works for me:

Code: [Select]
<MemoryLayout Name="v0.28.181.40d12" CheckSum="0x4a3ccb7f" Base="v0.28.181.40d8">
<Address Name="CreatureVector" Value="0x15B6DA4"/>
<Address Name="DwarvenRaceIndex" Value="0x13E4850"/>
<Address Name="LanguageVector" Value="0x015FD04C"/>
<Address Name="TranslationsVector" Value="0x015FD07C"/>
</MemoryLayout>
Logged

Organ

  • Bay Watcher
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #163 on: July 04, 2009, 09:10:39 pm »

I figured it out.  The internal size of a C++ vector changed, probably to add some debugging.  So I was off by 8 bytes from what Manager needs.  This snippet works for me:

Code: [Select]
<MemoryLayout Name="v0.28.181.40d12" CheckSum="0x4a3ccb7f" Base="v0.28.181.40d8">
<Address Name="CreatureVector" Value="0x15B6DA4"/>
<Address Name="DwarvenRaceIndex" Value="0x13E4850"/>
<Address Name="LanguageVector" Value="0x015FD04C"/>
<Address Name="TranslationsVector" Value="0x015FD07C"/>
</MemoryLayout>
So Anyone know how I'm meant to use that to get it working with d12?
Logged
The fight in the dog in your what?

UnsubRedun

  • Bay Watcher
  • BRB: Tornado
    • View Profile
Re: Dwarf Manager (Dwarf Foreman Reloaded) Updated 2009-04-02
« Reply #164 on: July 11, 2009, 04:27:58 am »

I believe I've figured out where to put that MemoryLayout snippet (just open the MemoryLayout XML with notepad or something) and I've fixed the CheckSum as well, so Manager does not display the error message, but the program is blank, as far as tables are concerned. I get the labels for the jobs, like Woodcutting, Mining, etc., but aside from that and the Name label that's supposed to mark that column, it's all white.

I'm using 40d13, which may be the problem, so maybe someone's figured out what you're supposed to fill in for this version?
Logged
# Bloat25, ELVEN FOREST RETREAT, (Future): Control elf forest retreat. They could be on break all the time.
Pages: 1 ... 9 10 [11] 12 13