I am at the point of tears. I have done everything I can think of, I’ve combed though every line of code ten times but, whatever the problem is, I can’t find it.
Background: I like this game and have been playing it for some years. I’ve watched it from the humble beginnings all the way to now. I also like Warhammer 40,000. So, naturally, I decided to put the two together.
Now, I’m not saying that I’ll be making a mod that encompasses the 40K universe. Right now I just want to make a proof of concept and to see if I like doing this (I probably will because code is a puzzle and i really like puzzles.).
Problem: The console loads fine and every mod loads just great. The compile is fine. When I select my mod and load a world it goes though the DDA files and then stalls when attempting to load the mod. The debugger will not display, however, compounding the problems and exponentially expanding my frustration.
Anyway, I put my code in spoilers so as not to nom the the page. If there’s something I’ve missed, let me know. If there’s a step involved that I’m not getting, refer to the previous line.
gun.json
[
{
“id”: “Godwin_Bolter”,
“type”: “GUN”,
“name”: “Godwin Pattern Bolter”,
“name_plural” : “Godwin Pattern Bolters”,
“description”: “A massive handheld rifle that fires rounds the size of beer cans.”,
“weight”: 20,
“volume”: 4,
“price”: 6000000,
“to_hit”: -2,
“bashing”: 14,
“ranged_damage” : 3,
“material”: “steel”,
“symbol” : “(”
“color”: “light_gray”,
“ammo”: “bolt”,
“dispersion”: 40,
“durability”: 10,
“loudness” : 30,
“reload” : 180,
“barrel_length” : 1,
“magazines”:[ [ “bolt”, [ “BolterSickleMag_30”, [ BolterSickleMag_25, [ BolterSickleMag_20, ] ] ] ]
}
]
ammo.json
[
{
“id”: “bolt”,
“type”: “AMMO”,
“name”: “.75 Bolt”,
“name_plural”: “.75 Bolts”,
“description”: “Case of standard Boltgun rounds. A Mass-reactive charge inside the round explodes when hitting a solid mass.”,
“weight”: 20,
“volume”: 3,
“price”: 250000,
“material”: [ “brass”, “powder”, “steel” ],
“symbol”: “=”,
“color”: “green”,
“bashing” : 1,
“cutting” : 0,
“to_hit” : 0,
“ammo_type”: “bolt”,
“damage” : 60,
“pierce” : 10,
“range” : 24,
“dispersion” : 30,
“recoil” : 750,
“count” : 50,
“stack_size”: 35,
“effects”: [ “COOKOFF”, “EXPLOSIVE”, “MUZZLE_SMOKE”, “SMOKE”, “FRAG”, “FLASHBANG”]
}
]
magazine.json
[
{
“id”: “BoltPistolMag_9”,
“type”: “MAGAZINE”,
“name”: “Bolt Pistol Magazine”,
“description”: “A 9-round magazine for a Bolt Pistol.”,
“Weight”: 100,
“Volume”: 2,
“Price”: 10000,
“material” : “steel”,
“symbol” : “#”
“color” : “light_gray”,
“ammo_type”: “bolt”,
“capacity”: 9
"reliability" : 10
"reload_time" : 120
},
{
“id”: “BolterSickleMag_20”,
“type”: “MAGAZINE”,
“name”: “20-Round Bolter MAGAZINE”,
“description”: “A 20 round sickle magazine for the holy Bolter.”,
“Volume”: 2,
“Price”: 10000,
“material” : “steel”,
“symbol” : “#”
“color” : “light_gray”,
“capacity” : 20,
“weight”: 160,
“ammo_type”: “bolt”
“reliability” : 10
"reload_time" : 200
},
{
“id”: “BolterSickleMag_25”,
“type”: “MAGAZINE”,
“name”: “25-Round Bolter MAGAZINE”,
“description”: “A 25 round sickle magazine for the holy Bolter.”,
“Volume”: 2,
“Price”: 10000,
“material” : “steel”,
“symbol” : “#”
“color” : “light_gray”,
“capacity” : 25,
“weight”: 180,
“ammo_type”: “bolt”
“reliability” : 10
"reload_time" : 250
},
{
“id”: “BolterSickleMag_30”,
“type”: “MAGAZINE”,
“name”: “30-Round Bolter MAGAZINE”,
“description”: “A 30 round sickle magazine for the holy Bolter.”,
“weight”: 200,
“Volume”: 2,
“Price”: 10000,
“material” : “steel”,
“symbol” : “#”
“color” : “light_gray”,
“capacity” : 30,
“ammo_type”: “bolt”
“reliability” : 10
"reload_time" : 280
}
]
ammo_types.json
[
{
“id”: “bolt”,
“name”: “.75mm Bolt”,
“default”: “bolt”,
“type”: “ammunition_type”
}
]