Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: What does IS_GLASS do?  (Read 1398 times)

deepspaceprobe9

  • Bay Watcher
  • "Personal" Text
    • View Profile
What does IS_GLASS do?
« on: November 30, 2014, 10:57:10 pm »

I have a tree-people race that can use a glass-type material to create weapons, but you cannot melt bars of it down, and you cannot make anything out of it at a forge. I have confirmed its presence in the game through both DFHack and reactions to produce it.

Spoiler (click to show/hide)
Logged
   (*) Stopped zombies from interrupting your sleep to ask if they can help you with something

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: What does IS_GLASS do?
« Reply #1 on: November 30, 2014, 11:02:09 pm »

I believe it lets you make windows out of it.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

smeeprocket

  • Bay Watcher
  • Collectivist Socialist Feminist Freeloader
    • View Profile
Re: What does IS_GLASS do?
« Reply #2 on: December 01, 2014, 10:20:09 am »

glass can make trap components and a lot of other things, as well. But I don't think it can make weapons in vanilla.

You can make most furniture out of glass and it has an okay value. I usually make terrariums so my animals have nice cages.

I've used glass for the pieces for a screw pump to pump magma, as well, as it is magma safe.
Logged
Steam Name: Ratpocalypse
Transpersons and intersex persons mod for Fortress mode of DF: http://dffd.wimbli.com/file.php?id=10204

Twitch: http://www.twitch.tv/princessslaughter/

"I can't wait to throw your corpse on to a jump pad and watch it take to the air like a child's imagination."

Button

  • Bay Watcher
  • Plants Specialist
    • View Profile
Re: What does IS_GLASS do?
« Reply #3 on: December 01, 2014, 11:37:36 am »

I believe the [IS_GLASS] tag just lets mooding dwarves know that they can use a "boulder" of that material when they have a strange mood that requires glass.

To make weapons out of it, you'll need to make a custom reaction.
Logged
I used to work on Modest Mod and Plant Fixes.

Always assume I'm not seriously back

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: What does IS_GLASS do?
« Reply #4 on: December 01, 2014, 11:45:54 am »

I think having IS_METAL and IS_GLASS in the same material may be the problem.  And the MAX_EDGE is excessively high... try something like 100000.

You have ITEMS_HARD twice, and I think that ITEMS_BARRED and ITEMS_SCALED are redundant with ITEMS_HARD.

Out of curiosity, did you need to make a custom workshop to use the glass-making reaction?
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

Ladygolem

  • Bay Watcher
    • View Profile
Re: What does IS_GLASS do?
« Reply #5 on: December 01, 2014, 03:14:53 pm »

Doesn't ITEMS_BARRED and ITEMS_SCALED simply mean that it will be used for things made out of bone and shell, respectively? Like a dwarf told to  "Make bone crafts" will consider treekin glass as a suitable material to use.

deepspaceprobe9

  • Bay Watcher
  • "Personal" Text
    • View Profile
Re: What does IS_GLASS do?
« Reply #6 on: December 01, 2014, 07:46:32 pm »

To Dirst: I did, in fact have to make a custom workshop to use the glass-making reaction, along with reactions, though I suspect I could have attached them to the existing glass furnace. Also, The maxedge is insanely high on purpose, as  I was meaning to make a material that was extremely dangerous to unarmoured enemies, but not a very big threat to properly equiped foes. I've also done some slight modifications that have it show up in arena mode.
Treekin Glass:
Spoiler (click to show/hide)
Note: Having ITEMS_HARD twice did not seem to do much.
The buildings:
Spoiler (click to show/hide)
The Wood Diviner has no BUILD_ITEM on purpose

The Reactions:
Spoiler (click to show/hide)
Note: The reactions are all labled green glass because that's what they originally were.
Note2: Glasstest was to test if the reaction worked, as I am new to reaction modding.
Logged
   (*) Stopped zombies from interrupting your sleep to ask if they can help you with something

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: What does IS_GLASS do?
« Reply #7 on: December 02, 2014, 10:35:21 am »

Doesn't ITEMS_BARRED and ITEMS_SCALED simply mean that it will be used for things made out of bone and shell, respectively? Like a dwarf told to  "Make bone crafts" will consider treekin glass as a suitable material to use.
ITEMS_BARRED and ITEMS_SCALED are only used for bone/shell armor (and correspond to [BARRED] and [SCALED] within armor itemdefs) - they are not used for things like crafts.
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.

Ladygolem

  • Bay Watcher
    • View Profile
Re: What does IS_GLASS do?
« Reply #8 on: December 02, 2014, 01:13:56 pm »

My mistake. Listen to them, not me, I'm quite new to all of this!

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: What does IS_GLASS do?
« Reply #9 on: December 03, 2014, 11:25:31 am »

As for IS_GLASS itself, I'm pretty sure the only thing it does is affect how certain things are named - for example, it'll turn flasks into vials, doors into portals, chests into boxes, and cages into terrariums (though it probably won't affect the item's display tile). It might also permit said terrariums to be filled with water (unless that code is hardcoded to handle the 3 builtin glass types).
« Last Edit: December 03, 2014, 11:30:16 am by Quietust »
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.