Dwarf Fortress > DF Modding

On and On and ON About Guns

<< < (4/4)

IT 000:
Funnily enough my mod has everything you seem to be after. You can download the mod from my sig and dig through the RAWs yourself if you'd like

Basically I used a combination of pipe sections, metal mechanisms, animal traps as well as two custom tools one being a stock. I would recommend stearing away from using custom tools for everything because there are some bugs getting them to work once the tools get stored in a bin.

Best part of my guns is that once you create the gun the stock gets used as decoration.

Bullets are also kept simple, a custom metal tool and potash with charcoal. About as close as I could get to gunpowder and actually historically used for fireworks.

Im away from my tower right now so I can't copy over the code, but searching the file for "gun" and "bullet" should give you a good start.

FantasticDorf:
Sounds interesting IT 000, though I will say that mineral components such as sulphur and saltpetre (which you could have in a similar kind of bucket storage as milk of lime) mixed with any form of coal/charcoal would have sufficed for a historical application of gunpowder. Maybe you can save it for your mod sequel to make more powerful bullets.

Well stockpiles retain other [INCOMPLETE_OBJECT] quires pretty well, as long as your wrote down your components correctly it should be ok, no idea where or why the vanishing bug is happening. If you have any more issues on your code regarding stock/barrel or anything inbetween posty your raws in a code box (with the little # in the top panel of forum message creation/editing) and we'll have a sort through it.

@IT 000 is right about custom tools though, you really ought to decide and work out which of your materials is the base material when you combine the limited elements together, so you don't make a gun that is essentially wood from the stock as primary material (hence worse at clubbing) rather than metal with wood finish. It might also get awkward when you store bullets inside a quiver but i guess that's just DF.

Warlord255:

--- Quote from: IT 000 on January 06, 2018, 09:11:52 pm ---Bullets are also kept simple, a custom metal tool and potash with charcoal. About as close as I could get to gunpowder and actually historically used for fireworks.
--- End quote ---

Question; are the bullets re-usable? So long as they don't break or vanish, you could go pick up bullets from the battlefield without any consideration for "using up" the gunpowder, right?

Also, do they come out looking just like regular bolts? I glanced at the files and can't find anything that would dicate otherwise.

bloop_bleep:
Posting to watch. I'm interested to see where this leads.

A suggestion -- you could create a custom workshop called a Gunmaker's Shop which is where you would make the gun mechanisms as well as the guns themselves, to get around the Mechanic's Workshop problem. Alternatively, you could just use the bog-standard mechanism for making guns; in vanilla, the same kind of mechanism is used for building levers, pressure plates, and gear assemblies alike, so you wouldn't be breaking consistency.

Navigation

[0] Message Index

[*] Previous page

Go to full version