Bay 12 Games Forum

Please login or register.

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

Author Topic: I need more bolts.  (Read 1663 times)

nirodragon

  • Bay Watcher
  • Nirodragon cancels sleep: Interrupted by DF.
    • View Profile
I need more bolts.
« on: May 06, 2009, 11:38:55 pm »

Specifically, I need to be able to make glass bolts.  It makes sense to me, but I don't know the right tokens, nor which file(s) I need to modify.

Help?
Logged
Urist McMiner cancels Mine: Taking a dump
Urist McMiner was disgusted by a miasma lately

I can't believe I just went there...

Creamcorn

  • Bay Watcher
  • [FANCIFUL]
    • View Profile
Re: I need more bolts.
« Reply #1 on: May 07, 2009, 07:05:14 am »

Bolts can only be made in the forges or craftshop.

If you do want to make glass bolts via smelter reactions I think it would go something like this.

[REAGENT:BAR:NO_SUBTYPE:GLASS:GLASS_{type}]
what the reaction for botls, er not sure on that one
Logged
"OH NO! That carp is gulping at me menacingly, even though it cannot really threaten me from here on land!  I KNOW! I'll dodge into the water, where I'll be safe!"

Volfram

  • Bay Watcher
  • hate you all.
    • View Profile
Re: I need more bolts.
« Reply #2 on: May 07, 2009, 08:59:56 am »

just for fun, try adding [CAN_STONE] to the crossbow bolts entry.  At very least, it'll let you make them out of obsidian.(horrible waste of obsidian, though.  Probably wood, too.)

I generally mod axes and hammers to be [CAN_STONE], too.  It just makes sense to have a dwarf wielding an ax with a giant obsidian blade for an axehead.
Logged
Andir and Roxorius "should" die.

Yes, actually, I am trying to get myself banned.  I wish Toady would quit working on this worthless piece of junk and go back to teaching math.

nirodragon

  • Bay Watcher
  • Nirodragon cancels sleep: Interrupted by DF.
    • View Profile
Re: I need more bolts.
« Reply #3 on: May 07, 2009, 09:51:17 am »

I can't test the [CAN_STONE] tag on my current fortress, at least not yet, but I can gen another world to test it in.  I'd still be happy if someone could help me with glass bolts, though.

Maybe locate the info for bones, or where DF determines what can and cannot be made from wood.  I might be able to get the info from those places, if they're not hard coded.
Logged
Urist McMiner cancels Mine: Taking a dump
Urist McMiner was disgusted by a miasma lately

I can't believe I just went there...

Zaranthan

  • Bay Watcher
  • Plump Helmet Smelter
    • View Profile
Re: I need more bolts.
« Reply #4 on: May 07, 2009, 10:06:36 am »

You can make the smelter spit out wood, and then make wooden bolts.
Logged
Quote from: Howard, Nerf This, by Scott D. Ferguson
Villains sleep with hookers, heroes sleep with destiny.

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: I need more bolts.
« Reply #5 on: May 07, 2009, 12:11:31 pm »

If you do want to make glass bolts via smelter reactions I think it would go something like this.

[REAGENT:BAR:NO_SUBTYPE:GLASS:GLASS_{type}]
what the reaction for botls, er not sure on that one
Glass doesn't have subtypes like metal does; each kind of glass is its own type. Bolts would be AMMO:ITEM_AMMO_BOLTS:[material type]:[material subtype]

I don't think you can order the game to spit out bars of glass, as there's no way of obtaining them in-game (I can't test anything at the moment because the computer's running like chilled molasses and even surfing the net is occasionally excruciating). If you really must have glass bolts, you might have to mod in glass metal* (give it the [DEEP] tag unless you want to be able to buy it and items made from it) and mod a reaction to turn rough green glass into either a bar of 'glass' or a stack of 'glass' bolts.

The metal route would require the following mods:

Add to matgloss_metal.txt:
Code: [Select]
[MATGLOSS_METAL:GLASS]
[NAME:glass][ADJ:glass][COLOR:2:2:0]
[VALUE:1]
[SPEC_HEAT:385]
[MELTING_POINT:11952]
[BOILING_POINT:14611]
[AMMO]
[DAMAGE_PERC:50]
[SOLID_DENSITY:8930]
[DEEP]
Values adapted from copper, so they're not really true to life. The damage value is unecessary because the default is 50, but it's easier to modify if I leave it in. Since it's a metal and you have to order metalwork by material, you won't get any other glass goods unless you make the order directly.

Add one of the following to reaction_standard.txt
Code: [Select]
[REACTION:GLASS_BOLTS]
[NAME:make glass bars]
[SMELTER]
[REAGENT:1:ROUGH:NO_SUBTYPE:GLASS_GREEN:NO_SUBTYPE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:GLASS]
[FUEL]
Code: [Select]
[REACTION:GLASS_BOLTS]
[NAME:make glass bolts]
[SMELTER]
[REAGENT:1:ROUGH:NO_SUBTYPE:GLASS_GREEN:NO_SUBTYPE]
[PRODUCT:100:1:AMMO:ITEM_AMMO_BOLTS:METAL:GLASS]
[FUEL]
The last should give you a stack of however many bolts you'd usually get out of a bar of metal. (I'm pretty sure the material-to-bolt ratio is hardcoded.)

Glass and wood are currently hardcoded in their use, so while making a new kind of wood or bone and slapping the 'glass' label on it would produce bolts, it would also produce glass beds or crossbows.
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.

sunshaker

  • Bay Watcher
    • View Profile
Re: I need more bolts.
« Reply #6 on: May 07, 2009, 01:44:41 pm »

just for fun, try adding [CAN_STONE] to the crossbow bolts entry.  At very least, it'll let you make them out of obsidian.(horrible waste of obsidian, though.  Probably wood, too.)

I tried that once, it generated an error in errorlog.txt (I didn't actually test to see if it still made them in game).
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: I need more bolts.
« Reply #7 on: May 07, 2009, 02:19:55 pm »

Sutremaine's solution will work.  I recommend using "tempered glass" as the name for the glass "metal" to give it at least a veneer of realism.  I also recommend using the first of his two reactions (make tempered glass bars), so that your weaponsmith's skill can still play a role and give you +bolts+.
Logged

Qwernt

  • Bay Watcher
    • View Profile
Re: I need more bolts.
« Reply #8 on: May 07, 2009, 07:13:42 pm »

pretty sure there is a bug in there, as you have 2 [REACTION:GLASS_BOLTS]... I would assume the first should be [REACTION:GLASS_BARS]
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: I need more bolts.
« Reply #9 on: May 07, 2009, 07:16:35 pm »

Quote
Add one of the following
Logged

Shakma

  • Bay Watcher
    • View Profile
Re: I need more bolts.
« Reply #10 on: May 08, 2009, 09:12:41 am »

Can't you just do this?

Code: [Select]
[REACTION:GLASS_BOLTS]
[NAME:make glass bolts]
[SMELTER]
[REAGENT:1:ROUGH:NO_SUBTYPE:GLASS_GREEN:NO_MATGLOSS]
[PRODUCT:100:25:AMMO:ITEM_AMMO_BOLTS:GLASS_GREEN:NO_MATGLOSS]
[FUEL]
Logged

Techhead

  • Bay Watcher
  • Former Minister of Technological Heads
    • View Profile
Re: I need more bolts.
« Reply #11 on: May 08, 2009, 03:18:42 pm »

Or this option:
Code: [Select]
[REACTION:TEMPER_GREEN_GLASS]
[NAME:Temper green glass]
[SMELTER]
[REAGENT:1:ROUGH:NO_SUBTYPE:GLASS_GREEN:NO_MATGLOSS]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:TEMPERED_GLASS]
[FUEL]
Raw green glass into tempered glass bars, that can be turned into weapons like silver.
Logged
Engineering Dwarves' unfortunate demises since '08
WHAT?  WE DEMAND OUR FREE THINGS NOW DESPITE THE HARDSHIPS IT MAY CAUSE IN YOUR LIFE
It's like you're all trying to outdo each other in sheer useless pedantry.

warlordzephyr

  • Bay Watcher
  • Keeping dwarves in booze since 2008 (40d)
    • View Profile
Re: I need more bolts.
« Reply #12 on: May 08, 2009, 04:35:00 pm »

I WANT BOLTS THAT FIRE SMALLER BOLTS AND EXPLODE ON IMPACT!!!! THEN I WANT SOME SORT OF SUPER ADDY DWARF THAT PWNS EVERYONE!!111oneoneone
Logged
I just made all my dorfs proficient Biters, liars, and went from there.
"Did you eat Urist?"
"Pshht, of course not!"shifty eyes

Byakugan01

  • Bay Watcher
    • View Profile
Re: I need more bolts.
« Reply #13 on: May 08, 2009, 04:59:27 pm »

Out of curiosity, why do you want to make bolts out of glass? Stone is much more abundant, typically clogs the map (what with how fast miners get to legendary and all), and overall makes more sense then glass...which you might find some fey dwarf demanding. And to the above poster, I believe that is what the elf-a-pult is for.
Logged
From Mr. Welch's 1350 things he is not allowed to do in a RPG:
148. There is no Gnomish Deathgrip, and even if there was, it wouldn't involve tongs.
171. My character's dying words are not allowed to be "Hastur, Hastur, Hastur"
218. No matter my alignment, organizing halfling pit fights is a violation.
231. I am not allowed to do anything that would make a Sith Lord cry.
240. Any character with more than three skills specializing in chainsaw is vetoed.

warlordzephyr

  • Bay Watcher
  • Keeping dwarves in booze since 2008 (40d)
    • View Profile
Re: I need more bolts.
« Reply #14 on: May 08, 2009, 05:00:44 pm »

yea, i was doing a sattire of this post.
Logged
I just made all my dorfs proficient Biters, liars, and went from there.
"Did you eat Urist?"
"Pshht, of course not!"shifty eyes
Pages: [1] 2