Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Will this reaction and material work?  (Read 1354 times)

Master Catfish

  • Bay Watcher
    • View Profile
Will this reaction and material work?
« on: May 23, 2015, 08:44:39 pm »

It's been several years since I've done any real altering in the RAWs, so I need to make sure this works.  I'm trying to make a type of metal that I can use for my fortresses if I can't find anything decent underground, so it's mostly from organic parts.  It's supposed to be a metal created by dark magic. 

The metal: (essentially just bronze with a new name and color)
Spoiler (click to show/hide)

The reaction: (this is where I probably got things wrong)
Spoiler (click to show/hide)


I'd love to give anyone who uses or creates it a mild syndrome too, but I'm not sure how to do that. (A non lethal, long-lasting bleeding from the eyes and hands would be fantastic)

Help is much appreciated!
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Will this reaction and material work?
« Reply #1 on: May 23, 2015, 08:52:47 pm »

"folder name is inorganic_custom"

it should just say "inorganic_custom" and shouldn't be in any folders

>UCT_DIMENSION

? What's that trying to do?

[FUEL]NONE][REAGENT-tallow-150-GLOB-NONE-NONE-NONE][REACTION_CLASS-TALLOW][UNROTTEN][HAS_MATERIAL_REACTION_PRODUCT-SOAP_MAT][PRODUCT-100-8-BAR-NO_SUBTYPE-METAL-GLIMMER][PROD

...can you explain this to me?

I'm going to guess this is what you want:

Code: [Select]
[REACTION:GLIMMER_MAKING]
[NAME:make glimmer bars]
[BUILDING:SMELTER:NONE]
[REAGENT:wax:150:GLOB:NONE:NONE:NONE]
[REACTION_CLASS:WAX]
[REAGENT:gem:1:SMALLGEM:NONE:NONE:NONE]
[REAGENT:tallow:150:GLOB:NONE:NONE:NONE][UNROTTEN][HAS_MATERIAL_REACTION_PRODUCT:SOAP_MAT]
[PRODUCT:100:8:BAR:NO_SUBTYPE:INORGANIC:GLIMMER][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:ALCHEMY]
« Last Edit: May 23, 2015, 08:55:03 pm by Putnam »
Logged

Master Catfish

  • Bay Watcher
    • View Profile
Re: Will this reaction and material work?
« Reply #2 on: May 23, 2015, 09:44:36 pm »

...can you explain this to me?
No, I have no idea what happened there.  Probably a copy paste accident.  Looks like I didn't proofread what went into the code.  My apologies.  I meant 'file' when I said folder. 

And yes, that code looks like what I want.  What I have currently is actually this:

Spoiler (click to show/hide)

Is [REACTION_CLASS:TALLOW] going to cause problems, then?  I see that you don't have it in yours.  I copy-pasted what I saw in the soap reaction, which is why it went into mine. 

If I want to use uncut gems, can I use [REAGENT:gem:1:LARGEGEM:NONE:INORGANIC:NONE]?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Will this reaction and material work?
« Reply #3 on: May 23, 2015, 09:46:07 pm »

I'm not sure if there is a TALLOW reaction class, and the only GLOBs with SOAP_MAP are TALLOW anyway, so I figured it was either redundant or going to break it. If it's in the soap reaction, then use it. Uncut gems are ROUGH, not LARGEGEM.

Master Catfish

  • Bay Watcher
    • View Profile
Re: Will this reaction and material work?
« Reply #4 on: May 23, 2015, 11:00:30 pm »

So, I tried the reaction in a game, and it didn't appear as an option at the smelter.  The metal was also not present in any of the items available for embark. 

I tried once with the separate files and once with the code put directly into the existing raws (reaction_smelter and inorganic_metal).  Same result in both cases.  I didn't bother to collect all the items necessary for it, though.  Is it possible that the reaction wouldn't appear until all of the reagents are available?
« Last Edit: May 23, 2015, 11:03:39 pm by Master Catfish »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Will this reaction and material work?
« Reply #5 on: May 23, 2015, 11:06:14 pm »

You make sure to add it to the dwarf entity (MOUNTAIN in entity_default.txt)?

Master Catfish

  • Bay Watcher
    • View Profile
Re: Will this reaction and material work?
« Reply #6 on: May 23, 2015, 11:11:48 pm »

I did not do that - thanks!  I'll check if it works.

Also, thanks for all the super helpful and rapid respsonses!

[Edit: It does appear to be showing up in the smelter menu now.  Also glimmer is now appearing as a material on my embark list.  Awesome!  Now I just need a syndrome.  I'll get to work on that!]
« Last Edit: May 24, 2015, 01:10:01 am by Master Catfish »
Logged

Master Catfish

  • Bay Watcher
    • View Profile
Re: Will this reaction and material work?
« Reply #7 on: May 24, 2015, 02:03:17 am »

For the syndrome, are these adjustments likely to work?

Spoiler (click to show/hide)

Spoiler (click to show/hide)

My intention here is to give two chances for all of the syndromes to occur (2 bars of glimmerrot is made), to emulate a much wider variance of severity.  So there's a good chance eyes and hands will bleed, a lower chance that bleeding will be severe, and a small chance the eyes will rot (and a tiny chance they'll rot rapidly).
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Will this reaction and material work?
« Reply #8 on: May 24, 2015, 02:05:49 am »

LOCALIZED refers to "contact area", not to body part. What you want is BP:BY_TYPE:GRASP etc.

Master Catfish

  • Bay Watcher
    • View Profile
Re: Will this reaction and material work?
« Reply #9 on: May 24, 2015, 01:49:11 pm »

Thank you!  I'll try it out soon and get back to you on how it worked.

On a side note...
I'm not 100% sure, but have you changed your avatar at least once between every time I posted?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Will this reaction and material work?
« Reply #10 on: May 24, 2015, 01:51:36 pm »

I don't change the avatar, I use a service to automatically switch them every time I refresh.

Master Catfish

  • Bay Watcher
    • View Profile
Re: Will this reaction and material work?
« Reply #11 on: May 25, 2015, 01:15:43 pm »

A wizard indeed!

I did more testing, and the reaction/metal definitely work as intended, with the exception of the symptom.  Glimmer is made (now I just have to try to make it more balanced) and so is glimmerrot.  The latter instantly turns into steam, as intended.  However, it seems not to apply any symptom at all.  I'm not married to the specific effects, but I would like -something- to happen.  I wonder if...
Code: [Select]
[SYN_INHALED][SYN_CONTACT][ENTERS_BLOOD] ...might be conflicting somehow?  Could it be that the contact area has to also be on the eyes or hand to have an effect?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Will this reaction and material work?
« Reply #12 on: May 25, 2015, 01:20:13 pm »

It's pretty much random whether or not it actually happens. You may want to remove ENTERS_BLOOD.

Master Catfish

  • Bay Watcher
    • View Profile
Re: Will this reaction and material work?
« Reply #13 on: May 25, 2015, 09:40:42 pm »

For easier testing, I adjusted the syndrome to this:
Quote
[SYNDROME]
   [SYN_NAME:glimmer dust]
   [SYN_AFFECTED_CLASS:GENERAL_POISON]
   [SYN_INHALED][SYN_CONTACT]
   [CE_BLEEDING:SEV:10:PROB:45:BP:BY_TYPE:GRASP:RESISTABLE:START:1000:PEAK:2000:END:201600]
   [CE_BLEEDING:SEV:10:PROB:45:BP:BY_TYPE:SIGHT:RESISTABLE:START:1000:PEAK:2000:END:201600]
   [CE_NECROSIS:SEV:100:PROB:100:BP:BY_TYPE:SIGHT:ESISTABLE:START:10:PEAK:1500:END:5000]

No effect on the dwarves, unfortunately. 
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Will this reaction and material work?
« Reply #14 on: May 25, 2015, 09:56:12 pm »

BP:BY_TYPE:GRASP:ALL. You need to include the tissues, too.

You may want to be checking errorlog.txt in your base folder.
Pages: [1] 2