Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Rock beds?  (Read 1899 times)

salttotart

  • Bay Watcher
  • Ackbar is always right!
    • View Profile
Rock beds?
« on: April 24, 2009, 08:16:03 pm »

Does anyone how to add something to the objects list to make rock beds and barrels?  I'm in a map I really like but it doesn't have nearly enough wood or any sand for my glass mod.

EDIT: added "barrels"
« Last Edit: April 24, 2009, 08:18:35 pm by salttotart »
Logged
If this all doesn't fix it, your dwarfs are lazy. Apply magma.
"And thereafter, all dwarven children were taught to mind their stools, lest the toilet-fiends snatch their souls from their bottoms"
Try rubbing a cat on it, that seems to help.

Michaelsoftman

  • Bay Watcher
    • View Profile
Re: Rock beds?
« Reply #1 on: April 24, 2009, 08:20:22 pm »

You could have a smelter output rock beds and barrels I believe.
Logged

salttotart

  • Bay Watcher
  • Ackbar is always right!
    • View Profile
Re: Rock beds?
« Reply #2 on: April 24, 2009, 08:24:58 pm »

Smelters can make metal barrels normally, but not beds.  I don't care if its the smelter, as long as it doesn't take any coal, or a mason's shop.  I just don't know how to right the code to add it in to the /raw/objects
Logged
If this all doesn't fix it, your dwarfs are lazy. Apply magma.
"And thereafter, all dwarven children were taught to mind their stools, lest the toilet-fiends snatch their souls from their bottoms"
Try rubbing a cat on it, that seems to help.

Airpi

  • Bay Watcher
  • PREFSTRING:whimsy
    • View Profile
    • I say things. Often.
Re: Rock beds?
« Reply #3 on: April 24, 2009, 08:38:59 pm »

From what I understand smelter modding lets you input basically any material and receive any material. Insert log, receive 500 adamantine wafers. Insert stone, receive wooden bed. Don't know anything about actually doing it though.
Logged
⊂(゚ヮ゚⊂⌒つ    ⊂(゚ヮ゚⊂⌒つ

Blakmane

  • Bay Watcher
    • View Profile
Re: Rock beds?
« Reply #4 on: April 24, 2009, 08:40:02 pm »

Smelters can make metal barrels normally, but not beds.  I don't care if its the smelter, as long as it doesn't take any coal, or a mason's shop.  I just don't know how to right the code to add it in to the /raw/objects

The forge makes metal beds. The smelter makes pretty much anything you want it to, with some exceptions. http://www.dwarffortresswiki.net/index.php/Reactions
Logged

salttotart

  • Bay Watcher
  • Ackbar is always right!
    • View Profile
Re: Rock beds?
« Reply #5 on: April 24, 2009, 08:42:30 pm »

OK, I'll give this a shot.  I've never made my own reactions before, so I might be coming back asking for more help.
Logged
If this all doesn't fix it, your dwarfs are lazy. Apply magma.
"And thereafter, all dwarven children were taught to mind their stools, lest the toilet-fiends snatch their souls from their bottoms"
Try rubbing a cat on it, that seems to help.

Blakmane

  • Bay Watcher
    • View Profile
Re: Rock beds?
« Reply #6 on: April 24, 2009, 08:49:13 pm »


Remember, making new reactions will require a world regen. If you want to keep your current fortress you'll have to edit one of the current reactions. you can change anything but the very first line of a reaction and it won't break the save.
Logged

Albedo

  • Bay Watcher
  • Menacing with spikes of curmudgeonite.
    • View Profile
Re: Rock beds?
« Reply #7 on: April 24, 2009, 08:59:43 pm »

You'll find more and specific help in the modding sub-forum.  I know I just read a thread on this very topic (tho' it was metal beds, iirc - same diff.)
Logged

Michaelsoftman

  • Bay Watcher
    • View Profile
Re: Rock beds?
« Reply #8 on: April 24, 2009, 09:05:50 pm »

It is possible to do, I just tested it.  Here's an example.  Lets edit your Fine Pewter making reaction into a bed making one!

[REACTION:PEWTER_FINE_MAKING]
[NAME:make fine pewter bars (use ore)]
[SMELTER]
[REAGENT:3:METAL_ORE:TIN]
[REAGENT:1:METAL_ORE:COPPER]
[PRODUCT:100:4:BAR:NO_SUBTYPE:METAL:PEWTER_FINE]
[FUEL]

This is what it looks like to begin.

Change it into this.

[REACTION:PEWTER_FINE_MAKING]
[NAME:make Rock beds]
[SMELTER]
[REAGENT:1:STONE:NO_SUBTYPE:STONE:BAUXITE]
[PRODUCT:100:1:BED:NO_SUBTYPE:STONE:BAUXITE]
[FUEL]

This would produce a Bauxite bed, requiring one Bauxite stone to make.  Feel free to change BAUXITE to something else.

Also you could remove the whole REAGENT line to produce beds without requiring the stone at all, and remove the FUEL tag so you don't need coal and / or magma to use this reaction.

And as was said before, PLEASE do not change the [REACTION:PEWTER_FINE_MAKING] line, otherwise the game will not load your current save, and will require new worlds to be generated in order to use the reaction.
« Last Edit: April 24, 2009, 09:10:17 pm by Michaelsoftman »
Logged

salttotart

  • Bay Watcher
  • Ackbar is always right!
    • View Profile
Re: Rock beds?
« Reply #9 on: April 24, 2009, 09:20:48 pm »

Glad I checked here first, I was about to save my reactions.txt and give it a try.  For those who want the no reagent reactions I've made a few:

Code: [Select]
[REACTION:Make_Bed]
[NAME:Make_Bed]
[SMELTER]
[PRODUCT:100:1:BED:NO_SUBTYPE:MATERIAL:WOOD]

[REACTION:Make_Barrel]
[NAME:Make_Barrel]
[SMELTER]
[PRODUCT:100:1:BARREL:NO_SUBTYPE:MATERIAL:WOOD]

[REACTION:Make_Wooden_Bolts]
[NAME:Make_Wooden_Bolts]
[SMELTER]
[PRODUCT:100:25:AMMO:ITEM_AMMO_BOLTS:MATERIAL:WOOD]

[REACTION:Make_Steel_Bolts]
[NAME:Make_Steel_Bolts]
[SMELTER]
[PRODUCT:100:25:AMMO:ITEM_AMMO_BOLTS:METAL:STEEL]

[REACTION:Make_Steel_Anvil]
[NAME:Make_Steel_Anvil]
[SMELTER]
[PRODUCT:100:1:ANVIL:NO_SUBTYPE:METAL:STEEL]

[REACTION:Make_Steel_Crossbow]
[NAME:Make_Steel_Crossbow]
[SMELTER]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_CROSSBOW:METAL:STEEL]

I haven't tested them yet, but I'll make sure and just replace some of the other reactions.  Thanks everyone!

Another thing though, I wasn't able to find the reaction to make windows anywhere.  I wanted to add that as well, but I couldn't find the item token for Crystal Glass.  Is it CRYSTAL_GLASS or GLASS_CRYSTAL?

P.S.: Just figured this out: remove [FUEL] if you don't want it to need coal to work. /facepalm

EDIT: fixed code.
« Last Edit: April 24, 2009, 09:38:01 pm by salttotart »
Logged
If this all doesn't fix it, your dwarfs are lazy. Apply magma.
"And thereafter, all dwarven children were taught to mind their stools, lest the toilet-fiends snatch their souls from their bottoms"
Try rubbing a cat on it, that seems to help.

Michaelsoftman

  • Bay Watcher
    • View Profile
Re: Rock beds?
« Reply #10 on: April 24, 2009, 09:29:47 pm »

GLASS_GREEN, GLASS_CLEAR, and GLASS_CRYSTAL for the three types of glass.  WINDOW for the item type.

And with your reactions, you realize you'll have to regen your world for them to work, unless you edit current ones and leave the [REACTION:] tag alone.

and [PRODUCT:100:1:AMMO:ITEM_AMMO:METAL:STEEL] is incorrect.  Should be [PRODUCT:100:1:AMMO:ITEM_AMMO_BOLTS:METAL:STEEL].

That would only produce one bolt at a time, you may want to change it to [PRODUCT:100:25 or another number.
Logged

Blakmane

  • Bay Watcher
    • View Profile
Re: Rock beds?
« Reply #11 on: April 24, 2009, 09:31:17 pm »

also, keep in mind nothing from your smelter will have any quality modifier.
Logged

Michaelsoftman

  • Bay Watcher
    • View Profile
Re: Rock beds?
« Reply #12 on: April 24, 2009, 09:34:12 pm »

Oh, and
[REACTION:Make_Steel_Crossbow]
[NAME:Make_Steel_Crossbow]
[SMELTER]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON:METAL:STEEL]

is also incorrect  :P  It should be

[REACTION:Make_Steel_Crossbow]
[NAME:Make_Steel_Crossbow]
[SMELTER]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_CROSSBOW:METAL:STEEL]
Logged

salttotart

  • Bay Watcher
  • Ackbar is always right!
    • View Profile
Re: Rock beds?
« Reply #13 on: April 24, 2009, 09:34:24 pm »

[PRODUCT:100:1:AMMO:ITEM_AMMO:METAL:STEEL] is incorrect.  Should be [PRODUCT:100:1:AMMO:ITEM_AMMO_BOLTS:METAL:STEEL].

That would only produce one bolt at a time, you may want to change it to [PRODUCT:100:25 or another number.
Thanks, I'll fix that.
also, keep in mind nothing from your smelter will have any quality modifier.
That doesn't bug me that much.  This is just to make my life easier.  Chances are I'll have some fun in the near future due to my lack of defenses.
Oh, and
[REACTION:Make_Steel_Crossbow]
[NAME:Make_Steel_Crossbow]
[SMELTER]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON:METAL:STEEL]

is also incorrect  :P  It should be

[REACTION:Make_Steel_Crossbow]
[NAME:Make_Steel_Crossbow]
[SMELTER]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_CROSSBOW:METAL:STEEL]
I'll fix this too.

EDIT: I tested and they all seem to work.  Now I just need a legendary Furnace Operator to pump them out fast.  Thanks everyone!
« Last Edit: April 24, 2009, 09:40:50 pm by salttotart »
Logged
If this all doesn't fix it, your dwarfs are lazy. Apply magma.
"And thereafter, all dwarven children were taught to mind their stools, lest the toilet-fiends snatch their souls from their bottoms"
Try rubbing a cat on it, that seems to help.