Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 286 287 [288] 289 290 ... 373

Author Topic: DFHack 0.34.11 r3  (Read 1035398 times)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4305 on: July 26, 2013, 01:24:31 am »

Does anyone know how exactly deities are linked to specific entities (Urist Stylesuitor is a deity of The Glad Helms....)?

Urist Da Vinci

  • Bay Watcher
  • [NATURAL_SKILL: ENGINEER:4]
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4306 on: July 26, 2013, 01:28:37 am »

As well as my earlier findings here:
http://www.bay12forums.com/smf/index.php?topic=91166.msg4332174#msg4332174
http://www.bay12forums.com/smf/index.php?topic=91166.msg4341092#msg4341092
http://www.bay12forums.com/smf/index.php?topic=91166.msg4356227#msg4356227
I have yet another submission to the df structures:

https://github.com/angavrilov/df-structures/blob/master/df.units.xml#L1025
wound_damage_flags1
Spoiler (click to show/hide)

https://github.com/angavrilov/df-structures/blob/master/df.units.xml#L1012
wound_effect_type
Spoiler (click to show/hide)

https://github.com/angavrilov/df-structures/blob/master/df.items.xml#L709
body_part_status
Spoiler (click to show/hide)

https://github.com/angavrilov/df-structures/blob/master/df.units.xml#L940
unit_inventory_item mode Unk7 is used to identify a bitten part held in a mouth:
You bite Dwarf 2 in the fourth toe, right foot, tearing apart the fat!
You latch on firmly!
You shake Dwarf 2 around by the fourth toe, right foot and the severed part sails off in an arc!
The fourth toe, right foot is ripped away and remains in Your grip!
You let the Dwarf 2's fourth toe, right foot drop away as You attack.

https://github.com/angavrilov/df-structures/blob/master/df.units.xml#L659
This curse integer, default 100, is the luck percentage.
200 means that your luck-affected skill rolls are multiplied by 2.
50 means that your skill rolls are divided by 2.
Valid values are from 0 (cursed by a mummy) to 10000 (100x or {1% becomes 100%} auto-success). Yes, you can use a syndrome to bless people with random bursts of awesome.

Also just for interest:
IMPACT material properties are used in blunt damage calculation
SHEAR is used with edged damage
TENSILE is used with shaking a creature after a bite latched
COMPRESSIVE is used with pinching/gouging
BENDING is used with joint locks
TORSION may also be used with joint locks (verify)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4307 on: July 26, 2013, 01:45:48 am »

Oh, and btw, there's a bit of a bug in some stuff: there's both a general improvement anon_1 and an itemimprovement_pagesst.anon_1, which causes issues in lua.

EDIT: Grr. Also, how are secrets associated with particular books and slabs?
« Last Edit: July 26, 2013, 01:55:10 am by Putnam »
Logged

Kurik Amudnil

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4308 on: July 26, 2013, 02:41:11 am »

Does anyone know how exactly deities are linked to specific entities (Urist Stylesuitor is a deity of The Glad Helms....)?

from civ_ent.unknown1b.worship ? as a reverse list of histfig ids to dieties?

where civ_ent is a civilization entry in df.global.world.enities.all or = df.historical_entity.find(df.global.ui.civ_id)

It looks to me to pick the first entity that includes the deity's historical figure id in that list.  I added the id to the group entity with no change, then removed the id from the civ entity and the "is a deity of" message changed to the group.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4309 on: July 26, 2013, 02:44:02 am »

unknown1b? That sure explains why I couldn't find it.

EDIT: Friggin' vectors. fig.info.sphere is of type vector<int16_t>, which I can't seem to make a new of in lua.
« Last Edit: July 26, 2013, 03:39:10 am by Putnam »
Logged

Askot Bokbondeler

  • Bay Watcher
  • please line up orderly
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4310 on: July 26, 2013, 07:47:34 am »

Try 'revflood'

"point the cursor at some empty space you want unhidden"

everything is already unhidden so it wont hid it D:
point somewhere you want unhidden, it will hide everything that can't be pathed from there, so if you point to a cavern it will hide the surface and any cavern that isn't connected, etc.

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4311 on: July 26, 2013, 10:47:02 am »

unknown1b? That sure explains why I couldn't find it.

EDIT: Friggin' vectors. fig.info.sphere is of type vector<int16_t>, which I can't seem to make a new of in lua.
usually thing={new=true} works

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4312 on: July 26, 2013, 12:17:43 pm »

Is there a way to remove vanilla buildings? I did a forum search but could not find anything conclusive.
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

scamtank

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4313 on: July 26, 2013, 01:27:13 pm »

Is there a way to remove vanilla buildings? I did a forum search but could not find anything conclusive.

Nope. The most I've heard that it'd potentially possibly might be viable, but I might be mixing that with something else.
Logged

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4314 on: July 26, 2013, 01:56:51 pm »

Drat. I guess there will just be a bunch of useless buildings in the list then.
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4315 on: July 26, 2013, 03:19:38 pm »

unknown1b? That sure explains why I couldn't find it.

EDIT: Friggin' vectors. fig.info.sphere is of type vector<int16_t>, which I can't seem to make a new of in lua.
usually thing={new=true} works

Yep.

silentdeth

  • Bay Watcher
    • View Profile
    • Let's Play Dwarf Fortress: Mastwork Mod Season 1
Re: DFHack 0.34.11 r3
« Reply #4316 on: July 26, 2013, 11:14:15 pm »

Ran into a CTD bug with the tweak plugin.

Save: http://dffd.wimbli.com/file.php?id=7859

With the tweak plugin load the game will crash within a couple of seconds of loading and unpausing. Unload the tweak plugin and it wont crash. 
Logged
Let's Play Dwarf Fortress: Masterwork Mod Season 1 | Season 2
Let's Play Kobold Fortress: Masterwork Mod Season 1 | Season 2

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4317 on: July 27, 2013, 08:00:44 am »

So that marry script how do you get it to work?
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

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4318 on: July 27, 2013, 01:50:08 pm »

I still haven't had a chance to check it in the newest version of DFHack.  The way it worked is that you're supposed to run the command and give it two arguments: the unit id of the two targets.  That worked in the previous version at least, though it was a bit clunky because you had to find the unit ids yourself which could be a pain.  Supposedly in the current version it claims that it can't find the dwarves even if you put in the right ids.

I would like to improve it so you could use DF's interface to pick the targets, but just don't have the time to figure it out right now.
Logged
Success requires no explanation.  Failure allows none.

Urist Da Vinci

  • Bay Watcher
  • [NATURAL_SKILL: ENGINEER:4]
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4319 on: July 27, 2013, 03:10:32 pm »

...
I would like to improve it so you could use DF's interface to pick the targets, but just don't have the time to figure it out right now.

Try this lua script:
Code: [Select]
print("Target first unit and press enter")
test=dfhack.lineedit("")

unit=dfhack.gui.getSelectedUnit()
if unit==nil then
print ("No unit under cursor!  Aborting with extreme prejudice.")
return
end

print("Target second unit and press enter")
test=dfhack.lineedit("")

unit2=dfhack.gui.getSelectedUnit()
if unit2==nil then
print ("No unit under cursor!  Aborting with extreme prejudice.")
return
end

print(unit.id, unit2.id)

--your code goes here
Pages: 1 ... 286 287 [288] 289 290 ... 373