Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 115 116 [117] 118 119 ... 360

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

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1740 on: December 27, 2014, 01:01:35 pm »

I'm not sure what language (if any) that uses, but assuming you receive a report ID in Lua, a match can be determined with df.report.find(id).text:match('text to search for').
Actually, from https://github.com/warmist/df-structures/blob/master/df.announcements.xml it looks like an announcement event has a lot of useful information embedded in it.  Just have no idea how to turn that into an actual announce-trigger.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1741 on: December 27, 2014, 01:25:43 pm »

Exactly, df.report.find(id) returns an announcement object (or nil). What exactly is "announce-trigger"? I can't find anything in DFHack that refers to it.
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.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1742 on: December 27, 2014, 01:31:05 pm »

Exactly, df.report.find(id) returns an announcement object (or nil). What exactly is "announce-trigger"? I can't find anything in DFHack that refers to it.
There isn't one, I was suggesting one if its feasible.  It would incorporate the features that Roses requested with a lot of additional flexibility for modders to react to announcements.  Might even pave the way for folding Soundsense into DFHack (if there would be any advantage to doing that).
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1743 on: December 27, 2014, 02:06:36 pm »

You can use the onReport event - here is an example.
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.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1744 on: December 27, 2014, 02:35:57 pm »

You can use the onReport event - here is an example.
Oh, that looks like exactly what Roses needed.  Just stick the event handling logic inside the annc_handler function.

The only use I'd have for this is to suppress an announcement, since I'd rather the player not know when he or she struck Living Stone.  That would require infrastructure similar to interaction-trigger.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1745 on: December 27, 2014, 02:45:23 pm »

Announcement suppression doesn't seem to be working (at least in combat logs) as of now, so I'm not sure about that.

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1746 on: December 27, 2014, 02:59:51 pm »

You could set world.status.display_timer to 0 to hide the announcement from the bottom of the screen. Deleting it might be possible as well, although it could cause problems.
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.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1747 on: December 27, 2014, 03:10:13 pm »

Thanks for the pointers.  I was imagining something like interaction-trigger where you could trigger a script in response to an announcement and optionally suppress that announcement from appearing (the same way you can suppress an interaction verb).  In my particular case, the handler would be a dummy script since all I want to do is prevent the player from being notified if specific minerals have been struck.  Living Granite is supposed to be indistinguishable from normal granite, and so on.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1748 on: December 27, 2014, 05:15:46 pm »

(the same way you can suppress an interaction verb)

This doesn't seem to actually work as of the most recent version.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1749 on: December 27, 2014, 05:25:25 pm »

(the same way you can suppress an interaction verb)

This doesn't seem to actually work as of the most recent version.
That's unfortunate.  I hadn't noticed because I managed to build my mod out of syndrome-triggers and reaction-triggers instead of interaction-triggers.

Here's wishing the interaction-trigger a speedy recovery :)
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

emhs

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1750 on: December 27, 2014, 05:49:07 pm »

The burrow plugin hates me. I consistently get "burrow not found" errors and auto-grow does nothing. Any ideas?
Logged

Devast

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1751 on: December 27, 2014, 08:09:23 pm »

Is there a way to edit the value of how much power a windmill produces?
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1752 on: December 28, 2014, 12:24:02 am »

Is it possible to directly control the behavior of created flows?
Logged

AoshimaMichio

  • Bay Watcher
  • Space Accountant
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1753 on: December 28, 2014, 06:39:15 am »

Does anyone know if there exists a GUI for "createitem" command? The command itself is not very easy or forgiving for people like me who have not dabbled with raws, so helpful filterable/searchable GUI would be very much appreciated.
Logged
I told you to test with colors! But nooo, you just had to go clone mega-Satan or whatever.
Old sigs.
Games.

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.40.19-r1
« Reply #1754 on: December 28, 2014, 06:50:25 am »

Does anyone know if there exists a GUI for "createitem" command? The command itself is not very easy or forgiving for people like me who have not dabbled with raws, so helpful filterable/searchable GUI would be very much appreciated.
gui/hack-wish
Pages: 1 ... 115 116 [117] 118 119 ... 360