Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - mstram

Pages: [1] 2 3
1
https://github.com/DFHack/dfhack/releases/tag/0.2.1 might also work, or http://dethware.org/dfhack/download/

Thanks, I had downloaded that before, but your link also had the source code, which I didn't have.

Heh, even after looking at the source code for buildingsdump.cpp, and dfitemdump.cpp, I can't tell what input the programs are looking for !

Well dfitemdump, at least says that you can enter 'q', or the "helpful" phrase (or) " anything else to look up items at that location".

What does it mean by "anything else" ?   Is it looking for a valid "item / item name ?"

I tried just pressing enter, and it crashed.

As for buildingsdump, I gave it 'building_lever 1", for args, and got back a bunch of hex numbers. What are they ?

The main thing I want to use dfhack for is to trace where levers and traps (pressure plates, gears), etc are linked together.

I'm looking around for the "offline vs2010" installer, I had awhile ago to try to build the "new" src that Quietust posted.   

2
I'm kind of curious why people play old versions.

If the game was "backward-data" compatible, there would be no need to use old versions (umm something like IBM mainframe OS software ;)

There are a bunch of "computing / logic" saves, I'm interested in, all in old versions of DF.

And I'd like to use dfHack to :  a) just be able to operate them,  b) figure out how they're working.

E.g. :

http://dffd.bay12games.com/file.php?id=1929

4
Does anybody have dfHack df_28_181_40d windows binaries ?


5

Although the thing is a native c++ structure, the lua bindings are so flexible that usually you don't care. Depends on what you want to print, but it can be as simple as:
Code: [Select]
for i,point in ipairs(df.global.ui.waypoints.points) do
    print(point.id,point.name,point.comment)
end

Thanks, that's just (about) what I needed.

I was able to guess at 
Code: [Select]
point.pos.x,point.pos.y,point.pos.z from your code

6
Where are these Lua bindings documented ?

Or whee are they in the source code ?

A google for "dfhack lua bindings" gives  The Lua API,, (with nothing specific there to this topic of "notes"
https://github.com/DFHack/dfhack/blob/master/docs/Lua%20API.rst

7
Ok, found the code in gm-editor.lua / function GmEditorUi:pushTarget

Thanks for the hints on what to look for.
Oh wow... I'll give you kudos for that. That file is unreadable :|

Heh, trial and errror  .... every now and then a "blind animal finds ...."

I know a tiny bit of Lua, the rest I "google".

While using gm-editor works for producing text output, I still have to interactively "pick" / edit an entry for it to be "dumped" to the console.

There should be a way to just iterate over all the notes in a script and dump them out.  Well that IS, sorta what the interactive editor is doing (one at a time).

It looks like the
Code: [Select]
df.global.ui.waypoints.points "thing" (native C++ structure) needs to be transformed into a lua table, for the data to be extracted ?

I've copied the
Code: [Select]
pushTarget function to a new file, and I'm trying to get it work "non-interactively", but I'm still "groping in the dark"

8
Ok, found the code in gm-editor.lua / function GmEditorUi:pushTarget

Thanks for the hints on what to look for.

9
Code: [Select]
printall(df.global.ui.waypoints.points)
gives :

Code: [Select]
0                        = <ui.T_waypoints.T_points: 00000000346E0550>
1                        = <ui.T_waypoints.T_points: 00000000346E0730>

Not quite as "pretty" as I'm hoping for ;)

Code: [Select]
print (~df.global.ui.waypoints.points)
Code: [Select]
.scripts/p.lua:56: attempt to perform bitwise operation on a user data value (field 'points')

10
Is there a way in DfHack 43.05 to list all the Notes (location and contents) from a Dwarf Fortress world ?

I searched through all the script files, and found some "NotesPoints" references that looked like they were just for building the GUI.

This?
Code: [Select]
df.global.ui.waypoints.points

Thanks !

That works pasting in to gui\gm-editor.

I'm guessing ? there must be some lua syntax to "pretty print" the structure(s) for "text" output ?


I tried modifying the "position.lua" script:

Code: [Select]
print(df.global.ui.waypoints.points[0])
got:

Code: [Select]
<vector<ui.T_waypoints.T_points*>[2]: 00000001413565F0>

I'm not fluent in Lua, but it seems ?  <vector> is not a native Lua type ?

11
Utilities and 3rd Party Applications / Re: [WIP] Online 3D map viewer
« on: December 03, 2017, 07:41:39 pm »
Which version(s) of DF is supported ?

12
Is there a way in DfHack 43.05 to list all the Notes (location and contents) from a Dwarf Fortress world ?

I searched through all the script files, and found some "NotesPoints" references that looked like they were just for building the GUI.

13
DF Dwarf Mode Discussion / Re: Pre-Triggered Mechanical Logic
« on: December 02, 2017, 01:21:15 pm »
Well I "found" the "camouflaged" levers off to the right of the main structure.

But without dfhack-etc, purely trial and error (fun ?) now to figure out what lever does what

14
DF Dwarf Mode Discussion / Re: Pre-Triggered Mechanical Logic
« on: November 29, 2017, 03:57:45 pm »
This is a post from 7 years ago, that user is no longer active. Y U Revive?

1) Yes I see it was 7 yrs ago.  The file is still on the "dffd" site, and it still works.

2) According to his profile (Shinziril) was active yesterday.    Why do you say he's no longer active?

15
DF Dwarf Mode Discussion / Re: Pre-Triggered Mechanical Logic
« on: November 29, 2017, 01:59:09 pm »
I implemented an 8-bit adder-subtractor using Jong's logic design.  It works very nicely.

How do you operate it ?

I see some screw pumps on level 150 and doors on level 149.

Are they supposed to be manually activated ?

Pages: [1] 2 3