Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 151 152 [153] 154 155 ... 192

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

khearn

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

Choice is good.
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2281 on: June 18, 2012, 01:25:14 pm »

yeah but it'll be the same kind of option that's there for showing role information in the labor columns. the more i look at it, it just seems to make sense to sort by role, and keeping anyone with any experience up at the top. i haven't heard any complaints about the labor columns which do the same type of thing. it's still very obvious with the drawing methods who has higher a skill, but at a glance i can also tell who the best fits for the associated role(s) are.

it's win-win for myself, but i'll have to include an option for those who want to keep skill column solely for showing skills. as a side bonus it should also work on all the social tab columns too, finally that tab may be useful!  :P

King Mir

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2282 on: June 18, 2012, 02:03:57 pm »

Small feature request:
Allow DT to reconnect to DF when DF restarts without doing a failed read. This could be done by not disabling the connect button when connected, or by changing it to a reconnect button.

yeah but it'll be the same kind of option that's there for showing role information in the labor columns. the more i look at it, it just seems to make sense to sort by role, and keeping anyone with any experience up at the top. i haven't heard any complaints about the labor columns which do the same type of thing. it's still very obvious with the drawing methods who has higher a skill, but at a glance i can also tell who the best fits for the associated role(s) are.

it's win-win for myself, but i'll have to include an option for those who want to keep skill column solely for showing skills. as a side bonus it should also work on all the social tab columns too, finally that tab may be useful!  :P
I think it's important to allow sorting by roles only, not just sorting by skills then roles. That doesn't apply to the labor tab, because the role tab exists. But if the military roles are moved to the military tab, we don't want to lose the ability to sort by roles.
« Last Edit: June 18, 2012, 02:08:23 pm by King Mir »
Logged

Intrinsic

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2283 on: June 18, 2012, 03:25:50 pm »

Feature Request: When i choose Set Nickname can DT populate that box with the existing Nickname please.

And are you aware the alert on lost connection doesn't work a lot of the time these days? i think since v10 or v11. Can't remember if this coincided with 34.11 release or not, but i think so. I've seen it literally only once since it's release.
Logged
Start Duelyst with a bonus 100gold, use referral code: Buttfungus
Enter during signup or ingame under Settings.

Isher

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2284 on: June 18, 2012, 04:57:07 pm »

Since people are requesting all sorts of features I don't care about (no offense people) I figure I'll go ahead and ask that you allow me to equip squads :P

But seriously, is it possible to create a program that will do that? I imagine it would take a lot of work, I just don't know how much it would take, and I am curious.
Logged

TerryDactyl

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2285 on: June 18, 2012, 08:36:11 pm »

I'm sorry, but I'm sure this can't be right.

I've got this dwarf, basically just endurance that's in the red, and no value provided for 'rage'. I've set the weights as follows:
Attributes: 1
Skills: 0 (because I have yet to embark)
Traits: 0

I modified the default 'melee soldier' to weigh double on recuperation, saved it, copied the parameter set, removed 'rage' from traits and called it 'calm soldier'.

Ratings:
Calm soldier: 83.66
Melee soldier: 29.97

Weight for 'traits' was initially set to 0.15, but when I noticed what little effect it was having, I tried pulling it right down to 0, and.... the ratings did not change.

solved: I was only changing 'default' roles, which does not retroactively change the custom 'melee soldier' role.

when 'melee soldier' trait-weights are properly assigned to 0.14, the difference in ratings is reduced to 2.5 (calm:83.66, melee:81.16)
« Last Edit: June 18, 2012, 08:45:20 pm by TerryDactyl »
Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2286 on: June 19, 2012, 01:59:27 pm »

alright, new version!

  • added new default military-alt view which includes individual weapon roles
  • color coded the existing default roles tab to match the labor colors/ordering
  • added a ton more default roles for individual crafting labors and weapon skills
  • added teacher, student, armor, shield roles to default military tab
  • added option to apply gradients on happiness, job and enabled labor cells
  • grids/views remember their group setting
  • updated sleep, beer icon and fixed milking job icon
  • added option to show role information in skill columns
  • column header text is always centered
  • added option choose column header font
  • cell drawing stuff is properly centered once again
  • fixed cell drawing/painting (borders, sizes)
  • pets are no longer butcherable, indicated by a red shaded square
  • DF connection alert will occur immediately now upon DF exiting
  • on break and idle will sort/group separately
  • fixed a bug causing the details pane to show multiple dwarf details (i think this will resolve the re-sizing issue, let me know if it doesn't)
  • fixed role sorting in context menus
  • when changing a nickname the current nickname is shown in the edit box
  • dwarf name on the details pane is now word wrapped

Project Home // Download
« Last Edit: June 19, 2012, 02:04:12 pm by splinterz »
Logged

Somnus

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2287 on: June 19, 2012, 03:47:55 pm »

Forgive me for my ignorance, but I'm using linux and have just built the newest splintermind-attributes version. After I build it though... how do I actually run it? I think this is only the second time I've ever built something from souce.

EDIT: Okay I found the executable and I get this:

Code: [Select]
2012-Jun-19 16:55:52.787 INFO core Dwarf Therapist "0.6.12" starting normally. [src/dwarftherapist.cpp:103] (setup_logging)
2012-Jun-19 16:55:52.885 INFO core Loaded 8 views from disk [src/viewmanager.cpp:134] (reload_views)
2012-Jun-19 16:55:52.886 DEBUG core group_by now set to 0 [src/models/dwarfmodel.cpp:624] (set_group_by)
2012-Jun-19 16:55:52.889 DEBUG core group_by now set to 0 [src/models/dwarfmodel.cpp:624] (set_group_by)
2012-Jun-19 16:55:52.889 DEBUG core "redrew views in 4ms" [src/viewmanager.cpp:254] (draw_views)
2012-Jun-19 16:55:53.002 DEBUG core setting up connections for MainWindow [src/mainwindow.cpp:124] (MainWindow)
2012-Jun-19 16:55:53.005 DEBUG core group_by now set to 8 [src/models/dwarfmodel.cpp:624] (set_group_by)
2012-Jun-19 16:55:53.005 DEBUG core group_by now set to 8 [src/models/dwarfmodel.cpp:624] (set_group_by)
2012-Jun-19 16:55:53.005 DEBUG core beginning to read settings [src/dwarftherapist.cpp:125] (read_settings)
2012-Jun-19 16:55:53.005 DEBUG core finished reading settings [src/dwarftherapist.cpp:173] (read_settings)
2012-Jun-19 16:55:53.034 DEBUG core attempting connection to running DF game [src/mainwindow.cpp:243] (connect_to_df)
2012-Jun-19 16:55:53.036 ERROR core No valid memory layouts found in the following directories... () [src/dfinstance.cpp:113] (DFInstance)
2012-Jun-19 16:55:53.055 DEBUG core executable "0x08048000-0x08eac000 (15,089,664 bytes) /home/zach/Games/Dwarf Fortress/libs/Dwarf_Fortress HEAP: 0" [src/dfinstancelinux.cpp:436] (map_virtual_memory)
2012-Jun-19 16:55:53.067 ERROR core Could not attach to PID 22625 [src/dfinstancelinux.cpp:197] (attach)
2012-Jun-19 16:55:53.067 ERROR core Unable to open "/proc/22625/mem" [src/dfinstancelinux.cpp:230] (read_raw)
2012-Jun-19 16:55:53.067 DEBUG core base_addr: 0 HEX 0 [src/dfinstancelinux.cpp:356] (find_running_copy)
2012-Jun-19 16:55:53.103 DEBUG core DF's checksum is "0x71406692" [src/dfinstancelinux.cpp:360] (find_running_copy)
2012-Jun-19 16:55:53.103 INFO core Dwarf fortress path: "/home/zach/Games/Dwarf Fortress" [src/dfinstancelinux.cpp:367] (find_running_copy)

I found instructions on how you can get the memory layout and what not from here: http://code.google.com/p/dwarftherapist/wiki/MappingNewVersion

I'll try this real quick!

Second Edit:

Well, that didn't work. Any ideas? When I try to run the bin/release/DwarfTherapist executable the window pops up, then closes immediately
« Last Edit: June 19, 2012, 04:16:55 pm by Somnus »
Logged

khearn

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2288 on: June 19, 2012, 04:16:07 pm »

To build on linux, I just do the qmake and make, then run ./bin/release/DwarfTherapist

It will complain about not finding the logfile, but that's (mostly) harmless. If you mkdir log in the top directory you can avoid that warning, too.

I just built version 14 and it seems to work fine. Haven't had enough chance to play with it to give much feedback. I'm at work, so compiling doesn't raise any eyebrows, but playing DF or using DT would get noticed. The Military-alt tab looks pretty nice at first glance. Sleep icon is better, but is the same as rest. Maybe rest should be a red cross? But it needs to be distinct from the red X for "no job". Maybe a brighter red, or just bigger?

BTW, splinterz, is there any way to tell what version of your code one if running? Help->about just says VERSION 0.6.12. It would be nice if you added a line with your version under that.
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.

Somnus

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

Hey, I was posting while you were replying. When I open it, the window pops up then disappears immediately. Not sure why!
Logged

Somnus

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2290 on: June 19, 2012, 04:26:59 pm »

Hrm. I got it working after rebuilding it. Dont' know why, but as long as it works, that's okay!

I do have one other, pretty minor question. If I try to run it without sudo it'll load up and be skinned with my system theme, however it wont' be allowed to access DF to grab the dwarf data. If I run it with sudo however, it will access the data, but it skins looking like something from Windows 95. Any idea why this is or how to correct it?
« Last Edit: June 19, 2012, 04:32:53 pm by Somnus »
Logged

King Mir

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

Another feature request: Can you make the "about" dialog display the version of the executable? When trying to update DT it's nice to be able to confirm that it updates properly.

Peaceful Slugman

  • Bay Watcher
  • dont axe me bro
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2292 on: June 20, 2012, 12:06:44 pm »

Hrm. I got it working after rebuilding it. Dont' know why, but as long as it works, that's okay!

I do have one other, pretty minor question. If I try to run it without sudo it'll load up and be skinned with my system theme, however it wont' be allowed to access DF to grab the dwarf data. If I run it with sudo however, it will access the data, but it skins looking like something from Windows 95. Any idea why this is or how to correct it?


breadman wrote up a bash script that allows one to run therapist without sudo. The script allows you to get around ptrace, which blocks the non-sudo program from accessing DF memory, and you won't need to use sudo anymore.

His post is here: http://www.bay12forums.com/smf/index.php?topic=65326.msg2565429#msg2565429

I have been getting trouble adapting his solution to work with dfhack, though... replacing df with dfhack doesn't work as well as I would like... I wish I knew more about bash scripting.
Logged

ag

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2293 on: June 20, 2012, 12:59:00 pm »

You probably also need to make the dfhack script exec df, i.e. "exec setarch i386 -R env ...".
Logged

King Mir

  • Bay Watcher
    • View Profile
Re: Dwarf Therapist (LATEST 0.6.12 5/23/12 see first post)
« Reply #2294 on: June 20, 2012, 01:04:36 pm »

The latest few versions DF hack don't require root access, since they make DF lanch DF hack as a dll or shared library.
Pages: 1 ... 151 152 [153] 154 155 ... 192