Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 3 4 [5] 6 7 ... 44

Author Topic: Putnam's DFHack scripts  (Read 118942 times)

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Putnam's DFHack modder's utility
« Reply #60 on: March 18, 2013, 03:14:07 pm »

Tested, I get an error message in the dfhack window.



It worked previously, with an older version. I tested speed-armor once, and all was good. Then I wrote you the PM about spatter_add, you updated the script and I started modding on the Rune Armory. Then made a second building that makes powerful items, tried to test them, get this error. Hope the errorlog helps. :)
« Last Edit: March 18, 2013, 04:06:28 pm by Meph »
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 :::

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utility
« Reply #61 on: March 18, 2013, 04:52:45 pm »

it does. The spatter required a minor rewrite and I must have missed something in the process of it.

EDIT: Should be fixed.
« Last Edit: March 18, 2013, 05:37:48 pm by Putnam »
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Putnam's DFHack modder's utility
« Reply #62 on: March 18, 2013, 07:15:43 pm »

Does it work on your machine? If yes, then its me doing something wrong. Here you go, tried with your new version. Its different errors. ^^



Thats it for me for today. Have to get up early tomorrow, 4h motorbike lessons, followed by 2h theory lessons afterwards.
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 :::

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Putnam's DFHack modder's utility
« Reply #63 on: March 19, 2013, 02:52:39 pm »

Is this about right?

Code: [Select]
###

[INORGANIC:DFHACK_ITEMSYNDROME_MATERIAL_ORCFORT]
    [USE_MATERIAL_TEMPLATE:SOIL_TEMPLATE]
    [SYNDROME]
    [SYN_NAME:ITEM_WEAPON_WRAITH_SWORD]
    [SYN_AFFECTED_CREATURE:ORC_TAIGA:DREAMWALKER_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:DREAMWALKER_FEMALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:SORCERER_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:SORCERER_FEMALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:DRUID_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:DRUID_FEMALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:FROSTSKALD_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:FROSTSKALD_FEMALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:ORACLE_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:ORACLE_FEMALE]
         [CE_CAN_DO_INTERACTION:PROB:100:START:0:END:500]
         [CDI:INTERACTION:WITCH_SIGIL_ORC]
         [CDI:ADV_NAME:Witchknight's sigil]
         [CDI:TARGET:A:LINE_OF_SIGHT]
         [CDI:TARGET_RANGE:A:20]
[CDI:VERB:marks with the witchknights sigil:marks with the witchknights sigil:NA]
         [CDI:TARGET_VERB:are sundered and vulnerable to orcish alloys:is sundered and vulnerable to orcish alloys]
         [CDI:MAX_TARGET_NUMBER:A:20]
[CDI:WAIT_PERIOD:500]   

        [SYNDROME]
    [SYN_NAME:ITEM_WEAPON_ORACLE_KRIS]
    [SYN_AFFECTED_CREATURE:ORC_TAIGA:DREAMWALKER_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:DREAMWALKER_FEMALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:SORCERER_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:SORCERER_FEMALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:DRUID_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:DRUID_FEMALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:FROSTSKALD_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:FROSTSKALD_FEMALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:ORACLE_MALE]
[SYN_AFFECTED_CREATURE:ORC_TAIGA:ORACLE_FEMALE]
         [CE_CAN_DO_INTERACTION:PROB:100:START:0:END:200]
[CAN_DO_INTERACTION:BLOOD_ORC]
[CDI:ADV_NAME:Bloodcurse]
[CDI:USAGE_HINT:ATTACK]
[CDI:BP_REQUIRED:BY_CATEGORY:HAND]
[CDI:VERB:smite foes with a blood curse:smites foe with a blood curse:NA]
[CDI:TARGET_VERB:bleed uncontrollably:bleeds uncontrollably:NA]
[CDI:TARGET:A:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:A:20]
[CDI:MAX_TARGET_NUMBER:A:1]
[CDI:WAIT_PERIOD:200]

P.s. Yes as of itemsyndrom v1.7 or so, these work great, once I replaced CAN_DO_INTERACTION with CDI:INTERACTION on the 2nd weapon
« Last Edit: March 20, 2013, 02:35:13 pm by smakemupagus »
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Putnam's DFHack modder's utility
« Reply #64 on: March 19, 2013, 02:53:43 pm »

That would be about right, if the script would work. ^^

Or does it run on your machine, because I still get the errorlogs I posted above.
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 :::

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Putnam's DFHack modder's utility
« Reply #65 on: March 19, 2013, 03:17:49 pm »

I dunno, I gave a dreamwalker a Ceremonial kris in arena and nothing happened, i thought "itemsyndrome force" would work but I guess not :)

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Putnam's DFHack modder's utility
« Reply #66 on: March 19, 2013, 03:46:10 pm »

itemsyndrome force? What, where?

You add a new line into the init, just itemsyndrome, with nothing, just this one word. And then create the item/material. And as soon as a creature equips it, bam, itemsyndrome. At least, bam, itemsyndrome error. In my case at least. ;)
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 :::

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Putnam's DFHack modder's utility
« Reply #67 on: March 19, 2013, 03:48:38 pm »

at the end,
Code: [Select]
if ... == "force" then findItems() end

from something Putnam said on the first page, i thought it would force it to work in arena.  But it doesn't seem to work for me, I'll have to make some fort mode test reactions.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utility
« Reply #68 on: March 19, 2013, 04:52:20 pm »

Your SYN_NAME is wrong. It has to be the same as the item's name, not its ID.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Putnam's DFHack modder's utility
« Reply #69 on: March 19, 2013, 04:59:33 pm »

Putnam, dont ignore me.   :-\

Itemsyndrome does not work. At all. Since you updated it to include spatters.
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 :::

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utility
« Reply #70 on: March 19, 2013, 05:03:54 pm »

I'm not ignoring you, I'm trying to figure out what's wrong and still haven't found it :P I need to make a test copy of DF for this script...

EDIT: Tested, found problem, fixed, uploading new version.
« Last Edit: March 19, 2013, 05:42:20 pm by Putnam »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utility
« Reply #71 on: March 19, 2013, 05:47:16 pm »

Code: [Select]
[INORGANIC:DFHACK_ITEMSYNDROME_MATERIAL_TEST] Inorganic needs to be called DFHACK_ITEMSYNDROME_MATERIAL_(anything goes here)
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE] This is just a quirk of mine >_>
[SYNDROME]
[SYN_NAME:long sword] All creatures with long swords will be affected by this syndrome.
[CE_BODY_TRANSFORMATION:START:0:END:160]
[CE_CREATURE:TOAD:MALE] Syndrom turns creature into a toad.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Putnam's DFHack modder's utility
« Reply #72 on: March 19, 2013, 06:39:45 pm »



I feel silly. Newest download, I use this inorganic mat:

Code: [Select]
[INORGANIC:DFHACK_TEST]
[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:test]
[STATE_NAME_ADJ:LIQUID:test]
[STATE_NAME_ADJ:GAS:test]
[SYNDROME]   
[SYN_AFFECTED_CREATURE:DWARF:MALE]
[SYN_AFFECTED_CREATURE:DWARF:FEMALE]
[SYN_CLASS:DFHACK_ITEM_SYNDROME]
        [SYN_CONTACT] [SYN_INHALED]
[CE_SPEED_CHANGE:SPEED_PERC:2000:START:0:END:200]
        [CE_BODY_TRANSFORMATION:START:0]
             [CE:CREATURE:SHEEP:MALE]
[DISPLAY_COLOR:4:4:1]
[TILE:'*']
[SOLID_DENSITY:5520]
[MATERIAL_VALUE:1]

I use this reaction:
Code: [Select]
-[REACTION:CHEAT2]-
[NAME:itemsyndrome test]
[BUILDING:STILL:NONE]
[PRODUCT:100:1:ARMOR:NONE:INORGANIC:DFHACK_TEST]

As soon as the dwarf equips the armor itemsyndrome is triggered and produces the errorlog I posted above. No effect on the dwarf itself.
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 :::

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utility
« Reply #73 on: March 19, 2013, 06:43:49 pm »

Goldarnit. I thought I fixed that issue pre-emptively. Fixed for next version.

The issue is that my new item-specific itemsyndrome thing forgets to check if the inorganic with all the syndromes actually exists in the function. It does now.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Putnam's DFHack modder's utility
« Reply #74 on: March 19, 2013, 07:23:37 pm »

TESTED & WORKS.  8)
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 :::
Pages: 1 ... 3 4 [5] 6 7 ... 44