Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 150 151 [152] 153 154 ... 360

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

Felton

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2265 on: March 12, 2015, 12:07:02 am »

Is there a better way to check what menu is displayed than "Gui::getFocusString(Core::getTopViewscreen()).c_str()"?

I'd like my code to be able to tell the difference between these menus:
"(b)Building"
"(b)>(C)Wall/Floor/Stairs/Track"
"(b)>(e)Furnaces"

but that code gives me "dwarfmode/Build/Type" for all 3 states.

What other methods or variables can I take into account?
Logged
menu-mouse: A point-and-click interface for Dwarf Fortress.

utunnels

  • Bay Watcher
  • Axedwarf
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2266 on: March 12, 2015, 12:30:15 am »

How do I get cleanowned to only confiscate but not dump?
It also doesn't confiscate scattered AND worn items at the same time.
Logged
The troglodyte head shakes The Troglodyte around by the head, tearing apart the head's muscle!

Risen Asteshdakas, Ghostly Recruit has risen and is haunting the fortress!

endlessblaze

  • Bay Watcher
  • likes dragons for their fiery breath
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2267 on: March 12, 2015, 06:24:54 pm »

I followed the instructions but It wont work, can you upload a DF install with DFhack already in it?
Logged
Kids make great meat shields.
I nominate endlessblaze as our chief military executive!

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2268 on: March 12, 2015, 06:56:44 pm »

I followed the instructions but It wont work, can you upload a DF install with DFhack already in it?
http://lazynewbpack.com/
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

endlessblaze

  • Bay Watcher
  • likes dragons for their fiery breath
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2269 on: March 12, 2015, 07:25:17 pm »

thanks....now lets hope I don't have to wait an hour (that's the actual estimated time btw, my internet sometimes slows down a lot, I hope it picks up some)
now what about adding scripts to it? I know it comes with a few but I was hoping to get some more.
Logged
Kids make great meat shields.
I nominate endlessblaze as our chief military executive!

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2270 on: March 12, 2015, 07:49:36 pm »

what about adding scripts to it? I know it comes with a few but I was hoping to get some more.
There's not all that much to add, since the default ships with a lot of scripts.  You can find others around in various places, but they're generally either mod-specific or unfinished/untested/unstable - there's a reason they're not in by default.
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

endlessblaze

  • Bay Watcher
  • likes dragons for their fiery breath
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2271 on: March 12, 2015, 08:23:48 pm »

ahhh...i see.

well im still downloading, hopefully it wont corrupt. (i had to give up my turn in the first secession fort it was ever my turn in because the file kept corrupting from download interruptions)
Logged
Kids make great meat shields.
I nominate endlessblaze as our chief military executive!

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2272 on: March 12, 2015, 09:13:03 pm »

I followed the instructions but It wont work, can you upload a DF install with DFhack already in it?
What platform are you using? Are there any errors displayed? There's no need to download an entire pack if you'd rather not, particularly on a slow connection.
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.

endlessblaze

  • Bay Watcher
  • likes dragons for their fiery breath
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2273 on: March 12, 2015, 09:19:03 pm »

i got it now.
sometimes my connection is slow sometimes its fast, its a bit fickle
Logged
Kids make great meat shields.
I nominate endlessblaze as our chief military executive!

Felton

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2274 on: March 13, 2015, 06:30:17 pm »

Where is a good place to ask questions about the DFHack c++ API?

I've tried here and reddit and googled every combination of related words I can think of, but no luck.

I'd love to be able to contribute back to the project.

Thanks
Logged
menu-mouse: A point-and-click interface for Dwarf Fortress.

endlessblaze

  • Bay Watcher
  • likes dragons for their fiery breath
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2275 on: March 13, 2015, 07:27:04 pm »

how would I go about using this to make necromancers?
Logged
Kids make great meat shields.
I nominate endlessblaze as our chief military executive!

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2276 on: March 13, 2015, 08:15:53 pm »

Well, Putnam linked me to the lua API: https://github.com/DFHack/dfhack/blob/master/Lua%20API.rst but I'm not sure how useful that is for C++ as I am not a wizard myself.

As for necromancers Rumrusher found a trick for necros if you have control of them: createitem a slab, gm-editor the slab, subtype 6 should be secrets, change the secrets type and if you have no modded secrets added then one of the first five or six should be life and death.

Note that adding reading to a unit under your control won't work, but if you add the skill to an npc and then assume control it works fine.
« Last Edit: March 13, 2015, 08:18:30 pm by Max™ »
Logged

endlessblaze

  • Bay Watcher
  • likes dragons for their fiery breath
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2277 on: March 13, 2015, 09:24:04 pm »

what about spawning creatures

forcing migrant waves?

creating sieges
Logged
Kids make great meat shields.
I nominate endlessblaze as our chief military executive!

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2278 on: March 13, 2015, 09:30:02 pm »

Think those are all tied to the same script which is still being worked on last I heard.
Logged

endlessblaze

  • Bay Watcher
  • likes dragons for their fiery breath
    • View Profile
Re: DFHack 0.40.24-r2
« Reply #2279 on: March 13, 2015, 09:34:02 pm »

oh....

also there is something I would like to point out

DFhack list all the divine metals as grey.

blazeing metal, bright metal, and black metal don't sound grey.


Logged
Kids make great meat shields.
I nominate endlessblaze as our chief military executive!
Pages: 1 ... 150 151 [152] 153 154 ... 360