Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 18 19 [20] 21 22 ... 54

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

KaelGotDwarves

  • Bay Watcher
  • [CREATURE:FIRE_ELF]
    • View Profile
Re: Dwarf Companion
« Reply #285 on: July 07, 2008, 01:28:17 pm »

It is, provided you use the old version of GTK+ which is listed in the DF wiki's Dwarf Companion page and have never upgraded to the newest version of GTK+, which causes some sort of conflict.

FlexibleDogma

  • Bay Watcher
  • xGiant Cave Spider Silk Sockx Merchant
    • View Profile
Re: Dwarf Companion
« Reply #286 on: July 07, 2008, 03:16:03 pm »

Ah, okay. So where can I get a previous version?

Edit: Nevermind, found one that works... Except, you know, it doesn't work. Now I'm getting a new error message, and I quote:

"The procedure entry point gdk_cairo_set_source_pixmap could not be located in the dynamic link library libgdk-win32-2.0-0.dll."

1.  Do you have a different "libgdk-win32-2.0-0.dll" floating around somewhere?  Perhaps in your System32 folder?
2.  Did you download the right version of the libgdk?  At various points the wiki has been pointed at the wrong thing, and plus some of the download pages sort funny.  You want this one I think:
http://sourceforge.net/project/showfiles.php?group_id=98754&package_id=121281

Okay, this is not working. The standalone utility is completely useless to me - where's all this functionality I keep hearing about? When I try to open up anything in python, it gives me a DOS box and then closes it before I can read anything. The command line utterly fails to do anything, either, giving me errors no matter what I type in.

How _exactly_ do I _start the program_ AFTER I've installed everything and run dfcompanion_prototype.py? I've tried running every single .py and .pyc file, nothing, same result, it all quits before I can see anything.

Go to Start->Run->cmd. 
Type: cd Where\You\Put\Dwarf\Companion
Type: dfcompanion_prototype.py (or standalone.name.exe)

That way you can at least see the error message. 
(Dear Microsoft:  Automatically closing a window so you can't read the error message it gives you is the stupidest thing ever.  Or at least in the top 10.  Could you do something about it in the next version of Windows?  *Hugs and Kisses*, DP)

@KaelGotDwarves:  Could you just drop the old DLL in the same folder as dwarf companion?  IDK if that works with python, but it did use to work with windows programs in general.

@Deon:  I'm sorry, but I don't know what that message is saying, so I have no idea how to help you.  Is your primary language not English?  If so, could you translate that for me?
Logged

Jetman123

  • Bay Watcher
  • !!Bauxite Turbojet!!
    • View Profile
Re: Dwarf Companion
« Reply #287 on: July 11, 2008, 02:26:09 pm »

Ah, okay. So where can I get a previous version?

Edit: Nevermind, found one that works... Except, you know, it doesn't work. Now I'm getting a new error message, and I quote:

"The procedure entry point gdk_cairo_set_source_pixmap could not be located in the dynamic link library libgdk-win32-2.0-0.dll."

1.  Do you have a different "libgdk-win32-2.0-0.dll" floating around somewhere?  Perhaps in your System32 folder?
2.  Did you download the right version of the libgdk?  At various points the wiki has been pointed at the wrong thing, and plus some of the download pages sort funny.  You want this one I think:
http://sourceforge.net/project/showfiles.php?group_id=98754&package_id=121281

Okay, this is not working. The standalone utility is completely useless to me - where's all this functionality I keep hearing about? When I try to open up anything in python, it gives me a DOS box and then closes it before I can read anything. The command line utterly fails to do anything, either, giving me errors no matter what I type in.

How _exactly_ do I _start the program_ AFTER I've installed everything and run dfcompanion_prototype.py? I've tried running every single .py and .pyc file, nothing, same result, it all quits before I can see anything.

Go to Start->Run->cmd. 
Type: cd Where\You\Put\Dwarf\Companion
Type: dfcompanion_prototype.py (or standalone.name.exe)

That way you can at least see the error message. 
(Dear Microsoft:  Automatically closing a window so you can't read the error message it gives you is the stupidest thing ever.  Or at least in the top 10.  Could you do something about it in the next version of Windows?  *Hugs and Kisses*, DP)

@KaelGotDwarves:  Could you just drop the old DLL in the same folder as dwarf companion?  IDK if that works with python, but it did use to work with windows programs in general.

@Deon:  I'm sorry, but I don't know what that message is saying, so I have no idea how to help you.  Is your primary language not English?  If so, could you translate that for me?

I can't use cd in command, as I have Dwarf Fortress on my secondary storage hard drive, which is E:/. And windows is being mean and not letting me switch to that.

I tried installing what you said to install, except now it's once again closing the window before I can read the message.

I've tried installing MANY, MANY different versions of this "GTK" and none of them came with any sort of dll that I can find. Is there a way to uninstall them, seeing as that might be causing problems?
« Last Edit: July 11, 2008, 02:32:06 pm by Jetman123 »
Logged
When dwarves want to commit suicide, then by Armok, they _will_ commit suicide, even if they have to spend the rest of their lives working at it!

FlexibleDogma

  • Bay Watcher
  • xGiant Cave Spider Silk Sockx Merchant
    • View Profile
Re: Dwarf Companion
« Reply #288 on: July 11, 2008, 03:06:28 pm »

To change to your E:\ Drive just type "E:", without the quotes.

I wouldn't remove things at this point.  I'm just trying to figure out what is going on in your case.  Randomly mucking around in System32 is a bad idea, not that I think you'd do that, but the exact error message will be helpful in troubleshooting this particular problem.

Tip:  To copy out of the command window:
Right click
Select Mark.
Hightlight text
Right click.  You have now copied that text, so you can paste it wherever you like.
Logged

Jetman123

  • Bay Watcher
  • !!Bauxite Turbojet!!
    • View Profile
Re: Dwarf Companion
« Reply #289 on: July 11, 2008, 04:49:51 pm »

E:\Dwarf Fortress\companion>dfcompanion_prototype.py
version v0.27.169.88a, pid 3788, player 0
0 words loaded
Traceback (most recent call last):
  File "E:\Dwarf Fortress\companion\dfcompanion_prototype.py", line 390, in <mod
ule>
    DFcmp = DFcompanion()
  File "E:\Dwarf Fortress\companion\dfcompanion_prototype.py", line 336, in __in
it__
    self.dd = dwarfdbg()
  File "E:\Dwarf Fortress\companion\dwarfdbg.py", line 102, in __init__
    self.getWords()
  File "E:\Dwarf Fortress\companion\dwarfdbg.py", line 218, in getWords
    lptr = self.getLong(vec2[1]+race*4)
  File "E:\Dwarf Fortress\companion\dwarfdbg.py", line 114, in getLong
    return struct.unpack("L", self.dbg.read(ptr, 4))[0]
  File "E:\Dwarf Fortress\companion\dfwin32.py", line 81, in read
    raise WinError()
WindowsError: [Error 998] Invalid access to memory location.


Okay, there we go.
Logged
When dwarves want to commit suicide, then by Armok, they _will_ commit suicide, even if they have to spend the rest of their lives working at it!

Brian

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #290 on: July 12, 2008, 04:51:34 pm »

[This is a rehash of the message I posted in Modding, didn't know it belonged here instead... oops]

I want to get Dwarf Companion working from Python so I can try my own scripts.  Unfortunately this is the output I get trying to run dwarf companion:
Code: [Select]
dfcompanion_prototype.py
Traceback (most recent call last):
  File "C:\Documents and Settings\Administrator\Desktop\640x300ez_38c3\companion\dfcompanion_prototype.py", line 3, in <module>
    import gtk
  File "C:\Program Files (x86)\PyGTK\Python\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 38, in <module>
    import gobject as _gobject
  File "C:\Program Files (x86)\PyGTK\Python\lib\site-packages\gtk-2.0\gobject\__init__.py", line 30, in <module>
    from gobject.constants import *
  File "C:\Program Files (x86)\PyGTK\Python\lib\site-packages\gtk-2.0\gobject\constants.py", line 22, in <module>
    from _gobject import type_from_name
ImportError: DLL load failed: The specified procedure could not be found.
Edit: And a pop-up says "The procedure entry point g_timeout_add_seconds_full could not be located in the dynamic link library libglib-2.0-0.dll."

Difficulty: AMD 64.  So first I went through all the components following the instructions here.  I selected the correct packages for my system.  Apparently selecting the 64-bit packages when available was actually wrong.  I uninstalled everything and went with the 32-bit packages and I got the error above.  Then I uninstalled everything and tried the all-in-one installer here and got the exact same result.


I'm actually not a Python programmer yet, but I have a dozen languages under my belt and I thought Dwarf Fortress would provide me some good Python time.  Can anyone help me out?



Now, it was suggested that I put a -v in my command line.  In this case, I think I have to invoke it with the python command, and I see a different error:

(This is long, so I'm hiding it with spiler)

Spoiler (click to show/hide)

« Last Edit: July 12, 2008, 04:53:44 pm by Brian »
Logged

Jetman123

  • Bay Watcher
  • !!Bauxite Turbojet!!
    • View Profile
Re: Dwarf Companion
« Reply #291 on: July 12, 2008, 05:35:51 pm »

Man, this thing really seems to be troubling a lot of people.
Logged
When dwarves want to commit suicide, then by Armok, they _will_ commit suicide, even if they have to spend the rest of their lives working at it!

Skanky

  • Bay Watcher
  • I'm building a wagon!
    • View Profile
Re: Dwarf Companion
« Reply #292 on: July 12, 2008, 08:34:53 pm »

I had trouble with it too. Thankfully the stand-alone version linked to on the previous page worked for me.
Logged
"Quickly now, the goblins are more devious these days." - Captain Mayday

Brian

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #293 on: July 12, 2008, 11:59:39 pm »

Yar the standalone exe works just fine.  I want the python code running tho, so I can add my own scripts.
Logged

KaelGotDwarves

  • Bay Watcher
  • [CREATURE:FIRE_ELF]
    • View Profile
Re: Dwarf Companion
« Reply #294 on: July 13, 2008, 02:13:29 am »

For the hell of it I ran more tests and (because I'm running windows) used the wiki full python/gtk install link and DC and extracted EVERYTHING to one same folder.

It does work again now. Don't know if that works for linux though.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Dwarf Companion
« Reply #295 on: July 13, 2008, 04:08:25 am »

@Deon:  I'm sorry, but I don't know what that message is saying, so I have no idea how to help you.  Is your primary language not English?  If so, could you translate that for me?
I can't read it either, this is some kind of broken encoding.
However re-installing of some of my system components (I think it was .NET frameworks) made it to work for me.
Also thanks for pointing that GTK+ is not appropriate here, I had troubles with it and I'm ok with the older GTK.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Frelock

  • Bay Watcher
  • Dabbling Philosopher
    • View Profile
Re: Dwarf Companion
« Reply #296 on: July 13, 2008, 03:11:24 pm »

For the stand-alone version:
How do you (and can you) display combat messages?  I click on the "Combat Reports" (totally experimental) button, but it doesn't work.  Nothing happens.
Logged
All generalizations are false....including this one.

Brian

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #297 on: July 13, 2008, 05:37:56 pm »

For the stand-alone version:
How do you (and can you) display combat messages?  I click on the "Combat Reports" (totally experimental) button, but it doesn't work.  Nothing happens.

That happens to me every so often.  Is your unit list also empty?  Try restarting both applications.  Also you shouldn't start companion until the game is running.  One theory I have is that whatever mechanism companion uses to find the dwarf fortress process could be flawed.  Maybe it's finding something else that looks like it.  Maybe something else with "Dwarf Fortress" in the window title, or something like that.
Logged

tinhead

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #298 on: July 13, 2008, 07:25:28 pm »

I use Companion for the combat reports in fortress mode, and for occasional fun, but I have a problem. Every time I reach around 30 dwarfs in fortress mode, the program freezes/refuses to start. it works fine in adventure mode though.
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #299 on: July 15, 2008, 02:02:26 am »

It is very likely there is an error in interpreting one of the unit's data. That would explain why it stops working after a while. Please copy/paste the error message that should be printed in the msdos box.

As for the startup detection, it searches for a program whose image name is dwarfort.exe. But it will work properly only once you have run the game, because the language file and other stuff has not been loaded in the title screen.
Logged
Pages: 1 ... 18 19 [20] 21 22 ... 54