Bay 12 Games Forum

Please login or register.

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

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

ag

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

The relative offsets for the two vectors are different in linux and windows. That line actually should be:

Actually, they should be two different offsets: leave creature_vector to mean units.all for backward compatibility with vanilla DT, and add active_creature_vector or whatever.  ;)
« Last Edit: May 22, 2012, 07:56:50 am by ag »
Logged

splinterz

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

The relative offsets for the two vectors are different in linux and windows. That line actually should be:

Actually, they should be two different offsets.  ;)

yeah that was a very bad decision to use a relative offset. i can't believe i left that in there  :-\

Shishimaru

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

My bad, that was the fastest way to test it and I was too lazy to change it afterwards...
Logged

uggi

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

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

Ok, changed that, compiled and tried again. Now instead of this:

Code: [Select]
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)

I now got this:

Code: [Select]
2012-May-22 17:23:07.131 DEBUG core current year: 100 [src/dfinstance.cpp:396] (load_dwarves)
2012-May-22 17:23:07.744 INFO core found 0 dwarves out of 61 creatures [src/dfinstance.cpp:440] (load_dwarves)
2012-May-22 17:23:07.744 DEBUG core loading squads from  "0x096b7cc0" "0x096b7cc0" (UNCORRECTED) [src/dfinstance.cpp:520] (load_squads)
2012-May-22 17:23:07.758 INFO core Found 1 squads out of 1 [src/dfinstance.cpp:545] (load_squads)
2012-May-22 17:23:07.763 WARNING core lost connection to DF [src/mainwindow.cpp:335] (lost_df_connection)

So, it's a little better but still throwing the "Unable to talk to DF" dialog. I played around with the scan memory tool, getting the same results. Still can't find the creature vector, and trying to find the squad vector crashes DT. Here's the long crash report if needed:
Spoiler (click to show/hide)
Logged

splinterz

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

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

Ok, changed that, compiled and tried again. Now instead of this:

Code: [Select]
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)

I now got this:

Code: [Select]
2012-May-22 17:23:07.131 DEBUG core current year: 100 [src/dfinstance.cpp:396] (load_dwarves)
2012-May-22 17:23:07.744 INFO core found 0 dwarves out of 61 creatures [src/dfinstance.cpp:440] (load_dwarves)
2012-May-22 17:23:07.744 DEBUG core loading squads from  "0x096b7cc0" "0x096b7cc0" (UNCORRECTED) [src/dfinstance.cpp:520] (load_squads)
2012-May-22 17:23:07.758 INFO core Found 1 squads out of 1 [src/dfinstance.cpp:545] (load_squads)
2012-May-22 17:23:07.763 WARNING core lost connection to DF [src/mainwindow.cpp:335] (lost_df_connection)

So, it's a little better but still throwing the "Unable to talk to DF" dialog. I played around with the scan memory tool, getting the same results. Still can't find the creature vector, and trying to find the squad vector crashes DT. Here's the long crash report if needed:
Spoiler (click to show/hide)

add these offsets in the [dwarf_offsets] section in your layout file (34.10):
civ=0x00b8
mood=0x01a0
caste=0x0a4

uggi

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

add these offsets in the [dwarf_offsets] section in your layout file (34.10):
civ=0x00b8
mood=0x01a0
caste=0x0a4

Lo and behold, it works now! Thanks for all the help!
Logged

splinterz

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

ok i've updated the source and zip package with linux fixes among other things:

  • fixed labor column sorting when there are no related roles
  • added swimmer skill column to military default view
  • applied ag's linux patch for nicknames and performance issues for linux
  • fixed a bug with modded games (masterwork) showing tame animals as hostile
  • added missing linux offsets to layout files
  • fixed a bug on linux regarding the active vs full unit list offsets (they now have their own separate offsets)
  • added missing roles (bowyer, cheesemaker, etc..) there are still some that are unknown: Shearer, Spinner, Presser, Beekeeper, Potter, Glazer, Wax worker (wiki)
  • included the fix for conflicting labors (hunting/mining/woodcutting)

Project Home // Download!

iXen

  • Bay Watcher
  • retired.
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2062 on: May 22, 2012, 12:07:27 pm »

Have smb got worked it on Mac with 0.34.10? I found these indexes:
Code: [Select]
[info]
checksum=0x633f1fd3
version_name=v0.34.10
complete=false

[addresses]
translation_vector=0x01634a88
language_vector=0x01634a70
creature_vector=0x0
dwarf_race_index=0x0
squad_vector=0x0
current_year=0x01f5030c

...and so on...
Logged
Creator of MacNewbie pack – if you have a Mac and you're not a pro, you should must download it!

Durian Hohlades

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2063 on: May 22, 2012, 01:59:39 pm »

34.10 when u come? :D
Logged

khearn

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

Thanks for all the effort, splinterz.
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2065 on: May 22, 2012, 11:09:51 pm »

so apparently, there already is a Dwarf Organizer program that does what I was trying to think up.

It has a "attention variable" a "priority variable", just no quality/speed weighted variable.

huh, go figure.

I'm still pushing for an implementation into DT though.  I worked on a spreadsheet that does what I need, and even typed up a dfhack plugin to export some attributes/traits properly.

http://www.mediafire.com/view/?o5rvjg74aq714lx

I'm including all updates to this concept on dwarf organizers thread
http://www.bay12forums.com/smf/index.php?topic=105530.msg3308534#msg3308534

Here's a sheet that can be used with Splinterz version of dwarf therapist
http://www.mediafire.com/?k8lx43i9rk768c3

Update:
If anyone's interested, I took my latest sheet, changed it up to include ALL labors.  It does a great job of creating a sorted drop down list, that you merely go through, and assign dwarf's to roles based on the drop down, until they are "filled" up attention wise.

Such a process would have to be redone from scratch every (so few) migrant wave(s) for optimization, as well as adjusting the variables on the 2nd sheet (but no need to add new labors).

What's nice is if you don't assign certain labor values, they are pushed down to the bottom of the list (in essence, excluding them from the dropdown), so it's tailorable to only include the labors you care about (i.e. the one's you set variables on)., when you care about new labors, they appear in the drop down.

I'm at work, so I can't upload until tonight, but I think it's a great add on for DT.


Update again:
Here it is super charged (all labors) <- see the f7 cell for instructions on how to copy stuff
http://www.mediafire.com/?8c3twchdb0bqgbe

I think though, that priority is not needed.  Before I thought about basing it on attention (like Antalia does)...
but, what if it's a job that is not that important.  Like a low priority.  I mean... what if making armor is more important than plant gathering?  What if armoring is less important than woodcutting (cuz it takes wood to make fuel?).  I don't know, that's why I had it, but I still think a quality/speed variable is important to adjust it by to sort the jobs to be assigned first.  If it takes a non skilled dwarf to do it, then best assign it last.F
« Last Edit: May 23, 2012, 08:31:31 pm by thistleknot »
Logged

ivanthe8th

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2066 on: May 23, 2012, 12:34:19 pm »

I've been reading through the posts, and a lot of the work towards updating for DF 0.43.10 seems to be windows-based. So far all I've seen for mac users is iXen's unanswered post a while ago.

Would someone who knows please post what's necessary to update DT for Macs for the newest release?

Thank you.
Logged
You do remember that you've been farming gigantic wingless dragon-fish for profit and Fun, right?
This quote right here is the essence of DF.

DwarfEngineer

  • Bay Watcher
  • Grumble Grumble...
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/18/12 see first post)
« Reply #2067 on: May 23, 2012, 04:46:08 pm »

v0.34.10 Layouts Updated

Layouts are posted for all 3 operating systems and should download automatically.
Note, this is for vanilla Dwarf Therapist only, see post above for splinterz' release.

Direct Download Links:
Logged
Current Dwarf Therapist Maintainer - Tips

Isher

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2068 on: May 23, 2012, 05:16:36 pm »

What is the difference between regular and splinterz? I can't seem to find an exact summary of what's different.
Logged

ivanthe8th

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2069 on: May 23, 2012, 05:23:39 pm »

Thank you very much DwarfEngineer!
Logged
You do remember that you've been farming gigantic wingless dragon-fish for profit and Fun, right?
This quote right here is the essence of DF.
Pages: 1 ... 136 137 [138] 139 140 ... 192