Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 28 29 [30] 31 32 ... 54

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

TimeOut

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #435 on: August 26, 2008, 10:05:06 am »

It seems rather impossible to run DC under wine. I can't get the stupid GTK+ to work (one installer crashes with a memory read violation, the other works, but Python doesn't find the dlls and so on).

The python installation and the installation of the needed modules have worked well.

I even got DC to start, but it crashed immediately because of missing dlls. And if I add those dlls manually (another hour wasted, because Wine knows no $PATH variable [really, if you want to do more then start programm xyz with wine, it all becomes a great WTF?!]), they are still not recognized, or it asks for other dlls instead. :/

Any helpful ideas?
Logged

Mephisto

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #436 on: August 26, 2008, 10:23:36 am »

Why is there a dflinux.py if Linux isn't supported? I always assumed that would work, but DF doesn't run well enough in Wine for me to try it.
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #437 on: August 26, 2008, 03:52:53 pm »

I started working on DC while I was away with my linux laptop. I had no choice then but to write a linux module. It is however not supported since the first release, and was way too slow anyway  (you can only read 4 bytes per syscall with ptrace ...).
Logged

kaypy

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #438 on: August 28, 2008, 10:16:21 am »

Have you considered having DC poll for data periodically rather than needing a manual refresh? I hacked this into my installation and find that if you are using DC as an external information panel, then the auto-update is really nifty.

I guess it would make DC rather more CPU intensive, but I have a quad-core, so I figure that still leaves 1 core for DF and 2 for everything else...
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #439 on: August 28, 2008, 11:19:22 am »

Well you can have it auto refresh, and yes it eats a lot of cpu. It was like that at first, but I didn't like to loose the selected lines or current scrolled position every update.
Logged

beaver_rrr

  • Escaped Lunatic
    • View Profile
Re: Dwarf Companion
« Reply #440 on: August 29, 2008, 04:34:50 am »


Why GTK+?
Because its free? Or crossplatform? That doesn't mean its better, rly.
What should i do with this shit on screenshot?
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #441 on: August 29, 2008, 06:19:27 am »

I selected GTK just to mess with people using weird charsets. I have no clue on how to solve your specific problem, but as you have access to the source, you are free to port it to .net.
Logged

Ogantai

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #442 on: August 29, 2008, 07:03:00 am »


Why GTK+?
Because its free? Or crossplatform? That doesn't mean its better, rly.
What should i do with this shit on screenshot?
Are you using the latest version of GTK?
Logged

sphr

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #443 on: August 29, 2008, 10:13:55 am »

Well you can have it auto refresh, and yes it eats a lot of cpu. It was like that at first, but I didn't like to loose the selected lines or current scrolled position every update.

lol, I had the same feeling.  I think auto refresh now will actually make it harder to use. I actually find the current manual refresh sufficient as it is. 

Perhaps in the future we can have optional refresh at a customizable interval, but prob only after there's a way to preserve scrolled position/selected item, and I don't think it is that high of a priority.

Valdemar

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #444 on: September 01, 2008, 02:14:53 pm »

Hello everyone. I am the creator of the previous exe versions. I burned out on Dwarf Fortress a few months ago, but I'm back. Here's the exe version for 0.13. Sorry to keep you all hanging.

In case I leave again, here's the procedure I used to create these. I used the py2exe package, along with the special instructions on this page. Download and install py2exe, then create a setup.py script like this in the companion directory:
Spoiler (click to show/hide)
Then run 'python setup.py py2exe'. Then, you need to copy the 'bin', 'etc', and 'lib' folders from your GTK installation (mine was at C:\GTK, I think that's the default) into the dist folder it creates. The exe is in the dist folder. You need to zip up the entire dist folder for it to work on another computer; you don't need the 'build' folder.

Enjoy!

KaelGotDwarves

  • Bay Watcher
  • [CREATURE:FIRE_ELF]
    • View Profile
Re: Dwarf Companion
« Reply #445 on: September 01, 2008, 04:22:19 pm »

Hello everyone. I am the creator of the previous exe versions. I burned out on Dwarf Fortress a few months ago, but I'm back. Here's the exe version for 0.13. Sorry to keep you all hanging.

In case I leave again, here's the procedure I used to create these. I used the py2exe package, along with the special instructions on this page. Download and install py2exe, then create a setup.py script like this in the companion directory:
Spoiler (click to show/hide)
Then run 'python setup.py py2exe'. Then, you need to copy the 'bin', 'etc', and 'lib' folders from your GTK installation (mine was at C:\GTK, I think that's the default) into the dist folder it creates. The exe is in the dist folder. You need to zip up the entire dist folder for it to work on another computer; you don't need the 'build' folder.

Enjoy!

You are a legend.

Also, Bartavelle, while .13 works for 40c, there are a few quirks besides the issues with combat reports and mood modding.

puke

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #446 on: September 01, 2008, 06:55:36 pm »

nice, thanks.  any chance of an update to the auto-designator?  its looking for a file that isnt present in this version of the companion.

sorry to be a beggar, i lack the python skills to fix it myself.
Logged

Valdemar

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #447 on: September 01, 2008, 07:30:04 pm »

nice, thanks.  any chance of an update to the auto-designator?  its looking for a file that isnt present in this version of the companion.

sorry to be a beggar, i lack the python skills to fix it myself.

I fixed the issue causing the macro to not work at all (I assume you're referring to the "setMapInfo() expects more arguments" bug), but there's another problem in that it misplaces the tiles it designates. It starts one row too high, then skips one later down and places it a whole map block lower down than it should be. I think Dwarf Companion's map offsets are off.
You can try it out for yourself if you want. Download it here.
(By the way, this version includes an experimental construction feature I've been working on too - note that these are not really constructions, just solid rock walls.)

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #448 on: September 02, 2008, 01:58:03 am »

I would be happy to hear about quirks, especially if it's from somebody who already had fixed them :)

Map offsets are off, I noticed that not so long ago, but it's not fixed yet. I'll try for next version (and the zoom will be back).
Logged

puke

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #449 on: September 02, 2008, 02:25:55 am »

On the old version of autodesignate, when used with the new version of the companion you have posted, i get:

Code: [Select]
Traceback (most recent call last):
  File "C:\Documents and Settings\puke\Desktop\dist\autodesig.py", line 9, in <m
odule>
    from dwarfdbg import *
ImportError: No module named dwarfdbg

and it seems to be talking about a file that was present in the older versions of the companion, but is not in 13.  when i place that file in the directory (either the original or the one that was provided to fix the "expects more arguements" thing) I get:

Code: [Select]
Traceback (most recent call last):
  File "C:\Documents and Settings\puke\Desktop\dist\autodesig.py", line 9, in <m
odule>
    from dwarfdbg import *
  File "C:\Documents and Settings\puke\Desktop\dist\dwarfdbg.py", line 3, in <mo
dule>
    from eventname import eventName,jobName
ImportError: No module named eventname

on the one you just posted, i get an idential set of results running it with companion 13 as bundled, and running it with the dwarfdbg file inserted:

Code: [Select]
C:\Documents and Settings\puke\Desktop\dist>autodesig.py
Traceback (most recent call last):
  File "C:\Documents and Settings\puke\Desktop\dist\autodesig.py", line 9, in <m
odule>
    from dwarfdbg import *
ImportError: No module named dwarfdbg

C:\Documents and Settings\puke\Desktop\dist>autodesig.py
Traceback (most recent call last):
  File "C:\Documents and Settings\puke\Desktop\dist\autodesig.py", line 9, in <m
odule>
    from dwarfdbg import *
  File "C:\Documents and Settings\puke\Desktop\dist\dwarfdbg.py", line 3, in <mo
dule>
    from eventname import eventName,jobName
ImportError: No module named eventname

the utility "DTIL" ( http://www.bay12games.com/forum/index.php?topic=949.0 ) has functioning map editing, but it cant read external files except those of its own format.  i dont know if its code is available to review or incorporate into the Companion.
Logged
Pages: 1 ... 28 29 [30] 31 32 ... 54