Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 157 158 [159] 160 161 ... 244

Author Topic: DFHack 50.14-r1.1  (Read 891934 times)

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2370 on: May 13, 2020, 10:11:43 pm »

Apparently parts of our docs are very outdated. I've started to update some of them, but it will be a while before they're all done. I wish I had gotten to the Compile doc sooner; I can imagine parts of it have confused people recently. Some updates are at https://docs.dfhack.org/en/latest/docs/Compile.html if anyone would like to provide feedback (note that "latest" on ReadTheDocs corresponds to "develop" on GitHub, and "stable" = "master"). I may try to backport some of these changes to the master/stable version before the next release, if a lot of people are looking there for instructions too.

Yeah, that makes sense.  Thanks for the link to the docs.  Interesting that the search engine in the page couldn't pull that up...
I kind of cheated and searched for "eggs-fertile" because I knew what it was, but even then, it didn't show up in the first couple results. Searching for just "fertile" pulls up the plugins page as expected, but result #5 out of 5, and quotes the nestboxes plugin. The Sphinx search engine isn't always the best (but also neither are our docs).

Quote
Yeah, I'm using the default branch as that is what the compile doc said was the stable branch.  There is a possibility that I did the original cloning before you made the change.  How long ago did you change the default branch to the development branch?
Maybe in March? I don't really know. That particular part of the docs was last updated in 2015, and I realized as soon as I posted that it was probably the source of the confusion. https://docs.dfhack.org/en/latest/docs/Compile.html#how-to-get-the-code should be up-to-date now (see my comment about the URL earlier in this post) - does that help? I'm happy to tweak it further.

Quote
Well I ran git submodule update from the dfhack directory.  It compiled just fine.  I did have to edit the DFHack script to include a reference to libz.so.1, though I had to do that when I originally installed dfhack too (also had to make a similar change to ./df in order to get that to work).

Still says I'm using the beta1, though for some reason.
The DFHack script you're referring to is the "dfhack" launcher in the DF folder, right? You should also be able to set the PRELOAD_LIB environment variable to do that (instead of editing the launcher), and you can set that in ~/.dfhackrc or /path/to/df/.dfhackrc. (Yet another mostly-undocumented feature that we should address...)


Update:

Still says I'm using the beta1, though for some reason.
Not sure on this. Things you could try: running "git describe --tags" in the source folder, or running "install-info" from the DFHack console.

Quote
Edit2:

Just tried running git checkout master and then git submodule update from the dfhack directory.

git submodule update gave me this error message:
Code: [Select]
Submodule path 'depends/clsocket': checked out '6a9153d053a250be34996b3fd86ac1166c3e17cb'
Submodule path 'library/xml': checked out '4053321b202a29f667d64d824ba8339ec1b1df4f'
error: The following untracked working tree files would be overwritten by checkout:
agui/include/Agui/ActionEvent.hpp
agui/include/Agui/ActionListener.hpp
agui/include/Agui/Agui.hpp
-snip-
Any Ideas.  IIRC, I've had problems with Agui before.  It's not available for debian based systems when using the package manager, and I'm not sure how to install libraries by hand.  There used to be some instructions on how to get Agui, Isoworld, and Stonesense working, but they stopped working in newer versions.  Usually, I just set ccmake to not compile Isoworld and Stonesense.
I'm assuming you set BUILD_ISOWORLD to ON? I've probably never run into this because I've never built Isoworld locally before. Does it still work? (I honestly don't know; it defaults to OFF in plugins/CMakeLists.txt, and I don't think we distribute it currently.)

Did you do anything special to get a copy of isoworld besides cloning DFHack? I'm mostly confused because at least the first one, agui/include/Agui/ActionEvent.hpp, exists in plugins/isoworld on my end, and Git seems to know about them. Actually, it looks like these files were only added to the repo in January 2020 (they were probably ignored before then) - is your clone earlier than that? Those files are pretty easy to replace, assuming you haven't changed them at all, so you could just try adding "--force" to the "git submodule update" command and see if that works.
« Last Edit: May 13, 2020, 10:24:44 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.

A_Curious_Cat

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2371 on: May 13, 2020, 10:52:59 pm »

Apparently parts of our docs are very outdated. I've started to update some of them, but it will be a while before they're all done. I wish I had gotten to the Compile doc sooner; I can imagine parts of it have confused people recently. Some updates are at https://docs.dfhack.org/en/latest/docs/Compile.html if anyone would like to provide feedback (note that "latest" on ReadTheDocs corresponds to "develop" on GitHub, and "stable" = "master"). I may try to backport some of these changes to the master/stable version before the next release, if a lot of people are looking there for instructions too.
Yeah, I just took a look at that doc and it still says that you have to run git checkout develop in order to get the development branch (implying that the default branch is the stable branch).

Quote
Yeah, I'm using the default branch as that is what the compile doc said was the stable branch.  There is a possibility that I did the original cloning before you made the change.  How long ago did you change the default branch to the development branch?
Maybe in March? I don't really know. That particular part of the docs was last updated in 2015, and I realized as soon as I posted that it was probably the source of the confusion. https://docs.dfhack.org/en/latest/docs/Compile.html#how-to-get-the-code should be up-to-date now (see my comment about the URL earlier in this post) - does that help? I'm happy to tweak it further.
I cloned it after that.  I'm probably on the development branch then...

Quote
Well I ran git submodule update from the dfhack directory.  It compiled just fine.  I did have to edit the DFHack script to include a reference to libz.so.1, though I had to do that when I originally installed dfhack too (also had to make a similar change to ./df in order to get that to work).

Still says I'm using the beta1, though for some reason.
The DFHack script you're referring to is the "dfhack" launcher in the DF folder, right? You should also be able to set the PRELOAD_LIB environment variable to do that (instead of editing the launcher), and you can set that in ~/.dfhackrc or /path/to/df/.dfhackrc. (Yet another mostly-undocumented feature that we should address...)
How would I go about doing that?  just make a file called ".dfhackrc" and include a line that says "PRELOAD_LIB=libz.so.1"?


Still says I'm using the beta1, though for some reason.
Not sure on this. Things you could try: running "git describe --tags" in the source folder, or running "install-info" from the DFHack console.

git describe --tags gives me

    0.44.12-r3

install-info gives me:

Code: [Select]
DFHack 0.47.04-r1 on linux/x86

Version information:
    DF version: v0.47.04 linux32
    DFHack version: 0.47.04-r1
    DFHack release: r1
    DFHack build ID:
    Compiled DF version: 0.47.04
    Git description: 0.47.04-beta1-122-g0ffafbde
    Git commit: 0ffafbde298cc84003ebec0de75013d6baa547e9
    Git XML commit: efc5c2610bd0345e9102279be0a9f154e5862050
    Git XML expected commit: efc5c2610bd0345e9102279be0a9f154e5862050
    Git XML match: true
    Is release: false
    Is prerelease: false
    Is world loaded: false
    Is map loaded: false

Output of "devel/save-version":
    devel/save-version: no world loaded
   

Output of "plug":
                              Name      State Cmds  Enabled
                           3dveins     loaded    1      n/a
              RemoteFortressReader     loaded    2  enabled
                       add-spatter     loaded    0 disabled
                          autochop     loaded    1  enabled
                      autoclothing     loaded    1 disabled
                          autodump     loaded    3  enabled
                          autofarm     loaded    1 disabled
                          autogems     loaded    1  enabled
                        autohauler     loaded    1 disabled
                         autolabor     loaded    1 disabled
                      automaterial     loaded    0  enabled
                          automelt     loaded    1  enabled
                         autotrade     loaded    0  enabled
                         blueprint     loaded    1      n/a
                    building-hacks     loaded    0      n/a
                      buildingplan     loaded    1  enabled
                           burrows     loaded    1 disabled
                        changeitem     loaded    1      n/a
                       changelayer     loaded    1      n/a
                        changevein     loaded    1      n/a
                        cleanconst     loaded    1      n/a
                          cleaners     loaded    2      n/a
                        cleanowned     loaded    1      n/a
                    command-prompt     loaded    1      n/a
                           confirm     loaded    1  enabled
                        createitem     loaded    1      n/a
                        cursecheck     loaded    1      n/a
                         cxxrandom     loaded    0      n/a
                             debug     loaded    1      n/a
                            deramp     loaded    1      n/a
                               dig     loaded    7      n/a
                          digFlood     loaded    1 disabled
                   diggingInvaders     loaded    1 disabled
                      dwarfmonitor     loaded    1  enabled
                          dwarfvet     loaded    1 disabled
                  embark-assistant     loaded    1  enabled
                      embark-tools     loaded    1  enabled
                          eventful     loaded    0      n/a
                         fastdwarf     loaded    1 disabled
                       filltraffic     loaded    4      n/a
                        fix-armory     loaded    1 disabled
                fix-unit-occupancy     loaded    1 disabled
                          fixveins     loaded    1      n/a
                             flows     loaded    1      n/a
                            follow     loaded    1 disabled
                        forceequip     loaded    1      n/a
                          fortplan     loaded    1 disabled
        generated-creature-renamer     loaded    2 disabled
                         getplants     loaded    1      n/a
                           hotkeys     loaded    1      n/a
                       infiniteSky     loaded    1 disabled
                    isoworldremote     loaded    0      n/a
                          jobutils     loaded    3      n/a
                      labormanager     loaded    1 disabled
                              lair     loaded    1      n/a
                           liquids     loaded    2      n/a
                         luasocket     loaded    0      n/a
                       manipulator     loaded    0  enabled
                        map-render     loaded    0      n/a
                            misery     loaded    1 disabled
                              mode     loaded    1      n/a
                        mousequery     loaded    1  enabled
                         nestboxes     loaded    1 disabled
                            orders     loaded    1      n/a
                          pathable     loaded    0      n/a
                     petcapRemover     loaded    1 disabled
                            plants     loaded    1      n/a
                       power-meter     loaded    0 disabled
                             probe     loaded    3      n/a
                        prospector     loaded    1      n/a
                           regrass     loaded    1      n/a
                            rename     loaded    1 disabled
                         rendermax     loaded    1      n/a
                            resume     loaded    1  enabled
                            reveal     loaded    6 disabled
                              ruby     loaded    2  enabled
                            search     loaded    0  enabled
                         seedwatch     loaded    1 disabled
                          showmood     loaded    1      n/a
                      siege-engine     loaded    0 disabled
                              sort     loaded    2      n/a
                      steam-engine     loaded    0 disabled
                         stockflow     loaded    1 disabled
                        stockpiles     loaded    3  enabled
                            stocks     loaded    1  enabled
                       strangemood     loaded    1      n/a
                            tailor     loaded    1 disabled
                         tiletypes     loaded    4      n/a
                      title-folder     loaded    0 disabled
                     title-version     loaded    0  enabled
                         trackstop     loaded    0  enabled
                          tubefill     loaded    1      n/a
                             tweak     loaded    1  enabled
                           workNow     loaded    1      n/a
                          workflow     loaded    2 disabled
                              zone     loaded    3  enabled
   
Tweak log entries:
    loading plugin tweak
    loaded plugin tweak; DFHack build 0.47.04-beta1-122-g0ffafbde
    Invoking: tweak stable-cursor
    Enabled tweak stable-cursor (stable_cursor_hook::feed)
    Invoking: tweak advmode-contained
    Enabled tweak advmode-contained (advmode_contained_hook::feed)
    Invoking: tweak fast-trade
    Enabled tweak fast-trade (fast_trade_assign_hook::feed)
    Enabled tweak fast-trade (fast_trade_select_hook::feed)
    Invoking: tweak military-stable-assign
    Enabled tweak military-stable-assign (military_assign_hook::feed)
    Invoking: tweak military-color-assigned
    Enabled tweak military-color-assigned (military_assign_hook::render)
    Invoking: tweak craft-age-wear
    Enabled tweak craft-age-wear (craft_age_wear_hook::ageItem)
    Invoking: tweak farm-plot-select
    Enabled tweak farm-plot-select (farm_select_hook::feed)
    Enabled tweak farm-plot-select (farm_select_hook::render)
    Invoking: tweak import-priority-category
    Enabled tweak import-priority-category (takerequest_hook::feed)
    Enabled tweak import-priority-category (takerequest_hook::render)
    Invoking: tweak condition-material
    Enabled tweak condition-material (condition_material_hook::feed)
    Invoking: tweak hotkey-clear
    Enabled tweak hotkey-clear (hotkey_clear_hook::feed)
    Enabled tweak hotkey-clear (hotkey_clear_hook::render)
    Invoking: tweak embark-profile-name
    Enabled tweak embark-profile-name (embark_profile_name_hook::feed)
    Invoking: tweak block-labors              # Prevents labors that can't be used from being toggled
    Enabled tweak block-labors (block_labors_hook::feed)
    Enabled tweak block-labors (block_labors_hook::render)
    Invoking: tweak burrow-name-cancel
    Enabled tweak burrow-name-cancel (burrow_name_cancel_hook::feed)
    Invoking: tweak cage-butcher
    Enabled tweak cage-butcher (cage_butcher_hook::feed)
    Enabled tweak cage-butcher (cage_butcher_hook::render)
    Invoking: tweak civ-view-agreement
    Enabled tweak civ-view-agreement (civ_agreement_view_hook::render)
    Invoking: tweak eggs-fertile
    Enabled tweak eggs-fertile (egg_fertile_hook::render)
    Invoking: tweak fps-min
    Enabled tweak fps-min (fps_min_hook)
    Invoking: tweak hide-priority
    Enabled tweak hide-priority (hide_priority_hook::feed)
    Enabled tweak hide-priority (hide_priority_hook::render)
    Invoking: tweak kitchen-prefs-all
    Enabled tweak kitchen-prefs-all (kitchen_prefs_all_hook::feed)
    Enabled tweak kitchen-prefs-all (kitchen_prefs_all_hook::render)
    Invoking: tweak kitchen-prefs-empty
    Enabled tweak kitchen-prefs-empty (kitchen_prefs_empty_hook::render)
    Invoking: tweak max-wheelbarrow
    Enabled tweak max-wheelbarrow (max_wheelbarrow_hook::render)
    Enabled tweak max-wheelbarrow (max_wheelbarrow_hook::feed)
    Invoking: tweak shift-8-scroll
    Enabled tweak shift-8-scroll (shift_8_scroll_hook::feed)
    Invoking: tweak stone-status-all
    Enabled tweak stone-status-all (stone_status_all_hook::feed)
    Enabled tweak stone-status-all (stone_status_all_hook::render)
    Invoking: tweak title-start-rename
    Enabled tweak title-start-rename (title_start_rename_hook::feed)
    Enabled tweak title-start-rename (title_start_rename_hook::render)
    Invoking: tweak tradereq-pet-gender
    Enabled tweak tradereq-pet-gender (pet_gender_hook::render)


Quote
Edit2:

Just tried running git checkout master and then git submodule update from the dfhack directory.

git submodule update gave me this error message:
Code: [Select]
Submodule path 'depends/clsocket': checked out '6a9153d053a250be34996b3fd86ac1166c3e17cb'
Submodule path 'library/xml': checked out '4053321b202a29f667d64d824ba8339ec1b1df4f'
error: The following untracked working tree files would be overwritten by checkout:
agui/include/Agui/ActionEvent.hpp
agui/include/Agui/ActionListener.hpp
agui/include/Agui/Agui.hpp
-snip-
Any Ideas.  IIRC, I've had problems with Agui before.  It's not available for debian based systems when using the package manager, and I'm not sure how to install libraries by hand.  There used to be some instructions on how to get Agui, Isoworld, and Stonesense working, but they stopped working in newer versions.  Usually, I just set ccmake to not compile Isoworld and Stonesense.
I'm assuming you set BUILD_ISOWORLD to ON? I've probably never run into this because I've never built Isoworld locally before. Does it still work? (I honestly don't know; it defaults to OFF in plugins/CMakeLists.txt, and I don't think we distribute it currently.)
I have BUILD_ISOWORLD set to OFF.

Did you do anything special to get a copy of isoworld besides cloning DFHack? I'm mostly confused because at least the first one, agui/include/Agui/ActionEvent.hpp, exists in plugins/isoworld on my end, and Git seems to know about them. Actually, it looks like these files were only added to the repo in January 2020 (they were probably ignored before then) - is your clone earlier than that? Those files are pretty easy to replace, assuming you haven't changed them at all, so you could just try adding "--force" to the "git submodule update" command and see if that works.

I didn't do anything special.  All I did was change from the default branch to the master branch and run git submodule update.  I also cloned the project well after January 2020.  I'll try using git submodule update --force.

Edit:

running git submodule update gave me this:

Code: [Select]
Submodule path 'depends/clsocket': checked out '6a9153d053a250be34996b3fd86ac1166c3e17cb'
Submodule path 'depends/jsoncpp-sub': checked out 'ddabf50f72cf369bf652a95c4d9fe31a1865a781'
Submodule path 'library/xml': checked out '4053321b202a29f667d64d824ba8339ec1b1df4f'
warning: unable to rmdir 'agui': Directory not empty
warning: unable to rmdir 'allegro': Directory not empty
Submodule path 'plugins/isoworld': checked out 'fbbf9e46458e41707c27f2a4438452a579490db1'
Submodule path 'plugins/stonesense': checked out '4fdb2be54365442b8abea86f21746795f83fbdc2'
Submodule path 'scripts': checked out '790e2efbe9d987d8678375ee634991fe4c324f1d'

Running ccmake .. and choosing [c]onfigure resulted in this:
Code: [Select]
CMake Warning (dev) at CMakeLists.txt:376 (find_package):
   Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
   Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
   command to set the policy and suppress this warning.

   CMake variable ZLIB_ROOT is set to:

     /usr/lib/i386-linux-gnu

   For compatibility, CMake is ignoring the variable.
 This warning is for project developers.  Use -Wno-dev to suppress it.


 CMake Warning at depends/jsoncpp-sub/src/lib_json/CMakeLists.txt:36 (MESSAGE):
   Locale functionality is not supported

Currently running ninja -j8 install...

Edit2:

ninja -j8 install gave me some warning about files that were present but not configured.

creating a file called .dfhackrc, putting the line "PRELOAD_LIB=libz.so.1" in it (without the  parentheses), and running dfhack made dfhack spit out this:

Code: [Select]
Loading bindings from data/init/interface.txt
New window size: 800x300
Font size: 10x12
Resizing grid to 80x25
Resizing font to 10x12

Resetting textures
./dfhack: line 83: 15504 Segmentation fault      setarch "$setarch_arch" -R env LD_PRELOAD="$PRELOAD_LIB" ./libs/Dwarf_Fortress "$@"

Edit3:

removing .dfhackrc, editing dfhack directly, and then running dfhack, results in:

Code: [Select]
Loading bindings from data/init/interface.txt
New window size: 800x300
Font size: 10x12
Resizing grid to 80x25
Resizing font to 10x12

Resetting textures
./dfhack: line 83: 15577 Segmentation fault      setarch "$setarch_arch" -R env LD_PRELOAD="$PRELOAD_LIB libz.so.1" ./libs/Dwarf_Fortress "$@"


« Last Edit: May 14, 2020, 12:19:40 am by A_Curious_Cat »
Logged
Really hoping somebody puts this in their signature.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2372 on: May 14, 2020, 12:14:27 am »

Yeah, I just took a look at that doc and it still says that you have to run git checkout develop in order to get the development branch (implying that the default branch is the stable branch).
Where are you seeing that? The link I posted is a different version of the docs:
This will check out the code on the default branch of the GitHub repo, currently develop, which may be unstable. If you want code for the latest stable release, you can check out the master branch instead:

git checkout master
git submodule update
It did change recently, so if your browser has it cached, you could try hard-refreshing (e.g. ctrl-shift-r in Chrome) or clearing your cache.

Quote
How would I go about doing that?  just make a file called ".dfhackrc" and include a line that says "PRELOAD_LIB=libz.so.1"?
Yeah, that should do it. The launcher just sources .dfhackrc, so you shouldn't even need "export" (like you would in a shell, for instance).

Quote
git describe --tags gives me

    0.44.12-r3

install-info gives me:

Code: [Select]
DFHack 0.47.04-r1 on linux/x86

Version information:
    DF version: v0.47.04 linux32
    DFHack version: 0.47.04-r1
    DFHack release: r1
    DFHack build ID:
    Compiled DF version: 0.47.04
    Git description: 0.47.04-beta1-122-g0ffafbde
    Git commit: 0ffafbde298cc84003ebec0de75013d6baa547e9
    Git XML commit: efc5c2610bd0345e9102279be0a9f154e5862050
    Git XML expected commit: efc5c2610bd0345e9102279be0a9f154e5862050
    Git XML match: true
    Is release: false
    Is prerelease: false
    Is world loaded: false
    Is map loaded: false

I'm confused. 0ffafbde298cc84003ebec0de75013d6baa547e9 is from May 9, and "git describe --tags 0ffafbde298cc84003ebec0de75013d6baa547e9" gives me "0.47.04-r1-18-g0ffafbde" - at the very least, you should get more detail than just "0.44.12-r3". The only explanation I can think of is that you're missing recent tags, but that should only occur if you didn't clone the repo recently. Just in case that's what happened, try running "git fetch --tags" and see if that changes anything? At any rate, according to "install-info", the Git description is the only thing that's different, and that's really just for diagnostic purposes, so I wouldn't worry much more about it.



Quote
I have BUILD_ISOWORLD set to OFF.
I think your best bet is clearing the entire plugins/isoworld folder and trying again. Turns out that my earlier guess about the files being added earlier was wrong - in this commit, they were actually changed to submodules, and that tends to lead to confusing errors like this when switching between branches (since in one revision, the files are part of the DFHack repo, and in the other, the files exist but the DFHack repo isn't tracking them). You might also need some extra options to get isoworld's submodules to update (which I should add to the docs...): "git submodule update --init --recursive"

Quote
Running ccmake .. and choosing [c]onfigure resulted in this:
Code: [Select]
CMake Warning (dev) at CMakeLists.txt:376 (find_package):
   Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
   Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
   command to set the policy and suppress this warning.

   CMake variable ZLIB_ROOT is set to:

     /usr/lib/i386-linux-gnu

   For compatibility, CMake is ignoring the variable.
 This warning is for project developers.  Use -Wno-dev to suppress it.
This one is weird. I made a fix here specifically for this issue, and it should be on both develop and master by now. What CMake version are you using?
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.

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2373 on: May 14, 2020, 08:08:28 am »

So I wanted to give my starting dwarves some musician skills, and tried
'embark-skills points 20'
but nothing happened.
is embark-skills not working in the new version?

EDIT: I did find a workaround by using embark-skills max all.
4170 minus key, 860 down arrow, 7 left arrow and 7 right arrow keypresses later... All 7 dwarves now have 620 skillpoints to spend hahaha
I guess I can just put 10 points in musician skills and leave the rest untouched, and then I can embark with my performance troupe.
« Last Edit: May 14, 2020, 08:17:12 am by martinuzz »
Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

A_Curious_Cat

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2374 on: May 14, 2020, 10:06:11 am »

Ok. It looks like I got it to work.

What I did was to:
  1.  rm -rf the dfhack directory
  2.  git clone --recursive https://github.com/DFHack/dfhack
  3.  cd dfhack
  5.  git checkout master
  6.  git submodule update
  7.  cd build
  8.  ccmake .. -G Ninja
  9.  ninja -j8 install
 10. cd to the df_linux directory and create the .dfhackrc file.


After that it seems to work just fine.

Edit:  Edited to use corrwect command.
« Last Edit: May 14, 2020, 09:13:44 pm by A_Curious_Cat »
Logged
Really hoping somebody puts this in their signature.

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2375 on: May 14, 2020, 11:47:38 am »

Oh hahaha. Now all my dwarves are strand extractor - druid - climber blowgunners.
Apparently the max all gave them all possible skills at proficient, including the ones not in the list at embark.
They also know all musical instruments, dances and musical performances.
Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2376 on: May 14, 2020, 06:40:00 pm »

Ok. It looks like I got it to work.

What I did was to:
  1.  rm -rf the dfhack directory
  2.  git clone --recursive https://github.com/DFHack/dfhack
  3.  cd dfhack
  5.  git clone checkout master
Cool! Sometimes submodule changes are hard to resolve without just starting with a fresh clone of DFHack. (By the way, in case anyone tries to copy that, step 5 should just be "git checkout master".)

So I wanted to give my starting dwarves some musician skills, and tried
'embark-skills points 20'
but nothing happened.
is embark-skills not working in the new version?
I was able to reproduce the issue with the command you gave in 0.47.04-r1 (64-bit Linux). There were close to 150 (!) new fields added to that screen in 0.47, so it's entirely possible that one is wrong and broke the script. I've opened an issue here. In the future, it would be helpful to specify the DFHack version and OS you're using to help us figure out how to reproduce it.
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.

martinuzz

  • Bay Watcher
  • High dwarf
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2377 on: May 15, 2020, 07:00:58 am »

Thanks for looking into it!Sorry, I am using the latest DFhack version, 47.04 DF, Win10
Could the issue not stem from 'points' being used as a script of it's own?
What happens if you change the 'points' command of the embark-skills to 'pts' ?
« Last Edit: May 15, 2020, 07:03:01 am by martinuzz »
Logged
Friendly and polite reminder for optimists: Hope is a finite resource

We can ­disagree and still love each other, ­unless your disagreement is rooted in my oppression and denial of my humanity and right to exist - James Baldwin

http://www.bay12forums.com/smf/index.php?topic=73719.msg1830479#msg1830479

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2378 on: May 15, 2020, 06:22:28 pm »

Could the issue not stem from 'points' being used as a script of it's own?
What happens if you change the 'points' command of the embark-skills to 'pts' ?
No, definitely not - once DFHack starts running a script, it doesn't get it confused with another script. (Scripts can run other scripts, but this one doesn't.)

In case you didn't see https://github.com/DFHack/dfhack/issues/1572, to paraphrase it: skill_points_remaining is in the wrong place following some changes in 0.47.01, so the script is setting something to 20, just not the right thing.
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.

MaxTheFox

  • Bay Watcher
  • Лишь одна дорожка да на всей земле
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2379 on: May 16, 2020, 08:37:09 am »

Are there any scripts for cheating in adventurer equipment points? A cursory search revealed nothing.
Logged
Woe to those who make unjust laws, to those who issue oppressive decrees, to deprive the poor of their rights and withhold justice from the oppressed of my people, making widows their prey and robbing the fatherless. What will you do on the day of reckoning, when disaster comes from afar?

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2380 on: May 16, 2020, 09:18:53 am »

Are there any scripts for cheating in adventurer equipment points? A cursory search revealed nothing.
last I mess around with that the game crashed, chances are the best you can get is max skill points but I think the one currently made is set up for solo adventurers and not adv parties so you end up with 1.
fake edit: that said after testing,  I think you could use gm-editor to change the value of the points.
 if you use 'gm-editor scr ' during the adv character creation screen and just go to the party member tab and poke around there until you find a value called 'equip points remaining' which is where you want to go if you want to change the point total.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

fortunawhisk

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2381 on: May 16, 2020, 07:14:53 pm »

I found an unexpected error when trying to use "k" to select a body part for the deathcause.rb script in v47.04-r05 (Win10 64bit). Other methods of selecting a target seem to work fine (Unit list, stock screen, etc).
Code: [Select]
[DFHack]# deathcause
E: NoMethodError: undefined method `item' for #<DFHack::UiLookList_TItems:0x00017950e15ee0>
 C:/DOWNLO~1/PERIDE~2.04-/Dwarf Fortress 0.47.04/hack/ruby/item.rb:25:in `item_find'
 hack/scripts/deathcause.rb:44:in `<top (required)>'
 eval:2:in `load'
 eval:2:in `block in <main>'
 eval:2:in `catch'
 eval:2:in `<main>'

After digging a bit, this looks like it might be caused by a difference in the way the UiLookList class is set up in ruby-autogen-win.rb for 47.04 vs 44.12? I'm not familiar with ruby at all, but I was able to get the script to work for historical creature parts by just pasting the field definition(?) for :item from an older version outside the :data field block it currently lives in. I wasn't able to get the :item version that lives in the :data block to work by just moving it. Looking at non-historical creature parts with the modified ruby-autogen-win.rb caused errors and occasional crashes. 
Logged

Iä! RIAKTOR!

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2382 on: May 17, 2020, 06:31:13 am »

How make script for reaction of creating live creatures from items?
Logged

Fleeting Frames

  • Bay Watcher
  • Spooky cart at distance
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2383 on: May 17, 2020, 06:55:48 am »

You need eventful. Here's a "magma buckets" example: Link.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.47.04-r1
« Reply #2384 on: May 17, 2020, 08:32:15 am »

I found an unexpected error when trying to use "k" to select a body part for the deathcause.rb script in v47.04-r05 (Win10 64bit). Other methods of selecting a target seem to work fine (Unit list, stock screen, etc).
Code: [Select]
[DFHack]# deathcause
E: NoMethodError: undefined method `item' for #<DFHack::UiLookList_TItems:0x00017950e15ee0>
 C:/DOWNLO~1/PERIDE~2.04-/Dwarf Fortress 0.47.04/hack/ruby/item.rb:25:in `item_find'
 hack/scripts/deathcause.rb:44:in `<top (required)>'
 eval:2:in `load'
 eval:2:in `block in <main>'
 eval:2:in `catch'
 eval:2:in `<main>'

After digging a bit, this looks like it might be caused by a difference in the way the UiLookList class is set up in ruby-autogen-win.rb for 47.04 vs 44.12? I'm not familiar with ruby at all, but I was able to get the script to work for historical creature parts by just pasting the field definition(?) for :item from an older version outside the :data field block it currently lives in. I wasn't able to get the :item version that lives in the :data block to work by just moving it. Looking at non-historical creature parts with the modified ruby-autogen-win.rb caused errors and occasional crashes.
You're right that it was a change we made in 0.47. I've already fixed it, although the fix isn't part of a release yet: https://github.com/DFHack/dfhack/issues/1563. You could probably install a development build with the fix if you want.

The file you're modifying is automatically generated (as its name implies) and is generally not intended to be modified. Rather, the file(s) using the definitions should be modified. I tracked down the file in question in the issue linked above, but the actual change I made does most of the work in C++, which helps us catch future issues like these sooner.
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.
Pages: 1 ... 157 158 [159] 160 161 ... 244