Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 289 290 [291] 292 293 ... 373

Author Topic: DFHack 0.34.11 r3  (Read 1456262 times)

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4350 on: August 03, 2013, 11:11:59 am »

or
Code: [Select]
Gui/gm-editor Dfhack.gui.getCurViewscreen() if you want to poke at menus like effecting your stats from the beginning.
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

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4351 on: August 04, 2013, 06:09:36 am »

that gui really helps, I can pretty much answer all my own questions as to what data structures can be manipulated in lua

mrDLS

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4352 on: August 04, 2013, 06:43:59 am »

Dear peoples,

I remember seeing somewhere that there was a command to hide the annoying "dwarf cancels job" announcements in dfhack, but I can't remember what is was or where to find it. Could someone please help me and tell me what it is?

Thanks in advance.
Logged

silentdeth

  • Bay Watcher
    • View Profile
    • Let's Play Dwarf Fortress: Mastwork Mod Season 1
Re: DFHack 0.34.11 r3
« Reply #4353 on: August 04, 2013, 08:39:43 pm »

Would anyone else find it useful if there was an auto-melt option for stockpiles, similar to the auto-trade option? Any obvious issues preventing it from being done?
Logged
Let's Play Dwarf Fortress: Masterwork Mod Season 1 | Season 2
Let's Play Kobold Fortress: Masterwork Mod Season 1 | Season 2

HavingPhun

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4354 on: August 04, 2013, 08:43:45 pm »

I am guessing this is a no. But, would it be possible to make a dfhack script that would allow you to turn a dwarf into a vampire by putting the k cursor over them and running said script?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4355 on: August 04, 2013, 08:47:38 pm »

I am guessing this is a no. But, would it be possible to make a dfhack script that would allow you to turn a dwarf into a vampire by putting the k cursor over them and running said script?

Yes.

HavingPhun

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4356 on: August 04, 2013, 08:50:47 pm »

I am guessing this is a no. But, would it be possible to make a dfhack script that would allow you to turn a dwarf into a vampire by putting the k cursor over them and running said script?

Yes.
Alright. Hmmm.. And uh, how would I do that? If thats not asking too much.
« Last Edit: August 04, 2013, 10:02:59 pm by HavingPhun »
Logged

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4357 on: August 05, 2013, 02:11:38 am »

Is there a correct way to set nicknames with DFHack?  I'm pretty sure this is a problem with tools like Dwarf Therapist, so I'm guessing it's a similar mechanism at fault, but nicknames that I set using the Lua interface disappear randomly.

Do you have to set it on more than the unit itself?  Also on the historical figure perhaps?
Logged
Through pain, I find wisdom.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4358 on: August 05, 2013, 02:17:58 am »

Is there a correct way to set nicknames with DFHack?  I'm pretty sure this is a problem with tools like Dwarf Therapist, so I'm guessing it's a similar mechanism at fault, but nicknames that I set using the Lua interface disappear randomly.

Do you have to set it on more than the unit itself?  Also on the historical figure perhaps?

Unit, historical figure and soul.

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4359 on: August 05, 2013, 02:27:37 am »

Alright, thanks, I'll try that out.  May need to write a quick Lua script to handle it rather than doing it through the interactive interface then.

Nicknaming invaders sucks.
Logged
Through pain, I find wisdom.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4360 on: August 05, 2013, 02:44:28 am »

Nicknaming can just be done with dfhack.units.setNickname(unit,nick)

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4361 on: August 05, 2013, 02:49:42 am »

Well, that certainly simplifies matters.  I know I must be doing a lot the hard way with Lua when there are built in functions for some of this stuff.
Logged
Through pain, I find wisdom.

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4362 on: August 05, 2013, 10:44:47 am »

I wonder if the WIP fake id script allows you to get away with murder... just a little. Killing peasants under a new identity ruins the chances of fooling every one else once you switch up again. I guess this is due to how the new identity works. oh and the new identity only works in a new site not the same site you commit the murder.
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

Kurik Amudnil

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4363 on: August 05, 2013, 01:09:28 pm »

Kurik, Warmist, thanks again.  The script I'm going to call final (if nothing else comes up) is: 

Spoiler: log-region.lua (click to show/hide)

And is activated by putting "log-region" as it's own line in dfhack.init

It has occured to me that you may find the world name useful too
Code: (lua) [Select]
worldname = df.global.world.world_data.name
dfhack.TranslateName(worldname)
dfhack.TranslateName(worldname ,true)

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4364 on: August 05, 2013, 04:28:28 pm »

1. What's an easy way to tell if the game screen is on the embark screen?
  -- solved, did a search for embark screen and found an answer in this thread.

2. How can I find the value of a dwarf's migrant wave?

3. Is there a way to modify an artifact so it's sellable?

4. Where can I modify embark points (i.e. in dfhack)
« Last Edit: August 05, 2013, 11:14:18 pm by thistleknot »
Logged
Pages: 1 ... 289 290 [291] 292 293 ... 373