Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 37 38 [39] 40 41 ... 360

Author Topic: DFHack 0.43.03-r1  (Read 1124120 times)

Xerberus

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #570 on: August 27, 2014, 09:50:57 am »

I think PE's looking for something stable to include in the Starter Pack, not a "user beware" version.

think so too, having at least some basics in like search functions and mouse-control would be nice.
Logged

Dervish

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #571 on: August 27, 2014, 11:06:08 am »

I had an idea for a plugin I wanted to share. Something like an auto-mandate, or mandate-manager, that would check if nobles had active construction mandates, and if they did, set up a manager job que for it. Maybe be able to specify materials for jobs with multiple possible. I know workflow does something similar, with item counts, but I'm not sure if mandates are something you can tie into.

I'm also having an issue compiling dfhack. Not sure if I installed the wrong visual studio 2010 express pack or what. I installed the sp1 pack, ruby and it's librarys as well, and am compiling off quietus' branch. google seems to say afxwin.h is only in the retail versions of VS.
Logged

khearn

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #572 on: August 27, 2014, 12:03:56 pm »

In addition, https://github.com/quietust/dfhack/tree/develop contains the change(s) needed to compile DFHack with 0.40.09-10 at the moment.

I just tried building from Quietust's branch (git clone https://github.com/quietust/dfhack.git), and it compiles fine, but when I run dfhack (using df 40.10) I don't get a dfhack console prompt, and when I exit and look at stderr.log, I see that it reports a bunch of dummy symbol entries, then:

Loaded 6 DF symbol tables.
Unable to retrieve version information.
File: /proc/self/exe
MD5: 0b7185da37ac3a729f0972c9aff512ca
working dir: /home/khearn/Desktop/df_linux_40.10
length:17994664
1KB hexdump follows:
<dump snipped>
Not a known DF version.
DFHack will now deactivate.


I've untarred a fresh copy of 40.10 and done the dfhack make install, just to make sure I didn't have any remnants from earlier builds around. Any idea what's going on?

Edit: I guess it would help to mention that this is on Unbuntu Linux 14.04.
« Last Edit: August 27, 2014, 12:07:20 pm by khearn »
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #573 on: August 27, 2014, 12:26:04 pm »

I just tried building from Quietust's branch (git clone https://github.com/quietust/dfhack.git), and it compiles fine, but when I run dfhack (using df 40.10) I don't get a dfhack console prompt, and when I exit and look at stderr.log, I see that it reports a bunch of dummy symbol entries, then:
Code: [Select]
Loaded 6 DF symbol tables.
Unable to retrieve version information.
MD5: 0b7185da37ac3a729f0972c9aff512ca
Not a known DF version.
Did you update the xml submodules? Check the symbols.xml in df/hack to see if it contains the 40.10 structures for linux.

Code: [Select]
git clone git://github.com/quietust/dfhack.git
cd dfhack
git submodule init
git submodule update

EDIT: I looked at quietust's repo, make sure you clone develop, not master.
« Last Edit: August 27, 2014, 12:30:01 pm by fricy »
Logged

khearn

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #574 on: August 27, 2014, 01:00:29 pm »

Yeah, I did the submodule init and update.  Here are the commands I ran:

Spoiler (click to show/hide)

Then I go to my df_linux_40.10 directory and there is a shiny new dfhack script. I then remove libs/libstdc++.so.6 and run dfhack.

Looking in hack/symbols.xml, there isn't anything newer than 40.08. The same in my source tree in library/xml/symbols.xml. So I'm evidently not getting the right stuff from github. I was using the "HTTPS clone URL" from https://github.com/quietust/dfhack/tree/develop so I'd expect that would get me the develop, not the master.

This is why it's not really sufficient to say "just check github forks and compile." I'm a software engineer with about 25 years of experience, most of that doing build/release engineering, so I'm fairly experienced at  building stuff from source. And even I'm having trouble with it.  It took me a couple of hours to figure out which 32-bit libs I needed and get them all installed so it would build, plus figuring out that cmake was consistently finding the wrong zlib and figuring out how to override that. Heaven help someone with no experience building stuff.

Hmmm, looking on github, I see that library/xml was updated 3 hours ago. I guess I'll try a fresh clone and see if it works any better. The last clone I did was probably shortly before that.

   Keith

Edit: Ok, I just discovered that I get the same HTTPS clone URL whether I'm on https://github.com/quietust/dfhack/tree/develop or https://github.com/quietust/dfhack/tree/master. So how do I tell git to grab the develop branch, not the master?
« Last Edit: August 27, 2014, 01:05:10 pm by khearn »
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.

salithus

  • Bay Watcher
  • gottagofast
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #575 on: August 27, 2014, 01:11:17 pm »

This is why it's not really sufficient to say "just check github forks and compile." I'm a software engineer with about 25 years of experience, most of that doing build/release engineering, so I'm fairly experienced at  building stuff from source. And even I'm having trouble with it.  It took me a couple of hours to figure out which 32-bit libs I needed and get them all installed so it would build, plus figuring out that cmake was consistently finding the wrong zlib and figuring out how to override that. Heaven help someone with no experience building stuff.

Agreed (just shy of 10 years exp here ;)). If it's stable enough to "just check github forks and compile", why doesn't someone who's successfully done that publish a stable release so there's no guess work?
Logged

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #576 on: August 27, 2014, 01:30:01 pm »

Edit: Ok, I just discovered that I get the same HTTPS clone URL whether I'm on https://github.com/quietust/dfhack/tree/develop or https://github.com/quietust/dfhack/tree/master. So how do I tell git to grab the develop branch, not the master?

Code: [Select]
git fetch origin
git checkout develop
or
Code: [Select]
git clone git://github.com/quietust/dfhack.git -b develop
Agreed (just shy of 10 years exp here ;)). If it's stable enough to "just check github forks and compile", why doesn't someone who's successfully done that publish a stable release so there's no guess work?
Cough, zero years of experience here, cough. And I do publish, just get a mac. :D
« Last Edit: August 27, 2014, 01:34:57 pm by fricy »
Logged

khearn

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #577 on: August 27, 2014, 01:36:29 pm »

Edit: Ok, I just discovered that I get the same HTTPS clone URL whether I'm on https://github.com/quietust/dfhack/tree/develop or https://github.com/quietust/dfhack/tree/master. So how do I tell git to grab the develop branch, not the master?

git checkout develop
or
git clone git://github.com/quietust/dfhack.git -b develop


Thanks, I just found the same answer on stackoverflow, after searching on github's help section for half an hour in vain. I'm trying a new build, but this one does have 40.10 in library/xml/symbols.xml, so hopefully it'll work better.

   Keith


Edit: Yup, that fixed it. I now have a dfhack prompt and got the warning message about not having a dfhack.init file, so it's at least working at a basic level. I'll make a post in a little while with the steps I had to take to get it to build, so others don't have to repeat my pain.
« Last Edit: August 27, 2014, 01:47:17 pm by khearn »
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.

Nopenope

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #578 on: August 27, 2014, 03:10:32 pm »

Yes it seems that with his latest commit Quietust's develop branch builds and hooks with no needed additional changes.

Also lethosor, am I missing something or are your own scripts (load-screen settings-manager etc.) missing from the main repo? They're pretty nifty though.
Logged

salithus

  • Bay Watcher
  • gottagofast
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #579 on: August 27, 2014, 03:13:03 pm »

Cough, zero years of experience here, cough. And I do publish, just get a mac. :D
OP's current Mac release still points to 08.r2 :-P

Really the thing that bothers me most is the fact that the place Keith is having to pull from isn't what's linked in the OP, which is what makes this whole github approach obnoxious to my centralized svn brain.
Logged

Nopenope

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #580 on: August 27, 2014, 03:27:07 pm »

The OP only contains official releases and there's hasn't been one for .10 yet, even though you can still easily build your own once you're set up. But yeah, trying to find the one commit from the one tree from the one repo that will build, hook and run is a little bit like playing hide-and-seek. That's part of a decentralized project I guess, it has ups and downs.
Logged

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #581 on: August 27, 2014, 04:58:45 pm »

I think PE's looking for something stable to include in the Starter Pack, not a "user beware" version.

Yeah. If I wanted a version for myself, that would probably work, but I'd expect to be dealing with errors caused by my inexperience / incompetence for a while. For the people who use the starter packs, that's not really good enough.
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: DFHack 0.40.08-r2
« Reply #582 on: August 27, 2014, 05:01:50 pm »

I think PE's looking for something stable to include in the Starter Pack, not a "user beware" version.

Yeah. If I wanted a version for myself, that would probably work, but I'd expect to be dealing with errors caused by my inexperience / incompetence for a while. For the people who use the starter packs, that's not really good enough.
Same thing for MDF. But I will start doing the Raws in the meantime. :)
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #583 on: August 27, 2014, 05:10:06 pm »

The changes in Quietust's develop branch have been merged into DFHack:develop, so this should work now (assuming 'origin' points to DFHack/dfhack and develop tracks origin/develop):
Code: [Select]
git checkout develop && git pull


Edit: Ok, I just discovered that I get the same HTTPS clone URL whether I'm on https://github.com/quietust/dfhack/tree/develop or https://github.com/quietust/dfhack/tree/master. So how do I tell git to grab the develop branch, not the master?

Code: [Select]
git fetch origin
git checkout develop
or
Code: [Select]
git clone git://github.com/quietust/dfhack.git -b develop
Instead of making a separate clone, you can add another remote pointing to Quietust's fork (merging changes from different forks is easier with a single clone):
Code: [Select]
git remote add quietust https://github.com/quietust/dfhack
git fetch quietust
git checkout -b newbranch  # optional
git merge quietust/develop

Yes it seems that with his latest commit Quietust's develop branch builds and hooks with no needed additional changes.

Also lethosor, am I missing something or are your own scripts (load-screen settings-manager etc.) missing from the main repo? They're pretty nifty though.
I don't consider them complete enough to include in DFHack officially yet, but you're certainly welcome to test them out. :)
« Last Edit: August 27, 2014, 05:12:11 pm by lethosor »
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

khearn

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.08-r2
« Reply #584 on: August 27, 2014, 05:30:32 pm »

I've created a wiki page with what I did to get it to build on linux.

http://dwarffortresswiki.org/index.php/User:Khearn/DfhackLinuxBuild#HOWTO_build_dfhack_on_linux

It's a first draft, and is no doubt missing stuff, particularly what packages are needed. Please let me know if you notice stuff that's missing. But I do know that the commands work, once you have all the dependencies installed.

I see that some alternate method of getting the sources from github have been posted while I was writing it. I'll take a look at them and possibly update my instructions.

Thanks for all the help,

    Keith
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.
Pages: 1 ... 37 38 [39] 40 41 ... 360