Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 188 189 [190] 191 192 ... 373

Author Topic: DFHack 0.34.11 r3  (Read 1407904 times)

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2835 on: January 18, 2013, 10:55:01 pm »

Seriously, anybody know why it's saying vector <body_part_status>.0 is a complex object?

   for k,v in pairs(unit.body.components) do
      for kk,vv in pairs(v) do
         v[kk]=0
      end
   end

This doesn't work.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2836 on: January 19, 2013, 05:31:30 am »

Seriously, anybody know why it's saying vector <body_part_status>.0 is a complex object?

   for k,v in pairs(unit.body.components) do
      for kk,vv in pairs(v) do
         v[kk]=0
      end
   end

This doesn't work.
Because it's a complex object
Code: [Select]
for k,v in pairs(unit.body.components.body_part_status) do   
for kk,vv in pairs(v) do
v[kk]=0
end
        --also could probably do "v.whole=0" instead ...
end
It also has: "numbered_masks" and bunch of "body_layer_<number>" have no idea what are those for...

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: DFHack 0.34.11 r2
« Reply #2837 on: January 19, 2013, 07:58:53 am »

Seriously, anybody know why it's saying vector <body_part_status>.0 is a complex object?

   for k,v in pairs(unit.body.components) do
      for kk,vv in pairs(v) do
         v[kk]=0
      end
   end

This doesn't work.

Or if there is exhaustive documentation of data structures?

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2838 on: January 19, 2013, 08:08:14 am »

There's a bunch of xml files here: https://github.com/angavrilov/df-structures

don't know what else is there.
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2839 on: January 19, 2013, 08:18:16 am »

There's a bunch of xml files here: https://github.com/angavrilov/df-structures

don't know what else is there.
I use generated header files: "hack\include\df" in r3 or if you are building yourself it's somewhere in project tree.

Or printall(thing), printall(thing.thing2), etc... Start is df.global (.world almost always, sometimes .ui). I think new version supports printall(<type>) e.g. printall(df.unit) to check what fields a struct can have.
« Last Edit: January 19, 2013, 08:20:20 am by Warmist »
Logged

Bates

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2840 on: January 19, 2013, 08:27:41 am »

Seriously, anybody know why it's saying vector <body_part_status>.0 is a complex object?

   for k,v in pairs(unit.body.components) do
      for kk,vv in pairs(v) do
         v[kk]=0
      end
   end

This doesn't work.

Wasn't there a bug in that, I seem to recall Rumrusher fixing that...

Oh yeah, try this:

Code: [Select]
for k,v in pairs(unit.body.components) do
for kk,vv in pairs(v) do
if k == 'body_part_status' then v[kk].whole = 0  else v[kk] = 0 end
end
end
Logged

Frenchchef

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2841 on: January 19, 2013, 10:39:14 am »

So I need help. When I enter into arena mode while in dwarf fortress, I want to spawn some animals/monsters y'know? But when I go to try, it has a blank list and before I have hit enter only to ahve a nameless, invisible creature kill all my orcs. Anyone know how to get the animal spawner on it working?

I still need this answered, if anyone else has answers.
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2842 on: January 19, 2013, 01:41:10 pm »

So I need help. When I enter into arena mode while in dwarf fortress, I want to spawn some animals/monsters y'know? But when I go to try, it has a blank list and before I have hit enter only to ahve a nameless, invisible creature kill all my orcs. Anyone know how to get the animal spawner on it working?

I still need this answered, if anyone else has answers.
this-> https://gist.github.com/4514230

Frenchchef

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2843 on: January 19, 2013, 06:14:45 pm »

So I need help. When I enter into arena mode while in dwarf fortress, I want to spawn some animals/monsters y'know? But when I go to try, it has a blank list and before I have hit enter only to ahve a nameless, invisible creature kill all my orcs. Anyone know how to get the animal spawner on it working?

I still need this answered, if anyone else has answers.
this-> https://gist.github.com/4514230

I put it in the DFHACK lua folder and it still isn't working.
« Last Edit: January 19, 2013, 06:21:33 pm by Frenchchef »
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2844 on: January 19, 2013, 06:38:29 pm »

So I need help. When I enter into arena mode while in dwarf fortress, I want to spawn some animals/monsters y'know? But when I go to try, it has a blank list and before I have hit enter only to ahve a nameless, invisible creature kill all my orcs. Anyone know how to get the animal spawner on it working?

I still need this answered, if anyone else has answers.
this-> https://gist.github.com/4514230

I put it in the DFHACK lua folder and it still isn't working.
Did you run it? Did you name it "*.lua"? what is the dfhack window reporting? I have no ESP skills can't tell you anything if you don't tell me anything :D

CaptainArchmage

  • Bay Watcher
  • Profile Pic has Changed! Sorry for the Delay.
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2845 on: January 19, 2013, 06:59:59 pm »

Got a question and a request.

I've noticed that in the latest version of Dwarf Fortress, violence doesn't result in disorderly conduct convictions, and neither does vandalism or building destruction. Do you think there's a way to update DFhack to deal with this?

I believe that in addition, murder resulting from tantrums doesn't result in the crime being registered either. In the masterwork succession fortress, one dwarf killed another with a thrown barrel in a public area filled with other dwarves, but that was never taken down as a crime in the justice screen; in fact, the only crimes recorded were deaths caused by vampires.

Mandate-related crimes still result in justice.

I'm also wondering whether it may be possible to deal with the justice exemptions issue as well, for legendary and [PUNISHMENT_EXEMPTION] dwarves.
« Last Edit: January 19, 2013, 07:04:28 pm by CaptainArchmage »
Logged
Given current events, I've altered my profile pic and I'm sorry it took so long to fix. If you find the old one on any of my accounts elsewhere on the internet, let me know by message (along with the specific site) and I'll fix. Can't link the revised avatar for some reason.

Frenchchef

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2846 on: January 19, 2013, 07:07:04 pm »

So I need help. When I enter into arena mode while in dwarf fortress, I want to spawn some animals/monsters y'know? But when I go to try, it has a blank list and before I have hit enter only to ahve a nameless, invisible creature kill all my orcs. Anyone know how to get the animal spawner on it working?

I still need this answered, if anyone else has answers.
this-> https://gist.github.com/4514230

I put it in the DFHACK lua folder and it still isn't working.
Did you run it? Did you name it "*.lua"? what is the dfhack window reporting? I have no ESP skills can't tell you anything if you don't tell me anything :D

It does not let me run it or name it *.lua because * is a forbidden numerical thing. I have no experience with using LUA of the sort so uh yeah.
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2847 on: January 19, 2013, 07:32:21 pm »

So I need help. When I enter into arena mode while in dwarf fortress, I want to spawn some animals/monsters y'know? But when I go to try, it has a blank list and before I have hit enter only to ahve a nameless, invisible creature kill all my orcs. Anyone know how to get the animal spawner on it working?

I still need this answered, if anyone else has answers.
this-> https://gist.github.com/4514230

I put it in the DFHACK lua folder and it still isn't working.
Did you run it? Did you name it "*.lua"? what is the dfhack window reporting? I have no ESP skills can't tell you anything if you don't tell me anything :D

It does not let me run it or name it *.lua because * is a forbidden numerical thing. I have no experience with using LUA of the sort so uh yeah.
also I think Warmist meant * as in * = [what you need to do]any name you want[/what you need to do] and not *= [WYNTD]name the file *.lua [/WYNTD].
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

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2848 on: January 19, 2013, 08:23:28 pm »

Speaking of which, can DFhack save a .lua from within the console?
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Squeegy

  • Bay Watcher
  • I don't really have any answers for you.
    • View Profile
Re: DFHack 0.34.11 r2
« Reply #2849 on: January 19, 2013, 09:22:15 pm »

Seriously, anybody know why it's saying vector <body_part_status>.0 is a complex object?

   for k,v in pairs(unit.body.components) do
      for kk,vv in pairs(v) do
         v[kk]=0
      end
   end

This doesn't work.

Wasn't there a bug in that, I seem to recall Rumrusher fixing that...

Oh yeah, try this:

Code: [Select]
for k,v in pairs(unit.body.components) do
for kk,vv in pairs(v) do
if k == 'body_part_status' then v[kk].whole = 0  else v[kk] = 0 end
end
end

This works... but on resurrecting dead people, it won't seem to fix all their red and missing parts.
Logged
I think I'm an alright guy. I just wanna live until I gotta die. I know I'm not perfect, but God knows I try.
Kobold Name Generator
⚔Dueling Blades⚔
Fertile Lands
The Emerald Isles
Pages: 1 ... 188 189 [190] 191 192 ... 373