Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 101 102 [103]

Author Topic: DFHack 0.44.12-r1  (Read 102158 times)

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1530 on: October 21, 2018, 07:43:28 pm »

libruby.so isn't something we wrote (it's from Ruby), and we don't control what it does. Valgrind probably has a way to disable warnings for a specific library.

It's just to be sure. You could have uninitialized data passed into the library and only used later.

Here are the suppressions, I came up with:
(snip)
Fair. The first one looks like a mousequery bug. It sounds a little familiar, although I can't find an open PR fixing it, so maybe I'm mistaken. The second one looks like a mismatch between our historical_figure constructor and DF's destructor - maybe DF is dynamically allocating memory in the constructor? I've run into a likely-related issue where overriding operator new and operator delete crashes when freeing something allocated (I think?) in df::historical_figure::historical_figure(). Not really sure how to fix that one, so let me know if you uncover anything.

I think your syntax is ok, and the bracket looks like a normal bracket, not some funky Unicode one. Please post the full traceback, not just the one line - that will help identify whether this is originating from create-unit or reaction-trigger.
Haha, yeah sorry - I originally intended to post it all but couldn't figure out how to copy from the command prompt. I've got it now (unless there's a file everything's logged to and this is just a bit of it?)
Code: [Select]
...1\PERIDE~1.12-\Dwarf Fortress 0.44.12\hack\lua\utils.lua:598: error: invalid arg: 5: race
stack traceback:
        [C]: in function 'error'
        ...1\PERIDE~1.12-\Dwarf Fortress 0.44.12\hack\lua\utils.lua:598: in function 'utils.processArgs'
        ...tress 0.44.12/hack/scripts/modtools/reaction-trigger.lua:226: in local 'script_code'
        ...\PERIDE~1.12-\Dwarf Fortress 0.44.12\hack\lua\dfhack.lua:680: in function 'dfhack.run_script_with_env'
        (...tail calls...)
The exact line for reaction-trigger might be off by 8 because I just commented out my additions to the valid args table to get it erroring again :P The line that's mentioned in the error (line 226 for my commented-out-additions version) is the line local args = utils.processArgs({...}, validArgs)
Just to confirm, you haven't modified hack/lua/utils.lua at all, right?
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.

Atkana

  • Bay Watcher
  • [CURIOUSBEAST]
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1531 on: October 22, 2018, 01:18:32 am »

Just to confirm, you haven't modified hack/lua/utils.lua at all, right?
Not to my knowledge, no. I've only opened it before to check the place it was erroring.

em312s0n

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1532 on: October 29, 2018, 11:33:02 pm »

Does anyone know how to edit custom stockpiles via editing the .dfstock files from Dwarf Fortress 0.44.12\stocksettings ? I tried opening it and I just couldn't make sense of it.

I was trying to make a custom stockpile for every food and drink that all of my dwarves like to eat but having to go through and search for every ingredient via the menu is pretty tedious (90 solid consumables and 41 drinks).
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1533 on: October 30, 2018, 11:13:25 am »

They're binary files - you can't edit them directly. A script could probably create the stockpile settings that you want, though
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.

Betrix5068

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1534 on: November 01, 2018, 06:30:42 pm »

3dveins is giving me a "Discontinuous layer 1 at (73,86,120)" error. I'm guessing this might be because I have an ocean embark, but am not sure.

Is there any way to rectify this? Already tried fixveins but it didn't seem to do anything. I like using 3dveins.

I'd like to know this too. seaside, lakeside, and riverside settlements are quite fun IMO and it's a damn shame if 3dveins doesn't work on them. That "discontinuous layer 1 at (30,510,80)" thing is pretty sad to see. Is there some way to force it?
« Last Edit: November 01, 2018, 06:41:25 pm by Betrix5068 »
Logged

Mike Mayday

  • Bay Watcher
  • gfx whr
    • View Profile
    • Goblinart
Re: DFHack 0.44.12-r1
« Reply #1535 on: November 13, 2018, 01:53:46 pm »

Hello,
I'm having a bit of trouble with keybindings. I want to switch the mousewheel to execute
twbt tilesize 16 16
and
twbt tilesize 32 32

1. what should I input in dfhack.init to achieve this?
2. when i press CTRL+F1, a list of keybindings is brought up. There's Shift-O and Shift-P there, which exectute twbt tilesize smaller and bigger.
This should not happen because Shift-P opens petitions. Where can I disable this setting?

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1536 on: November 13, 2018, 02:08:02 pm »


so kinda was wondering if it possible to get the advmode day night cycle working for fortmode?
what I got here is a gamemode set to 1 and Gametype set to 0.
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

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1537 on: November 13, 2018, 02:10:20 pm »

Hello,
I'm having a bit of trouble with keybindings. I want to switch the mousewheel to execute
twbt tilesize 16 16
and
twbt tilesize 32 32

1. what should I input in dfhack.init to achieve this?
The keybinding command does not support the mouse wheel, so that's not possible.
Quote
2. when i press CTRL+F1, a list of keybindings is brought up. There's Shift-O and Shift-P there, which exectute twbt tilesize smaller and bigger.
This should not happen because Shift-P opens petitions. Where can I disable this setting?
dfhack.init (or a file it loads)
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.

Pvt. Pirate

  • Bay Watcher
  • Dabbling Linux User
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1538 on: November 13, 2018, 03:24:47 pm »


so kinda was wondering if it possible to get the advmode day night cycle working for fortmode?
what I got here is a gamemode set to 1 and Gametype set to 0.
looks promising!
Logged
"dwarves are by definition alcohol powered parasitic beards, which will cling to small caveadapt humanoids." (Chaia)

Saiko Kila

  • Bay Watcher
  • Dwarven alchemist
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1539 on: November 15, 2018, 07:33:44 am »

There's one bug with position.lua script, which manifests itself on the last day of the year.

Spoiler (click to show/hide)

This is caused by algorithm calculating the month to be 13th. This algorithm actually causes each last day of the month to be treated as the 0th day of the subsequent month.
Logged

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1540 on: November 15, 2018, 03:01:00 pm »

Background: For my detailed unit viewer I am getting description information by reading the unit description screen and parsing the text by color and order so that I can use different parts of it in different places. This works, but if the colors are ever changed or the order the description is outputted in changes it will break my system. I was thinking of instead generating the description myself by reading the units various values and creating the corresponding description strings.

Question: I think I remember seeing a script that created descriptions from the units numbers (e.g. a unit with >41 LAW would have "is an absolute believer in the rule of law"), does anyone know where/if this script exists? Or if it doesn't exist does anyone know a better method for recreating the description screen without reading from the description screen?
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1541 on: November 15, 2018, 05:53:36 pm »

@Roses: This script ought to carry you some of the way: https://github.com/PatrikLundell/scripts/blob/own_scripts/thoughts.lua. Note that it's a web page with the script on it, not a link to a .lua file.
Logged

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1542 on: November 16, 2018, 12:07:43 pm »

@Roses: This script ought to carry you some of the way: https://github.com/PatrikLundell/scripts/blob/own_scripts/thoughts.lua. Note that it's a web page with the script on it, not a link to a .lua file.

That's the exact script I remembered! Yay, I wasn't being silly this time. Do you mind if I use some/all of it (with credit of course)? Then I would just need to do something similar for attributes, appearance, and health and it would be perfect.
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1543 on: November 16, 2018, 01:56:20 pm »

@Roses: This script ought to carry you some of the way: https://github.com/PatrikLundell/scripts/blob/own_scripts/thoughts.lua. Note that it's a web page with the script on it, not a link to a .lua file.

That's the exact script I remembered! Yay, I wasn't being silly this time. Do you mind if I use some/all of it (with credit of course)? Then I would just need to do something similar for attributes, appearance, and health and it would be perfect.
I don't care much about credits, apart from when people explicitly claim to have made stuff they've gotten from elsewhere. After all, the whole DFHack script thing is a process of building upon stuff others have made before (mine being no exception, of course). You're free to make use of it as is or take the parts you need, although it would probably be best if your script didn't end up with the same name, as that can lead to confusion down the line.
I believe some parts of the script will have to be adjusted when a new DFHack version appears, as I think there are references in there to fields that have been identified in DFHack pull requests, but not yet incorporated into a new version (I know a couple of new thoughts ought to be adjusted, but I believe they'll still work with indices rather than names).

As you may see, I started out trying to replicate the thoughts screen (for use with gremlins, visitors, and the odd distracted cat), but changed course to rather try to display all the info in the structures, rather than the truncated display DF provides such as e.g. which song Urist enjoyed singing, or who Urist fought when in conflict (DF provides some of that in the top thought at times).

When it comes to attributes, etc. I can't provide any support as I haven't messed with those parts.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.44.12-r1
« Reply #1544 on: November 16, 2018, 02:01:45 pm »

There's one bug with position.lua script, which manifests itself on the last day of the year.

Reported on GitHub, thanks.
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 ... 101 102 [103]