Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 25 26 [27] 28 29 ... 54

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

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Dwarf Companion
« Reply #390 on: August 14, 2008, 10:14:26 am »

Maybe I've made the mistake of saying the wrong stuff to the wrong audience.  I am just regretful that whatever I've said is totally irrelevant and useless to you, given that you are probably not interested in python itself.

Python is wonderful, it just is a b*tch to install on Windows (and even then sometimes doesn't work).

As for me, I don't really give a flying rat's rear end about being able to modify the code.  Maybe if there was something I really wanted the program to do, then maybe.  I more or less gave up on coding a long while ago when no one (i.e. the university) was teaching me how to do anything constructive with code.  And then insisted on teaching me VHDL and asking me to program things like a 32 bit processor in VHDL or how to write a compiler (without giving me a lick of actual code, I was told I'd get to see some code in two weeks, I'm still waiting and I left the CS program 3 years ago).

Python is great.

But no one on Windows cares enough for the aggravation (if they did, they'd be on Linux already).

Oh, and one final note: the python installer I did get couldn't even uninstall itself due to a lack of something (yes, the uninstall file supplied by the installer did not work, it was asking for an .msi package I didn't have, I had to run the downloaded .msito remove it).
Quit the complaining.  There's an all in one installer that, *gasp* installs everything!
I installed everything at once using just that and lo and behold, it (companion) works PERFECTLY.
Now, I've heard that it sometimes fails to install Python 2.4 for whatever reason, but that's still only TWO installers as compared to FOUR. (Not five.)
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Shakkara

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #391 on: August 14, 2008, 10:16:00 am »

Okay I might be ignorant to all this memory messing stuff, but wouldn't this problem with the new version be fixed if someone puts an if(1): at line 28 of dwarfdbg.py and changes there to what they should be in the new version?

Would anyone happen to have the required addresses?

These are the variables it needs, as you can see I've been trying a bit myself but I still don't have all the required ones.

         self.off_vec_maincreatures = 0x01575DEC   #0x01427B50
         self.off_x_width =      0x015B7938 #0x01469698
         self.off_y_width =      0x015B793C #0x0146969C
         self.off_z_width =      0x015B7940 #0x014696A0
         self.off_map_data =      0x015B7920 #0x01469680
         self.off_race =         0x00000000 #0x0146B060
         self.off_lang =         0x00000000 #0x0146B180
         self.off_moodtime =      0x00000000 #0x01248ABA
         self.off_playedrace =      0x00000000 #0x01248AC8
         self.off_economy =      0x00000000 #0x0123B384
         self.off_xcursor =      0x009EF294 #0x008FF288
         self.off_ycursor =      0x009EF298 #0x008FF28C
         self.off_zcursor =      0x009EF29C #0x008FF290
Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #392 on: August 14, 2008, 11:39:40 am »

Quit the complaining.  There's an all in one installer that, *gasp* installs everything!
I installed everything at once using just that and lo and behold, it (companion) works PERFECTLY.
Now, I've heard that it sometimes fails to install Python 2.4 for whatever reason, but that's still only TWO installers as compared to FOUR. (Not five.)

Tried it too.  DC just quits, no error or anything.  Black screen then gone.

As for previously, there it failed to run due to some dependency (might have been Python 2.4 as you said it sometimes fails, but either it failed silently or something else).
Logged

sphr

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #393 on: August 14, 2008, 12:28:13 pm »

Tried it too.  DC just quits, no error or anything.  Black screen then gone.

As for previously, there it failed to run due to some dependency (might have been Python 2.4 as you said it sometimes fails, but either it failed silently or something else).

Don't try to just doubleclick on something that you won't know works for sure.  Instead, if you have installed python for win properly, you should get an Edit with IDLE option on right click.  Alternatively, just start IDLE and File->Open->(whatever file you're trying to run). After it loads, press f5 to run.  Any error messages stays in the IDLE python shell so you can look at them to see what's wrong.  If there are missing libs, you should see some reference to missing .py files.

Draco18s

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #394 on: August 14, 2008, 12:36:01 pm »

Traceback (most recent call last):
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dfcompanion_prototype.py", line 402, in <module>
    DFcmp = DFcompanion()
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dfcompanion_prototype.py", line 346, in __init__
    self.dd = dwarfdbg()
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dwarfdbg.py", line 105, in __init__
    self.configoffsets()
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dwarfdbg.py", line 49, in configoffsets
    tmp = os.getPatternPos( r'\x68' + stock + r'\xb8....\xc7.........\x89.....' + os.call + r'\x38' )[0]+0x21
IndexError: list index out of range


I have no idea what any of that means.
Logged

sphr

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #395 on: August 14, 2008, 12:40:40 pm »

Traceback (most recent call last):
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dfcompanion_prototype.py", line 402, in <module>
    DFcmp = DFcompanion()
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dfcompanion_prototype.py", line 346, in __init__
    self.dd = dwarfdbg()
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dwarfdbg.py", line 105, in __init__
    self.configoffsets()
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dwarfdbg.py", line 49, in configoffsets
    tmp = os.getPatternPos( r'\x68' + stock + r'\xb8....\xc7.........\x89.....' + os.call + r'\x38' )[0]+0x21
IndexError: list index out of range


I have no idea what any of that means.

LOL.. It means that you are trying to run DC with 39f which bartavelle hasn't updated yet.  I could be wrong but I think the line was trying to be smart with versions by searching for a particular instruction?

Shakkara

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #396 on: August 14, 2008, 12:54:47 pm »

LOL.. It means that you are trying to run DC with 39f which bartavelle hasn't updated yet.  I could be wrong but I think the line was trying to be smart with versions by searching for a particular instruction?
Yep, that's the unrecognized version error. So could we read my post a few posts above this one now and actually try to get Companion running on 39f instead of whining how bad python is?
Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #397 on: August 14, 2008, 01:51:37 pm »

LOL.. It means that you are trying to run DC with 39f which bartavelle hasn't updated yet.  I could be wrong but I think the line was trying to be smart with versions by searching for a particular instruction?
Yep, that's the unrecognized version error. So could we read my post a few posts above this one now and actually try to get Companion running on 39f instead of whining how bad python is?


...If that's an unrecognized version error I don't want to use the program.  Honestly, how hard is it to print("unrecognized version");?
Logged

Shakkara

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #398 on: August 14, 2008, 02:14:42 pm »

LOL.. It means that you are trying to run DC with 39f which bartavelle hasn't updated yet.  I could be wrong but I think the line was trying to be smart with versions by searching for a particular instruction?
Yep, that's the unrecognized version error. So could we read my post a few posts above this one now and actually try to get Companion running on 39f instead of whining how bad python is?


...If that's an unrecognized version error I don't want to use the program.  Honestly, how hard is it to print("unrecognized version");?

Fine, then don't use it and stop complaining how another person puts a lot of effort into creating something for free, which is clearly stated not to be a finalized product yet. If you can do better, then do it yourself.
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Dwarf Companion
« Reply #399 on: August 14, 2008, 02:31:08 pm »

LOL.. It means that you are trying to run DC with 39f which bartavelle hasn't updated yet.  I could be wrong but I think the line was trying to be smart with versions by searching for a particular instruction?
Yep, that's the unrecognized version error. So could we read my post a few posts above this one now and actually try to get Companion running on 39f instead of whining how bad python is?


...If that's an unrecognized version error I don't want to use the program.  Honestly, how hard is it to print("unrecognized version");?
So you're not using it because it doesn't specifically say it's not meant for the version of DF you're using?
..He can't put in an Unrecognized Version error because that's the same general area it would be calling if DF weren't running.  Wouldn't somebody be confused if they tried to run DC while DF isn't running and it spouts an "Unrecognized Version" error?
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Draco18s

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #400 on: August 14, 2008, 04:17:11 pm »

So you're not using it because it doesn't specifically say it's not meant for the version of DF you're using?
..He can't put in an Unrecognized Version error because that's the same general area it would be calling if DF weren't running.  Wouldn't somebody be confused if they tried to run DC while DF isn't running and it spouts an "Unrecognized Version" error?

Uh, no.

Dwarf Fortress is not running, or could not be found
Traceback (most recent call last):
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dfcompanion_prototype.py", line 402, in <module>
    DFcmp = DFcompanion()
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dfcompanion_prototype.py", line 346, in __init__
    self.dd = dwarfdbg()
  File "C:\Documents and Settings\Major\Desktop\DF Utilities\companion\dwarfdbg.py", line 101, in __init__
    sys.exit(-1)
SystemExit: -1

May I draw your attention to the first line?  In blue?
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #401 on: August 15, 2008, 09:40:53 am »

The reason why you don't get an explicit error message is that:
1/ it's a prototype, which should be obvious when you run "dfcompanion_prototype.py"
2/ it tries to be smart and find the addresses of the data structures

I'm working on it, and I'll add a way to specify the addresses manually.
Logged

Shakkara

  • Bay Watcher
    • View Profile
Re: Dwarf Companion
« Reply #402 on: August 15, 2008, 09:47:37 am »

You already can in dwarfdbg.py, right?

Problem is that despite me asking for days, noone even bothers to help look for the right addresses and I cannot find them myself, despite hours and hours of sniffing around.

But hurray for working on a fix. Any suggestions how I could search for the addresses next time? Right now I'm just firing up artmoney and scrolling down the memory editor tables until I see something which looks familiar. I have found ways to locate the addresses of stuff like profession, creaturetype, attributes, moodtype and so on, but what I'm after is the mood specifics, with the list of materials used and the skill gained. And I still haven't been able to locate over half of the addresses that DC needs to start up.
« Last Edit: August 15, 2008, 09:52:00 am by Shakkara »
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #403 on: August 15, 2008, 10:22:34 am »

I just put a test archive at http://bartabox.banquise.net/df/companion-0.13-any.zip. It just updates the offset stuff, and I would like some feedback on it.

The "zoom" function will not work because of the changes in the viewport code.
Logged

bartavelle

  • Bay Watcher
  • Coin coin!
    • View Profile
Re: Dwarf Companion
« Reply #404 on: August 15, 2008, 10:26:57 am »

Right now I'm just firing up artmoney and scrolling down the memory editor tables until I see something which looks familiar. I have found ways to locate the addresses of stuff like profession, creaturetype, attributes, moodtype and so on, but what I'm after is the mood specifics, with the list of materials used and the skill gained. And I still haven't been able to locate over half of the addresses that DC needs to start up.

I use IDA, and look at the game logic. The pattern matching stuff usually tries to find a known work (such as "Stocks" in the case of the economy variable), then looks at where its address is used in the code. That word should be chosen so that the required variable is used next to it. You can also do it by hand if you understand what the pattern should match.
Logged
Pages: 1 ... 25 26 [27] 28 29 ... 54