Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 161 162 [163] 164 165 ... 257

Author Topic: DFHack 0.34.11 r3  (Read 343395 times)

ag

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2430 on: October 21, 2012, 10:27:27 am »

Through experimentation I have discovered the following about the unknown values:

Here, added your data to the definitions, with some further guesses from myself :)

https://github.com/angavrilov/df-structures/compare/2330b98...453452e87b
Logged

Hamsmagoo

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2431 on: October 21, 2012, 03:04:53 pm »

Added the OSX version :)

Test it, see if it works on your system.
I downloaded the osx version.

copied everything into the df folder

not quite sure how to get it to work

Open Terminal. Perform the following:
Code: [Select]
$ cd /path/to/DF
$ ./dfhack
clearly something is going over my head.
when I type those commands into the terminal I get "no such file or directory"
when I type those commands and DF is open, nothing happens at all

You can't just type "cd /path/to/DF". That's a placeholder. I don't know what directory you have Dwarf Fortress installed in. If you don't know how to use the terminal to find out, then do this:

1) In the Finder, locate the folder with DF in it.
2) Open the Terminal.
3) Type "cd " (that's with a space at the end). Do not hit Enter.
4) Drag the folder with DF in it from the Finder into the Terminal window. This will place the full path to the DF directory in the Terminal window.
5) Hit Enter.
6) Type "./dfhack" and hit Enter.

If this doesn't work, then either you're doing it wrong ;D , or you have an odd installation of DF, or DFHack isn't installed correctly.
lol, I was literally typing /path/to/df

but, even typing out the actual path, or dragging in the folder gives me "no such file or directory"

I might have extracted dfhack wrong, but it's more likely I have a weird install of dwarf fortress.  I always just download a folder and leave it on my desktop and never installed anything.  I trash it and re-download it a lot.

I'll keep playing around with it.  At least it makes sense to me, now.  Thanks.
Logged

danaris

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2432 on: October 21, 2012, 03:09:40 pm »

lol, I was literally typing /path/to/df

but, even typing out the actual path, or dragging in the folder gives me "no such file or directory"

I might have extracted dfhack wrong, but it's more likely I have a weird install of dwarf fortress.  I always just download a folder and leave it on my desktop and never installed anything.  I trash it and re-download it a lot.

I'll keep playing around with it.  At least it makes sense to me, now.  Thanks.

Oh! *facepalm* I think I know the problem.

In step 3-5, you need to surround the path to the DF directory in quotes (put one quote before you drag it in, and one before you hit Enter). My guess would be it has at least one space in it ;D
Logged

Hamsmagoo

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2433 on: October 21, 2012, 04:09:17 pm »

lol, I was literally typing /path/to/df

but, even typing out the actual path, or dragging in the folder gives me "no such file or directory"

I might have extracted dfhack wrong, but it's more likely I have a weird install of dwarf fortress.  I always just download a folder and leave it on my desktop and never installed anything.  I trash it and re-download it a lot.

I'll keep playing around with it.  At least it makes sense to me, now.  Thanks.



Oh! *facepalm* I think I know the problem.

In step 3-5, you need to surround the path to the DF directory in quotes (put one quote before you drag it in, and one before you hit Enter). My guess would be it has at least one space in it ;D
It worked!  The problem was actually that I forgot to put a space in between cd and the path.  But now it's saying "could not load inserted library: ./hack/libdfhack.dylib" probably because I have to re-download and extract again.  I tossed those files everywhere in a fit of hectic, clueless troubleshooting.

At least I'm getting somewhere.  I am so code illiterate.

EDIT: update-- after some troubleshooting, I now know that I extracted dfhack wrong.  Turns out that double-clicking the dfhack icon does the same thing as manually typng what you told me to type

each time, i get that "could not load" error followed by:
/path/to/df hack : line 15: 502 Trace/BPT trap (if I click the icon)
and
./dfhack: line 15: 480Trace/BPT trap (when I type everything manually)
« Last Edit: October 21, 2012, 04:21:20 pm by Hamsmagoo »
Logged

Urist Da Vinci

  • Bay Watcher
  • [NATURAL_SKILL: ENGINEER:3]
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2434 on: October 23, 2012, 01:29:05 am »

I was doing some testing and noticed that flows are stored in memory even after they disappear.

Code: [Select]
count=0
for k,v in pairs(df.global.world.map.map_blocks) do
for kk,vv in pairs(df.global.world.map.map_blocks[k].flows) do
count = count + 1
end
end
print(count)

A dragon on a burnination rampage can quickly rack up thousands of stored flows in memory, even though the flames disappear moments after being created.

I started a test fort, and verified that there were 0 flows on the map in the first few seconds. I then set the top of a small hill on fire with dfhack. After the smoke and flames were all gone, there were 1580 flows in memory. After saving the game, quitting DF, and then loading the game, there were still 1580 flows in memory.

This might mean that flows contribute to the FPS death of the game by accumulating to large numbers that each have to be checked for activity.

Warmist

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2435 on: October 23, 2012, 01:35:32 am »

I was doing some testing and noticed that flows are stored in memory even after they disappear.
<...>
Actually it's an optimization. It's more expensive to create/delete them, instead they are reused. How much performance is gained idk. But e.g. in waterfalls and mist generators it's quite logical that this approach is better than creating/deleting each flow.
Logged

Japa

  • Bay Watcher
  • AHAHAHAHAHA!!!!
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2436 on: October 23, 2012, 01:44:05 am »

Yeah, those flows are most likely just being re-used
Logged

I interpret it as meaning 'really good at cutting people.'
You clearly don't know much about swords.

ag

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2437 on: October 23, 2012, 01:44:34 am »

Might be a good idea to check if that reuse logic actually works though; it could be buggy.
Logged

HARD

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2438 on: October 23, 2012, 04:03:35 pm »

Hey i need a script to remove strange mood from the dwarf
« Last Edit: October 24, 2012, 05:14:02 am by HARD »
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: DFHack 0.34.11 r2
« Reply #2439 on: October 23, 2012, 04:55:23 pm »

Hey a need a script to remove strange mood from the dwarf
Why exactly do you need to cancel a Strange Mood job? If it's due to lack of materials, it would be far simpler to just use changeitem to give the dwarf what he needs.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

HARD

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2440 on: October 24, 2012, 07:48:42 am »

Hey a need a script to remove strange mood from the dwarf
Why exactly do you need to cancel a Strange Mood job? If it's due to lack of materials, it would be far simpler to just use changeitem to give the dwarf what he needs.

Yep thats it, he needs a 'rough color' it says, well not sure what he needs exacly
Logged

crazysheep

  • Bay Watcher
  • [PREFSTRING:fluffy wool]
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2441 on: October 24, 2012, 07:55:49 am »

He needs rough gems.
Logged
Haemogoblin: what's left after a goblin siege with along with the goblinite.
I see my dwarves closing my eyes, and going into a variant of the marital trance...

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: DFHack 0.34.11 r2
« Reply #2442 on: October 24, 2012, 08:39:01 am »

There's actually a "showmood" command in DFHack which will tell you exactly what your moody dwarf wants.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Akjosch

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2443 on: October 24, 2012, 09:19:43 am »

There's actually a "showmood" command in DFHack which will tell you exactly what your moody dwarf wants.

"Urist McGoth wants a hug."
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2444 on: October 24, 2012, 10:29:10 am »

There's actually a "showmood" command in DFHack which will tell you exactly what your moody dwarf wants.

"Urist McGoth wants a hug."
Pop into adventure mode, use this dfusion script
Code: [Select]
function spar(unit)
if unit==nil then
unit=getCreatureAtPos(getxyz())
entry=getline()
targ=getCreatureAtPos(getxyz())
end
unit.flags2.sparring=true
targ.flags2.sparring=true
unit.job.hunt_target=targ
targ.job.hunt_target=unit
end
adv_tools.menu:add("spar another",spar)
To set spar flag on urist Mcgoth and current unit you're playing, walk up and wrestle both arms over Mcgoth.
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
Pages: 1 ... 161 162 [163] 164 165 ... 257