Mods / Smoke and Powder v1.1.0

Category: #Crafting #Weapons
Author: Catasteroid
Side: Both
Created: Aug 7th 2022 at 2:52 AM
Last modified: May 25th 2023 at 12:18 AM
Downloads: 8549
Follow Unfollow 149

Latest file for Various v1.18.x:
SmokeAndPowder-1.1.0.zip 1-click install


Smoke And Powder v1.1.0

This mod adds a set of flintlock single-shot black powder firearms, currently including a muzzle-loading musket and pistol, and an early breech-loading musket, associated component parts for each of these weapons and ammunition to use with them.

These firearms can only be constructed out of iron, meteoric iron or steel and some of the initial components must be constructed out of forgings then worked further in the crafting grid, you will require rusty gears to produce some of the components and the breech-loading musket requires pre-made complex metal parts acquired from ruined workings in the depths of the earth.

Ammunition for these firearms consists of fabric cartridges- a handy fabric bag containing either a bullet/ball or a quantity of buckshot pellets and an appropriate measure of powder ready to load. The mod includes a recipe for producing black blasting powder from saltpetre, sulphur and charcoal instead of using mineral coal.

To use these firearms you will have to hold the right mouse button until a click is heard which indicates the weapon is loaded and ready to fire, releasing the right mouse button then fires the weapon. The muzzle-loading firearms take a short time to load and prepare though the pistol is slightly quicker than the full-length musket, but the breech-loading musket is much quicker to operate and fire than either of the muzzle-loading firearms.

Your feedback would be appreciated, I aim to gather additional audio effects and expand the firearm code significantly in the near future, improving features such as the particle effects, animations and potentially adding support for firearms holding multiple cartridges, using new ammo types, and other such features. 

Support me and help me make more mods!

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.1.0 4516 May 25th 2023 at 12:18 AM Show SmokeAndPowder-1.1.0.zip Install now
v1.0.0 4033 Aug 7th 2022 at 2:57 AM Show SmokeAndPowder-1.0.0.zip Install now

37 Comments (oldest first | newest first)

💬 LadyBlakeHammer, Sep 17th at 4:31 PM

Please update this. ♥

💬 Statius, Jul 12th at 1:52 AM

Hope this gets updated, it's the best firearm mod to me. Something's just missing without it.

💬 blueblynd, Apr 11th at 2:40 AM

Grimwood Changing your game mode (if you're talking about the /gm command) doesn't change anything about your world settings, you can freely toggle it on and off as you wish.

💬 Grimwood, Jan 20th at 4:42 AM

Harathor what is the spawn id for the breach musket and ammo i want to try it without changing my game mode case i dont know if it will change my world setting

💬 Harathor, Nov 26th 2023 at 3:25 PM

Hello,

 

i seems to have a problem with "unable to resolve mod dependencies" for version 1.18.15

any advice on solving this issue?

💬 CatasteroidAuthor, Nov 3rd 2023 at 5:18 PM

Nut_Torquer Can you send me a your server-main and client-main logs from your vintage story logs folder on discord? I'll see what I can do now I've got the time, I'll try and recompile it for .NET 7 if that's possible

💬 Nut_Torquer, Nov 1st 2023 at 8:10 PM

Crashes the client on 1.18.14 on a server when you fire a weapon, I haven't done further testing. Very sad!

💬 Robot_Milk, Jul 15th 2023 at 6:14 AM

Hey, great mod, I love the detail you're putting into it. Is there any way to make it so that the weapons are able to be loaded and stay loaded, without having to fire in the same way a bow does? The mod "Ranged Weapons" by Zarkonnen has a crossbow and a few other guns that have this property, and I'd love to see that in your mod, because yours seems more my style with the crafting and general look of the weapons.

💬 LadyBlakeHammer, Jul 4th 2023 at 5:00 AM

Catasteroid
Someone already seemed to have posted their exception 4 days after your initial updated SRTDUKE

Well it appears, using it by itself on a single-player, yields no exceptions, not even with my chosen Client Side mods.

Even tried it on Single-Player, with all the mods I chose to use, and no crash or exception, so it must be server-side.

A cut from the Server's part, with all mods involved.
https://pastebin.com/pxib9pCk

-Pastebin of the entire server log-

https://pastebin.com/8ShPYTen

>>If I am needed to do anything within my server to fix this, and mind you this is two-weeks in of a fresh game.

Cleared the config files, made fresh installs of all the mods. I do believe. Someone mentioned a Mod Cache clear, which I know nothing about. I'm hoping you can shed some insight, as it appears to be a "Me Issue" lol

💬 CatasteroidAuthor, Jul 4th 2023 at 12:15 AM

LadyBlakeHammer Could I get tje particular exception in your server/client logs? (whichever is applicable)

💬 LadyBlakeHammer, Jun 26th 2023 at 9:25 PM

Doesn't seem like its safe to use, as it sends an exception in the server I use it on, when firing.

💬 VincentMorgan, Jun 2nd 2023 at 10:13 AM

Wonderful mod. The weapons are well done, look very good and are fun to use. Accuracy at range makes them way better than bows for sure. For anyone who might be asking, confirmed works on 1.18.5 singleplayer.

For feedback and suggestions I'd say maybe make the models larger when hung on tool racks. Also an alternative recipe for creating ammunition that uses parchment instead of linen. Would make the ammunition creation process more involved/complicated and would also let you use leather instead of linen for parchment. Or make parchment and linen cartridges two separate things, since muzzleloaders generally use paper and breech-loaders use linen cartridges. (Not an expert in the field, correct me if I'm wrong)

And I personally feel that the weapons should take longer to load but also do higher damage per shot. For one, it would make them even less similar to bows, which could remain as the fast-firing ranged weapon option. Secondly, would give the weapons an even punchier feel without making them absolutely overpowered. And lastly it would give a very good reason to carry more than one, which is a fun balancing challenge for the player. (The last suggestion may not really work with the way weapons are loaded right now)

💬 SRTDUKE, May 29th 2023 at 2:46 AM

Threw an exception on my server, i guess its not ready for multiplayer?

29.5.2023 02:43:32 [Server Error] System.NullReferenceException: Object reference not set to an instance of an object
  at SmokeAndPowder.ItemRifle.OnHeldInteractStop (System.Single secondsUsed, Vintagestory.API.Common.ItemSlot slot, Vintagestory.API.Common.EntityAgent byEntity, Vintagestory.API.Common.BlockSelection blockSel, Vintagestory.API.Common.EntitySelection entitySel) [0x00a42] in <23b0b79540ec458f85d7c4c7fe7a138f>:0 
  at Vintagestory.API.Common.CollectibleObject.OnHeldUseStop (System.Single secondsPassed, Vintagestory.API.Common.ItemSlot slot, Vintagestory.API.Common.EntityAgent byEntity, Vintagestory.API.Common.BlockSelection blockSel, Vintagestory.API.Common.EntitySelection entitySel, Vintagestory.API.Common.EnumHandInteract useType) [0x00013] in <151670ea5af9488c97adc6d4637134de>:0 
  at Vintagestory.Server.ServerSystemInventory.HandleHandInteraction (Packet_Client packet, Vintagestory.Server.ConnectedClient client) [0x00338] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Server.ServerMain.HandleClientPacket (Vintagestory.Server.ConnectedClient client, System.Byte[] data) [0x0005a] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
  at Vintagestory.Server.ServerMain.ProcessNetMessage (Vintagestory.Common.NetIncomingMessage msg, Vintagestory.Common.NetServer mainSocket) [0x00151] in <1f3460e41e8b4f5c9909b9730ecb932a>:0 
💬 Zanzibar, May 27th 2023 at 3:54 AM

Thankyou for the update!!! This was and is no doubt my favorite mod Catasteroid

💬 Breugpfel, May 21st 2023 at 7:49 AM

Catasteroid That's great to hear! I feel like simple firearms fit into the game world & style very nicely as the reward for a lot of prior investment (locating the resources for blasting powder, steelmaking, etc) and exploration (for metal parts). Will watch closely!

 

💬 CatasteroidAuthor, May 19th 2023 at 2:14 AM

Breugpfel I am planning to update this mod and I'm sure it'd only require a recompile to get it running again, although I'm not sure if I have a copy of the original source code for version 1.0.0 as I actually wound up developing the mod further to include better and more varied audio for the firearms support for multiple ammo types and multiple projectile cartridges with a working buckshot cartridge item implemented. I'll have to ask around for some assistance in getting the issue resolved.

💬 Breugpfel, May 17th 2023 at 9:16 PM

Is there any plan to update this for the latest version of VS?

💬 MrSprinkleTitz, May 6th 2023 at 7:21 PM

waiting for the best gun mod around to update!💜

💬 Zanzibar, Mar 10th 2023 at 7:23 PM

Can we get a 1.18 update eventualy Catasteroid please! love your mod man, hope to use it again

💬 Blackfox229, Jan 5th 2023 at 12:49 AM

I have an idea that would be pretty cool to implament but what about a cloakwork weapon with parts you can only find or only craft if you're the right class? Maybe lower damage but higher rate of fire or slower fire but much more damage or even just for something that looks cool that you can find and repair.

💬 CatasteroidAuthor, Dec 25th 2022 at 2:33 PM

Featherduster I go by the same name on discord, dm me if you need

💬 Featherduster, Dec 24th 2022 at 8:14 AM

Your models looks absolutly amazing and I am excited to try it out, may I ask to get into contact with you and have a conversation? I have been making models for a minecraft firarms mod due to the only other VS firearms mod author kinda ghosting me, and Id like insite or even just gifting models if you wish.

💬 LadyBlakeHammer, Dec 6th 2022 at 1:26 AM

Fun idea, enable the ability to dual-wield the pistols, by allowing them in the off hand.

💬 RuneScholar, Nov 20th 2022 at 4:54 PM

I understand that this mod is incompatible with Bullseye, but is it a game breaking incompatibility, or merely the case that this mod won't use Bullseye's aiming mechanics?

💬 CatasteroidAuthor, Nov 11th 2022 at 6:08 PM

Shadoskill Did you make the parts out of the same metal? The barrel, receiver and brecech (if the recipe uses one) all must be constructed out of the same metal, the lockwork can be made out of any metal though.

💬 Shadoskill, Nov 6th 2022 at 11:39 AM

I can't seem to craft the actual guns, I smithed the parts and everything, but the final crafting recipie isnt working.

💬 CatasteroidAuthor, Sep 22nd 2022 at 2:01 AM

NocturnusWolfe The mod should be compatible with version 1.17.3 and 1.17.4, let me adjust the mod compatibility values for the 1.0.0 release version.
RevolverOcelot If I can work out an adequate code base for firearms with seperate loading/firing actions (like holding the right mouse button reloads an empty weapon but doesn't fire it, requiring you to release the right mouse button and hold it again to fire) then I can make revolvers and any other type of firearm with an integral magazine of some sort.
headtread I've actually contacted the author of the Bullseye mod and discussed my work and how it might integrate into, or with that mod so we might see some interesting developments in the near future.

💬 RevolverOcelot, Sep 21st 2022 at 5:36 AM

Are there any plans to add a revolver?

💬 NocturnusWolfe, Sep 20th 2022 at 3:53 PM

Any estimate as to when the mod will be released for 1.17.3? Or is it compatable with that version already?

💬 headtread, Sep 18th 2022 at 2:31 AM

Well, I didn't expect a definite response, let alone one that prompt and full. I've always thought the Vintage moratorium on firearms was odd considering the intention for steam power and presumably Immersive Engineering levels of mechanization is on the endgame roadmap, so a mod this specialized is really great for my niche of wanting some good pike-&-shot action. I'm happy it's going to advance beyond proof of concept and have got high hopes.

I definitely don't expect you to risk burning out reinventing the wheel with true/internal loading, but if it behooves you to tinker, certainly no one will complain if the games' open source repertoire expands. More just pipe dreaming/brain scraping by bringing it up. I advise thoroughly side projecting it if you do pursue that snarl of code, make it something you plug into the ongoing and more important expansions like more variations, rather than running up against a wall forcing it, especially with the various other little tweak packs you have going. A Bullseye patch would be nice, but I don't necessarily view it as necessary; still, I think the simplest thing is to just plug the bounding type aim, and then buff the guns to merely hit as hard proportionally over Bullseye bow/arrow combos as they do proportional to vanilla.

Here's one last food for thought, not trying to drone on; bayonets. At the most primitive level, a crafted addition to finished weapons, makes the left-click a proper melee attack for emergencies, eats durability per hit? That Far Temple Axe mod could be useful to dissect, it has two separate melee moves, so why not melee+ranged clicks? Making sure it doesn't repair the durability of a damaged gun when applied could be funky or completely trivial.

More high-concept questions may raise like, 'should it be a plug type that you can't shoot with or a socket that doesn't affect right click shooting, or both, with plugs having more damage/durability, or blades for a jack-of-all? Can you store the rifle and bayonets' separate durability as arbitrary floating points hidden in the composite rifle+bayonet item info when crafted, that is then remembered when they're separated or either value 'breaks?' Should a socket or blade type bayonet worsen dispersion? Should an unmounted blade bayonet be typed for knife recipes universally? Should it just BE any vanilla knife?'

Undoubtedly the primitive solution of a post-crafting extra is best without some big code breakthroughs, but I feel like I'm not completely full of it with the idea of tracking two merged items' durability as arbitrary numbers and then simply using that number to inform the decrafted outputs. Faking a durability system to the side of the 'real' durability system rather than making it do something it currently can't, essentially, which could as a side effect be useful for people talking about composite tool head+handle+reinforcement type systems. Only problem is I don't think it's possible to have two different craft outputs at once, or at least not DISPLAYED craft outputs. But if you CAN do separated multi-output recipes, you could use a self-deleting dummy item in the form of an icon of the rifle & bayonet models separated (it has an instant decay timer into nothing) to represent the separated items, have that display in the output box.

Come to think of decay timers, could normally unmoving perish/cure timers be called on in the case of one of the arbitrary 'fake' durability values hitting 0, causing a bayonetted gun to perish into a gun OR cure into a bayonet of the types used to make it? How schizophrenic can if-then-X code calls get jerry rigging existing mechanics to do things durability can't/shouldn't?

💬 CatasteroidAuthor, Sep 17th 2022 at 4:41 PM

headtread The recipes for assembling the final pistol using the rough pistol frame item(s) is definately a bug and unintended, I'll address it in the 1.1.0 release I have in the works along with other issues I intend to resolve and features I'll be implementing. I've been considering multi-projectile loads like buckshot since I was first developing the mod and actually it should be fairly simple to implement, and so would be adding multiple variants for each firearm that include the effects of using iron/meteoric iron/steel locks, barrels and breeches which would make items with different maximum durability and possible adding bronze variants of non-pressure bearing parts like the locks and receivers, so using a bronze lock and receiver, and an iron barrel with a steel breech would produce a bronze-bronze-iron-steel muzzle loader which would have the lowest max durability whereas using a steel lock, receiver, barrel and breech would produce a variant with the highest possible maximum durability. 

Adding new types of muzzle-loading firearms like early cast bronze handgonnes ,arquebus matchlocks, perhaps wheellocks shouldn't be too difficult- it's mostly a matter of making additional models and making JSON files to define the item types, recipes and other such mundane details and isn't a terribly complex task.

My new code for the upcoming version 1.1.0 includes support for customised particles for each gun type meaning rifles and muskets will produce bigger clouds of muzzle smoke than pistols would, however adding support for magazines, integral ammunition storage or loading/reloading processes more advanced than the current loading as part of aiming will require a significant overhaul of how the firearms function including requiring new interface elements to tell you how much ammo you have in your weapon, I can try and write an item class with functions that include a reloading action, ammunition storage and a modified firing action but it will be a significant investment of time to try and implement. I'll give it a try but I can't make any promises that it'll be ready any time soon, a long term goal for sure though.

I can potentially also add compatibility for the Bullseye mod and rebalance the firearms in this mod that would consist of a set of patches that adjust the statistics of the firearms and ammunition such as durability, accuracy, aiming/loading time, damage among others that come into effect.

In any case thank you for the feedback and suggestions, I always appreciate them and if you have any further feedback or suggestions I'd be more than happy if you provided me with it.

💬 headtread, Sep 17th 2022 at 9:47 AM

Small bug, there seems to be an oversight in the pistol recipes; for all three variants, the chiseled rough pistol frame and finished pistol frame can both be manufactured into the final pistol. In addition, rifles can use any variant of lock to manufacture, though this seems more intentional. The different pieces are all titled riflemod-item, which likewise seems to be an oversight, something tagged wrongly somewhere. Or a side-effect of the mod being server hosted.

As far as feature based suggestions, giving the breech loading rifle the exclusive ability to use more powerful rolled brass foil cartridges (in the Martini-Henry styling) would be a nice way to give it another endgame boost for industrializing/steel age players and allow it to really eclipse vanilla bows/keep up with Bullseye's increased damage in exchange for going to the trouble of using a fringe alloy, borderline unused in vanilla Vintage. The up/sidegrade of using a rifled barrel for extra accuracy and a slight damage boost in exchange for slower firerate on muzzle loaders, harder to ram the ball home. Plus, the trouble of making a specialized bore drill.

A revolver or pepperbox seems in order as a pistol equivalent to the breechloader, even faster firing, less damage. Scatter rounds, like buck or bird shot, could be useful as both a point blank high-damage option in tunnels and a mid-range surface option for getting small targets that don't need to be hit with as much of the cone to kill; multi projectiles are potentially unexplored territory at this time, though, and if you were to add rifled variants of the guns, shot either has to be unable to be fired from them, or have a larger dispersion/cone of fire, and I'm not sure if the base code is there to do something like that. Figuring out the economy for how much metal converts to how much buckshot that then converts to how much actual ammo could need attention. Not sure if the Ranged Weapons mod had functional buckshot on its handcannon, but if it does you could start there for code to backwards engineer; the extra-primitive handgonne & matchlock could also pique your interest to reinvent for bronze-age starter boom sticks.

In any case, this is all really nice. It's compact, not bloaty, the base damage of the weapons isn't too big a hike over vanilla ranged for the effort invested, and when used alongside Bullseye, you get a tidy sidegrade relationship of lower damage ceiling, unrecoverable ammo and worse dispersion in exchange for not having to work with the bows' bounding aim and having a flatter trajectory, and VERY fast refire with a breechloader over the longbow or recurve. There's really nice potential here with further polishing. Certainly, if you were to figure out how to implement actual magazines for guns/conditional inventory bearing items that aren't backpacks, if that's not been done already, that could have wider implications for the mod community or even base game. Keep at it!

💬 Thomas_Jefferson, Aug 11th 2022 at 7:43 PM

This mod would be perfect if you added reload animations/aiming animations like you mentioned. It would also be great if you slowed the reloads down a bit to be more realistic and beefed up the damage to compensate; 3 rounds per minute was the standard for infantrymen in most of the musket era (though breechloaders obviously load faster). If the reloads are made that slow, it'd also be wise to make the reload state permanent so you can load muskets in advance, otherwise people would have to hold right mouse 15 seconds or more before firing every time they switch to their musket! 

Other than adding polish and features like that, you've done fantastic work, and I really enjoyed playing around with it in-game!

💬 Acsiel, Aug 9th 2022 at 6:54 PM

These models are gorgeous!

💬 pablo11300, Aug 8th 2022 at 10:10 AM
 
Thank you for this fabulous mod, I did the translation in French I put the file if it can help.https://www.dropbox.com/s/7whiy9zpteyb6lw/fr.json?dl=0
Catasteroid
💬 AgitatedAlice, Aug 7th 2022 at 3:36 PM

Nice, was going to make a mod like this but the modelling thing is near impossible for me to use compared to something like blender.

Thanks for making this! Edit: Is bullseye compatible?

💬 ate0ate, Aug 7th 2022 at 9:09 AM

Usually I feel like firearm mods don't fit well with a game like VS, but this actually looks quite nice. Guns of this era were cumbersome, clunky beasts with just enough benefits to justify the headache of operating them compared to more traditional projectile weapons. A nice and balanced compromise. Excellent work! I cannot wait to give this a shot:)

(edit comment delete)