Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Gem Reaction at Smelter  (Read 1318 times)

Kuli

  • Bay Watcher
  • Born-Again Zefonist
    • View Profile
Gem Reaction at Smelter
« on: May 01, 2008, 11:05:00 am »

I'm trying to make raw gems at my smelter, specifically rock crystals.  However, I can't seem to get the reaction_standard.txt entry worded correctly.  All of my efforts so far have either crashed the game or generated a useless stone called "rock crystal" which is not actually a gem.  Getting the syntax right on these things is not one of my strong points.  Could someone please post what the correct reaction should be?
Logged
"The power of Zefon compels you!"

RP

  • Bay Watcher
    • View Profile
Re: Gem Reaction at Smelter
« Reply #1 on: May 01, 2008, 12:17:00 pm »

If I remember rightly, for rock crystal your reaction should have something like

[PRODUCT:100:1:ROUGH:NO_SUBTYPE:STONE:CRYSTAL_ROCK]

in it. Substitute the appropriate gemstone using the names found in matgloss_stone_gem.txt in your DF/raw/objects subdirectory.

Logged

Kuli

  • Bay Watcher
  • Born-Again Zefonist
    • View Profile
Re: Gem Reaction at Smelter
« Reply #2 on: May 01, 2008, 02:18:00 pm »

ROUGH?  No wonder I couldn't figure it out.  I kept trying to put in STONE or GEM as the item type.  Thank you very much!
Logged
"The power of Zefon compels you!"

Xashikolauk

  • Escaped Lunatic
    • View Profile
Re: Gem Reaction at Smelter
« Reply #3 on: May 03, 2008, 12:58:00 pm »

I have a similar problem: I made a reaction to give me gems, but when the gems come out they show up only as "rough ."  Here's the code I used:

code:
[REACTION:BLUE_GEMS]
[NAME:labor for blue gems]
[SMELTER]
[PRODUCT:33:1:ROUGH:NO_SUBTYPE:STONE:BLUE_GEMSTONE]
[PRODUCT:33:1:ROUGH:NO_SUBTYPE:STONE:BLUE_GEMSTONE]
[PRODUCT:33:1:ROUGH:NO_SUBTYPE:STONE:BLUE_GEMSTONE]
[PRODUCT:5:1:ROUGH:NO_SUBTYPE:STONE:AZURE_JEWEL]

code:

[MATGLOSS_STONE:BLUE_GEMSTONE]
[VALUE:5][COLOR:1:7:1][TILE:15]
[GEM:blue gemstone:STP]

[MATGLOSS_STONE:AZURE_JEWEL]
[VALUE:100][COLOR:3:7:1][TILE:15]
[GEM:azure jewel:STP]


Why don't my gems have names?

Logged

Sparksol

  • Bay Watcher
    • View Profile
Re: Gem Reaction at Smelter
« Reply #4 on: May 04, 2008, 01:08:00 am »

I've used this successfully in the past (not tested in latest version yet, I made a rock crystal monster that drops them instead):

[REACTION:CRYSTAL_ROCK_MAKING]
[NAME:make rock crystal]
[SMELTER]
[PRODUCT:100:2:ROUGH:NO_SUBTYPE:GEM:CRYSTAL_ROCK]

[ May 04, 2008: Message edited by: Sparksol ]

Logged
Religion, over time, tends to diverge. Science tends to converge.
Funny thing about magic, it doesn't consistently go either way.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Gem Reaction at Smelter
« Reply #5 on: May 04, 2008, 02:13:00 am »

if you use "ROUGH", you get rough gems.

Use "SMALLGEM" to get small gems cuttable at jeweller's or use "GEM" to get large gemstones.

Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Metalax

  • Bay Watcher
    • View Profile
    • Steam Profile
Re: Gem Reaction at Smelter
« Reply #6 on: May 04, 2008, 04:23:00 am »

I'll run through anything that I can think of that might cause the problem. Showing up as "rough ." would seem to imply that DF is not finding the material definitions for your gemstones.

Ok your gem definitions themselves look fine, they shouldn't spawn anywhere on their own as they have no enviroment tags, which I assume is desired behaviour. Have you stuck them in a file with

code:
matgloss_stone_gem <- replace with name of file

[OBJECT:MATGLOSS]


at the top?

Similarly your reaction looks fine. From what you've said you have the reaction showing up but with incorrect products. Have you placed it in a file with

code:
reaction_standard <- replace with name of file

[OBJECT:REACTION]



at the top?

Finally have you generated a new world after making the changes?

Logged
In the beginning was the word, and the word was "Oops!"