Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 172 173 [174] 175 176 ... 222

Author Topic: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06  (Read 1001962 times)

easykiln

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2595 on: April 29, 2016, 06:08:32 pm »

Hey, something in my current fort is making therapist crash when it tries to read the dwarves. Not sure wha information to give you to help resolve it.
Logged

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2596 on: May 01, 2016, 03:24:25 pm »

http://stackoverflow.com/questions/36969081/find-x-given-y-on-cumulative-frequency-graph

working on an idea

edit:

turns out that this isn't exactly what I want either.  A cumulative frequency graph ignores the values of it's members and just shows proportions of values.  Which means if I have a distribution made up of 1, 3, 5, 10, 100 and that's it.  Then a 20 and an 80 will have the same % value.  Here's a thrown together CDF

http://imgur.com/ZdTigXX

Which I guess is why the "as is" implementation of Dwarf Therapist uses a minmax conversion melded together with a Empirical Cumulative Distribution Function.

I had another idea on how to work it out, but it wouldn't be much different than how it works now.  It would do integration over an x,y ogive to derive the pythagorean c^2 of each a^2 (width, i.e. x) * b^2 (height, i.e. y).  X would be the counts of the values (i.e. if n = 1000 values, then each repeated value equals 1 width).  Each y would be the raw value (i.e. a strength score of 900).

But it's a little overkill for too little return imo.  Especially if it ain't broke why fix it.

edit 2:

Quote
Then a 20 and an 80 will have the same % value

Hrmm... I think what I'm really trying to do is a area under the curve for a given x value...  That way a 20 and an 80 wouldn't be the same % of the overall area.
« Last Edit: May 02, 2016, 09:11:37 pm by thistleknot »
Logged

AlBravo

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2597 on: May 07, 2016, 07:45:27 am »

Having an issue with Dwarf Therapist locking up.  I am on a brand new laptop running Windows 10.  Running a clean install of Dwarf Fortress 4206 with no problems.  DT Win3700 locks up totally after a few clicks.  I have to end the process with task manager.  I see this in the log.  Note the 2 Warnings about half way through.  Any help?

Code: [Select]
2016-May-07 08:30:06.022 INFO core Dwarf Therapist "37.0.0" starting normally. [src\dwarftherapist.cpp:172] (setup_logging)
2016-May-07 08:30:06.024 INFO core Runtime QT Version 5.4.2 [src\dwarftherapist.cpp:173] (setup_logging)
2016-May-07 08:30:06.216 INFO core beginning to read settings [src\dwarftherapist.cpp:199] (read_settings)
2016-May-07 08:30:06.224 INFO core finished reading settings [src\dwarftherapist.cpp:249] (read_settings)
2016-May-07 08:30:06.277 INFO core attempting connection to running DF game [src\mainwindow.cpp:383] (connect_to_df)
2016-May-07 08:30:06.280 INFO core adding valid layout "v0.42.06 (graphics)" "0x56bba192" [src\dfinstance.cpp:106] (DFInstance)
2016-May-07 08:30:06.282 INFO core adding valid layout "v0.42.05 (graphics)" "0x569bf3df" [src\dfinstance.cpp:106] (DFInstance)
2016-May-07 08:30:06.286 INFO core adding valid layout "v0.42.04 (graphics)" "0x567ef345" [src\dfinstance.cpp:106] (DFInstance)
2016-May-07 08:30:06.287 INFO core adding valid layout "v0.42.03 (graphics)" "0x566c7776" [src\dfinstance.cpp:106] (DFInstance)
2016-May-07 08:30:06.288 INFO core attempting to find running copy of DF by window handle [src\dfinstancewindows.cpp:140] (find_running_copy)
2016-May-07 08:30:06.288 INFO core found copy with HWND:  0x406b6 [src\dfinstancewindows.cpp:156] (find_running_copy)
2016-May-07 08:30:06.288 INFO core PID of process is:  2332 [src\dfinstancewindows.cpp:163] (find_running_copy)
2016-May-07 08:30:06.288 INFO core PROC HANDLE: 0x370 [src\dfinstancewindows.cpp:169] (find_running_copy)
2016-May-07 08:30:06.290 INFO core Target EXE was compiled at  "2016-02-10T15:46:10" [src\dfinstancewindows.cpp:68] (calculate_checksum)
2016-May-07 08:30:06.290 INFO core DF's checksum is: "0x56bba192" [src\dfinstance.cpp:1052] (get_memory_layout)
2016-May-07 08:30:06.290 INFO core Detected Dwarf Fortress version "v0.42.06 (graphics)" using MemoryLayout from "D:/Program Files (x86)/DwarfFortress4206/Dwarf-Therapist-WIN-37.0.0/share/memory_layouts/windows/v0.42.06_graphics.ini" [src\dfinstance.cpp:1064] (get_memory_layout)
2016-May-07 08:30:06.290 INFO core RAW BASE ADDRESS: 12058624 [src\dfinstancewindows.cpp:197] (find_running_copy)
2016-May-07 08:30:06.290 INFO core GetModuleFileNameEx returned:  "D:\Program Files (x86)\DwarfFortress4206\Dwarf Fortress.exe" [src\dfinstancewindows.cpp:219] (find_running_copy)
2016-May-07 08:30:06.290 INFO core Dwarf Fortress path: "D:/Program Files (x86)/DwarfFortress4206" [src\dfinstancewindows.cpp:222] (find_running_copy)
2016-May-07 08:30:06.290 INFO core Connection to DF version "v0.42.06 (graphics)" established. [src\mainwindow.cpp:407] (connect_to_df)
2016-May-07 08:30:06.855 INFO core Loaded 12 views from disk [src\viewmanager.cpp:174] (reload_views)
2016-May-07 08:30:06.857 INFO core group_by now set to 0  for view  "Labors Full" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:06.862 INFO core group_by now set to 0  for view  "Military" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:06.865 INFO core group_by now set to 0  for view  "Social" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:06.868 INFO core group_by now set to 0  for view  "Attributes" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:06.871 INFO core group_by now set to 0  for view  "Roles" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:06.875 INFO core group_by now set to 0  for view  "Animals" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:06.878 INFO core group_by now set to 0  for view  "Health" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:06.878 INFO core group_by now set to 0  for view  "Labors Full" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:06.879 INFO core "redrew views in 24ms" [src\viewmanager.cpp:321] (draw_views)
2016-May-07 08:30:06.879 INFO core current year: 251 [src\dfinstance.cpp:771] (refresh_data)
2016-May-07 08:30:06.892 INFO core FOUND 198 squads [src\dfinstance.cpp:862] (load_squads)
2016-May-07 08:30:06.894 WARNING core vector at "0x022eb490" has over 10.000 entries! ( 21092 ) [src\dfinstance.cpp:155] (check_vector)
2016-May-07 08:30:06.895 INFO core using active units [src\dfinstance.cpp:929] (get_creatures)
2016-May-07 08:30:06.896 WARNING core vector at "0x023f4d8c" has over 10.000 entries! ( 47296 ) [src\dfinstance.cpp:155] (check_vector)
2016-May-07 08:30:06.980 INFO core "FOUND Dwarf (0x0b7f4008) name:Obok Balendok id:18642 histfig_id:47264" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:06.984 INFO core "FOUND Dwarf (0x05b0f008) name:Ustuth Dolildumat id:18643 histfig_id:47265" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:06.989 INFO core "FOUND Dwarf (0x05ccca90) name:Kib Inodgikut id:18644 histfig_id:47266" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:06.993 INFO core "FOUND Dwarf (0x05b4e010) name:Lorbam Lilumkeskal id:18645 histfig_id:47267" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:06.997 INFO core "FOUND Dwarf (0x05ba4008) name:Deler Mengsherik id:18646 histfig_id:47268" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.001 INFO core "FOUND Dwarf (0x2cd44dc0) name:Deduk Rodumgeshud id:18647 histfig_id:47269" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.005 INFO core "FOUND Dwarf (0x05c54008) name:Astesh Kilrudang id:18648 histfig_id:47270" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.005 INFO core "FOUND Dog (0x2984ec10) name:Dog id:18649 histfig_id:-1" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.006 INFO core "FOUND Dog (0x05bd1008) name:Dog id:18650 histfig_id:-1" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.006 INFO core "FOUND Cat (0x0b7e0430) name:Cat id:18651 histfig_id:-1" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.007 INFO core "FOUND Cat (0x0b7b0020) name:Cat id:18652 histfig_id:-1" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.007 INFO core "FOUND Horse (0x0b8d8030) name:Horse id:18653 histfig_id:-1" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.008 INFO core "FOUND Horse (0x0b8d8fe0) name:Horse id:18654 histfig_id:-1" [src\dwarf.cpp:293] (read_data)
2016-May-07 08:30:07.010 INFO core read 13 units in 115 ms [src\dfinstance.cpp:386] (load_dwarves)
2016-May-07 08:30:07.018 INFO core calculated roles in 8 ms [src\dfinstance.cpp:397] (load_dwarves)
2016-May-07 08:30:07.018 INFO core loaded population data in 0 ms [src\dfinstance.cpp:402] (load_dwarves)
2016-May-07 08:30:07.029 INFO core found 13 units out of 45 creatures [src\dfinstance.cpp:416] (load_dwarves)
2016-May-07 08:30:07.070 INFO core group_by now set to 0  for view  "Labors Full" [src\models\dwarfmodel.cpp:783] (set_group_by)
2016-May-07 08:30:07.098 INFO core loaded rows for "Labors Full" 28 ms [src\models\dwarfmodel.cpp:789] (set_group_by)
2016-May-07 08:30:07.248 INFO core completed read in 369 ms [src\mainwindow.cpp:563] (read_dwarves)
Logged
Ancient Avatar

lethosor

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2598 on: May 07, 2016, 11:17:05 am »

Those warnings do seem like they could be relevant, but I don't see the addresses they refer to in https://github.com/splintermind/Dwarf-Therapist/blob/DF2016/share/memory_layouts/windows/v0.42.06_graphics.ini. What are you doing when DT freezes?
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

AlBravo

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2599 on: May 07, 2016, 11:41:13 am »

Those warnings do seem like they could be relevant, but I don't see the addresses they refer to in https://github.com/splintermind/Dwarf-Therapist/blob/DF2016/share/memory_layouts/windows/v0.42.06_graphics.ini. What are you doing when DT freezes?

Just tabbed over from DF.  Sometimes it is frozen.  Sometimes I check a few labors and it freezes.  Never runs longer than a minute.  I'm afraid that it will corrupt my save if the memory map isn't right.  So I'm waiting to get this fixed before starting fresh again. 
Logged
Ancient Avatar

lethosor

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2600 on: May 07, 2016, 11:50:06 am »

It can't corrupt the save unless you write changes to DF and save, so your existing save is probably fine.
Is your save really big or old? I'd be pretty surprised if the memory layout is incorrect at this point, so that could be another explanation for the vector warnings. My point about the layout was that I don't see the large vectors in the memory layout at all, so unless you've modified yours incorrectly (which you should know about if you have), I have no idea what those vectors are. They could be specific to certain units, civilizations, etc. in your save, for example.
« Last Edit: May 07, 2016, 11:51:46 am by lethosor »
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

AlBravo

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2601 on: May 07, 2016, 03:41:21 pm »

No this is a brand new fort and I haven't done anything but install DFHack, SoundSense, DF Therapist.  Standard world gen.  Standard embark.  This happens anytime, even before I first unpause.  I just redownloaded everything again and I get the exact same problem.  I don't have a clue.  I have another computer upstairs running the exact same revs of everything and it is fine.  I'm guessing this is some oddity of this new laptop.  Maybe the Norton crap they have on here?  I'll try backing that out and try again.
Logged
Ancient Avatar

MaXMC

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2602 on: May 08, 2016, 02:41:09 am »

Is there an option to get Dwarf Therapist to retry connecting to df.exe by itself?
I'm playing with the Lazy Newb packs and they start Dwarf Therapist automatically for me, but I'm never in the game when it starts so I always get the "game not started" message. It would be great if it retried to connect every 30 seconds or so for 1-3 times before actually giving up.

Also, I would very much appreciate a few default Optimization plans distributed with the Therapist so I can understand what the H I'm supposed to do with it.
Logged

AlBravo

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2603 on: May 08, 2016, 04:41:00 pm »

I spent the weekend playing and I figured out a few things.  First I see that the Dwarf Therapist process does not lock up totally.  Looking at it in task manager shows it is running and the memory values fluxuate.  This is after the interface hangs and I can't click on anything.  Often I am left with a stuck tooltip staying on screen.  I have tried every compatability setting and running as admin.  I see those same log errors in my working system so I don't think they are relevant.  All I can say is while the main process continues working the interface (clicky bits) locks up.  I am on a brand new MSI GT Series GT72S Dominator ProG Dragon-07 running Windows 10 Home 64-bit.

Oh and I got rid of all things Norton.
« Last Edit: May 08, 2016, 04:44:00 pm by AlBravo »
Logged
Ancient Avatar

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2604 on: May 09, 2016, 02:38:33 am »

I spent the weekend playing and I figured out a few things.  First I see that the Dwarf Therapist process does not lock up totally.  Looking at it in task manager shows it is running and the memory values fluxuate.  This is after the interface hangs and I can't click on anything.  Often I am left with a stuck tooltip staying on screen.  I have tried every compatability setting and running as admin.  I see those same log errors in my working system so I don't think they are relevant.  All I can say is while the main process continues working the interface (clicky bits) locks up.  I am on a brand new MSI GT Series GT72S Dominator ProG Dragon-07 running Windows 10 Home 64-bit.

Oh and I got rid of all things Norton.

Try clearing your user settings by renaming (or deleting if you don't have custom roles, scripts etc.) %APPDATA%\UDP Software\Dwarf Therapist.ini

AlBravo

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2605 on: May 09, 2016, 04:12:35 pm »

Try clearing your user settings by renaming (or deleting if you don't have custom roles, scripts etc.) %APPDATA%\UDP Software\Dwarf Therapist.ini

I tried this.  Still locking up.
Logged
Ancient Avatar

feelotraveller

  • Bay Watcher
  • (y-sqrt{|x|})^2+x^2=1
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2606 on: May 10, 2016, 04:23:38 am »

Wouldn't happen to be a touchscreen laptop would it?

If so trying enabling input through another means e.g. touchpad/regualr mouse.
Logged

AlBravo

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2607 on: May 10, 2016, 08:38:39 am »

Wouldn't happen to be a touchscreen laptop would it?

If so trying enabling input through another means e.g. touchpad/regualr mouse.

Nope it is a 17" 1920x1080 display driven by the new Nvidia GTX 980 desktop version for notebooks  (not the M version) with 8GB of DDR5 video RAM.

I have taken to using the DFHack labors table for now.  Maybe someone else will report something similar and we can work out what is happening.
Logged
Ancient Avatar

WaffleEggnog

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2608 on: May 13, 2016, 04:03:07 pm »

Any way I can get the old version of Dwarf Therapist working on v43.02?
Logged
WHEN POSSIBLE, I PREFER TO CONSUME YOUR FACE.

xordae

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (Maintained Branch) v.37.0 | DF 42.06
« Reply #2609 on: May 17, 2016, 12:39:12 pm »

By using a memory layout for a new version. AFAIK no one has figured it out yet. It'll either pop up here or possibly on Reddit somewhere.
Logged
Pages: 1 ... 172 173 [174] 175 176 ... 222