Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 219 220 [221] 222 223 ... 360

Author Topic: DFHack 0.43.03-r1  (Read 1120174 times)

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: DFHack 0.40.24-r4
« Reply #3300 on: November 24, 2015, 06:13:53 am »

Main thing I do with dfusion is change adventurer, which can also be moved to a new script. The sites thing is handy but I like the claim a site reaction hook one more, and though that hooks into dfusion it can also be moved out of it.
It does?... oh i forgot :P

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.40.24-r4
« Reply #3301 on: November 24, 2015, 03:47:20 pm »

oh yeah you could also spawn any kind of site as well so if you want you could plop down a hamlet near a ocean and safely fast travel cross with no fuss.
then there's the friendship script and the turn a type of animal sentient scripts which I would poke around for simple V,k in pairs do functions.
for learning how to script stuff poking around in dfusion scripts are neat.

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

Guava sprinkles

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r4
« Reply #3302 on: November 26, 2015, 12:20:38 am »

Is stonesense displaying correctly for everyone? I've been having some display issues, specifically with creature sprites, and was wondering if anyone else is experiencing this.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r4
« Reply #3303 on: November 27, 2015, 08:39:43 pm »

r5 is up! https://github.com/DFHack/dfhack/releases/tag/0.40.24-r5
This fixes issues in the workflow and confirm plugins, among other things. Documentation is distributed separately.

Edit (23 Oct 2016): fixed link
« Last Edit: October 23, 2016, 03:25:13 pm by lethosor »
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.

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.40.24-r4
« Reply #3304 on: November 27, 2015, 11:19:01 pm »

Is stonesense displaying correctly for everyone? I've been having some display issues, specifically with creature sprites, and was wondering if anyone else is experiencing this.
What kind of issues are these?
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3305 on: November 28, 2015, 09:49:29 pm »

Can anyone help with this script?

Spoiler (click to show/hide)

It's supposed to return the heights of every dwarf in the fortress. The (partial) error message it gives is: "Cannot read field unit.appearance_modifier_type: not found." I don't know what it wants between the v and the appearance_modifier_type.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3306 on: November 28, 2015, 10:47:39 pm »

The unit class has no appearance_modifier_type. Where do you get that from?
Logged

Guava sprinkles

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3307 on: November 28, 2015, 11:37:16 pm »

Well to be specific, human hair doesn't show on either gender, clothing doesn't show right on female humans. (The entire sprite is their skin color) Elves seem to be fine except clothing on the female ones. The dwarves' hair color and skin color don't show. (I checked, and their description did say that the hair and skin color were different than what was shown) The goblins all have the exact same sprite.
Also the character's job doesn't seem to impact their sprite.
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3308 on: November 28, 2015, 11:45:46 pm »

Could you give a screenshot?
And are you using mods?
Logged

Guava sprinkles

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3309 on: November 28, 2015, 11:57:25 pm »

Images here: http://imgur.com/a/S15Cz

As for mods, I used to have the calfdir's dwarves, but that was on a different version, I've updated since then.
Idk if it counts but i'm using lazynewbpack as well.
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3310 on: November 29, 2015, 12:07:00 am »

Okay, could you turn on debug mode in the stonesense init.txt, and show what it says when there's one of the units selected?

Also try in an actual fort,rather than the arena, since arena dwarves are naked peasants by default.
Logged

Guava sprinkles

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3311 on: November 29, 2015, 12:26:47 am »

Debug images: http://imgur.com/a/6TGMD

Outside of arena classes show fine. Unfortunately I don't have any saves with goblins involved atm.
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3312 on: November 29, 2015, 08:34:05 am »

The unit class has no appearance_modifier_type. Where do you get that from?
I found it here.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3313 on: November 29, 2015, 12:54:06 pm »

First you need to look in df.global.world.raws.creatures.all[465].caste[0].body_appearance_modifiers and find the one of type HEIGHT, where 456 is the default creature type of dwarfs, and 0 is male. Replace with the creature type and caste id of the unit in question.

Then you look at v.appearance.body_modifiers
  • [/tt], where x is the index you got in the previous step, and you will get a percentage number of the height compared to the average dwarf.

« Last Edit: November 29, 2015, 01:11:12 pm by Japa »
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #3314 on: November 29, 2015, 01:03:21 pm »

The place where you should use appearance_modifier_type is to convert between HEIGHT and 0 (i.e. you should compare the type to df.appearance_modifier_type.HEIGHT, not 0, in case the raw numbers change in the future):
Code: [Select]
[lua]# ~df.appearance_modifier_type.HEIGHT
0
[lua]# ~df.appearance_modifier_type[0]
HEIGHT
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 ... 219 220 [221] 222 223 ... 360