Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: My custom reaction doesn't appear to work. What's wrong?  (Read 869 times)

Truec

  • Bay Watcher
    • View Profile
My custom reaction doesn't appear to work. What's wrong?
« on: July 30, 2010, 04:32:22 pm »

After finding a pretty nice embark location, lacking coal and not having a great deal of wood, I started thinking about alternate sources of fuel.  So I came up with this:

[REACTION:FLUX_TO_COKE]
[NAME:make coke from flux
[BUILDING:SMELTER:NONE]
[REAGENT:A:2:BOULDER:NO_SUBTYPE:NONE:NONE][REACTION_CLASS:FLUX]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:IRON]
[PRODUCT:100:3:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

However, the reaction doesn't appear at my smelter or in my manager's job list.  Did I do something wrong?
Logged

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: My custom reaction doesn't appear to work. What's wrong?
« Reply #1 on: July 30, 2010, 04:35:53 pm »

[REACTION:FLUX_TO_COKE]
[NAME:make coke from flux <--- is missing a ]
[BUILDING:SMELTER:NONE]
[REAGENT:A:2:BOULDER:NO_SUBTYPE:INORGANIC:NONE][REACTION_CLASS:FLUX]
[REAGENT:B:150:BAR:NO_SUBTYPE:INORGANIC:IRON]
[PRODUCT:100:3:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

Where it says organic, it may or may not work. I'd at least try inorganic on the boulder.

I've always found reagents iffy. If 150 doesn't work for the bar, try 1.

-edit-

Well... I've got to ask... Is the reaction in the entity_default file? Do you have the line

[PERMITTED_REACTION:FLUX_TO_COKE]

???
« Last Edit: July 30, 2010, 04:41:28 pm by Shaostoul »
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

Truec

  • Bay Watcher
    • View Profile
Re: My custom reaction doesn't appear to work. What's wrong?
« Reply #2 on: July 30, 2010, 04:48:55 pm »

Well, that did it.  Figures, it was the missing bit from entity_default, which I never even thought of.  Still need to spend more time getting used to 0.31 modding, I guess.  Missing bracket probably wasn't helping either.  Thanks a bunch.
Logged

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: My custom reaction doesn't appear to work. What's wrong?
« Reply #3 on: July 30, 2010, 04:55:08 pm »

Check out my guide, might give you a lot of help. Wiki and Forum version.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: My custom reaction doesn't appear to work. What's wrong?
« Reply #4 on: July 30, 2010, 05:16:55 pm »

Check out my guide, might give you a lot of help. Wiki and Forum version.

You seem to have the most information on actual products from reactions.

I am trying to find 8 of them:   
    * Emerald dye
    * Dwarven wheat flour
    * Dimple dye
    * Redroot dye
    * Longland flour
    * Sliver dye
    * Dwarven sugar
    * Whip vine flour

Essentially, I am going to modify the mill to be able to make specific things and not just produce what is close.
Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"

devek

  • Bay Watcher
  • [KILL_EVERYTHING]
    • View Profile
Re: My custom reaction doesn't appear to work. What's wrong?
« Reply #5 on: July 30, 2010, 06:26:43 pm »

Disregard, I figured it out.. I just had to read through your wiki guide a second time. My eyes missed that you already had it the first time lol.
Logged
"Why do people rebuild things that they know are going to be destroyed? Why do people cling to life when they know they can't live forever?"

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: My custom reaction doesn't appear to work. What's wrong?
« Reply #6 on: July 30, 2010, 06:51:21 pm »

:P I've tried to include as much information on it as I could at the time. I however have gotten severely sidetracked and haven't spent any more time on it. I'm pretty sure I could include a lot of new reactions.
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!