Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Cheating help  (Read 1811 times)

EllisMaestr

  • Bay Watcher
    • View Profile
Cheating help
« on: June 15, 2011, 09:54:51 pm »

For some reason, tanning is broken on my save file. I have skin, and a tanner's workshop, but it says I need TAN_MAT producing item, or something like that. Could someone tell me the format for changing a reaction to make leather rather than, say, billion bars. Thanks.
Logged

Funburns

  • Bay Watcher
    • View Profile
Re: Cheating help
« Reply #1 on: June 15, 2011, 10:04:43 pm »

Just to be sure, could the problem be due to not having "Dwarves Gather Refuse From Outside" enabled in the refuse section of the orders menu? If the butcher's shop is outdoors, that may be the source of the problem, since raw skin is considered refuse, I think. I usually turn that order on at the start of every fort, so my knowledge about the particulars of tanning here may be outdated.

EllisMaestr

  • Bay Watcher
    • View Profile
Re: Cheating help
« Reply #2 on: June 15, 2011, 10:45:13 pm »

YES! It worked! Thank you so much. I've already lost one dwarf because of that. They had a fey mood.
Kind of a shame I couldn't work out how to make dragon leather though...It would've been fun.
Logged

They Got Leader

  • Bay Watcher
  • Current Fortress:
    • View Profile
    • Steam Profile
Re: Cheating help
« Reply #3 on: June 16, 2011, 01:39:56 pm »

Here, I will give you some basics. Here is brass making:
Code: [Select]
[REACTION:BRASS_MAKING]
[NAME:make brass bars (use ore)]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:METAL_ORE:ZINC]
[REAGENT:B:1:METAL_ORE:COPPER]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:BRASS][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

In the .txt file reactions_smelter, you will find metal reactions. The reactions_other will have other reactions like soap and tanning. If you wanted to modify a reaction to produce something else, like in this case a tanned hide, you would need to change the product line of that reaction. That's the line that starts with "product".

Code: [Select]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:BRASS][PRODUCT_DIMENSION:150]By the wiki, this means:
Code: [Select]
[PRODUCT:<probability>:<quantity>:<item token>:<material token>][PRODUCT_DIMENSION:X]
But its much simpler than that. Leave probability at 100, them set how many of whatever you want. So, I want 10 hides? Set the second number to 10.

So, I have set up a line that should produce 10 tanned sheep hides. It looks like this:
Code: [Select]
[PRODUCT:100:10:SKIN_TANNED:NONE:CREATURE_MAT:SHEEP:LEATHER]

Stick that into whatever reaction you want (do it to a reaction that is common), and you should get any material you want.

Also, here are some more helpful product lines.

Wool:
Code: [Select]
PRODUCT:100:10:THREAD:NONE:CREATURE_MAT:LLAMA:WOOL][PRODUCT_DIMENSION:15000]Thread:
Code: [Select]
[PRODUCT:100:10:THREAD:NONE:CREATURE_MAT:SPIDER_CAVE_GIANT:SILK][PRODUCT_DIMENSION:15000]Diamond:
Code: [Select]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE_STAR]
I hope this helps!
-TGL
« Last Edit: June 16, 2011, 04:04:04 pm by They Got Leader »
Logged
Quote from: Urist McDwarfFortress
You do not understand the ways of Toady One. He is not a business, he's just a guy trying to make a fun game. He's invited people to come along and experience the journey with him (and help him test it out as he goes along). At the end of the day, I don't think his main goal is to sell Dwarf Fortress, its just to create the best game possible.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Cheating help
« Reply #4 on: June 16, 2011, 01:48:24 pm »

So, I have set up a line that should produce 10 tanned sheep hides. It looks like this:
Code: [Select]
[PRODUCT:100:10:SKIN_TANNED:NONE:CREATURE_MAT:SHEEP:TAN_MAT]
That won't work - TAN_MAT is a material reaction product ID, not a material ID; what you want is CREATURE_MAT:SHEEP:LEATHER.

Diamond:
Code: [Select]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE_STAR]

Also, that should be INORGANIC - the game currently accepts both STONE and METAL as aliases for INORGANIC (so you could technically do METAL:GRANITE or STONE:BRASS and it wouldn't care).
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.

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Cheating help
« Reply #5 on: June 16, 2011, 02:01:02 pm »

Kind of a shame I couldn't work out how to make dragon leather though...It would've been fun.
That's because dragons don't have skin, they have scales.  And in vanilla DF, scales can't be used for anything, so there's no way to make dragon leather in unmodded DF.  There is a mod around somewhere that permits scales to be made into leather, but it's not a simple modification, and I don't think it can be done to an existing world.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

celem

  • Bay Watcher
    • View Profile
Re: Cheating help
« Reply #6 on: June 16, 2011, 02:14:15 pm »

Deon's Genesis has that one but you'd have to sift it from his fairly extensively expanded raws.  Depends how familiar you are with them.  If you get stuck theres a good support community in the modding forum, its not just announcements so you can get specifics there, you can usually reach Tomi swiftly through the genesis thread if you want that bit :)
Logged
Marksdwarf Pillboxes
I wish I had something cool to say about this.  Because it's really cool.

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Cheating help
« Reply #7 on: June 16, 2011, 02:17:16 pm »

Actually, it's not extensive at all.  Add the TAN_MAT reaction group to the scale template.  For reference, look up the skin template in the raws, and copy its reaction class over to the scales.

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Cheating help
« Reply #8 on: June 16, 2011, 03:35:28 pm »

Actually, it's not extensive at all.  Add the TAN_MAT reaction group to the scale template.  For reference, look up the skin template in the raws, and copy its reaction class over to the scales.

Actually, you also need to remove the line [REMOVE_MATERIAL:LEATHER] from every creature that has scales that you want to be able to make leather from, or the game won't be able to find the material definition for that creature's leather.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

They Got Leader

  • Bay Watcher
  • Current Fortress:
    • View Profile
    • Steam Profile
Re: Cheating help
« Reply #9 on: June 16, 2011, 04:03:22 pm »

So, I have set up a line that should produce 10 tanned sheep hides. It looks like this:
Code: [Select]
[PRODUCT:100:10:SKIN_TANNED:NONE:CREATURE_MAT:SHEEP:TAN_MAT]
That won't work - TAN_MAT is a material reaction product ID, not a material ID; what you want is CREATURE_MAT:SHEEP:LEATHER.

Diamond:
Code: [Select]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE_STAR]

Also, that should be INORGANIC - the game currently accepts both STONE and METAL as aliases for INORGANIC (so you could technically do METAL:GRANITE or STONE:BRASS and it wouldn't care).

Thanks, Quietust. I thought it might work, but that's why I said "should".

Also, on the second note, it works either way. You if you want to be super precise then yes, that would work. Someone should update the wiki because that's what it says.
Logged
Quote from: Urist McDwarfFortress
You do not understand the ways of Toady One. He is not a business, he's just a guy trying to make a fun game. He's invited people to come along and experience the journey with him (and help him test it out as he goes along). At the end of the day, I don't think his main goal is to sell Dwarf Fortress, its just to create the best game possible.