Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Did something change in regards to HEAD_DAM and COLD_DAM?  (Read 720 times)

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist

In 34.11 I was using this material. It has a set temperature slightly higher than its heat-damage point and takes constant damage, till it disappears about 1 ingame month later.

This does not work in 43.03. I even ramped it up to 250 points of difference, it should be destroyed instantly... but nothing happens.

I do play with temperature on, and spawned the items using createitem. I tried logs, boulders, weapons, armors... nothing.

Anyone knows whats up with that?

Quote
[INORGANIC:EMPYREAN]
   [USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
   [STATE_NAME_ADJ:ALL_SOLID:empyrean]
   [STATE_NAME_ADJ:LIQUID:molten empyrean]
   [STATE_NAME_ADJ:GAS:boiling empyrean]
   [DISPLAY_COLOR:0:7:1]   [BUILD_COLOR:0:3:0]
   [MATERIAL_VALUE:0]
   [SPEC_HEAT:500]
   [MELTING_POINT:12718]
   [BOILING_POINT:14968]
   [MAT_FIXED_TEMP:10104]
   [HEATDAM_POINT:10100]

   [SOLID_DENSITY:7850]
   [LIQUID_DENSITY:6980]
   [MOLAR_MASS:55845]
   [IMPACT_YIELD:1505000]
   [IMPACT_FRACTURE:2520000]
   [IMPACT_STRAIN_AT_YIELD:940]
   [COMPRESSIVE_YIELD:1505000]
   [COMPRESSIVE_FRACTURE:2520000]
   [COMPRESSIVE_STRAIN_AT_YIELD:940] 160
   [TENSILE_YIELD:430000]
   [TENSILE_FRACTURE:720000]
   [TENSILE_STRAIN_AT_YIELD:225] 200
   [TORSION_YIELD:430000]
   [TORSION_FRACTURE:720000]
   [TORSION_STRAIN_AT_YIELD:215]
   [SHEAR_YIELD:430000]
   [SHEAR_FRACTURE:720000]
   [SHEAR_STRAIN_AT_YIELD:215] no data, used 200
   [BENDING_YIELD:430000]
   [BENDING_FRACTURE:720000]
   [BENDING_STRAIN_AT_YIELD:215]
   [MAX_EDGE:10000]
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 :::

Halnoth

  • Bay Watcher
  • Plan for the Worst. Hope for the Best. Have Fun!
    • View Profile
Re: Did something change in regards to HEAD_DAM and COLD_DAM?
« Reply #1 on: July 31, 2016, 01:27:34 am »

In 34.11 I was using this material. It has a set temperature slightly higher than its heat-damage point and takes constant damage, till it disappears about 1 ingame month later.

This does not work in 43.03. I even ramped it up to 250 points of difference, it should be destroyed instantly... but nothing happens.

I do play with temperature on, and spawned the items using createitem. I tried logs, boulders, weapons, armors... nothing.

Anyone knows whats up with that?

Quote
[INORGANIC:EMPYREAN]
   [USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
   [STATE_NAME_ADJ:ALL_SOLID:empyrean]
   [STATE_NAME_ADJ:LIQUID:molten empyrean]
   [STATE_NAME_ADJ:GAS:boiling empyrean]
   [DISPLAY_COLOR:0:7:1]   [BUILD_COLOR:0:3:0]
   [MATERIAL_VALUE:0]
   [SPEC_HEAT:500]
   [MELTING_POINT:12718]
   [BOILING_POINT:14968]
   [MAT_FIXED_TEMP:10104]
   [HEATDAM_POINT:10100]

   [SOLID_DENSITY:7850]
   [LIQUID_DENSITY:6980]
   [MOLAR_MASS:55845]
   [IMPACT_YIELD:1505000]
   [IMPACT_FRACTURE:2520000]
   [IMPACT_STRAIN_AT_YIELD:940]
   [COMPRESSIVE_YIELD:1505000]
   [COMPRESSIVE_FRACTURE:2520000]
   [COMPRESSIVE_STRAIN_AT_YIELD:940] 160
   [TENSILE_YIELD:430000]
   [TENSILE_FRACTURE:720000]
   [TENSILE_STRAIN_AT_YIELD:225] 200
   [TORSION_YIELD:430000]
   [TORSION_FRACTURE:720000]
   [TORSION_STRAIN_AT_YIELD:215]
   [SHEAR_YIELD:430000]
   [SHEAR_FRACTURE:720000]
   [SHEAR_STRAIN_AT_YIELD:215] no data, used 200
   [BENDING_YIELD:430000]
   [BENDING_FRACTURE:720000]
   [BENDING_STRAIN_AT_YIELD:215]
   [MAX_EDGE:10000]

Well I would try a few things;

1. Create the item via reaction instead of with dfhack. Maybe its an issue with dfhack.
2. Add HEATDAM_POINT to nethercap with the appropriate value and see if it works with a material native to vanilla. Also try Cold dam point. If it doesn't work with the nether cap then 1 of those tags is broken. Either the dam point tags or the mat fixed temp tag.
3. To see if its the MAT_FIXED_TEMP tag try using a nethercap door to block magma. If the tag is broken then the door should burn up.

I would do those in order. Make sure to get rid of the heat and cold dam tags from the nethercap raws after completing step 2 so as not to contaminate the experiment.

If one of the tags is broken you ought to file a bug report. This might be a side effect of the new armor damage code.

Edit: I suppose if the MAT_FIXED_TEMP works then it could also mean that Toady changed it so that HEATDAM_POINT must be > MAT_FIXED_TEMP for the tag to function, but that seems a little unlikely because I can't really think of a reason Toady would want to stop an item from damaging itself.

Edit 2: Actually, and oddly, that might be where the new armor damage system comes in. Maybe Toady put some code in that prohibits an item from damaging itself. I don't know, I'm just trying to troubleshoot.
« Last Edit: July 31, 2016, 01:38:39 am by Halnoth »
Logged
One of the dwarfs walked in front of Thor to get a better view of the prye, and Thor kicked him irritably into the middle of the flames, which made Thor feel slightly better and made all the dwarfs feel much worse.

Cloth Armor Mod http://www.bay12forums.com/smf/index.php?topic=158967.msg7063531#msg7063531

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Did something change in regards to HEAD_DAM and COLD_DAM?
« Reply #2 on: July 31, 2016, 08:09:21 am »

Useful info: if an item's material has a FIXED_TEMP, its temperature will not change under any circumstances. What this means is that if you modify a material's fixed temperature, any existing items made from it will retain whatever temperature they had before the material was modified.

Not sure if this is what's causing your problem, but it's still an important thing to remember when testing mods.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.