Jump to content

ORGM Rechambered


Fenris_Wolf

Recommended Posts

As some of you know, ORMtnMan stopped development of the Real Guns Mod some time ago, but didn't want his work to go to waste.

After much hammering away on the keyboard, and testing on poor defenseless zombies I feel its now safe to officially present the results.  This brings a number of new features and fixes to ORGM.

 

Current Version: 3.09.2 Stable

Tested PZ Versions: 38.30 to 40.43

 

Current Compatibility:

Necroforge & Survivors Mod: Compatible (built-in patch, as of v2.02-stable)

Nolan's ORGM Silencer Mod: Compatible (built-in patch, as of v2.03-stable)

Nolan's SuperSurvivors Mod: Partially Compatible (built-in patch, as of v3.04-stable)

 

Any other mods/addons for the legacy ORGM version are not considered compatible. Expect errors if you use them.

 

Changelog

Webpage and Frequently Asked Questions

Discord ORGM Support

 

Introductory ORGM Tutorial Video (By Ghul King)

 

 

Downloads (Stable):

Current Release 3.09.2 Stable:  https://downloads.tekagis.ca/ProjectZomboidMods/ORGM.zip

Steam Workshop 3.09.2 Stable: https://steamcommunity.com/sharedfiles/filedetails/?id=514618604

* steam version may not be up-to-date with latest release. Credit to Khaos & ORMntMan for maintaining the workshop page

 

Downloads (Beta/Experimental):

Latest Beta Release 3.09.2 Stable:  https://downloads.tekagis.ca/ProjectZomboidMods/ORGM-Beta.zip

 * In the event the latest version is stable, the beta link above will point to the stable version.

Github Development Version: https://github.com/FWolfe/RealGunsMod

 

 

Edited by Fenris_Wolf
Link to comment
Share on other sites

Once you have finalised and released a "finished" version is a Steam release in some way something we might see? Like having OrmatnMan update his original upload (provided it's acceptable between the both of you) or have some third party upload it? I only ask purely for the ease it gives to Steam users in joining modded servers. If not that's completely understandable as you don't use it, just eager to know.

Link to comment
Share on other sites

I have no issues with it being uploaded to steam, but personally I have a mixed love/hate relationship with them. I'll spare you guys the long winded praise/rant/manifesto on why, but the short version is:

If someone wants to handle the steam side of things that's fine, but unfortunately it wont be me doing it.

Link to comment
Share on other sites

I've come across an error unfortunately (given I'm on the previous version) but I was using the M3 Super on pump mode and all of a sudden when reload the weapon emptied itself and two different types of buckshot came out (one being an original or possibly a dummy round?) and now I can no longer load it.

Link to comment
Share on other sites

8 minutes ago, Khaos said:

I've come across an error unfortunately (given I'm on the previous version) but I was using the M3 Super on pump mode and all of a sudden when reload the weapon emptied itself and two different types of buckshot came out (one being an original or possibly a dummy round?) and now I can no longer load it.

interesting, dont suppose you saved the console stack trace messages? Would help tracking it down.

 

Edit: even more helpful, in the media/lua/client/UI folder is the file ISORGMMenu.lua, around line 200 or so (not sure if your using the previous version) is:

 

        --context:addOption("* Debug Weapon", item, OnDebugWeapon, playerObj, data, reloadable)
        --context:addOption("* Test Function", item, OnTestFunction, playerObj, data, reloadable)
        --context:addOption("* Reset To Defaults", item, OnResetWeapon, playerObj, data, reloadable)

 

remove the -- from the 'debug weapon' and 'reset to defaults' functions....the debug will print the weapon stats to the console log, reset to defaults will fix any errors

Edited by Fenris_Wolf
Link to comment
Share on other sites

1 hour ago, Khaos said:

Will try get on it as soon as possible.

No rush...I'm giving the weapon class a workover now (few issues unloading breakbarrels).

You didn't by chance have the survivors mod loaded did you? Its not fully compatible, it doesn't understand the new ammo system and uses the dummy rounds...it also doesn't properly track the rounds in the magazine with the new system which sometimes leads to errors when getting guns from dead survivors. I'm adding some fixes in now so whenever a dummy round is inserted, fired or unloaded its converted to a FMJ version.

That M3 that gave you issues is kinda bugging me I'm pushed over a thousand rounds through that one already without issue, not in pump mode though but honestly there isn't any difference. For the record you can tell if you got a dummy round the name in inventory will simply be:

'12 Gauge shells' instead of '00Buck 12 Gauge shells'.  Same with other bullets the real rounds will all be labelled FMJ or HP, if its missing the bullet type you somehow ended up with a dummy.

 

EDIT:  I should ask, what reloading difficulty settings are you playing at?

Edited by Fenris_Wolf
Link to comment
Share on other sites

2 hours ago, Fenris_Wolf said:

No rush...I'm giving the weapon class a workover now (few issues unloading breakbarrels).

You didn't by chance have the survivors mod loaded did you? Its not fully compatible, it doesn't understand the new ammo system and uses the dummy rounds...it also doesn't properly track the rounds in the magazine with the new system which sometimes leads to errors when getting guns from dead survivors. I'm adding some fixes in now so whenever a dummy round is inserted, fired or unloaded its converted to a FMJ version.

That M3 that gave you issues is kinda bugging me I'm pushed over a thousand rounds through that one already without issue, not in pump mode though but honestly there isn't any difference. For the record you can tell if you got a dummy round the name in inventory will simply be:

'12 Gauge shells' instead of '00Buck 12 Gauge shells'.  Same with other bullets the real rounds will all be labelled FMJ or HP, if its missing the bullet type you somehow ended up with a dummy.

 

EDIT:  I should ask, what reloading difficulty settings are you playing at?

 

No survivors mod running, the ammo definitely read '12 gaueg shells' and I was on hardcore reloading. I used other weapons but it's like that M3 has just ceased to function. I will head to the police station and get another to see if that specific weapon is broken.

Link to comment
Share on other sites

That really shouldn't be happening then if survivors isn't loaded, uncommenting those 2 lines in ISORGMMenu.lua is probably the best bet, as well as updating the mod from that older version although later today I should be releasing a new beta version.  Either way it shouldn't break your saves.

At any rate, if you uncomment those lines, the "Reset to default' context menu will do exactly what it says on the tin (I created it when testing so I didn't have to respawn new guns everytime i broke something or updated the mod)

The "Debug Weapon" context menu will print to the console:

Spoiler

(a fully loaded M3 in pump mode)

triggerType == DoubleActionOnly
actionType == Pump
roundChambered == 1
emptyShellChambered == 0
containsClip == nil
maxCapacity == 7
currentCapacity == 7
isOpen == 0
hammerCocked == 0
lastRound == Ammo_12g_00Buck
preferredAmmoType == nil
loadedAmmo == Ammo_12g_00Buck
magazineData #1 = Ammo_12g_00Buck
magazineData #2 = Ammo_12g_00Buck
magazineData #3 = Ammo_12g_00Buck
magazineData #4 = Ammo_12g_00Buck
magazineData #5 = Ammo_12g_00Buck
magazineData #6 = Ammo_12g_00Buck
magazineData #7 = Ammo_12g_00Buck
 

(a empty M3 in pump)

triggerType == DoubleActionOnly
actionType == Pump
roundChambered == 0
emptyShellChambered == 0
containsClip == nil
maxCapacity == 7
currentCapacity == 0
isOpen == 0
hammerCocked == 0
lastRound == Ammo_12g_00Buck
preferredAmmoType == nil
loadedAmmo == nil
magazineData #1 = nil
magazineData #2 = nil
magazineData #3 = nil
magazineData #4 = nil
magazineData #5 = nil
magazineData #6 = nil
magazineData #7 = nil
 

 

Edited by Fenris_Wolf
Link to comment
Share on other sites

v2.00-beta-rc2 is up

dummy rounds that somehow make their way into guns or the inventory are converted to FMJ (or buck) on reloading/unloading or chambering.

fix for bug introduced in beta-rc1 that stupidly spawned ammo and guns in school lockers <_<

recipes added to convert any vanilla ammo spawned by other mods to ORGM ammo

Link to comment
Share on other sites

2.00-beta-rc3 is up

Reworked some parts to make it easier to incorporate ORGM compatibility into other mods.

Added a patch for the Survivors mod so NPCs can use the new ORGM ammo system.

Fixed rare occurrence gun/magazine spawning bug when a player spawns on a brand new map in the gunshop/police station and getPlayer() returns nil when filling out containers

 

Link to comment
Share on other sites

Oh man I"m definitely looking forward to testing this out! looks great from what I've read and I'm straight up excited haha. I'm curious if you'll be making a compatibility patch for hydrocraft's ammo crafting system and hunting? There is one on steam that does the ammo crafting but I'm not sure if it'll work with the new update/ If not that's fine too, maybe ill work on it in my free time if that's okay with you? of course my free time now a days is extremely limited lol :P

Link to comment
Share on other sites

A hydrocraft patch has defiantly been on my mind, its alot of work though the way the hunting system currently works.  Several functions need to be overritten (easy enough) the tedious part though is all the hunting recipes (every game type * every gun * every possible bullet the gun uses = alot of recipes).  I was planning on saving it until after I can officially call v2.00 stable, and probably write a script to fill out automatically all the recipes (useful for maintaining the patch once more guns and ammo start to get added).  The old ammo crafting patch won't work.

 

If you wanted to work on it of course that's fine, people should feel free to do whatever they like with the new code base: compatibility patches, or including parts of the code in their own mod (as long as credit is given). The current models and icons are all from ORMntMan's version so use of those is up to him (those wouldn't be needed for the hydrocraft patch though)

 

 

Link to comment
Share on other sites

yeah it definitely is a ton of work, honestly I may just worry about the ammo crafting and not hunting and leave the hunting to the vanilla weapons lol. however my OCD wouldn't allow that :I . Im actually working on a text document coming up with a more realistic way to craft ammo including your new types (FMJ and HP rounds) I'm going to be working on art tonight for the new items. I do however need to have a chat with hydro though and see what he thinks of my ideas. Hopefully this idea will run smoothly though lol

Link to comment
Share on other sites

I was tempted to do a addon Reloading mod, using a reloading press, primer tool & scales, and adding boxes of primers and bullets, reusing spent shells from firing, but I haven't decided 100% if I want to yet as its kinda straying off topic. Plus for some of us trigger happy types the number of ejected shells that would end up littering the map would be pretty extreme (until someone comes along and collects them that is).

If I do though it would be a separate thing not tied into HC and not sure I'd want to add the ability to craft cases, primers or advanced bullet types (if anything only soft points).  Without the primer crafting the whole system would be of limited use in the long game, you'd have to find boxes (extremely rare, probably gunshop only) or salvage them from other ammo.

At any rate the code for dropping the spent shells is pretty much in place but I have yet to add the actual items.

Link to comment
Share on other sites

now that would be amazing to actually find spent casings on the ground, I actually love that idea haha. especially to be able to pick them up and re use them!. now for the primer crafting. I actually have a chemical recipe put together using the hydrocraft chemistry system, which already has almost all the chemicals needed, (acetone, hydrogen peroxide, Muriatic Acid) I'm currently doing the art for the sodium bicarbonate aka baking soda lol. after using the lab station in hydrocraft and various of the chemicals stated above and it'll leave you with a dried bag of primer ready to press into caps. So if you are thinking about adding in the whole crafting system, hydrocraft already has most needed items integrated into it. thats why i figured a side compatibility mod would be best. I also have it set to be able to smelt down brass into shell casings and for shotgun shell you'll need brass for the shell rim, then plastic sheets melted into tubes for the upper casing of the shell, and more plastic sheets to complete the wadding. personally ive always thought ORGM and  hydrocraft could merge well together, its just a good bit of work coming up with the recipe ideas, at least the coding isn't to hard

Link to comment
Share on other sites

I defiantly agree they merge nicely, always thought it was a shame that they weren't fully compatible. For the hunting system, HC currently has the weapons and % chances hardcoded into the functions, If these were in a global table instead then new weapons could be inserted to it and it would make compatibility alot easier as there would be no need to override the functions, preserving mod compatibility over future versions as well. When you start overriding functions the chances of it breaking in a future update rise...the recipes are still the dragging point though, IMO those should be dropped and have it 100% in lua.

Manufacturing cases is actually a pretty difficult process, between the metalworking and precise measuring tools required, as well as knowledge of the actual measurements required for each caliber. Its not the kind of precision work most people can wrap their heads around, even with metalwork training (your working in the 0.001 inches scale, and angles need to be exact).  I worked and trained for several years as a gunsmith before moving into the world of software dev, so understand just how finicky the inside of a chamber is. I think the measurement blueprints shouldn't just be a simple learned recipe, but would have to be kept in a book or notes the player would have to have on hand while building their setup.

Link to comment
Share on other sites

hmm, this makes me think that maybe in order to make the casing molds i should add in needing to have a measuring tape/ some other kind of measuring device since theres some in HC already, and to need to have the Ammo manufacturing textbook on your character while making the casing molds ect. i did add for FMJ rounds you need a Cupronickel ingot to case the lead tips in. I know irl its much harder and requires a ton of presision , but I do have to dumb it down a bit for game sake lol. although i think maybe i should make certain rounds require a higher gun & aiming skill to manufacture? just to keep it harder to do, although to make some of this stuff you need a high metalworking for the brass smelting, and for making the primer takes a ton of resources on its own.

 

But yes the hunting will be a bit of a beotch to mess with, unfortunately the hunting stuff was actually a separate mod that someone made that gave hydro permission to add it in. so for the time being I fear it may have to stay the way it is.

Edited by Man_In_The_Purple_Hat
Link to comment
Share on other sites

Heres actually a pretty basic explanation of the process involved in case manufacture https://www.petersoncartridge.com/our-process/drawing-brass

Some rounds are defiantly harder then others, a plain lead softpoint bullet is much simpler to make then a FMJ (you want the jacket a uniform thickness around the core) or jacketed hollowpoints.  Some cases (most pistol rounds) don't require the necking process, and rimfire rounds like the .22 don't use a typical primer that can be punched out but have the priming material packed inside..these are actually harder to reuse, as the firing pin will strike and crush part of the rim, and require special reloading tools.

Link to comment
Share on other sites

Oh this is awesome!!!!! This link will help me out soooo much! thanks! now im not sure weather to use molds for smithing the brass or to use brass sheets and other equipment...hmm or both!? maybe I could make a basic way and an advanced way to produce ammo, basic would be smelting the bars ect. or once you have high enough levels and the good machinery you can make ammo in bulk using the sheets and the proper machines. oh man, more ideas turn into more work haha but it makes it fun in my opinion :P

Link to comment
Share on other sites

2.00-beta-rc4 is up

 

Guns now have a chance of jamming based on weapon condition. Racking the gun clears the jam. Revolvers and break barrels are not susceptible to jamming. Easy and Normal difficulty will auto rack to clear.

At any rate, the jammed round will fall to the floor. This is affected by the lucky/unlucky traits.

 

Guns found on zombies and in houses once again are in random condition.

 

Increased durability of all firearms, especially revolvers

 

Fixed bug causing all bullets to be set to penetrating. Fixing this also fixed a bug with buckshot not properly hitting multiple targets.

 

Buckshot minimal damage has been lowered to reduce the some of the unbalance in using shotguns on hordes.

 

Added fix in the Survivors mod patch to handle the jams

Edited by Fenris_Wolf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...