Bay 12 Games Forum

Please login or register.

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

Author Topic: Modding questions!  (Read 1603 times)

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Modding questions!
« Reply #15 on: March 19, 2011, 11:01:18 am »

add a [REACTION_CLASS:FLOUR] to the milled product of these plants
1) Anyways, it will work without me needing to add [REACTION_CLASS:FLOUR], huh?

2) Also, with [REACTION_CLASS:FLOUR], it will allow any type of flour, right?
1) For that specific plant's flour, which is a bit silly.
If you take out the specific reference to that plant's flour and add reaction classes as noted, it will allow all types of flour, provided...

2) You have to add it to all of the flour producing plants' milled product material definitions too.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Modding questions!
« Reply #16 on: March 19, 2011, 11:10:25 am »

Like the second.  And on second thought, I think it needs something like reagent:mill_product instead of reagent:plant because plant powder is a different thing than a plant.  Not sure of the actual token, though.

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Modding questions!
« Reply #17 on: March 19, 2011, 11:16:15 am »

Like the second.  And on second thought, I think it needs something like reagent:mill_product instead of reagent:plant because plant powder is a different thing than a plant.  Not sure of the actual token, though.
POWDER_MISC
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Modding questions!
« Reply #18 on: March 19, 2011, 11:17:21 am »

Isn't that for gypsum powder and other types?  I thought there was a specific one for plant powders?

Davichococat

  • Bay Watcher
    • View Profile
Re: Modding questions!
« Reply #19 on: March 19, 2011, 11:28:40 am »

[REACTION:BAKE_CAKE]
   [NAME:bake cake]
   [BUILDING:BAKERY:CUSTOM_SHIFT_C]
   [SKILL:COOK]
   [REAGENT:A:2:MILL:NONE:PLANT_POWDER_TEMPLATE:NONE]
   [REACTION_CLASS:FLOUR]
   [REAGENT:A:2:PLANT:NONE:PLANT_MAT:NONE]

Maybe this?

EDIT: Ohh, looking into the raws, I have another idea.
Spoiler (click to show/hide)

Spoiler (click to show/hide)

Maybe if I add [MATERIAL_REACTION_PRODUCT:FLOUR:MILL:PLANT_POWDER] to the flour-making plants, and [HAS_MATERIAL_REACTION_PRODUCT:FLOUR] to the reaction?
« Last Edit: March 19, 2011, 11:44:09 am by Davichococat »
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Modding questions!
« Reply #20 on: March 19, 2011, 03:04:40 pm »

Isn't that for gypsum powder and other types?  I thought there was a specific one for plant powders?
All powders at the moment are included in that broad overarching POWDER_MISC tag.
   [REAGENT:A:2:POWDER_MISC:NONE:PLANT_MAT:NONE]
   [REACTION_CLASS:FLOUR]
Quote
Maybe if I add [MATERIAL_REACTION_PRODUCT:FLOUR:MILL:PLANT_POWDER] to the flour-making plants, and [HAS_MATERIAL_REACTION_PRODUCT:FLOUR] to the reaction?
Material reaction product is only really meant for "alchemy" with multiple types of input; it specifies the output (when the reaction product is GET_MATERIAL_FROM_REAGENT), with that as the input, as being something else.
It's used to "transmute" INORGANIC:CASSITERITE into INORGANIC:TIN_GLAZE in vanilla.
You've set up that token entirely wrong, but that's of no relevance, as you don't even need to do it that way.
Given that you're not getting the product's material from the reagent, the reactionclass way as we've already described it will work fine.
« Last Edit: March 19, 2011, 03:07:13 pm by Jay »
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Davichococat

  • Bay Watcher
    • View Profile
Re: Modding questions!
« Reply #21 on: March 23, 2011, 12:21:12 pm »

Here's how I set up the thing, but it didnt work. There was no reactions in 'Bakery' workshop.


[REACTION:BAKE_BREAD]
   [NAME:bake bread]
   [BUILDING:BAKERY:CUSTOM_B]
   [SKILL:COOK]
   [REAGENT:A:2:POWDER_MISC:NONE:PLANT_POWDER_TEMPLATE:NONE]
   [REACTION_CLASS:FLOUR]
   [PRODUCT:100:4:PLANT:NONE:PLANT_MAT:BREAD]
   
[REACTION:BAKE_CAKE]
   [NAME:bake cake]
   [BUILDING:BAKERY:CUSTOM_SHIFT_C]
   [SKILL:COOK]
   [REAGENT:A:2:POWDER_MISC:NONE:PLANT_POWDER_TEMPLATE:NONE]
   [REACTION_CLASS:FLOUR]
   [REAGENT:B:2:PLANT:NONE:PLANT_MAT:NONE]
   [PRODUCT:100:6:PLANT:NONE:PLANT_MAT:CAKE]

[REACTION:BAKE_PIE]
   [NAME:bake pie]
   [BUILDING:BAKERY:CUSTOM_P]
   [SKILL:COOK]
   [REAGENT:A:2:POWDER_MISC:NONE:PLANT_POWDER_TEMPLATE:NONE]
   [REACTION_CLASS:FLOUR]
   [REAGENT:B:1:PLANT:NONE:PLANT_MAT:NONE]
   [PRODUCT:100:4:PLANT:NONE:PLANT_MAT:PIE]

[REACTION:BAKE_COOKIES]
   [NAME:bake cookies]
   [BUILDING:BAKERY:CUSTOM_P]
   [SKILL:COOK]
   [REAGENT:A:1:POWDER_MISC:NONE:PLANT_POWDER_TEMPLATE:NONE]
   [REACTION_CLASS:FLOUR]
   [PRODUCT:100:4:PLANT:NONE:PLANT_MAT:COOKIES]

And each plants that can make flour has the 'REACTION:CLASS:FLOUR' as you guys said.

Heres an example.
   [USE_MATERIAL_TEMPLATE:MILL:PLANT_POWDER_TEMPLATE]
      [STATE_NAME_ADJ:ALL_SOLID:dwarven wheat flour]
      [STATE_COLOR:ALL_SOLID:WHITE]
      [DISPLAY_COLOR:7:0:1]
      [MATERIAL_VALUE:20]
      [EDIBLE_VERMIN]
      [EDIBLE_COOKED]
      [PREFIX:NONE]
      [REACTION_CLASS:FLOUR]

Also my errorlog is clean. Am I doing something wrong?
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Modding questions!
« Reply #22 on: March 23, 2011, 04:16:32 pm »

Did you add them to the entity's reaction list?
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Davichococat

  • Bay Watcher
    • View Profile
Re: Modding questions!
« Reply #23 on: March 29, 2011, 06:46:55 pm »

Did you add them to the entity's reaction list?
Yes.
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: Modding questions!
« Reply #24 on: March 29, 2011, 07:44:41 pm »

The flour needs to be in a container, but even so it should be showing up in red.

[REAGENT:A:2:POWDER_MISC:NONE:PLANT_POWDER_TEMPLATE:NONE] can safely be [REAGENT:A:2:POWDER_MISC:NONE:NONE:NONE], since the first only specifies 'powder' anyway. Again, should show up in red regardless (I've been breaking some powder-using reactions for testing this).

You obviously have the bakery building in the entity file... is it called BAKERY in the workshop file?
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Davichococat

  • Bay Watcher
    • View Profile
Re: Modding questions!
« Reply #25 on: March 29, 2011, 08:10:42 pm »

The flour needs to be in a container, but even so it should be showing up in red.

[REAGENT:A:2:POWDER_MISC:NONE:PLANT_POWDER_TEMPLATE:NONE] can safely be [REAGENT:A:2:POWDER_MISC:NONE:NONE:NONE], since the first only specifies 'powder' anyway. Again, should show up in red regardless (I've been breaking some powder-using reactions for testing this).

You obviously have the bakery building in the entity file... is it called BAKERY in the workshop file?

BAKERY is there, I can even build it. Also all the reactions are there. But it don't works. It just don't appears at all.
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: Modding questions!
« Reply #26 on: March 29, 2011, 09:07:20 pm »

You have [PERMITTED_BUILDING:BAKERY] in the entity file?

Try removing all the products and reagents from one of the reactions. I'm pretty sure that the problem is not with the reactions themselves, but if an empty reaction doesn't appear then that would confirm it.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.
Pages: 1 [2]