Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: clear glass mod  (Read 988 times)

andfhe

  • Bay Watcher
    • View Profile
clear glass mod
« on: August 12, 2010, 05:59:48 pm »

I've been trying to cheat create a mod for free clear glass(I prefer it to crystal glass, I've no idea why) but when I order at the smelter, someone goes to do it, but when they finish, noting is made. This is what I came up with;

Code: [Select]
[REACTION:CREATE_CLEAR_GLASS]
[NAME:Make clear glass]
[SMELTER]
[PRODUCT:100:10:NONE:GLASS_CLEAR:BLOCKS]

What did I do wrong?
Logged
Well if you remove the [MULTIPLE_LITTER_RARE] tag from dwarves I think they have like 2-4 children each time they give birth. And if you get enough mothers up on the pillars you can probably get a good waterfall going.

MiamiBryce

  • Bay Watcher
    • View Profile
Re: clear glass mod
« Reply #1 on: August 12, 2010, 06:07:26 pm »

Try swapping NONE and BLOCKS.

    [PRODUCT:100:1:BLOCKS:NO_SUBTYPE:GLASS_CRYSTAL:NONE]

Sorry bout that last post, I hit some key combo and all the sudden it posted what i had before i could organize my thoughts.


« Last Edit: August 12, 2010, 06:11:15 pm by MiamiBryce »
Logged

andfhe

  • Bay Watcher
    • View Profile
Re: clear glass mod
« Reply #2 on: August 12, 2010, 06:09:49 pm »

Not much of  detailed post that, but I think I got what your saying.

I haven't tested it yet, but thanks.
Logged
Well if you remove the [MULTIPLE_LITTER_RARE] tag from dwarves I think they have like 2-4 children each time they give birth. And if you get enough mothers up on the pillars you can probably get a good waterfall going.

andfhe

  • Bay Watcher
    • View Profile
Re: clear glass mod
« Reply #3 on: August 12, 2010, 06:12:50 pm »

Alright it works, awesome.

Edit: What does this part in reactions mean?

Code: [Select]
:100:1:
I understand the rest but not that part.
« Last Edit: August 12, 2010, 06:23:03 pm by andfhe »
Logged
Well if you remove the [MULTIPLE_LITTER_RARE] tag from dwarves I think they have like 2-4 children each time they give birth. And if you get enough mothers up on the pillars you can probably get a good waterfall going.

Evergod41

  • Bay Watcher
    • View Profile
Re: clear glass mod
« Reply #4 on: August 12, 2010, 06:35:15 pm »

:[%of working]:[i dont really know, i think #]:

so
:50:5:
gives a %50 chance of getting 5 items...

andfhe

  • Bay Watcher
    • View Profile
Re: clear glass mod
« Reply #5 on: August 12, 2010, 06:46:20 pm »

:[%of working]:[i dont really know, i think #]:

so
:50:5:
gives a %50 chance of getting 5 items...


So, if I changed it to :100:20: I'd get a 100% chance of getting 20? That's much more time efficient.

I just modified a diamond reaction I found on the wiki, I didn't actually know why it said :100:10: when the other default ones just said :100:1:
« Last Edit: August 12, 2010, 06:48:58 pm by andfhe »
Logged
Well if you remove the [MULTIPLE_LITTER_RARE] tag from dwarves I think they have like 2-4 children each time they give birth. And if you get enough mothers up on the pillars you can probably get a good waterfall going.

Shurhaian

  • Bay Watcher
    • View Profile
Re: clear glass mod
« Reply #6 on: August 14, 2010, 01:04:17 pm »

That's exactly what the first two numbers mean.

You can use this to make a variable number of products, e.g.:

[PRODUCT:100:1:BLOCKS:NO_SUBTYPE:GLASS_CRYSTAL:NONE]
[PRODUCT:80:1:BLOCKS:NO_SUBTYPE:GLASS_CRYSTAL:NONE]
[PRODUCT:60:1:BLOCKS:NO_SUBTYPE:GLASS_CRYSTAL:NONE]

...would always produce at least one, probably produce a second, and have better than even odds of producing a third.

Not really suitable for your purpose, but that's what it does.
Logged
Working on: drakes - making the skies(mostly) a bit more varied

My guards need something better to do than make my nobles happy with hugs and justice.

krenshala

  • Bay Watcher
    • View Profile
Re: clear glass mod
« Reply #7 on: August 26, 2010, 04:15:06 pm »

This is how some of the ores give 100% chance of one thing, and an X% chance of a second bar of something else, isn't it?

The more I learn about DF the more impressed I am with Toady's work. ;)
Logged
Quote from: Haspen
Quote from: phoenixuk
Zepave Dawnhogs the Butterfly of Vales the Marsh Titan ... was taken out by a single novice axedwarf and his pet war kitten. Long Live Domas Etasastesh Adilloram, slayer of the snow butterfly!
Doesn't quite have the ring of heroics to it...
Mother: "...and after the evil snow butterfly was defeated, Domas and his kitten lived happily ever after!"
Kids: "Yaaaay!"

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: clear glass mod
« Reply #8 on: August 26, 2010, 04:23:28 pm »

Also it's not BLOCKS, you want either ROUGH for a rough gem or GEM or SMALLGEM for large gem or gem.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Shurhaian

  • Bay Watcher
    • View Profile
Re: clear glass mod
« Reply #9 on: August 26, 2010, 05:05:01 pm »

Also it's not BLOCKS, you want either ROUGH for a rough gem or GEM or SMALLGEM for large gem or gem.

...unless you really do want blocks. Since you can't build with gems, can't do anything but practice gemcutting and gemsetting, this is entirely possible. Blocks can be used to e.g. make a glass tower; gems could only be used to make the windows.

Since the glass furnace produces glass directly in its appropriate form, rather than working raw or cut glass, you will need to have your reaction produce whatever it is that you need.
« Last Edit: August 26, 2010, 05:06:39 pm by Shurhaian »
Logged
Working on: drakes - making the skies(mostly) a bit more varied

My guards need something better to do than make my nobles happy with hugs and justice.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: clear glass mod
« Reply #10 on: August 26, 2010, 05:06:18 pm »

You can make windows out of gems, that's the main way I use glass :).

I just pointed out that original glass is the gem. But why should we stop at blocks. Let's make glass beds and bars :P. There was a glass mod some time ago.

Code: [Select]
[REACTION:CRAFT_CLEAR_GLASS_BED]
[NAME:craft clear glass bed]
[BUILDING:FURNITURE_WORKSHOP:CUSTOM_SHIFT_C]
[REAGENT:A:2:ROUGH:NONE:GLASS_CLEAR:NONE]
[REAGENT:B:1:CLOTH:NONE:NONE:NONE]
[PRODUCT:100:1:BED:NONE:GLASS_CLEAR:NONE]
[SKILL:CUTGEM]

[REACTION:CRAFT_GREEN_GLASS_BED]
[NAME:craft green glass bed]
[BUILDING:FURNITURE_WORKSHOP:CUSTOM_SHIFT_G]
[REAGENT:A:2:ROUGH:NONE:GLASS_GREEN:NONE]
[REAGENT:B:1:CLOTH:NONE:NONE:NONE]
[PRODUCT:100:1:BED:NONE:GLASS_GREEN:NONE]
[SKILL:CUTGEM]

[REACTION:CRAFT_CRYSTAL_GLASS_BED]
[NAME:craft crystal glass bed]
[BUILDING:FURNITURE_WORKSHOP:CUSTOM_SHIFT_Y]
[REAGENT:A:2:ROUGH:NONE:GLASS_CRYSTAL:NONE]
[REAGENT:B:1:CLOTH:NONE:NONE:NONE]
[PRODUCT:100:1:BED:NONE:GLASS_CRYSTAL:NONE]
[SKILL:CUTGEM]

[REACTION:CRAFT_CLEAR_GLASS_GRATE]
[NAME:craft clear glass grate]
[BUILDING:FURNITURE_WORKSHOP:CUSTOM_SHIFT_L]
[REAGENT:A:1:ROUGH:NONE:GLASS_CLEAR:NONE]
[PRODUCT:100:1:GRATE:NONE:GLASS_CLEAR:NONE]
[SKILL:CUTGEM]

[REACTION:CRAFT_GREEN_GLASS_GRATE]
[NAME:craft green glass grate]
[BUILDING:FURNITURE_WORKSHOP:CUSTOM_SHIFT_R]
[REAGENT:A:1:ROUGH:NONE:GLASS_GREEN:NONE]
[PRODUCT:100:1:GRATE:NONE:GLASS_GREEN:NONE]
[SKILL:CUTGEM]

[REACTION:CRAFT_CRYSTAL_GLASS_GRATE]
[NAME:craft crystal glass grate]
[BUILDING:FURNITURE_WORKSHOP:CUSTOM_SHIFT_S]
[REAGENT:A:1:ROUGH:NONE:GLASS_CRYSTAL:NONE]
[PRODUCT:100:1:GRATE:NONE:GLASS_CRYSTAL:NONE]
[SKILL:CUTGEM]

Note that it uses FURNITURE_WORKSHOP which is a custom workshop from Genesis. Put there any workshop you want to use.
« Last Edit: August 26, 2010, 05:08:21 pm by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository