Bay 12 Games Forum

Please login or register.

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

Author Topic: Multi-PRODUCT reactions  (Read 1327 times)

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Multi-PRODUCT reactions
« on: April 10, 2010, 02:03:23 pm »

This is reaction

[REACTION:PEWTER_TRIFLE_MAKING]-----[NAME:refine something out of slag ore]
[BUILDING:SMELTER:NONE]
[REAGENT:A:10:BOULDER:NO_SUBTYPE:NONE:NONE][REACTION_CLASS:OREFLOW]
[PRODUCT:10:1:BOULDER:NO_SUBTYPE:INORGANIC:CALCITE]
[PRODUCT:10:1:BOULDER:NO_SUBTYPE:INORGANIC:OBSIDIAN]
[PRODUCT:15:1:BAR:NO_SUBTYPE:METAL:COPPER][PRODUCT_DIMENSION:150]
[PRODUCT:8:1:BAR:NO_SUBTYPE:METAL:IRON][PRODUCT_DIMENSION:150]
[PRODUCT:5:1:BAR:NO_SUBTYPE:METAL:LEAD][PRODUCT_DIMENSION:150]
[PRODUCT:5:1:BAR:NO_SUBTYPE:METAL:BRONZE][PRODUCT_DIMENSION:150]
[PRODUCT:5:1:BAR:NO_SUBTYPE:METAL:BRASS][PRODUCT_DIMENSION:150]
[PRODUCT:3:1:BAR:NO_SUBTYPE:METAL:SILVER][PRODUCT_DIMENSION:150]
[PRODUCT:2:1:BAR:NO_SUBTYPE:METAL:BLACK_BRONZE][PRODUCT_DIMENSION:150]
[PRODUCT:2:1:BAR:NO_SUBTYPE:METAL:ELECTRUM][PRODUCT_DIMENSION:150]
[PRODUCT:2:1:BAR:NO_SUBTYPE:METAL:ROSE_GOLD][PRODUCT_DIMENSION:150]
[PRODUCT:1:1:BAR:NO_SUBTYPE:METAL:PLATINUM][PRODUCT_DIMENSION:150]
[PRODUCT:5:1:BAR:NO_SUBTYPE:METAL:ALUMINUM][PRODUCT_DIMENSION:150]
[PRODUCT:50:1:BAR:NO_SUBTYPE:ASH:NO_MATGLOSS][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

Visually seems no errors but ingame it looks like that (downsized):


What's wrong?
Logged
Finis sanctificat media.

3

  • Bay Watcher
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #1 on: April 10, 2010, 02:08:25 pm »

Looks like a genuine bug to me; I haven't played around with reactions in .31 yet but I haven't seen that in the past.
Logged

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #2 on: April 10, 2010, 02:09:40 pm »

Looks like a genuine bug to me; I haven't played around with reactions in .31 yet but I haven't seen that in the past.
I didn't seen too, all were ok. And this is the cause of the topic queston. ;-)
Logged
Finis sanctificat media.

random51

  • Bay Watcher
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #3 on: April 10, 2010, 03:06:03 pm »

Looks ok to me, seeing as how you made the same mistake in each product line.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #4 on: April 10, 2010, 03:22:43 pm »

Can't say I've played with reactions much yet, but it looks like it may be printing out all possible productions that the reaction can produce.  It produced Calcite 10% of the time... but it can also produce Obsidian 10% of the time.  So pretend you can only produce those two things...the product possibilities are:
1) Calcite
2) Obsidian
3) Calcite + Obsidian

I think it's just calculating and printing every single possible way that your reaction can produce, from nothing to everything and every possible combination in between.  Just a guess based on what I see, but it looks like it's most likely what's happening.
Logged

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #5 on: April 10, 2010, 03:53:31 pm »

It seems all reactions are broken.

Just look at "Making pig iron bars".

Reagents:
Iron bars [150] - ok, one bar
Stones - must be FLUX
Refined coal [150] - ok, one bar

Products:
Refined coal [150]Pig iron bars


WTF refined coal in products?!

...or at least visualisation of reactions are broken.
Logged
Finis sanctificat media.

Stargrasper

  • Bay Watcher
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #6 on: April 10, 2010, 04:15:19 pm »

It seems all reactions are broken.

Just look at "Making pig iron bars".

Reagents:
Iron bars [150] - ok, one bar
Stones - must be FLUX
Refined coal [150] - ok, one bar

Products:
Refined coal [150]Pig iron bars


WTF refined coal in products?!

...or at least visualisation of reactions are broken.


The Pig Iron reaction in the raws looks fine.  Your modding could conceivably have broken the reaction or its possibly a visualisation error.  Did you just look at the visualisation or did you try it?  What else have you done in the raws?
Logged

Phoebus

  • Bay Watcher
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #7 on: April 10, 2010, 04:46:44 pm »

It seems all reactions are broken.

Just look at "Making pig iron bars".

Reagents:
Iron bars [150] - ok, one bar
Stones - must be FLUX
Refined coal [150] - ok, one bar

Products:
Refined coal [150]Pig iron bars


WTF refined coal in products?!

...or at least visualisation of reactions are broken.

Confirmed: Reactions visualization ingame is broken while raws are ok.
Code: [Select]
[REACTION:PIG_IRON_MAKING]
[NAME:make pig iron bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:IRON]
[REAGENT:B:1:BOULDER:NO_SUBTYPE:NONE:NONE][REACTION_CLASS:FLUX]
[REAGENT:C:150:BAR:NO_SUBTYPE:COAL:NO_MATGLOSS]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:PIG_IRON][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

[REACTION:STEEL_MAKING]
[NAME:make steel bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:IRON]
[REAGENT:B:150:BAR:NO_SUBTYPE:METAL:PIG_IRON]
[REAGENT:C:1:BOULDER:NO_SUBTYPE:NONE:NONE][REACTION_CLASS:FLUX]
[REAGENT:D:150:BAR:NO_SUBTYPE:COAL:NO_MATGLOSS]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STEEL][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]
Logged

Upright Path

  • Bay Watcher
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #8 on: April 10, 2010, 07:23:11 pm »

Refined Coal is the new name for the two different forms of COAL, which are COAL:CHARCOAL and COAL:COKE. This means that you can't use Bituminous Coal or Lignite and whatever other forms of coal there currently are.
Logged

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Multi-PRODUCT reactions
« Reply #9 on: April 10, 2010, 07:54:54 pm »

Okay... this

[PRODUCT:2:1:BAR:NO_SUBTYPE:METAL:ROSE_GOLD][PRODUCT_DIMENSION:150]

I've not used product dimension in a single reaction it affects nothing. So, as far as I'm concerned currently, you don't need it.

Trust me, I've been doing A LOT of reaction testing... see guide...

Anywho, the beginning bit of PRODUCT:2:1:BAR

You see that 2... That isn't the percentage chance a bar is going to be made. It is the percent of "1" that's going to be made. So say you have a PRODUCT:10:1:BAR kinda of deal going. It's going to take that reaction to be ran 10 times to have that product made once. (10x10=100 just in case you didn't know.)

Anywho, that's it. Don't believe me? Fine.
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!

Phoebus

  • Bay Watcher
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #10 on: April 10, 2010, 08:06:49 pm »

Okay... this

[PRODUCT:2:1:BAR:NO_SUBTYPE:METAL:ROSE_GOLD][PRODUCT_DIMENSION:150]

I've not used product dimension in a single reaction it affects nothing. So, as far as I'm concerned currently, you don't need it.

Trust me, I've been doing A LOT of reaction testing... see guide...

Anywho, the beginning bit of PRODUCT:2:1:BAR

You see that 2... That isn't the percentage chance a bar is going to be made. It is the percent of "1" that's going to be made. So say you have a PRODUCT:10:1:BAR kinda of deal going. It's going to take that reaction to be ran 10 times to have that product made once. (10x10=100 just in case you didn't know.)

Anywho, that's it. Don't believe me? Fine.
So it works like melting, internal memory?
Logged

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Multi-PRODUCT reactions
« Reply #11 on: April 10, 2010, 08:07:53 pm »

From the testing I've done. Yes.
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!

Upright Path

  • Bay Watcher
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #12 on: April 10, 2010, 08:22:16 pm »

Well, the thing was he was making threads of it, and the only reaction to make Adamatine threads into bars is the one that requires a thread with 150 dimension.

Currently the Dimensions only matter if you're using the built in Smelting Reactions described in the reactions_smelter folder.

I think there are plans to make it so that the dimension of a bar is actually taken into account. Which could allow you to 'split' a bar when you only need 75 Dims for an item, or 'combine' bars when you don't want them to take up space.
Logged

Grax

  • Bay Watcher
  • The Only.
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #13 on: April 11, 2010, 12:55:37 am »

Anywho, the beginning bit of PRODUCT:2:1:BAR

You see that 2... That isn't the percentage chance a bar is going to be made. It is the percent of "1" that's going to be made. So say you have a PRODUCT:10:1:BAR kinda of deal going. It's going to take that reaction to be ran 10 times to have that product made once. (10x10=100 just in case you didn't know.)

Anywho, that's it. Don't believe me? Fine.

Again. There's no chance storage in DF. Every time it calculates for every reaction.
And quantity stores only when melting metal items (and maybe even in that it isn't stored).
So with 50% chance of product you can get three bars in a row and can get nothing for three times.

The easiest way to prove it - make a reaction with 50% chance for, say, 5 different products, in a freshly started game and use it once.
You'll get some products in the very first use and this contradicts you guess-work.
Logged
Finis sanctificat media.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Multi-PRODUCT reactions
« Reply #14 on: April 11, 2010, 04:56:59 am »

There's no chance storage, I thought there is, but Toady himself revealed the truth. So it may SEEM like there's a chance storage, but it was discussed 1000 times and Toady One finalized it with a clear answer.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository
Pages: [1] 2