Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 14 15 [16] 17 18 ... 54

Author Topic: Dwarf Companion - new version linked @first post  (Read 99858 times)

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #225 on: March 24, 2008, 06:07:00 pm »

quote:
Originally posted by Heavy Flak:
<STRONG>bartavelle - I absolutely LOVE the work you've done.  Given all these options at my finger tips, I've found all sorts of new and unique ways to torment my little charges.  

I have three questions about what's possible in future editions:
1.) Would it be possible to alter your Dwarves personality, too?  
2.) Is there any way to add a typing-search function to menus?  Specifically, on the last name menu, being able to type "Jai" could highlight the "Jailer" entry.
3.) You can change a dwarf that has a mood to a fell one, but he doesn't actually act on it.  Is there any way to specify Dwarf Skin as one of the required items for a mood?</STRONG>


1/ Yup, but it would require a large amount of items. I might do that for the next version ...
2/ This sounds not so easy to me, but there might be a very simple way to do this in GTK, so if anybody has an idea, that would be great
3/ Yes there is a specific material for the fell moods, i'll try to mess with it next time.

As you all can see i've not been working much on that lately, and i'm away next week, so this will have to wait. BTW, if anybody wants to start fiddling with the code, i'll gladly add the changes to my tree (if i like them).

Logged

penguinofhonor

  • Bay Watcher
  • Minister of Love
    • View Profile
Re: Dwarf Companion
« Reply #226 on: March 29, 2008, 03:37:00 pm »

.
« Last Edit: October 20, 2015, 09:50:57 pm by penguinofhonor »
Logged

kaypy

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #227 on: March 30, 2008, 02:24:00 am »

Ive been hacking on this for a bit, tweaking the output display to match how I use it.

One thing I just stumbed over: in dwarfdbg.getMilitaryPref, the labour indexes are off by 20 for the current version. This would fix it:

code:

      shield = labour[82]
      armor = labour[83]
      weapon = 'unarmed'
      if labour[71]==1: weapon = 'axe'
      if labour[72]==1: weapon = 'sword'
      if labour[73]==1: weapon = 'mace'
      if labour[74]==1: weapon = 'hammer'
      if labour[75]==1: weapon = 'spear'
      if labour[76]==1: weapon = '56'
      if labour[77]==1: weapon = 'crossbow'
      if labour[78]==1: weapon = '58'
      if labour[79]==1: weapon = '59'
      if labour[80]==1: weapon = '60'

Logged

Earthquake Damage

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #228 on: April 05, 2008, 08:56:00 pm »

In my last fort, DC didn't work right.  I could edit my dwarves, but I couldn't toggle "all creatures/only dwarves" or "all creatures/alive creatures".  The button would claim it was working, but the list itself wouldn't change.

In my current fort, it was working as it should until the latest siege.  I noticed this time there's an error message.  Does this mean anything to you?

code:
Traceback (most recent call last):
 File "dfcompanion_prototype.py", line 223, in switchOnlyDw
 File "dfcompanion_prototype.py", line 123, in initList
 File "dwarfdbg.pyc", line 835, in getCreatures
 File "dwarfdbg.pyc", line 386, in getCreature
 File "dwarfdbg.pyc", line 269, in getName
 File "dwarfdbg.pyc", line 182, in printName
IndexError: list index out of range

I could be wrong, but it says to me "someone's name is too long".  The longest name I see is 20 characters (first + space + last), so maybe that isn't the problem.  Regardless, it are broke.

Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #229 on: April 07, 2008, 01:59:00 am »

It looks like some name could not be properly decoded. That means that the creature listing will stop at that name, and thus the list will not fully update!
Logged

apache1990

  • Bay Watcher
  • Arena Master
    • View Profile
    • Bay Watcher Arena V2.0!
Re: Dwarf Companion
« Reply #230 on: April 07, 2008, 01:13:00 pm »

Many times Dwarf Companion just won't launch when I'm playing, so today I launched it before loading my save, and once I loaded it and tried to refresh the creature list:

FlexibleDogma

  • Bay Watcher
  • xGiant Cave Spider Silk Sockx Merchant
    • View Profile
Re: Dwarf Companion
« Reply #231 on: April 15, 2008, 06:58:00 pm »

Stupid question  (Maybe.  Not sure.):

What does this line do in dfwin32.py (it's line 41)?

psapi.GetProcessImageFileNameA.restype = self.ValidHandle

I'm on Windows 2000 (I'm cheap), so GetProcessImageFileNameA doesn't exist.  If I comment it out, DFC seems to work.  Anyone know what WON'T work if I remove that line?  I've goofed off with it and haven't bluescreened, crashed anything, or had any other particular wonkyness, so I guess it's ok to do?   :p

Logged

Earthquake Damage

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #232 on: April 15, 2008, 11:39:00 pm »

I seem to get those name decoding errors a lot.  Never seems to last forever, though.  Maybe a month.  It usually happens when traders are present.
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #233 on: April 16, 2008, 06:39:00 am »

Ok, "keyerror" means you try to find something in an array that is too small, it might be because of new events i don't know.

The line  

quote:
psapi.GetProcessImageFileNameA.restype = self.ValidHandle
sets the return type of the psapi function "GetProcessImageFileNameA". It's actually a trick here to get automatically an exception raised if the return value is not a valid handle.
Logged

Telltolin

  • Bay Watcher
    • View Profile
    • Miriscus
Re: Dwarf Companion
« Reply #234 on: April 21, 2008, 11:46:00 am »

When I try to run companion, I get the message "the procedure entry point gdk_cairo_set_source_pixmap could not be located in the dynamic link library libgdk-win32-2.0-0.dll"
How do I fix this?
Logged

FlexibleDogma

  • Bay Watcher
  • xGiant Cave Spider Silk Sockx Merchant
    • View Profile
Re: Dwarf Companion
« Reply #235 on: April 21, 2008, 07:09:00 pm »

@Telltolin:

1.  Make sure you downloaded all the RIGHT required stuff.  The files don't sort right on that download page, so it's possible you downloaded "gtk-2.8.20-win32-1.exe" since it was lower on the list instead of "gtk-2.10.11-win32-1.exe".  You wanted 2.10.11   :p.  (I did the EXACT SAME THING, and I don't think I'm the only one!)
2.  (Unlikely for that library.)  Double check your windows\system32 folder to see if you have an old .dll kicking around.  It will be named something like "libgdk-win32-2.0-0.dll".

[ April 21, 2008: Message edited by: FlexibleDogma ]

Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #236 on: April 22, 2008, 02:09:00 am »

There is an emergency fix for the keyerror problem, named 0.11-any, you'll find the proper link at this place.
Logged

Keiseth

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #237 on: April 22, 2008, 02:45:00 pm »

I can't remember if I've said "Thanks!" yet in this topic, but better safe than sorry...

Thanks a lot for your work, bartavelle. Dwarf Companion is invaluable on my slow computer, when trying to find the village-idiot-turned-leader of the town that managed to hide in the bottom of a temple or on top of a building. =)

Logged

YojimboUsaka

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #238 on: April 22, 2008, 07:24:00 pm »

Thanks for the update.  Fix works like a champ so far.

Yoj

Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Dwarf Companion
« Reply #239 on: April 22, 2008, 08:23:00 pm »

quote:
Originally posted by Valdemar:
<STRONG>I've managed to compile Companion version 0.10 into an exe using py2exe. It's somewhat large because it effectively has all the dependencies copy-pasted into it and linked, but it seems to work. This doesn't include any of the scripts; I'll see if I can get those to work too. Let me know if it works for you.

Download</STRONG>



Any chance you could make a new one for 0.11?
Logged
Mishimanriz: Histories of Pegasi and Dictionaries
Pages: 1 ... 14 15 [16] 17 18 ... 54