Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 266 267 [268] 269 270 ... 360

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

KillzEmAllGod

  • Bay Watcher
  • Searching for the other sock.
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4005 on: March 23, 2016, 03:44:45 am »

Getting a crash now and then when going to some units through to unit menu as well as when pressing v to inspect or examining creatures. Mostly seems to happen to creatures on different z levels, think it might be with some of the DFHack options on some of these things.
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4006 on: March 23, 2016, 05:47:11 am »

Are you using TwbT?
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.

KillzEmAllGod

  • Bay Watcher
  • Searching for the other sock.
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4007 on: March 23, 2016, 07:11:45 pm »

No just the default stuff with alpha 2.
Logged

Gorobay

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4008 on: March 23, 2016, 09:22:19 pm »

How can I find the phase of a generated material at a given temperature? Here is what I have tried:
Code: [Select]
[lua]# m=df.inorganic_raw.find(300).material
[lua]# ~m.state_name
<string[]: 0x177ce2e8>
Solid                    = frozen fetid filth
Liquid                   = fetid filth
Gas                      = boiling fetid filth
Powder                   = frozen fetid filth
Paste                    = frozen fetid filth
Pressed                  = frozen fetid filth
[lua]# ~m.heat
<material_common.T_heat: 0x177ce2b4>
spec_heat                = 4181
heatdam_point            = 60001
colddam_point            = 60001
ignite_point             = 60001
melting_point            = 60001
boiling_point            = 60001
mat_fixed_temp           = 10000
It seems this material has no melting or boiling points, so how does DF know which state_name to use?
Logged

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: DFHack 0.40.24-r5
« Reply #4009 on: March 23, 2016, 09:32:43 pm »

It seems this material has no melting or boiling points, so how does DF know which state_name to use?

It has fixed temperature, so.. um.. temperature/state is always the same.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4010 on: March 23, 2016, 09:55:06 pm »

nvm... what Putnam said.
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.24-r5
« Reply #4011 on: March 23, 2016, 09:55:35 pm »

And it only appears in the form of rain, probably, or maybe a LIQUID_GLOB or UNDIRECTED_VAPOR or TRAILING_VAPOR_FLOW.

Gorobay

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4012 on: March 23, 2016, 10:11:56 pm »

It has fixed temperature, so.. um.. temperature/state is always the same.
Clearly. But which state is it always in?

I know that this example is an evil rain and will always be a liquid, but I want a script to determine this automatically for any material.
Logged

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: DFHack 0.40.24-r5
« Reply #4013 on: March 23, 2016, 10:50:50 pm »

It has fixed temperature, so.. um.. temperature/state is always the same.
Clearly. But which state is it always in?

I know that this example is an evil rain and will always be a liquid, but I want a script to determine this automatically for any material.

Ah, sure.. well, if it doesn't have melting point, then, I'd say it doesn't melt, so it's solid.

TheFlame52

  • Bay Watcher
  • Master of the randomly generated
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4014 on: March 24, 2016, 08:54:38 am »

How can I find the phase of a generated material at a given temperature? Here is what I have tried:
-snop-
It seems this material has no melting or boiling points, so how does DF know which state_name to use?
How did you get that information?

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4015 on: March 24, 2016, 09:12:14 am »

From the lua interpreter:
Code: [Select]
[lua]# m=df.inorganic_raw.find(300).material
[lua]# ~m.state_name
<string[]: 0x177ce2e8>
Solid                    = frozen fetid filth
Liquid                   = fetid filth
Gas                      = boiling fetid filth
Powder                   = frozen fetid filth
Paste                    = frozen fetid filth
Pressed                  = frozen fetid filth
[lua]# ~m.heat
<material_common.T_heat: 0x177ce2b4>
spec_heat                = 4181
heatdam_point            = 60001
colddam_point            = 60001
ignite_point             = 60001
melting_point            = 60001
boiling_point            = 60001
mat_fixed_temp           = 10000

I assume 60001 corresponds to no melting/boiling point.
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.

Gorobay

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4016 on: March 24, 2016, 05:41:40 pm »

I assume 60001 corresponds to no melting/boiling point.
That is what it means, according to the wiki.

For now, I have decided to use a text-based heuristic which should work until Toady changes the generated material name format.
Logged

alyas0

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4017 on: March 25, 2016, 12:10:44 pm »

Whenever I try to launch Dwarf Fortress with DFHack I just get the regular menu and no command line. Did I install it incorrectly?
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.40.24-r5
« Reply #4018 on: March 25, 2016, 02:05:36 pm »

Maybe. What OS are you using?
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.24-r5
« Reply #4019 on: March 26, 2016, 11:42:32 pm »

Since I can't target a regional interaction from a creature, is there a way from DFHack to (1) know if it's raining and (2) make it rain on queue?  I already know how to make the script run at the right time, just not how to read/write the weather.

I'm fine with the rain turning out to be snow if it's cold, but if it can be either then it would make more sense for it to be actual liquid rain.


And weather.lua was right there in front of me.  Nevermind me, go about your regular business...
« Last Edit: March 26, 2016, 11:46:41 pm by Dirst »
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
Pages: 1 ... 266 267 [268] 269 270 ... 360