Error With Mod Ammo When I Start A New Game

Never played before but I’m getting this error when I try and start a new game. Didn’t install any fancy mods or anything just what was included.

DEBUG : warnings for type cw-24:
magazine “akmbigmag” holds incompatible ammo (“308” instead of “762”)
magazine “akmmag” holds incompatible ammo (“308” instead of “762”)

FUNCTION : void Item_factory::check_definitions() const
FILE : src/item_factory.cpp
LINE : 1104

Any help?

1 Like

So far as I know, the AKM “standard” munition is the 7.62x39 , and the debug is saying that the “standard” magazine is holding the .308 winchester munition (7.62x51 NATO) so I think the spawn of theses magazine are given then the wrong munition. I don’t know how to fix that and I not sure if what I said is the real problem. I hope I helped, see you ya.

{
“id”: “cw-24”,
“copy-from”: “rifle_semi”,
“type”: “GUN”,
“color”: “dark_gray”,
“name”: “CW-24”,
“name_plural”: “CW-24”,
“description”: “Civilian version of the SVS-24. It was made by Clearwater Arms, Georgia, for the US market. It’s pure semi-automatic, and fires the weaker 5.45x39mm cartridge.”,
“price”: 210000,
“//”: “Civvie version is cheaper.”,
“material”: [ “steel”, “plastic” ],
“ammo”: “545x39”,
“weight”: 3900,
“volume”: 8,
“bashing”: 12,
“to_hit”: -1,
“dispersion”: 75,
“durability”: 9,
“default_mods”: [ “red_dot_sight” ],
“valid_mod_locations”: [
[ “accessories”, 4 ],
[ “barrel”, 1 ],
[ “bore”, 1 ],
[ “brass catcher”, 1 ],
[ “grip”, 1 ],
[ “magazine”, 1 ],
[ “mechanism”, 4 ],
[ “muzzle”, 1 ],
[ “rail”, 1 ],
[ “sights”, 1 ],
[ “sling”, 1 ],
[ “stock”, 1 ],
[ “underbarrel”, 1 ]
],
“magazines”: [
[ “545x39”, [ “cw24_robomag”, “cw24_bigrobomag” ] ],
[ “762”, [ “akmmag”, “akmbigmag” ] ],
[ “654”, [ “svs24_robomag”, “svs24_robodrum” ] ]
]
}

{
“id”: “akmbigmag”,
“type”: “MAGAZINE”,
“name”: “AKM extended magazine”,
“description”: “A 40-round, 7.62x39mm magazine initially designed for the RPK but compatible with the AKM rifle.”,
“weight”: “570 g”,
“volume”: “750 ml”,
“price”: 8300,
“material”: “steel”,
“symbol”: “#”,
“color”: “light_gray”,
“ammo_type”: “762”,
“capacity”: 40,
“reliability”: 8,
“reload_time”: 120,
“flags”: [ “MAG_BULKY” ]
},
{
“id”: “akmmag”,
“type”: “MAGAZINE”,
“name”: “AKM magazine”,
“description”: “A standard 30-round magazine made for the AKM rifle, made of stamped sheet metal.”,
“weight”: “430 g”,
“volume”: “500 ml”,
“price”: 2800,
“material”: “steel”,
“symbol”: “#”,
“color”: “light_gray”,
“ammo_type”: “762”,
“capacity”: 30,
“reliability”: 9,
“flags”: [ “MAG_COMPACT” ]
}
]

These are the relevant json entries in my folders. CW-24 is in data/mods/EW_Pack/ew_weapons.json and the magazines in question are in data/json/items/magazine/762.json. What I’m guessing is happening is that you have the entry for the AK mag and extended mag under 308 instead of 762 like it should be. Check the entries for the magazines and see if they say “762” under “ammo_type” like they are supposed to.

1 Like