Bay 12 Games Forum

Please login or register.

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

Author Topic: Smelter cannot produce "free wood"?  (Read 3478 times)

SeveQ

  • Bay Watcher
    • View Profile
Smelter cannot produce "free wood"?
« on: July 31, 2010, 07:03:14 pm »

Hi,

for the attempt to launch a megaproject I've added the free wood reaction to the reaction_smelter and generated a new world afterwards. But for some weird reasons I can't get wood out of my smelter. It only tells me that there is no task available and that I should check for raw material access, although the http://df.magmawiki.com/index.php/DF2010:Cheating#Create_Wood reaction apparently doesn't need any raw material. And, yes, I have saved the file after adding the reaction from the wiki and before generating a new world.

Here's the reaction entry that I've added to the reaction_smelter.txt from the raw/objects folder:

Quote
[REACTION:FREE_WOOD]
[NAME:create wood]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:5:WOOD:NO_SUBTYPE:PLANT_MAT:TOWER_CAP:WOOD][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

Have I forgotten something important?

Thanks!

Hendrik
Logged

Adultratedhydra

  • Bay Watcher
  • That is a hydralisk.
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #1 on: July 31, 2010, 08:21:11 pm »

You have to add the reaction to the list of enabled reactions in your Civ raw's.
Logged
If violence isnt solving your problem then add magma.

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: Smelter cannot produce "free wood"?
« Reply #2 on: August 01, 2010, 12:36:57 am »

to clarify you need to add...

[PERMITTED_REACTION:FREE_WOOD]

to the file...

entity_default
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!

SeveQ

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #3 on: August 01, 2010, 03:45:56 am »

Ah, thanks! Can I do this with an existing world or do I have to regen again?
Logged

Heavenfall

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #4 on: August 01, 2010, 04:14:34 am »

You have to regen, unless you modify an already existing reaction instead of creating a new one.
Logged
Upon him I will visit famine and a fire, until all around him desolation rings
and all the demons in the outer dark look on amazed and recognize
that vengeance is the business of a dwarf

SeveQ

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #5 on: August 01, 2010, 04:25:41 am »

Okay, I have added the permitted_reaction stuff to the entity_default and regen'd but still can't see the free wood entry in the smelter menu.
Logged

Heavenfall

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #6 on: August 01, 2010, 04:49:13 am »


[PERMITTED_REACTION:FREE_WOOD] has to be added under the dwarf entity [entity:mountain]
Also you have to restart dwarf fortress after you've made any file changes
Logged
Upon him I will visit famine and a fire, until all around him desolation rings
and all the demons in the outer dark look on amazed and recognize
that vengeance is the business of a dwarf

SeveQ

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #7 on: August 01, 2010, 04:54:57 am »

I see. Okay, now that I have already regen'd with the new reaction added, do I have to regen again after adding something to the dwarf entity?
Logged

Heavenfall

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #8 on: August 01, 2010, 05:00:47 am »

Yes. Also just to make sure, the only place you should add that stuff in the entity file is under the entity:mountain (like where you see the other reactions). If it's anywhere else, you should remove that.

Edit: If you don't want to regen, you can just modify a reaction that is already in.
« Last Edit: August 01, 2010, 05:03:38 am by Heavenfall »
Logged
Upon him I will visit famine and a fire, until all around him desolation rings
and all the demons in the outer dark look on amazed and recognize
that vengeance is the business of a dwarf

SeveQ

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #9 on: August 01, 2010, 05:03:28 am »

I've just realised... before I regen'd the last time I already had added [PERMITTED_REACTION:FREE_WOOD] to the [ENTITY:MOUNTAIN] entity right after the last [PERMITTED_REACTION...] entry. Somewhere around line 223.

But it still doesn't work.  ???
Logged

Haspen

  • Bay Watcher
  • Cthuwu
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #10 on: August 01, 2010, 05:15:13 am »

Isn't [PRODUCT_DIMENSION] used only for bars?

And if I read carefully, you want tower cap logs...
Logged
SigFlags!
Quote from: Draignean@Spamkingdom+
Truly, we have the most uniquely talented spy network in all existence.
Quote from: mightymushroom@Spamkingdom#
Please tell me the Royal Physician didn't go to the same college as the Spymaster.

SeveQ

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #11 on: August 01, 2010, 05:22:00 am »

Well, doesn't really matter what type of wood... I've just c&p'd the reaction from the modding section of the wiki and set the wood type to the first one that came to my mind.

To mention that: modifying an existing reaction works. I can create wood with that. But I'd like to add a new working reaction. So, here again the step's I have taken so far:

* copy&paste the reaction from the wiki to the reaction_smelter.txt in the base raw/objects folder.
* add the [PERMITTED_REACTION:FREE_WOOD] entry to the [ENTITY:MOUNTAIN] entry in the entity_default.txt in the base raw/objects folder
* regen
* embark
* build a smelter
* look a proper Charlie that it's still not working  ???
Logged

Heavenfall

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #12 on: August 01, 2010, 05:43:18 am »

I'm going out on an edge here, but is it possible that there is no tower caps in your world? Maybe that is causing an issue.

Either way, I tried it out and your process works for me.
http://pastebin.com/raw.php?i=eidhYjbC
http://pastebin.com/raw.php?i=BRVVFfT5

« Last Edit: August 01, 2010, 05:46:03 am by Heavenfall »
Logged
Upon him I will visit famine and a fire, until all around him desolation rings
and all the demons in the outer dark look on amazed and recognize
that vengeance is the business of a dwarf

SeveQ

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #13 on: August 01, 2010, 06:04:48 am »

If you mean an entry of [PLANT:TOWER_CAP] in the plant_standard.txt of my world, then, yes, there is one. Both in the base and in the region raws.
Logged

Heavenfall

  • Bay Watcher
    • View Profile
Re: Smelter cannot produce "free wood"?
« Reply #14 on: August 01, 2010, 06:05:36 am »

Edit: What I meant was that caves sometimes do not produce all plant types. It is not impossible that in your entire worldgen, there isn't a single tower cap. MAYBE that is causing a problem, but I'm just theorizing.

Does your raw differ in any way from the ones I posted?

What happens if you switch out tower_cap for OAK?
Logged
Upon him I will visit famine and a fire, until all around him desolation rings
and all the demons in the outer dark look on amazed and recognize
that vengeance is the business of a dwarf
Pages: [1] 2