Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Why the products have 0% of material?  (Read 626 times)

waterphage13

  • Bay Watcher
    • View Profile
Why the products have 0% of material?
« on: September 11, 2018, 01:11:47 pm »

[REACTION:MAKE_CARPETIO]
   [NAME:make dwarven carpet (tier 1)]
   [BUILDING:CARPET:NONE]
   [REAGENT:B:25000:CLOTH:NONE:NONE:NONE]
      [ANY_PLANT_MATERIAL]
   [REAGENT:D:15000:THREAD:NONE:NONE:NONE]
      [ANY_PLANT_MATERIAL]
   [REAGENT:dye:600:POWDER_MISC:NONE:PLANT_MAT:MUSHROOM_CUP_DIMPLE:MILL]
   [REAGENT:bag:1:NONE:NONE:NONE:NONE]
      [CONTAINS:dye]
      [PRESERVE_REAGENT]
   [REAGENT:A:1:BLOCKS:NONE:NONE:NONE]
   [PRODUCT:bar:1:BAR:NONE:INORGANIC:CARPETI0]
   [SKILL:MILLING]

[INORGANIC:CARPETI0]
   [USE_MATERIAL_TEMPLATE:THREAD_PLANT_TEMPLATE] [DISPLAY_COLOR:7:0:1]
   [STATE_NAME:ALL:Dwarven carpet (tier 1) (point)]
   [STATE_NAME_ADJ:ALL:Dwarven carpet (tier 1) (point)]
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Why the products have 0% of material?
« Reply #1 on: September 11, 2018, 03:40:30 pm »

0% of material? what does that mean

also

[PRODUCT:bar:1:BAR:NONE:INORGANIC:CARPETI0] is wrong on two counts

error number 1, it's a big one

[PRODUCT:bar
[PRODUCT:100

Products are not like reagents they don't have ids there is a special token to id a product and it's [PRODUCT_TOKEN:id]. so it's [PRODUCT:percentChance:amount:ItemType:SubItemType:Material:SubMaterial]

1:BAR
150:BAR

BAR and various other item types (you can tell what ones those are if you wiki Item Token) is in dimensions of 150 if you want to use "1" please use [PRODUCT_DIMENSION:150] this token basically means Amount X PRODUCT_DIMENSION (so 1 x 150)

EDIT also cloth is by 10000
« Last Edit: September 11, 2018, 04:09:12 pm by Hugo_The_Dwarf »
Logged

waterphage13

  • Bay Watcher
    • View Profile
Re: Why the products have 0% of material?
« Reply #2 on: September 11, 2018, 08:48:44 pm »

Thanks.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Why the products have 0% of material?
« Reply #3 on: September 13, 2018, 06:11:05 pm »

1:BAR
150:BAR

BAR and various other item types (you can tell what ones those are if you wiki Item Token) is in dimensions of 150 if you want to use "1" please use [PRODUCT_DIMENSION:150] this token basically means Amount X PRODUCT_DIMENSION (so 1 x 150)
Actually, with a PRODUCT, you must use 1:BAR and [PRODUCT_DIMENSION:150], otherwise it will produce 150 bars with dimension 1/150 - it's only with REAGENTs that you'd do "150:BAR".
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Why the products have 0% of material?
« Reply #4 on: September 13, 2018, 07:05:55 pm »

Explains why the adv.mode reaction I used gave me a ton of bars. Thanks good to know.
Logged

waterphage13

  • Bay Watcher
    • View Profile
Re: Why the products have 0% of material?
« Reply #5 on: September 15, 2018, 09:48:40 am »

How many POWDER_MISC in a one dimple dye?
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Why the products have 0% of material?
« Reply #6 on: September 15, 2018, 12:18:11 pm »

As noted on the wiki, POWDER_MISC items (as well as BAR, LIQUID_MISC, DRINK, and GLOB) have a dimension of 150, while CLOTH has 10000 (as noted above) and THREAD has 15000.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.