Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 135 136 [137] 138 139 ... 192

Author Topic: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)  (Read 869031 times)

kingubu

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2040 on: May 21, 2012, 10:48:12 pm »

Hrm.  Maybe I'm going blind, but I can't seem to find Swimmer skill in the list.

I'm trying to dig through an aquifer and that skill is somewhat important here :)

There has never been swimming skill in the time I've been playing.  Someone smarter than me should fix that.
Logged

runlvlzero

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2041 on: May 22, 2012, 01:50:09 am »

seems so easy its almost a crime to ask:
Change the line in which file Theres probably around twenty here

1. copy the file "v0.34.09_graphics.ini" in the (in the "DwarfTherapist\etc\memory_layouts\windows" folder)
2. paste it in the same folder
3. rename this new file as "v0.34.10_graphics.ini"
4. open the file "v0.34.10_graphics.ini" and change the first lines with these:
Code: [Select]
[info]
checksum=0x4fba073a
version_name=v0.34.10 (graphics)
complete=true

I did this and uploaded Dwarf Therapist for 34.10 to DFFD, for anyone that wants to avoid the hassle of downloading DF 34.09 just to get the config auto-update to edit it to 34.10. It's easy enough to edit 34.09 to work for 34.10, but apparently you can't get the 34.09 config to start with unless you auto-update with the appropriate (now outdated) DF version running? I feel like I'm missing the easy way to update :P

I had this problem, thanks for taking the time to upload a working version =)
Logged
I voted for BANANA!

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2042 on: May 22, 2012, 03:30:11 am »

Hrm.  Maybe I'm going blind, but I can't seem to find Swimmer skill in the list.

I'm trying to dig through an aquifer and that skill is somewhat important here :)

There has never been swimming skill in the time I've been playing.  Someone smarter than me should fix that.

the swimming skill isn't on any of the default views, but it's there. you can add it to any custom view you create.

ag

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2043 on: May 22, 2012, 03:39:25 am »

the swimming skill isn't on any of the default views, but it's there. you can add it to any custom view you create.

Why can't it be in the military page, right next to crutch walker?
Logged

Tierre

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2044 on: May 22, 2012, 03:49:12 am »

Splinterz i got a question. I tried yout DT and i have a question about traits used for labor assistant. Some of my dwarfes got 17% for fighting roles but they got all attributes to 5000 and all skills to 16 and all traits changed to suit my needs. For example they are incredibly calm and never rage. But DT says that they got only 17% affinity for fighting role O_O and for nursing too though they are fullfilled by helping others. What can cause this?
Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2045 on: May 22, 2012, 04:14:48 am »

Splinterz i got a question. I tried yout DT and i have a question about traits used for labor assistant. Some of my dwarfes got 17% for fighting roles but they got all attributes to 5000 and all skills to 16 and all traits changed to suit my needs. For example they are incredibly calm and never rage. But DT says that they got only 17% affinity for fighting role O_O and for nursing too though they are fullfilled by helping others. What can cause this?

yeah that does sound strange. i'd like to take a look at the roles and dwarfs' stats... if it's not too much trouble would you mind uploading your save so i can take a closer look?

Why can't it be in the military page, right next to crutch walker?

it will be in the next patch

ag

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2046 on: May 22, 2012, 04:28:14 am »

have you happened to try the nickname patch posted in the same topic?

Re this: I did write it for the vanilla v0.31.25 dwarf therapist, and used my own build with it until v0.34 came out without any noted problems. It might need re-merging now though, if any related code was changed. It also doesn't address the true complexity of setting a nickname properly: :)

https://github.com/angavrilov/dfhack/blob/f37f708b37bf21ded2ca99fac6db3facd7a05fcf/library/modules/Units.cpp#L554
Logged

uggi

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2047 on: May 22, 2012, 04:58:43 am »

I'm trying to get Splinter'z build (revision 5f2c8d1b9f2b) running on Linux. It connects to DF and starts loading reactions, then races and classes, and when it tries to load dwarves, it pops up the "Unable to talk to DF" dialog. Meantime, vanilla DT works fine.
Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2048 on: May 22, 2012, 05:10:23 am »

have you happened to try the nickname patch posted in the same topic?

Re this: I did write it for the vanilla v0.31.25 dwarf therapist, and used my own build with it until v0.34 came out without any noted problems. It might need re-merging now though, if any related code was changed. It also doesn't address the true complexity of setting a nickname properly: :)

https://github.com/angavrilov/dfhack/blob/f37f708b37bf21ded2ca99fac6db3facd7a05fcf/library/modules/Units.cpp#L554

as far as i can tell it wasn't ever merged into DT. i'm going to give it a try and i'll finally have to bite the bullet and setup a vmware with linux to test it out. thanks for the reference to that code as well, i wasn't aware the nickname was also set in the soul and historical figure id. i'll have to try that as well...

Shishimaru

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2049 on: May 22, 2012, 06:19:00 am »

I'm trying to get Splinter'z build (revision 5f2c8d1b9f2b) running on Linux. It connects to DF and starts loading reactions, then races and classes, and when it tries to load dwarves, it pops up the "Unable to talk to DF" dialog. Meantime, vanilla DT works fine.
Which version of DF are you using?
Logged

Captain Goatse

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2050 on: May 22, 2012, 06:19:22 am »

Thanks for your time and effort! I would like to help, but I cannot tell a line of code from a wheelbarrow.
Logged

uggi

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2051 on: May 22, 2012, 06:43:50 am »

I'm trying to get Splinter'z build (revision 5f2c8d1b9f2b) running on Linux. It connects to DF and starts loading reactions, then races and classes, and when it tries to load dwarves, it pops up the "Unable to talk to DF" dialog. Meantime, vanilla DT works fine.
Which version of DF are you using?

Sorry, forgot to mention it. 0.34.10. Here's an excerpt of run.log:

Code: [Select]
2012-May-22 14:44:02.869 DEBUG core Connection to DF version "v0.34.10" established. [src/mainwindow.cpp:301] (connect_to_df)
2012-May-22 14:44:02.928 DEBUG core Loading language translation tables [src/languages.cpp:53] (load_data)
2012-May-22 14:44:02.930 DEBUG core Loading generic strings from 96bb130 [src/languages.cpp:66] (load_data)
2012-May-22 14:44:02.934 DEBUG core generic words 2173 [src/languages.cpp:68] (load_data)
2012-May-22 14:44:06.322 INFO core Reading reactions names... [src/dfinstance.cpp:295] (load_game_data)
2012-May-22 14:44:07.571 INFO core Reading races and castes... [src/dfinstance.cpp:316] (load_game_data)
2012-May-22 14:44:10.320 INFO core Reading some game raws... [src/dfinstance.cpp:279] (read_raws)
2012-May-22 14:44:10.331 DEBUG core Reading from file:  "/home/uggi/df_linux_34_10/raw/objects/item_weapon.txt" [src/raws/rawreader.cpp:219] (read_weapons)
2012-May-22 14:44:10.417 INFO core Loaded 8 views from disk [src/viewmanager.cpp:133] (reload_views)
2012-May-22 14:44:10.517 DEBUG core loading creatures from  "0x09679db8" "0x09679db8" (UNCORRECTED) [src/dfinstance.cpp:379] (load_dwarves)
2012-May-22 14:44:10.518 DEBUG core dwarf race index "0x09661640" "0x09661640" (UNCORRECTED) [src/dfinstance.cpp:381] (load_dwarves)
2012-May-22 14:44:10.518 DEBUG core current year "0x0965f140" "0x0965f140" (UNCORRECTED) [src/dfinstance.cpp:383] (load_dwarves)
2012-May-22 14:44:10.518 DEBUG core civilization id: "0x0000000a" [src/dfinstance.cpp:389] (load_dwarves)
2012-May-22 14:44:10.518 DEBUG core dwarf race: "0x000001d1" [src/dfinstance.cpp:393] (load_dwarves)
2012-May-22 14:44:10.518 DEBUG core current year: 100 [src/dfinstance.cpp:396] (load_dwarves)
2012-May-22 14:44:10.519 WARNING core vector at "0x09679da8" has over 5000 entries! ( 40448574 ) [src/dfinstancelinux.cpp:66] (enumerate_vector)
2012-May-22 14:44:11.918 WARNING core Tried to read 161794296 bytes but only got 112597240 [src/dfinstancelinux.cpp:87] (enumerate_vector)
2012-May-22 14:44:15.958 INFO core found 0 dwarves out of 0 creatures [src/dfinstance.cpp:440] (load_dwarves)
2012-May-22 14:44:15.959 WARNING core not connected [src/dfinstance.cpp:497] (load_squads)
2012-May-22 14:44:15.963 WARNING core lost connection to DF [src/mainwindow.cpp:335] (lost_df_connection)
2012-May-22 14:44:16.033 DEBUG core DFInstance baseclass virtual dtor! [src/dfinstance.cpp:120] (~DFInstance)
2012-May-22 14:44:25.756 INFO core Beginning shutdown [src/mainwindow.cpp:232] (closeEvent)
2012-May-22 14:44:25.756 DEBUG core beginning to write settings [src/mainwindow.cpp:208] (write_settings)
2012-May-22 14:44:25.757 DEBUG core finished writing settings [src/mainwindow.cpp:227] (write_settings)
2012-May-22 14:44:25.757 INFO core Closing Dwarf Therapist normally [src/mainwindow.cpp:238] (closeEvent)

I've tried to locate the vectors with the scan memory tool. These are my results:

Code: [Select]
Dwarf Race = 0x09661640 (uncorrected:0x09661640)
language_vector = 0x096bb130 (uncorrected:0x096bb130)
word_table = 0x0000001c
translation_vector = 0x096bb148 (uncorrected:0x096bb148)

Can't find creature vector, and searching for squad vector eats up all the RAM and crashes.
Logged

ag

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2052 on: May 22, 2012, 07:00:05 am »

Code: [Select]
2012-May-22 14:44:10.517 DEBUG core loading creatures from  "0x09679db8" "0x09679db8" (UNCORRECTED) [src/dfinstance.cpp:379] (load_dwarves)
...
2012-May-22 14:44:10.519 WARNING core vector at "0x09679da8" has over 5000 entries! ( 40448574 ) [src/dfinstancelinux.cpp:66] (enumerate_vector)

The first offset is a correct address of the units.active vector of units on the map. The second one is junk.
Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2053 on: May 22, 2012, 07:30:34 am »

Code: [Select]
2012-May-22 14:44:10.517 DEBUG core loading creatures from  "0x09679db8" "0x09679db8" (UNCORRECTED) [src/dfinstance.cpp:379] (load_dwarves)
...
2012-May-22 14:44:10.519 WARNING core vector at "0x09679da8" has over 5000 entries! ( 40448574 ) [src/dfinstancelinux.cpp:66] (enumerate_vector)

The first offset is a correct address of the units.active vector of units on the map. The second one is junk.

yeah there's one bad offset, and an offset missing in the layout file. hopefully i'll have a fix up soon.

Shishimaru

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2054 on: May 22, 2012, 07:37:21 am »

@uggi: in the dfinstance.cpp file find the DFInstance::get_creatures() function and change this line

Code: [Select]
VIRTADDR all_units = active_units - 0x10;
with these

Code: [Select]
VIRTADDR all_units = active_units - 0xC;
The relative offsets for the two vectors are different in linux and windows. That line actually should be:

Code: [Select]
#ifdef Q_WS_WIN
    VIRTADDR all_units = active_units - 0x10;
#else
#ifdef Q_WS_MAC
    VIRTADDR all_units = active_units - 0xC;                  <-- I don't know if this is the correct value for Mac
#else
#ifdef Q_WS_X11
    VIRTADDR all_units = active_units - 0xC;
#endif
#endif
#endif
Logged
Pages: 1 ... 135 136 [137] 138 139 ... 192