Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 116 117 [118] 119 120 ... 247

Author Topic: [MODDING] 0.40.x QUESTIONS THREAD  (Read 333443 times)

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1755 on: December 23, 2014, 07:50:56 pm »

I believe that it is LIQUID_MISC

It may help if we could see your reaction.
Logged

asnys

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1756 on: December 23, 2014, 07:59:44 pm »

The reaction that produces syrup is:

Spoiler (click to show/hide)

The reaction that consumes syrup is:

Spoiler (click to show/hide)

And I changed the sweet pod code to:

Spoiler (click to show/hide)

Right now, the MAKE_SUGAR reaction works, except that it leaves behind a bag of sugar and an empty barrel.   The second reaction is redded out.
« Last Edit: December 23, 2014, 09:18:20 pm by asnys »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1757 on: December 23, 2014, 08:03:49 pm »

Liquids misc. are held in buckets, not barrels, usually.

But then there are barrels of ichor and such. Hmm.

Ladygolem

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1758 on: December 23, 2014, 08:41:57 pm »

Isn't ichor just a replacement for blood in arthropod creatures? That would explain why it's stored in barrels.

asnys

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1759 on: December 23, 2014, 08:44:40 pm »

Dwarven syrup is ordinarily stored in barrels - it's made using the "process plants (barrel)" command at the farmer's workshop.
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1760 on: December 23, 2014, 08:52:21 pm »

Can't say I know why your barrel stays empty, but your second reaction has a few errors. EDIT: Wait, I just found it. Hopefully. The problem is likely in the plant definition. It's just a minor spelling mistake. [MATERIAL_REACTION_PRODUCT:SYRUP_MAT:LCOAL_PLANT_MAT:SYRUP]

The second reaction calls for a reagent with [HAS_MATERIAL_REACTION_PRODUCT:RUM_MAT], but you do not have a RUM_MAT in the plant.

Additionally, DRINK_NONE in the product line should be DRINK:NONE
« Last Edit: December 23, 2014, 08:55:45 pm by BlackFlyme »
Logged

asnys

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1761 on: December 23, 2014, 09:16:58 pm »

Can't say I know why your barrel stays empty, but your second reaction has a few errors. EDIT: Wait, I just found it. Hopefully. The problem is likely in the plant definition. It's just a minor spelling mistake. [MATERIAL_REACTION_PRODUCT:SYRUP_MAT:LCOAL_PLANT_MAT:SYRUP]

The second reaction calls for a reagent with [HAS_MATERIAL_REACTION_PRODUCT:RUM_MAT], but you do not have a RUM_MAT in the plant.

Additionally, DRINK_NONE in the product line should be DRINK:NONE

Thanks!   But it still doesn't work.  :-[   I'll correct the code in my earlier post in a second.
Logged

asnys

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1762 on: December 24, 2014, 03:59:48 pm »

After some tinkering, I've gotten it to work.   Adding [LIQUID_MISC_PLANT] to dwarven syrup causes the make sugar reaction to work, and moving [MATERIAL_REACTION_PRODUCT:RUM_MAT:LOCAL_PLANT_MAT:RUM] from the plant to the syrup caused the make rum reaction to work.   The only remaining oddity is that dwarven syrup is no longer available on the "extracts" screen of your embark.   Sugar can still be purchased under powders, so I don't know what's up with that.   If anyone knows how to fix that, I'd be much obliged, but if I'm stuck with it I can live with it.

Here's the code if anyone wants to see it:

MAKE_SUGAR Reaction:

Spoiler (click to show/hide)

MAKE_RUM Reaction:

Spoiler (click to show/hide)

Sweet pods:

Spoiler (click to show/hide)
Logged

bleekmiddel

  • Bay Watcher
  • who are you gonna call? DWARF FORTRESS!!!!!!
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1763 on: December 24, 2014, 04:03:55 pm »

What would the reaction be to turn eggs into stone/blocks by means of a workshop.
I have no experience with modding at all and I would like to get into it what is the best way of learning it.
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1764 on: December 24, 2014, 04:20:31 pm »

What would the reaction be to turn eggs into stone/blocks by means of a workshop.
I have no experience with modding at all and I would like to get into it what is the best way of learning it.

Checking the wiki can help. Looking through the raw files themselves can be useful as well.

I don't quite have any personal recommendations of how to go about learning, though. I learned through a lot of trial and error. Mostly error.

Here's an example reaction that takes an egg and outputs a block:
Code: [Select]
[REACTION:MAKE_EGG_BRICKS]
[NAME:make egg bricks]
[BUILDING:KITCHEN:NONE]
[REAGENT:egg:1:EGG:NONE:NONE:NONE]
[PRODUCT:100:1:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:egg:NONE]
[SKILL:COOK]

I adapted it from the reaction that makes clay bricks. While this reaction would allow you to make bricks, you must remember to give your entity permission to use the reaction, or else you will not have access to it in-game. To do this, open the file called entity_default.txt and add [PERMITTED_REACTION:MAKE_EGG_BRICKS] to the dwarven entity. This will allow dwarves to use the reaction.
Logged

bleekmiddel

  • Bay Watcher
  • who are you gonna call? DWARF FORTRESS!!!!!!
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1765 on: December 24, 2014, 04:23:23 pm »

many thanks.
Logged

Badger Storm

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1766 on: December 25, 2014, 08:26:03 am »

Is there a place to put up modded code for revision and criticism?  I just finished making my first critter that wasn't a direct modification of another, and I'd like to be sure I didn't miss anything.
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1767 on: December 25, 2014, 09:55:15 am »

Are you asking permission to ask a question in the question-asking thread? Just post you dunce, anyone who can spare a crap will take a glance at it.
Logged

Teneb

  • Bay Watcher
  • (they/them) Penguin rebellion
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1768 on: December 25, 2014, 01:48:38 pm »

Also, the errorlog is your friend. Just load up the arena and it will spit out a log if there is anything wrong.
Logged
Monstrous Manual: D&D in DF
Quote from: Tack
What if “slammed in the ass by dead philosophers” is actually the thing which will progress our culture to the next step?

Valikdu

  • Bay Watcher
  • Ruin... has come to our family.
    • View Profile
Re: [MODDING] 0.40.x QUESTIONS THREAD
« Reply #1769 on: December 26, 2014, 01:38:31 am »

What may be causing the "no farmable crops" rejection at worldgen? It didn't happen in 0.34.
Pages: 1 ... 116 117 [118] 119 120 ... 247