Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 370 371 [372] 373

Author Topic: DFHack 0.34.11 r3  (Read 962110 times)

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5565 on: June 08, 2014, 11:48:49 am »

Is it possible to assign pets to particular dwarfs using DFHack? I am thinking for the spawn script it might be nice to have the spawn become attached to the casting dwarf (like a mages familiar).
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: DFHack 0.34.11 r3
« Reply #5566 on: June 08, 2014, 01:45:25 pm »

Is it possible to assign pets to particular dwarfs using DFHack? I am thinking for the spawn script it might be nice to have the spawn become attached to the casting dwarf (like a mages familiar).
Yes - create a pet_info record, fill in all of the appropriate fields, insert the record into ui.pet_info, then create specific_refs to it from the pet itself (using type PETINFO_PET) and the owner (using type PETINFO_OWNER). Of course, you'll also want to generate a name for the pet, though this is beyond the scope of this post.
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.

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5567 on: June 08, 2014, 03:09:12 pm »

Thank you Urist DaVinci, Expwnent and Quietust. I did do some testruns with the pet, minions, puller/packer/wagons that are added by script. It works as advertised and allows many new features. Gnomish steamtanks as wagons, pulled by steamengine creatures... or orc sieges that suddenly bring squads of ogres, cyclops and minotauri along, just like goblins bring trolls. It is all very, very neat. :)

Three questions about this;
1. Does this mean that you can make civs bring along creatures that normally do not appear in the game? (i.e. don't have any BIOME tags).
2. What happens if you use it on creatures without the [PET] token (or any of the other similar tokens)?
3. What happens if you use it on a creature that is INTELLIGENT and a member of another civ? Can you have human sieges bring along squads of elves?

Is it possible to assign pets to particular dwarfs using DFHack? I am thinking for the spawn script it might be nice to have the spawn become attached to the casting dwarf (like a mages familiar).
Yes - create a pet_info record, fill in all of the appropriate fields, insert the record into ui.pet_info, then create specific_refs to it from the pet itself (using type PETINFO_PET) and the owner (using type PETINFO_OWNER). Of course, you'll also want to generate a name for the pet, though this is beyond the scope of this post.

I've never worked with specific_refs before, is there anything special that needs to be done with them, or is it just like creating new records and inserting them into the pet and owner?
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: DFHack 0.34.11 r3
« Reply #5568 on: June 08, 2014, 03:12:29 pm »

Quote
Three questions about this;
1. Does this mean that you can make civs bring along creatures that normally do not appear in the game? (i.e. don't have any BIOME tags).
2. What happens if you use it on creatures without the [PET] token (or any of the other similar tokens)?
3. What happens if you use it on a creature that is INTELLIGENT and a member of another civ? Can you have human sieges bring along squads of elves?
1, Yes, 2, It acts as pet, 3, It should act as pet as well.

I have one issue with it, and thats that the pack/pull animals dont work, they do get added, but the caravans arrive completely empty. So pack/pull has to be done the normal way.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: DFHack 0.34.11 r3
« Reply #5569 on: June 08, 2014, 04:00:41 pm »

I have one issue with it, and thats that the pack/pull animals dont work, they do get added, but the caravans arrive completely empty. So pack/pull has to be done the normal way.
In what way is the caravan "empty"? Do they not have pack animals at all, or are they not carrying anything?

If the latter, there are two possibilities that come to mind:
1. You forgot to set a TRADE_CAPACITY, though it should default to 1000 if not specified
2. The civilization doesn't have any actual trade goods at all, which shouldn't really happen unless you haven't given them any of the various tokens (STONE_PREF, GEM_PREF, USE_ANIMAL_PRODUCTS, INDOOR_FARMING, OUTDOOR_FARMING, INDOOR_WOOD, OUTDOOR_WOOD, and USE_MISC_PROCESSED_WOOD_PRODUCTS).
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.

Urist Da Vinci

  • Bay Watcher
  • [NATURAL_SKILL: ENGINEER:4]
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5570 on: June 08, 2014, 08:08:10 pm »

Quote
Three questions about this;
1. Does this mean that you can make civs bring along creatures that normally do not appear in the game? (i.e. don't have any BIOME tags).
2. What happens if you use it on creatures without the [PET] token (or any of the other similar tokens)?
3. What happens if you use it on a creature that is INTELLIGENT and a member of another civ? Can you have human sieges bring along squads of elves?
1, Yes, 2, It acts as pet, 3, It should act as pet as well.

I have one issue with it, and thats that the pack/pull animals dont work, they do get added, but the caravans arrive completely empty. So pack/pull has to be done the normal way.

1. Yes
2. Civs will bring those creatures to the map in caravans or as migrant pets, and you can embark with them. Their actual behaviour on-map is governed by the tokens, so they won't act like creatures with the [PET] token AFTER they arrive.
3. Yes, I have brought elves and they show up as "tame elf" that appear in the citizens list (not the pets list). They may have AI bugs due to not being the fort race - Toady really ought to allow multicultural forts.

4. I had elves pulling dwarf caravan wagons; I don't recall it requiring anything special to work.

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5571 on: June 10, 2014, 04:10:52 am »

fun fact for any future Dfhack users DO NOT SUMMON GODS INTO THE MORTAL REALM in attempts to talk to them
it will only end with them being HELLA PISSED OFF and not in any mood to talk at all.
how I did this well I fiddle with one of the blank historical units in adventure mode figuring since they don't really have an important soul I could cram a deity into them
also just as some weird idea figure if I reload the map it would 'fix' any errors I would get by changing the historical unit id.

well this happen when I did this on a farmer

Now I'm currently running away from a freshly awoken deity I should have learn better not to play god.
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

palu

  • Bay Watcher
  • Viva la resolution
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5572 on: June 12, 2014, 10:40:46 am »

Are there any plans to add support for any othe scripting languages to DFHack?
Logged
Hmph, palu showing off that reading-the-instructions superpower.
The internet encourages thoughtful, intelligent discussion and if you disagree I hate you.
DFHack DF2015 progress:

Nopenope

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5573 on: June 12, 2014, 11:20:51 am »

I think Ruby is supported and I'm pretty sure I saw a few Python scripts laying around, though they might have been out-of-date. But I think the hard part isn't Lua (which is a fairly intuitive and straightforward language, on top of being perfectly adapted to plugins) but the API and complex data structures. I've been trying to wrap my head around these recently but the sheer amount of information to know is daunting, and there's no scripting language that can fix that.
Logged

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5574 on: June 12, 2014, 11:40:34 am »

Yeah, I had never used lua before I started scripting for DFHack, and it was a lot easier to learn that then it was to start piecing together the complexity of the API and DF itself.
Logged

indyofcomo

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5575 on: June 14, 2014, 09:18:38 am »

Quote from: dfhack readme
{...}putting fix/cloth-stockpile enable in dfhack.init makes it run automatically.

Is this possible with any dfhack command? Like the tweaks?
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5576 on: June 14, 2014, 09:27:40 am »

Anything in dfhack.init will be run when DFHack starts, so you can enable tweaks there, for example, to avoid having to enable them manually. Other plugins can be enabled on startup as well - see dfhack.init-example for examples (r3, r4+)
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.

FallenAngel

  • Bay Watcher
  • !!x(oᴥo)x!!
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5577 on: June 14, 2014, 06:53:18 pm »

I read somewhere that it is possible to, using adv-bodyswap, to completely take over someone's body and have it not revert when you press Esc. I can't find any way to actually do that, however.
That's mostly because I want to cause Fun. Any help?

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5578 on: June 14, 2014, 09:34:54 pm »

Is there a flag or anything that gets changed/set when the day, month, year, etc... changes? And I didn't see anything in the eventful documentation, but is it possible to attach an trigger to the changing of those things?
Logged

indyofcomo

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #5579 on: June 14, 2014, 09:55:31 pm »

How does the autolabor decide which dwarves to turn on labors for?
Logged
Pages: 1 ... 370 371 [372] 373