Experimental 4938 is bugged

Do not upgrade to experimental 4938. I missed some bugs in my recent PR. I have created a PR at GitHub to fix the problem. All of the bugs are in the main .JSON files ammo/545.json, ammo/9x18, ammo/metal_rail, gun/223, gun/308, and gun/9mm.

Due to the fact that the bugs are softcoded, they can be fixed without decompiling the game. The paths to the affected files should be
cataclysmdda/data/json/items/ammo for the bullets and cataclysmdda/data/json/items/gun for the guns.

These are working versions of the files. They have been copied from item-migration, a derivative work of Cataclysm-DDA created by BorkBorkGoesTheCode. Cataclysm-DDA was created by the community. you can find them at this forum and at https://github.com/CleverRaven/Cataclysm-DDA. Cataclysm-DDA is a derivative work of Cataclysm, created by Whales. His github account can be found here: https://github.com/Whales. They are distributed under the terms of the Creative Commons Attribution ShareAlike 3.0 license.

To fix the affected file, open it with a text editor and erase it’s contents, then copy the code below into the file and save it.

ammo/308.json

[ { "id": "308", "type": "AMMO", "name": ".308 Winchester", "name_plural": ".308 Winchester", "description": ".308 Winchester ammunition with 168gr hollow point bullets. The .308 round is one of the most popular hunting cartridges in the world due to its accuracy and power.", "weight": 18, "volume": 1, "price": 2200, "count": 20, "stack_size": 20, "material": [ "steel", "powder" ], "symbol": "=", "color": "yellow", "ammo_type": "308", "casing": "308_casing", "damage": 60, "range": 65, "pierce": 2, "dispersion": 15, "recoil": 500, "effects": [ "COOKOFF" ] }, { "id": "762_51", "copy-from": "308", "type": "AMMO", "name": "7.62x51mm M80", "name_plural": "7.62x51mm M80", "description": "A 7.62x51mm NATO round with a 147gr FMJ bullet. It is a powerful rifle cartridge commonly used by hunters and military snipers because of its high accuracy and long range.", "relative": { "damage": -2, "pierce": 4, "dispersion": -10, "recoil": 40 }, "extend": { "effects": [ "NEVER_MISFIRES" ] } }, { "id": "762_51_incendiary", "copy-from": "762_51", "type": "AMMO", "name": "7.62 NATO tracer", "name_plural": "7.62 NATO tracer", "description": "This ammunition is a one-in-five mix of M80 and M62 tracer rounds to help keep the weapon they are fired from on target.", "proportional": { "dispersion": 0.8 }, "extend": { "effects": [ "INCENDIARY" ] } }, { "id": "reloaded_308", "copy-from": "308", "type": "AMMO", "name": "reloaded .308 Winchester", "name_plural": "reloaded .308 Winchester", "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 }, "extend": { "effects": [ "RECYCLED" ] }, "delete": { "effects": [ "NEVER_MISFIRES" ] } }, { "id": "reloaded_762_51", "copy-from": "762_51", "type": "AMMO", "name": "reloaded 7.62x51mm", "name_plural": "reloaded 7.62x51mm", "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 }, "extend": { "effects": [ "RECYCLED" ] }, "delete": { "effects": [ "NEVER_MISFIRES" ] } }, { "id": "reloaded_762_51_incendiary", "copy-from": "762_51_incendiary", "type": "AMMO", "name": "reloaded 7.62x51mm incendiary", "name_plural": "reloaded 7.62x51mm incendiary", "proportional": { "price": 0.7, "damage": 0.9, "dispersion": 1.1 }, "extend": { "effects": [ "RECYCLED" ] }, "delete": { "effects": [ "NEVER_MISFIRES" ] } } ]

ammo/9x18.json

[ { "id": "9x18mm", "type": "AMMO", "name": "9x18mm 57-N-181S", "name_plural": "9x18mm", "description": "9x18mm Makarov ammunition with 93gr steel core FMJ bullets. The 9x18mm round was very common in the Eastern Bloc during the 20th century and remained in Russian military service into the 21st century.", "weight": 8, "volume" : 1, "price": 2600, "count": 50, "stack_size": 50, "material": [ "steel", "powder" ], "symbol": "=", "color": "yellow", "ammo_type": "9x18", "casing": "9x18mm_casing", "damage": 16, "pierce": 2, "range": 13, "dispersion": 140, "recoil": 185, "effects": [ "COOKOFF" ] }, { "id": "9x18mmP2", "copy-from": "9x18mm", "type": "AMMO", "name": "9x18mm SP-7", "name_plural": "9x18mm SP-7", "description": "9x18mm Makarov SP-7 ammunition. The 9x18mm round was very common in the Eastern Bloc during the 20th century and remained in Russian military service into the 21st century.", "price": 2900, "count": 25, "relative": { "damage": 4, "range": 2, "dispersion": -30, "recoil": 30 } }, { "id": "9x18mmfmj", "copy-from": "9x18mm", "type": "AMMO", "name": "9x18mm RG028", "name_plural": "9x18mm RG028", "description": "9x18mm Makarov RG028 ammunition. The RG028 round uses bullets with a hardened steel core to improve armor penetration.", "price": 3100, "relative": { "damage": -2, "pierce": 8 } } ]

ammo/metal_rail

[
  {   
    "type": "AMMO",
    "id": "rebar_rail",
    "name": "rebar rail",
    "description": "A short piece of ferromagnetic rebar which has been straightened and sharpened on one end.  Could be used as a projectile by a sufficiently powerful electromagnetic weapon.",
    "weight": 712,
    "volume": 1,
    "bashing": 5,
    "cutting": 1,
    "to-hit": -1,
    "price": 1000,
    "count": 10,
    "material": [ "iron" ],
    "symbol": "=",
    "color": "dark_gray",
    "ammo_type": "metal_rail",
    "damage": 70,
    "pierce": 25,
    "range": 40,
    "dispersion": 150,
    "recoil": 300,
    "effects": [ "RECYCLED" ]
  },
  {   
    "id": "steel_rail",
    "copy-from": "rebar_rail",
    "type": "AMMO",
    "name": "steel rail",
    "description": "A short piece of steel which has been forged true and sharpened on one end.  Could be used as a projectile by a sufficiently powerful electromagnetic weapon.",
    "weight": 520,
    "bashing": 4,
    "cutting": 2,
    "price": 1500,
    "material": [ "steel" ],
    "color": "light_gray",
    "dispersion": 0,
    "recoil": 0,
    "relative": {
        "damage": -5,
        "range": 10,
        "pierce": 15
    },
    "effects": [ "NEVER_MISFIRES" ]
  }
]

EDIT: I included the 223.json by mistake. The broken file is ammo/545x39.json

These are working versions of the files. They have been copied from item-migration, a derivative work of Cataclysm-DDA created by BorkBorkGoesTheCode. Cataclysm-DDA was created by the community. you can find them at this forum and at https://github.com/CleverRaven/Cataclysm-DDA. Cataclysm-DDA is a derivative work of Cataclysm, created by Whales. His github account can be found here: https://github.com/Whales. They are distributed under the terms of the Creative Commons Attribution ShareAlike 3.0 license.

To fix the affected file, open it with a text editor and erase it’s contents, then copy the code below into the file and save it.

gun/223.json

[ { "id": "acr", "copy-from": "rifle_auto", "type": "GUN", "name": "Bushmaster ACR", "description": "This carbine was developed for military use in the early 21st century. It is damaging and accurate, though its rate of fire is a bit slower than competing .223 carbines.", "weight": 3495, "volume": 8, "price": 234300, "bashing": 12, "to_hit": -1, "material": ["steel", "plastic"], "symbol": "(", "color": "dark_gray", "ammo": "223", "ranged_damage": -1, "dispersion": 30, "sight_dispersion": 60, "recoil": -15, "durability": 8, "burst": 3, "barrel_length": 1, "magazines": [ [ "223", [ "stanag30", "stanag10", "stanag50", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag", "g3bigmag" ] ] ] }, { "id": "ar15", "copy-from": "rifle_semi", "type": "GUN", "name": "AR-15", "//": "This is assumed to be the standard model matching the (currently not in-game) M16.", "description": "This ubiquitous rifle is the forefather of M16 rifle series. It is lightweight and accurate, but will malfunction if not properly maintained. This one is a semi automatic civilian version.", "weight": 2815, "volume": 8, "price": 125000, "bashing": 12, "to_hit": -1, "material": ["steel", "plastic"], "symbol": "(", "color": "dark_gray", "ammo": "223", "dispersion": 5, "sight_dispersion": 60, "durability": 7, "magazines" : [ [ "223", [ "stanag30", "stanag10", "stanag50", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag", "g3bigmag" ] ] ] }, { "id": "h&k416a5", "copy-from": "rifle_auto", "type": "GUN", "name": "H&K 416A5", "description": "Designed to replace the M4A1, the Heckler and Koch 416A5 features most of the former's strengths, while being considerably more durable.", "weight": 1920, "volume": 7, "price": 540000, "//" : "*Current* milspec gear is now ridiculously overpriced, as seen with the M2010 IRL.", "bashing": 12, "to_hit": -1, "material": ["steel", "plastic"], "symbol": "(", "color": "dark_gray", "ammo": "223", "ranged_damage": -2, "dispersion": 10, "sight_dispersion": 60, "recoil": 30, "durability": 8, "burst": 6, "magazines" : [ [ "223", [ "stanag30", "stanag10", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag", "g3bigmag" ] ] ] }, { "id": "hk_g36", "copy-from": "rifle_auto", "type": "GUN", "name": "H&K G36", "description": "Designed as a replacement for the early H&K G3 battle rifle, the G36 is more accurate, and uses the much-lighter .223 round, allowing for a higher ammo capacity.", "weight": 3270, "volume": 10, "price": 210000, "bashing": 12, "to_hit": -1, "material": ["steel", "plastic"], "symbol": "(", "color": "dark_gray", "ammo": "223", "dispersion": 5, "sight_dispersion": 60, "recoil": 75, "durability": 8, "burst": 15, "magazines" : [ [ "223", [ "stanag30", "stanag10", "stanag50", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag", "g3bigmag" ] ] ] }, { "id": "l_bak_223", "copy-from": "pistol_revolver", "type": "GUN", "name": "L2037 Backup", "name_plural": "L2037 Backups", "description": "Developed by Leadworks as a companion sidearm to the L523 modular system, this massive autorevolver fires the powerful .223 round, but suffers high recoil as a result. It has a weighted barrel to make recoil more manageable and a 5-chamber cylinder.", "weight": 2370, "volume": 3, "price": 267000, "bashing": 7, "to_hit": -2, "material": [ "steel", "aluminum" ], "symbol": "(", "color": "light_gray", "ammo": "223", "range": -8, "ranged_damage": -4, "//": "Most real-life autorevolvers use 6-7.5 inch barrel, but this one's mentioned to be particularly massive.", "dispersion": 75, "sight_dispersion": 90, "recoil": 120, "durability": 8, "clip_size": 5, "valid_mod_locations": [ [ "accessories", 2 ], [ "barrel", 1 ], [ "bore", 1 ], [ "grip", 1 ], [ "sights", 1 ], [ "stock", 1 ], [ "underbarrel", 1 ] ] }, { "id": "l_base_223", "copy-from": "rifle_auto", "type": "GUN", "name": "L523 platform", "description": "Leadworks LLC's bullpup L523 platform utilizes the ubiquitous 5.56 round in multiple applications, and is designed to part-swap quickly, safely, and effectively from one to the next. The base mechanism could--theoretically--be used on its own, but such use is inadvisable and will void your warranty. There's no real place to incorporate aftermarket modifications on this barren proto-weapon.", "weight": 2500, "volume": 6, "price": 350000, "//" : "Current milspec, so Expensive.", "material": ["steel", "plastic"], "symbol": "(", "color": "dark_gray", "ammo": "223", "ranged_damage": "-1", "sight_dispersion": 60, "recoil": -150, "durability": 3, "burst": 3, "valid_mod_locations": [ [ "accessories", 2 ] ], "magazines" : [ [ "223", [ "lw223mag", "lw223bigmag" ] ] ] }, { "id": "l_car_223", "copy-from": "l_base_223", "type": "GUN", "name": "L523-CAR carbine", "description": "Leadworks LLC's bullpup L523 platform utilizes the ubiquitous 5.56 round in multiple applications, and is designed to part-swap quickly, safely, and effectively from one to the next. The carbine model incorporates Leadworks' proprietary gyro-stabilization technology and includes an integral laser sight, but like the rest of the family, doesn't accept third-party modifications.", "price": 520000, "relative": { "weight": 400, "range": -6 }, "durability": 9, "burst": 5 }, { "id": "l_dsr_223", "copy-from": "l_base_223", "type": "GUN", "name": "L523-DSR rifle", "description": "Leadworks LLC's bullpup L523 platform utilizes the ubiquitous 5.56 round in multiple applications, and is designed to part-swap quickly, safely, and effectively from one to the next. The designated-shootist rifle incorporates a specially-designed extended barrel with integral bipod and foregrip, along with an integral 8x optic, and trades selective-fire for the Leadworks gyro-stabilization system. Like the rest of the family, though, it doesn't accept third-party modifications.", "price": 580000, "relative": { "weight": 1200, "volume": 4, "ranged_damage": 3, "//": "Volume, range, and bullpup all point to a very large barrel on this one.", "range": 3, "aim_speed": 2 }, "sight_dispersion": 0, "durability": 9, "burst": 0 }, { "id": "l_mbr_223", "copy-from": "l_base_223", "type": "GUN", "name": "L523-MBR rifle", "description": "Leadworks LLC's bullpup L523 platform utilizes the ubiquitous 5.56 round in multiple applications, and is designed to part-swap quickly, safely, and effectively from one to the next. The battle rifle's (proprietary) combination optic & red-dot sights provide quick and accurate targeting, with a foregrip available for greater control. Like the rest of the family, though, it doesn't accept third-party modifications.", "price": 520000, "relative": { "weight": 1200, "volume": 2, "recoil": -50, "aim_speed": -2 }, "durability": 9 }, { "id": "l_lmg_223", "copy-from": "l_base_223", "type": "GUN", "name": "L523-LMG", "description": "Leadworks LLC's bullpup L523 platform utilizes the ubiquitous 5.56 round in multiple applications, and is designed to part-swap quickly, safely, and effectively from one to the next. The rather ambitious light machine gun variant incorporates a heavy-duty barrel & foregrip, the Leadworks gyro system, and a redesigned drum magazine capable of serving up 100 rounds per reload. Unfortunately this rules out third-party magazines, as well as more usual modifications.", "price": 620000, "relative": { "weight": 2000, "volume": 7, "ranged_damage": 2, "//": "Same as the DSR.", "dispersion": 60, "aim_speed": 2, "recoil": -150 }, "durability": 9, "burst": 20 }, { "id": "m249", "copy-from": "rifle_auto", "type": "GUN", "name": "M249", "description": "The M249 is a mountable machine gun used by the US military and SWAT teams. Quite inaccurate and difficult to control, the M249 is designed to fire many rounds very quickly.", "weight": 6800, "volume": 12, "price": 750000, "bashing": 12, "to_hit": -1, "material": ["steel", "plastic"], "symbol": "(", "color": "dark_gray", "ammo": "223", "dispersion": 180, "sight_dispersion": 75, "recoil": 90, "durability": 7, "reload": 400, "modes": [ [ "DEFAULT", "auto", 30 ] ], "valid_mod_locations": [[ "accessories", 4 ],[ "barrel", 1 ],[ "bore", 1 ],[ "grip", 1 ],[ "mechanism", 4 ],[ "muzzle", 1 ],[ "rail", 1 ],[ "sights", 1 ],[ "stock", 1 ]], "magazines" : [ [ "223", [ "stanag50", "stanag30", "belt223" ] ], [ "308", [ "belt308" ] ] ] }, { "id": "m27iar", "copy-from": "h&k416a5", "type": "GUN", "name": "M27 IAR", "description": "A H&K416 carbine outfitted with a heavier barrel to enable higher amounts of suppressive fire while retaining a good degree of mobility.", "weight": 3495, "relative": { "ranged_damage": 1, "durability": 1 }, "burst": 15, "magazines" : [ [ "223", [ "stanag50", "stanag30", "stanag10" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag", "g3bigmag" ] ] ] }, { "id": "m4a1", "copy-from": "rifle_auto", "type": "GUN", "name": "M4A1", "description": "A popular carbine, long used by the US military. Though accurate, small, and lightweight, it is infamous for its unreliability when not properly maintained.", "weight": 2520, "volume": 7, "price": 240000, "bashing": 12, "to_hit": -1, "material": ["steel", "plastic"], "symbol": "(", "color": "dark_gray", "ammo": "223", "ranged_damage": -2, "dispersion": 10, "sight_dispersion": 60, "recoil": 30, "durability": 6, "burst": 10, "magazines" : [ [ "223", [ "stanag30", "stanag10", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag", "g3bigmag" ] ] ] }, { "id": "ruger_mini", "copy-from": "rifle_semi", "type": "GUN", "name": "Ruger Mini-14", "description": "A small, lightweight semi-auto carbine designed for military use. Its superb accuracy and low recoil makes it more suitable than full-auto rifles for some situations.", "weight": 2800, "volume": 8, "price": 92100, "bashing": 12, "to_hit": -1, "material": ["steel", "wood"], "symbol": "(", "color": "brown", "ammo": "223", "ranged_damage": 1, "dispersion": 10, "sight_dispersion": 60, "recoil": -60, "durability": 8, "barrel_length" : 2, "valid_mod_locations": [[ "accessories", 4 ],[ "barrel", 1 ],[ "bore", 1 ],[ "mechanism", 4 ],[ "muzzle", 1 ],[ "sights", 1 ]], "magazines": [ [ "223", [ "stanag10", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag" ] ] ] }, { "id": "sig552", "copy-from": "rifle_auto", "type": "GUN", "name": "SIG 552", "description": "A compact selective fire automatic rifle featuring an integrated folding stock.", "weight": 3200, "volume": 7, "price": 320000, "bashing": 10, "to_hit": -1, "material": ["steel", "plastic"], "ammo": "223", "sight_dispersion": 60, "recoil": 30, "durability": 9, "built_in_mods": [ "folding_stock" ], "modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "BURST", "3 rd.", 3 ], [ "AUTO", "auto", 8 ] ], "magazines" : [ [ "223", [ "stanag30", "stanag10", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag", "g3bigmag" ] ] ] }, { "id": "scar_l", "copy-from": "rifle_auto", "type": "GUN", "name": "FN SCAR-L", "description": "A highly accurate and modular assault rifle specially designed for the United States Special Operations Command. The 'L' in its name stands for light, as it uses the lightweight .223 round.", "weight": 2960, "volume": 9, "price": 280000, "bashing": 12, "to_hit": -1, "symbol": "(", "color": "dark_gray", "material": ["steel", "plastic"], "ammo": "223", "ranged_damage": -2, "dispersion": 10, "sight_dispersion": 60, "recoil": -60, "durability": 8, "burst": 10, "magazines" : [ [ "223", [ "stanag30", "stanag10", "stanag50", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "scarhmag", "scarhbigmag" ] ] ] }, { "id": "steyr_aug", "copy-from": "rifle_auto", "type": "GUN", "name": "Steyr AUG", "description": "The Steyr AUG is an Austrian assault rifle that uses a bullpup design. It is used in the armed forces and police forces of many nations, and enjoys low recoil and high accuracy.", "weight": 3240, "volume": 6, "price": 490000, "bashing": 12, "to_hit": -1, "material": ["steel", "plastic"], "symbol": "(", "color": "light_gray", "ammo": "223", "dispersion": 10, "sight_dispersion": 60, "recoil": -120, "durability": 8, "burst": 6, "valid_mod_locations": [ [ "accessories", 4 ], [ "barrel", 1 ], [ "bore", 1 ], [ "grip", 1 ], [ "mechanism", 4 ], [ "magazine", 1 ], [ "muzzle", 1 ], [ "rail", 1 ], [ "sights", 1 ], [ "underbarrel", 1 ] ], "magazines" : [ [ "223", [ "stanag30", "stanag10", "stanag50", "survivor223mag" ] ], [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ], [ "308", [ "g3mag", "g3bigmag" ] ] ] }, { "id": "surv_carbine_223", "copy-from": "rifle_semi", "type": "GUN", "name": "survivor carbine", "description": "A well designed improvised carbine with a shortened barrel. Accepting crude detachable magazines this is one of the better homemade weapons.", "weight": 1950, "volume": 6, "price": 10000, "bashing": 6, "to_hit": -1, "material": [ "steel", "wood" ], "symbol": "(", "color": "brown", "ammo": "223", "ranged_damage": -4, "//": "It's smaller than an M4A1, plus it's a homemade firearm.", "dispersion": 155, "sight_dispersion": 60, "recoil": 30, "durability": 6, "reload": 200, "loudness": 25, "valid_mod_locations": [ [ "accessories", 2 ], [ "barrel", 1 ], [ "muzzle", 1 ], [ "stock", 1 ], [ "underbarrel", 1 ] ], "magazines": [ [ "223", [ "survivor223mag" ] ] ] } ]

These are working versions of the files. They have been copied from item-migration, a derivative work of Cataclysm-DDA created by BorkBorkGoesTheCode. Cataclysm-DDA was created by the community. you can find them at this forum and at https://github.com/CleverRaven/Cataclysm-DDA. Cataclysm-DDA is a derivative work of Cataclysm, created by Whales. His github account can be found here: https://github.com/Whales. They are distributed under the terms of the Creative Commons Attribution ShareAlike 3.0 license.

To fix the affected file, open it with a text editor and erase it’s contents, then copy the code below into the file and save it.

gun/308

[ { "id": "m240", "copy-from": "rifle_auto", "type": "GUN", "name": "M240", "description": "The M240 is a medium machine gun used by the US military, replacing the older M60. Quite inaccurate and difficult to control, the M240 is designed to fire many rounds very quickly.", "weight": 9200, "volume": 12, "price": 1000000, "bashing": 13, "to_hit": -1, "material": [ "steel", "plastic" ], "symbol": "(", "color": "dark_gray", "ammo": "308", "dispersion": 170, "sight_dispersion": 75, "recoil": 120, "durability": 7, "reload": 400, "modes": [ [ "DEFAULT", "auto", 25 ] ], "valid_mod_locations": [ [ "accessories", 4 ], [ "barrel", 1 ], [ "bore", 1 ], [ "grip", 1 ], [ "mechanism", 4 ], [ "muzzle", 1 ], [ "rail", 1 ], [ "sights", 1 ], [ "stock", 1 ] ], "magazines": [ [ "308", [ "belt308" ] ], [ "223", [ "belt223" ] ] ] }, { "id": "m60", "copy-from": "rifle_auto", "type": "GUN", "name": "M60", "description": "The M60 is a general-purpose machine gun developed to replace the .30-caliber M1918 and M1919. Heavy and difficult to handle fired from the shoulder, as most people aren't action-movie heroes.", "weight": 8700, "volume": 12, "price": 1000000, "bashing": 15, "to_hit": -1, "material": [ "steel", "plastic" ], "symbol": "(", "color": "dark_gray", "ammo": "308", "ranged_damage": -1, "dispersion": 180, "sight_dispersion": 75, "recoil": 140, "durability": 7, "reload": 400, "modes": [ [ "DEFAULT", "auto", 20 ] ], "valid_mod_locations": [ [ "accessories", 4 ], [ "barrel", 1 ], [ "bore", 1 ], [ "grip", 1 ], [ "mechanism", 4 ], [ "muzzle", 1 ], [ "rail", 1 ], [ "sights", 1 ], [ "stock", 1 ] ], "magazines": [ [ "308", [ "belt308" ] ], [ "223", [ "belt223" ] ] ] }, { "id": "fn_fal", "copy-from": "rifle_auto", "type": "GUN", "name": "FN FAL", "name_plural": "FN FAL", "description": "Originally designed during the Cold War, the FN FAL is probably the most successful battle rifle ever designed. Even though often labeled as obsolete, its high rate of fire and powerful ammunition make it perfectly capable of holding its ground against modern competitors.", "weight": 3840, "volume": 8, "price": 350000, "bashing": 12, "to_hit": -1, "material": [ "steel", "wood" ], "symbol": "(", "color": "dark_gray", "ammo": "308", "ranged_damage": -1, "dispersion": 75, "sight_dispersion": 60, "recoil": -15, "durability": 8, "burst": 10, "barrel_length": 2, "magazines": [ [ "308", [ "falmag", "falbigmag" ] ], [ "223", [ "stanag30", "stanag10", "stanag50" ] ] ] }, { "id": "hk_g3", "copy-from": "rifle_auto", "type": "GUN", "name": "H&K G3", "name_plural": "H&K G3", "description": "An early battle rifle developed after the end of WWII. The G3 is designed to unload large amounts of deadly ammunition, but it is less suitable over long ranges.", "weight": 3980, "volume": 8, "price": 205000, "bashing": 12, "to_hit": -1, "material": [ "steel", "wood" ], "symbol": "(", "color": "dark_gray", "ammo": "308", "ranged_damage": -2, "dispersion": 30, "sight_dispersion": 60, "recoil": 60, "durability": 8, "modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "BURST", "3 rd.", 3 ], [ "AUTO", "auto", 10 ] ], "magazines": [ [ "308", [ "g3mag", "g3bigmag" ] ], [ "223", [ "stanag30", "stanag10", "stanag50" ] ] ] }, { "id": "m134", "type": "GUN", "name": "M134D-H Minigun", "description": "The M134 Minigun is a 7.62x51 mm NATO, six-barreled machine gun. It features Gatling-style rotating barrels with an electric motor. Its' recoil is too powerful for firing unmounted, but if you could attach it to a vehicle and find enough ammo for it, it would become a devastating weapon.", "weight": 2450, "volume": 24, "price": 5500000, "bashing": 18, "to_hit": -4, "material": "hardsteel", "symbol": "(", "color": "dark_gray", "skill": "rifle", "ammo": "308", "ranged_damage": -1, "dispersion": 120, "sight_dispersion": 200, "aim_speed": 0, "recoil": 55, "durability": 9, "reload": 400, "ups_charges": 1, "modes": [ [ "DEFAULT", "auto", 100 ] ], "magazines": [ [ "308", [ "belt308" ] ] ], "flags": [ "NEVER_JAMS", "MOUNTED_GUN" ] }, { "id": "m14a", "copy-from": "rifle_semi", "type": "GUN", "name": "M1A", "name_plural": "M1A", "description": "The child of the M1 Garand World War 2 rifle, the M1A is a semi-automatic variant of the M14, favored for its accuracy and modular use.", "weight": 3940, "volume": 9, "price": 130000, "bashing": 12, "to_hit": -1, "material": [ "iron", "wood" ], "symbol": "(", "color": "brown", "ammo": "308", "ranged_damage": -1, "sight_dispersion": 60, "recoil": -60, "durability": 8, "barrel_length": 2, "magazines": [ [ "308", [ "m14mag", "m14smallmag" ] ], [ "223", [ "stanag10" ] ] ], "valid_mod_locations": [ [ "accessories", 4 ], [ "barrel", 1 ], [ "bore", 1 ], [ "mechanism", 4 ], [ "muzzle", 1 ], [ "sights", 1 ] ] }, { "id": "m14ebr", "copy-from": "m14a", "type": "GUN", "name": "M14 EBR-RI", "name_plural": "M14 EBR-RI", "description": "A highly modified version of the M14 rifle designed to cover both CQB and designated marksman roles. A very powerful and versatile rifle, if somewhat heavy.", "weight": 4820, "price": 195000, "valid_mod_locations": [ [ "accessories", 4 ], [ "barrel", 1 ], [ "bore", 1 ], [ "grip", 1 ], [ "mechanism", 4 ], [ "muzzle", 1 ], [ "rail", 1 ], [ "sights", 1 ], [ "stock", 1 ], [ "underbarrel", 1 ] ] }, { "id": "rifle_308", "copy-from": "rifle_manual", "type": "GUN", "name": "pipe rifle: .308", "name_plural": "pipe rifles: .308", "description": "A homemade lever-action rifle. While still a primitive pipe and 2x4 design, some minor improvements have been made, such as an integral magazine for rounds, and chambering the more powerful .308 rounds.", "weight": 2311, "volume": 8, "price": 10000, "bashing": 10, "to_hit": -1, "material": [ "steel", "wood" ], "symbol": "(", "color": "brown", "ammo": "308", "ranged_damage": -5, "//": "It's amongst the smallest of the .308 firearms, and a scrap weapon as well. This means a short handmade barrel, and considerable loss of energy.", "dispersion": 75, "sight_dispersion": 60, "recoil": 30, "durability": 6, "clip_size": 6, "reload": 200, "barrel_length": 2, "valid_mod_locations": [ [ "accessories", 4 ], [ "barrel", 1 ], [ "bore", 1 ], [ "muzzle", 1 ], [ "stock", 1 ], [ "mechanism", 4 ], [ "sights", 1 ] ], "flags": [ "RELOAD_ONE" ] }, { "id": "savage_111f", "copy-from": "rifle_manual", "type": "GUN", "name": "Savage 111F", "name_plural": "Savage 111F", "description": "A very accurate rifle chambered for the powerful .308 round. Its very low ammo capacity is offset by its accuracy and near-complete lack of recoil.", "weight": 2993, "volume": 12, "price": 53000, "bashing": 12, "to_hit": -1, "material": [ "steel", "plastic" ], "symbol": "(", "color": "brown", "ammo": "308", "dispersion": 5, "sight_dispersion": 60, "recoil": -165, "durability": 9, "clip_size": 3, "barrel_length": 3, "flags": [ "RELOAD_ONE", "NEVER_JAMS" ] }, { "id": "scar_h", "copy-from": "scar_l", "type": "GUN", "name": "FN SCAR-H", "name_plural": "FN SCAR-H", "description": "A highly accurate and modular assault rifle specially designed for the United States Special Operations Command. The 'H' in its name stands for heavy, as it uses the powerful .308 round.", "ammo": "308", "ranged_damage": -3, "burst": 8, "magazine_well": 1 } ]

These are working versions of the files. They have been copied from item-migration, a derivative work of Cataclysm-DDA created by BorkBorkGoesTheCode. Cataclysm-DDA was created by the community. you can find them at this forum and at https://github.com/CleverRaven/Cataclysm-DDA. Cataclysm-DDA is a derivative work of Cataclysm, created by Whales. His github account can be found here: https://github.com/Whales. They are distributed under the terms of the Creative Commons Attribution ShareAlike 3.0 license.

To fix the affected file, open it with a text editor and erase it’s contents, then copy the code below into the file and save it.

gun/9mm.json

[
  {
    "id": "briefcase_smg",
    "type": "GUN",
    "name": "briefcase SMG",
    "description": "A custom built 9mm submachine gun camouflaged to look as the average businessman suitcase, panes of cutting edge materials and its clever internal construction allowed it to bypass even the most scrupulous of security checkpoints.  Due to the fact that the average security guard is now only concerned in eating you, this million dollar baby has been reduced to little more than a novelty item.",
    "weight": 2640,
    "volume": 5,
    "price": 400000,
    "bashing": 15,
    "material": ["steel", "leather"],
    "symbol": "[",
    "color": "dark_gray",
    "armor_data": {
        "covers": ["ARM_EITHER", "HAND_EITHER"],
        "coverage": 10,
        "material_thickness": 1,
        "encumbrance": 30,
        "warmth": 0
    },
    "skill": "smg",
    "ammo": "9mm",
    "dispersion": 255,
    "sight_dispersion": 75,
    "aim_speed": 5,
    "durability": 8,
    "modes": [
      [ "DEFAULT", "semi-auto", 1 ],
      [ "BURST", "3 rd.", 3 ],
      [ "AUTO", "auto", 5 ]
    ],
    "magazines": [
      [ "9mm", [ "stenmag", "survivor9mm_mag" ] ],
      [ "22", [ "a180mag" ] ],
      [ "45", [ "thompson_mag", "thompson_bigmag", "thompson_drum" ] ],
      [ "46", [ "hk46mag", "hk46bigmag" ] ],
      [ "57", [ "fnp90mag" ] ]
    ],
    "flags": [ "OVERSIZE", "BELTED", "FANCY", "RESTRICT_HANDS" ]
  },
  {
    "id": "calico",
    "type": "GUN",
    "name": "Calico M960",
    "name_plural": "Calico M960",
    "description": "The Calico M960 is an automatic carbine with a unique circular magazine that allows for high capacities and reduced recoil.",
    "weight": 1680,
    "volume": 4,
    "price": 240000,
    "bashing": 9,
    "to_hit": -2,
    "material": "steel",
    "symbol": "(",
    "color": "dark_gray",
    "skill": "smg",
    "ammo": "9mm",
    "ranged_damage": 2,
    "dispersion": 300,
    "sight_dispersion": 105,
    "aim_speed": 3,
    "recoil": -60,
    "durability": 6,
    "burst": 20,
    "valid_mod_locations": [ [ "accessories", 3 ], [ "barrel", 1 ], [ "bore", 1 ], [ "grip", 1 ], [ "mechanism", 4 ], [ "muzzle", 1 ], [ "rail", 1 ], [ "sights", 1 ], [ "stock", 1 ], [ "underbarrel", 1 ] ],
    "magazine_well": 1,
    "magazines": [
      [ "9mm", [ "calicomag" ] ],
      [ "22", [ "a180mag" ] ],
      [ "45", [ "thompson_drum" ] ],
      [ "57", [ "fnp90mag" ] ]
    ]
  },
  {
    "id": "cx4",
    "type": "GUN",
    "name": "Cx4 Storm",
    "description": "A small pistol caliber carbine designed for police use and civilian self-defense, the Cx4 Storm uses magazines that are interchangeable with other Beretta 9mm handguns.",
    "weight": 2300,
    "volume": 6,
    "price": 90000,
    "bashing": 8,
    "to_hit": -1,
    "material": ["steel", "plastic"],
    "symbol": "(",
    "color": "dark_gray",
    "skill": "rifle",
    "ammo": "9mm",
    "ranged_damage": 2,
    "range": 20,
    "dispersion": 180,
    "sight_dispersion": 75,
    "aim_speed": 5,
    "recoil": -15,
    "durability": 10,
    "barrel_length": 1,
    "valid_mod_locations": [[ "accessories", 4 ],[ "barrel", 1 ],[ "bore", 1 ],[ "grip", 1 ],[ "mechanism", 4 ],[ "muzzle", 1 ],[ "rail", 1 ],[ "sights", 1 ],[ "stock", 1 ],[ "underbarrel", 1 ]],
    "magazine_well": 1,
    "magazines": [
        [ "9mm", [ "m9bigmag", "m9mag" ] ],
        [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ],
        [ "45", [ "m1911mag", "m1911bigmag" ] ],
        [ "46", [ "hk46mag", "hk46bigmag" ] ],
        [ "57", [ "fn57mag" ] ]
    ]
  },
  {
    "id": "glock_19",
    "copy-from": "pistol_base",
    "type": "GUN",
    "name": "Glock 19",
    "description": "Possibly the most popular pistol in existence.  The Glock 19 is often derided for its plastic construction, but it is easy to shoot.",
    "weight": 595,
    "volume": 2,
    "price": 69000,
    "material": ["plastic", "steel"],
    "symbol": "(",
    "color": "dark_gray",
    "bashing": 8,
    "to_hit": -2,
    "ammo": "9mm",
    "ranged_damage": -1,
    "dispersion": 240,
    "sight_dispersion": 90,
    "recoil": 90,
    "durability": 6,
    "magazine_well": 1,
    "magazines": [
      [ "9mm", [ "glockmag", "glockbigmag" ] ],
      [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ],
      [ "45", [ "m1911mag", "m1911bigmag" ] ],
      [ "46", [ "hk46mag", "hk46bigmag" ] ],
      [ "57", [ "fn57mag" ] ]
    ]
  },
  {
    "id": "hk_mp5",
    "type": "GUN",
    "name": "H&K MP5",
    "description": "The Heckler & Koch MP5 is one of the most widely-used submachine guns in the world, and has been adopted by special police forces and militaries alike.  Its high degree of accuracy and low recoil are universally praised.",
    "weight": 2550,
    "volume": 5,
    "price": 280000,
    "bashing": 10,
    "to_hit": -2,
    "material": ["steel", "plastic"],
    "symbol": "(",
    "color": "dark_gray",
    "skill": "smg",
    "ammo": "9mm",
    "ranged_damage": 1,
    "dispersion": 150,
    "sight_dispersion": 75,
    "aim_speed": 5,
    "recoil": -45,
    "durability": 8,
    "modes": [
      [ "DEFAULT", "semi-auto", 1 ],
      [ "BURST", "3 rd.", 3 ],
      [ "AUTO", "auto", 8 ]
    ],
    "valid_mod_locations": [[ "accessories", 3 ],[ "barrel", 1 ],[ "bore", 1 ],[ "grip", 1 ],[ "mechanism", 4 ],[ "muzzle", 1 ],[ "rail", 1 ],[ "sights", 1 ],[ "stock", 1 ],[ "underbarrel", 1 ]],
    "magazines" : [
      [ "9mm", [ "mp5mag", "mp5bigmag" ] ],
      [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ],
      [ "45", [ "ump45mag" ] ],
      [ "46", [ "hk46mag", "hk46bigmag" ] ],
      [ "57", [ "fn57mag" ] ]
    ]
  },
  {
    "id": "ksub2000",
    "type": "GUN",
    "name": "Kel-Tec SUB-2000",
    "name_plural": "Kel-Tec SUB-2000",
    "description": "A uniquely designed pistol caliber carbine with an integral folding stock and that makes use of 9mm Glock magazines.",
    "weight": 1985,
    "volume": 7,
    "price": 5900,
    "bashing": 8,
    "to_hit": -1,
    "material": ["steel", "plastic"],
    "symbol": "(",
    "color": "dark_gray",
    "skill": "rifle",
    "ammo": "9mm",
    "ranged_damage": 3,
    "range": 18,
    "dispersion": 210,
    "sight_dispersion": 85,
    "aim_speed": 5,
    "recoil": -15,
    "durability": 7,
    "barrel_length": 1,
    "valid_mod_locations": [[ "accessories", 4 ],[ "barrel", 1 ],[ "bore", 1 ],[ "grip", 1 ],[ "mechanism", 4 ],[ "muzzle", 1 ],[ "rail", 1 ],[ "sights", 1 ]],
    "built_in_mods": [ "folding_stock" ],
    "magazine_well": 1,
    "magazines": [
        [ "9mm", [ "glockmag", "glockbigmag" ] ],
        [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ],
        [ "45", [ "m1911mag", "m1911bigmag" ] ],
        [ "46", [ "hk46mag", "hk46bigmag" ] ],
        [ "57", [ "fn57mag" ] ]
    ]
  },
  {
    "id": "l_lookout_9mm",
    "copy-from": "l_enforcer_45",
    "type": "GUN",
    "name": "L2032 Lookout",
    "name_plural": "L2032 Lookout",
    "description": "After the Enforcer's success, Leadworks LLC reworked their autorevolver design to cater to the 9mm market.  The Lookout, released in 2032, takes advantage of the smaller 9mm to hold a seventh round, without sacrificing the ease of handling or reloading the Enforcer made legendary.",
    "ammo": "9mm",
    "clip_size": 7
  },
  {
    "id": "l_mp_9mm",
    "copy-from": "l_sp_9mm",
    "type": "GUN",
    "name": "L39B",
    "description": "A selective-firing 9mm handgun introduced in 2039, Leadworks LLC's L39B provides accurate single-shot placement as well as controllable short-range firepower with its three-round burst mode.  Users praised its accuracy and fearsome appearance.",
    "price": 95000,
    "ammo": "9mm",
    "relative": {
        "weight": 130,
        "recoil": 15,
        "durability": -1
    },
    "burst": 3, "//": "The M93R can go through up to 110 rounds in six seconds, FWIW."
  },
  {
    "id": "l_sp_9mm",
    "copy-from": "pistol_base",
    "type": "GUN",
    "name": "L39", "//": "L39s are based off the Robocop Auto-9, in turn a dolled-up Beretta 93R.",
    "description": "A semiautomatic 9mm handgun introduced in 2039, Leadworks LLC's L39 provides accurate single-shot placement in a very robust frame.  Several urban legends describe using it in ways that would have destroyed a lesser weapon.",
    "weight": 935,
    "volume": 2,
    "price": 70000,
    "bashing": 8,
    "to_hit": -2,
    "material": ["steel", "plastic"],
    "symbol": "(",
    "color": "dark_gray",
    "ammo": "9mm",
    "range": 1,
    "dispersion": 150,
    "sight_dispersion": 90,
    "aim_speed": 4,
    "recoil": 60,
    "durability": 9,
    "magazine_well": 1,
    "magazines": [
      [ "9mm", [ "lw21mag" ] ],
      [ "45", [ "lw12mag" ] ]
    ],
    "flags": [ "DURABLE_MELEE" ]
  },
  {
    "id": "m9",
    "copy-from": "pistol_base",
    "type": "GUN",
    "name": "Beretta M9",
    "description": "A very popular 9mm pistol, the M9 has been the standard issue sidearm of the US army since 1985.",
    "weight": 590,
    "volume": 2,
    "price": 65000,
    "bashing": 8,
    "to_hit": -2,
    "material": ["steel", "plastic"],
    "symbol": "(",
    "color": "dark_gray",
    "ammo": "9mm",
    "range": 1,
    "dispersion": 225,
    "sight_dispersion": 90,
    "recoil": 90,
    "durability": 6,
    "magazine_well": 1,
    "magazines": [
      [ "9mm", [ "m9mag", "m9bigmag" ] ],
      [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ],
      [ "45", [ "m1911mag", "m1911bigmag" ] ],
      [ "46", [ "hk46mag", "hk46bigmag" ] ],
      [ "57", [ "fn57mag" ] ]
    ]
  },
  {
    "id": "rifle_9mm",
    "type": "GUN",
    "name": "pipe rifle: 9mm",
    "name_plural": "pipe rifles: 9mm",
    "description": "A home-made rifle.  It is simply a pipe attached to a stock, with a hammer to strike the single round it holds.",
    "weight": 2114,
    "volume": 8,
    "price": 10000,
    "bashing": 10,
    "to_hit": -1,
    "material": [ "steel", "wood" ],
    "symbol": "(",
    "color": "brown",
    "skill": "rifle",
    "ammo": "9mm",
    "ranged_damage": 1, "//": "Despite its quality, it IS a small rifle, although not as effective as a genuine pistol carbine.",
    "dispersion": 105,
    "sight_dispersion": 60,
    "aim_speed": 6,
    "recoil": 30,
    "durability": 6,
    "loudness": 25,
    "clip_size": 1,
    "reload": 200,
    "barrel_length": 3,
    "valid_mod_locations": [ [ "accessories", 2 ], [ "muzzle", 1 ], [ "stock", 1 ] ],
    "flags": [ "RELOAD_ONE", "RELOAD_EJECT" ]
  },
  {
    "id": "sten",
    "type": "GUN",
    "name": "STEN",
    "description": "A British submachine gun developed during World War II, to make up for shortages of supplies.  Designed to be made using unskilled labor and not known for reliablity, its main advantages were low cost and being able to use German 9mm ammunition.",
    "weight": 2945,
    "volume": 7,
    "price": 40000,
    "bashing": 10,
    "material": "steel",
    "symbol": "[",
    "color": "dark_gray",
    "skill": "smg",
    "ammo": "9mm",
    "ranged_damage": 1,
    "dispersion": 150,
    "sight_dispersion": 90,
    "aim_speed" : 4,
    "durability": 5,
    "modes": [
      [ "DEFAULT", "auto", 3 ]
    ],
    "valid_mod_locations": [[ "accessories", 2 ],[ "muzzle", 1 ],[ "stock", 1 ]],
    "magazines" : [
        [ "9mm", [ "stenmag", "survivor9mm_mag" ] ],
        [ "22", [ "a180mag" ] ],
        [ "45", [ "mac10mag" ] ],
        [ "46", [ "hk46mag", "hk46bigmag" ] ],
        [ "57", [ "fnp90mag" ] ]
    ]
  },
  {
    "id": "tec9",
    "type": "GUN",
    "name": "TEC-9",
    "name_plural": "TEC-9",
    "description": "The TEC-9 is a machine pistol made of cheap polymers and machine stamped parts.  Its rise in popularity among criminals is largely due to its intimidating looks and low cost.",
    "weight": 1080,
    "volume": 2,
    "price": 125000,
    "bashing": 9,
    "to_hit": -2,
    "material": "steel",
    "symbol": "(",
    "color": "dark_gray",
    "skill": "smg",
    "ammo": "9mm",
    "dispersion": 240,
    "sight_dispersion": 105,
    "aim_speed": 3,
    "recoil": -15,
    "durability": 6,
    "modes": [
      [ "DEFAULT", "auto", 8 ]
    ],
    "valid_mod_locations": [ [ "accessories", 3 ], [ "barrel", 1 ], [ "bore", 1 ], [ "grip", 1 ], [ "mechanism", 4 ], [ "muzzle", 1 ], [ "rail", 1 ], [ "sights", 1 ], [ "stock", 1 ], [ "underbarrel", 1 ] ],
    "magazine_well": 1,
    "magazines": [
        [ "9mm", [ "tec9mag" ] ],
        [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ],
        [ "45", [ "mac10mag" ] ],
        [ "46", [ "hk46mag", "hk46bigmag" ] ],
        [ "57", [ "fn57mag" ] ]
    ]
  },
  {
    "id": "usp_9mm",
    "copy-from": "pistol_base",
    "type": "GUN",
    "name": "USP 9mm",
    "description": "A popular pistol, widely used among law enforcement.  Extensively tested for durability, it has been found to stay accurate even after being subjected to extreme abuse.",
    "material": ["steel", "plastic"],
    "symbol": "(",
    "color": "dark_gray",
    "weight": 520,
    "volume": 2,
    "price": 68000,
    "bashing": 8,
    "to_hit": -2,
    "ammo": "9mm",
    "ranged_damage": -1,
    "dispersion": 255,
    "sight_dispersion": 90,
    "recoil": 75,
    "durability": 9,
    "magazine_well": 1,
    "magazines": [
      [ "9mm", [ "usp9mag" ] ],
      [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ],
      [ "45", [ "usp45mag" ] ],
      [ "46", [ "hk46mag", "hk46bigmag" ] ],
      [ "57", [ "fn57mag" ] ]
    ]
  },
  {
    "id": "uzi",
    "type": "GUN",
    "name": "Uzi 9mm",
    "description": "The Uzi 9mm has enjoyed immense popularity, selling more units than any other submachine gun.  It is widely used as a personal defense weapon, or as a primary weapon by elite frontline forces.",
    "weight": 3280,
    "volume": 5,
    "price": 208000, "//" : "SMGs aren't as commercially traded as rifles/handguns/SGs, so no cite for price points.",
    "bashing": 10,
    "to_hit": -2,
    "material": "steel",
    "symbol": "(",
    "color": "dark_gray",
    "skill": "smg",
    "ammo": "9mm",
    "ranged_damage": 1,
    "dispersion": 255,
    "sight_dispersion": 105,
    "aim_speed": 3,
    "recoil": -15,
    "durability": 7,
    "burst": 12,
    "valid_mod_locations": [[ "accessories", 3 ],[ "barrel", 1 ],[ "bore", 1 ],[ "grip", 1 ],[ "mechanism", 4 ],[ "muzzle", 1 ],[ "rail", 1 ],[ "sights", 1 ],[ "stock", 1 ],[ "underbarrel", 1 ]],
    "magazines": [
        [ "9mm", [ "uzimag" ] ],
        [ "22", [ "ruger1022bigmag", "ruger1022mag" ] ],
        [ "45", [ "tdi_mag" ] ],
        [ "46", [ "hk46mag", "hk46bigmag" ] ],
        [ "57", [ "fn57mag" ] ]
    ]
  }
]

[THIS IS THE CORRECT FILE]
These are working versions of the files. They have been copied from item-migration, a derivative work of Cataclysm-DDA created by BorkBorkGoesTheCode. Cataclysm-DDA was created by the community. you can find them at this forum and at https://github.com/CleverRaven/Cataclysm-DDA. Cataclysm-DDA is a derivative work of Cataclysm, created by Whales. His github account can be found here: https://github.com/Whales. They are distributed under the terms of the Creative Commons Attribution ShareAlike 3.0 license.

To fix the affected file, open it with a text editor and erase it’s contents, then copy the code below into the file and save it.

[NOTE: the previous version of this post was also bugged. The bug is gone.
ammo/545x39.json

[ { "id": "545", "//": "Mainlined from Icecoon's Weapons Pack.", "type": "AMMO", "name": "5.45x39mm 7N10", "name_plural": "5.45x39mm 7N10", "description": "5.45x39mm 7N10 ammunition with 56gr FMJ bullets. The 5.45x39mm round was introduced along with the AK-74 in 1974. It has superior wounding potential to the older 7.62x39mm round and quickly replaced it in Soviet military use.", "weight": 10, "volume": 1, "price": 2900, "count": 30, "stack_size": 30, "material": [ "steel", "powder" ], "symbol": "=", "color": "yellow", "ammo_type": "545x39", "casing": "545_casing", "damage": 40, "pierce": 6, "range": 37, "dispersion": 5, "recoil": 360, "effects": [ "COOKOFF" ] }, { "type": "AMMO", "id": "545_ap", "copy-from": "545", "price": 6500, "name": "5.45x39mm 7N22", "name_plural": "5.45x39mm 7N22", "description": "Armor piercing 5.45x39mm ammunition with 57gr bullets containing a steel penetrator. Developed in 1998 by the Russian military.", "relative": { "damage": -2, "pierce": 8, "recoil": 30 } } ]

This is caused by JSON typos. It is easy to fix, as long as you use save instead of save as.

This has now been fixed in experimental 4940.