every time i try to load the plugin with custom loot tables it gives "
Failed to initialize plugin 'GuardedCrate v1.7.1' (JsonSerializationException: Unexpected end when deserializing array.
Path 'Events[2]', line 198, position 5.) "
My data file is
{
"Events": [
{
"EventDuration (duration the event will be active for)": 800.0,
"EventName (event name)": "Easy",
"AutoHack (enables auto hacking of crates when an event is finished)": true,
"AutoHackSeconds (countdown for crate to unlock in seconds)": 60.0,
"LockToPlayer (locks the crate to a player finishing the event)": true,
"DisplayClan (display clan tag rather than player name)": true,
"UseKits (use custom kits plugin)": true,
"Kits (custom kits)": ["eck"],
"NpcName (custom name)": "Easy Guard",
"NpcCount (number of guards to spawn)": 6,
"NpcHealth (health guards spawn with)": 100.0,
"NpcRoamRadius (npc roam radius)": 10.0,
"NpcLookRadius (npc look radius)": 100.0,
"NpcAttackRadius (npc attack radius)": 75.0,
"CargoSpeed (time cargo plane will drop in seconds)": 120.0,
"MarkerColor (marker color)": "#32a844",
"MarkerBorderColor (marker border color)": "#000000",
"MarkerOpacity (marker opacity)": 0.9,
"UseLoot (use custom loot table)": true,
"MaxLootItems (max items to spawn in crate)": 5,
"CustomLoot (items to spawn in crate)": [
{
"Shortname": "rifle.ak",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "ammo.rocket.basic",
"MinAmount": 1,
"MaxAmount": 2
},
{
"Shortname": "explosive.timed",
"MinAmount": 2,
"MaxAmount": 4
},
{
"Shortname": "supply.signal",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "targeting.computer",
"MinAmount": 1,
"MaxAmount": 2
}
]
},
{
"EventDuration (duration the event will be active for)": 800.0,
"EventName (event name)": "Medium",
"AutoHack (enables auto hacking of crates when an event is finished)": true,
"AutoHackSeconds (countdown for crate to unlock in seconds)": 60.0,
"LockToPlayer (locks the crate to a player finishing the event)": true,
"DisplayClan (display clan tag rather than player name)": true,
"UseKits (use custom kits plugin)": true,
"Kits (custom kits)": ["mck"],
"NpcName (custom name)": "Medium Guard",
"NpcCount (number of guards to spawn)": 8,
"NpcHealth (health guards spawn with)": 150.0,
"NpcRoamRadius (npc roam radius)": 10.0,
"NpcLookRadius (npc look radius)": 100.0,
"NpcAttackRadius (npc attack radius)": 100.0,
"CargoSpeed (time cargo plane will drop in seconds)": 120.0,
"MarkerColor (marker color)": "#eddf45",
"MarkerBorderColor (marker border color)": "#000000",
"MarkerOpacity (marker opacity)": 0.9,
"UseLoot (use custom loot table)": true,
"MaxLootItems (max items to spawn in crate)": 8,
"CustomLoot (items to spawn in crate)": [
{
"Shortname": "rifle.ak",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "ammo.rocket.basic",
"MinAmount": 3,
"MaxAmount": 4
},
{
"Shortname": "rifle.lr300",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "rifle.bolt",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "rifle.l96",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "explosive.timed",
"MinAmount": 2,
"MaxAmount": 4
},
{
"Shortname": "supply.signal",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "targeting.computer",
"MinAmount": 1,
"MaxAmount": 2
}
]
},
{
"EventDuration (duration the event will be active for)":1300.0,
"EventName (event name)": "Hard Level",
"AutoHack (enables auto hacking of crates when an event is finished)": true,
"AutoHackSeconds (countdown for crate to unlock in seconds)": 60.0,
"UseKits (use custom kits plugin)": true,
"Kits (custom kits)": ["hck"],
"NpcName (custom name)": "Hard Crate Guard",
"NpcCount (number of guards to spawn)": 5,
"NpcHealth (health guards spawn with)": 200.0,
"NpcRadius (max distance guards will roam)": 35.0,
"NpcAggression (max aggression distance guards will target)": 170.0,
"MarkerColor (marker color)": "#3060d9",
"MarkerBorderColor (marker border color)": "#000000",
"MarkerOpacity (marker opacity)": 0.9,
"UseLoot (use custom loot table)": true,
"MaxLootItems (max items to spawn in crate)": 12,
"CustomLoot (items to spawn in crate)": [
{
"Shortname": "rifle.ak",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "ammo.rocket.basic",
"MinAmount": 3,
"MaxAmount": 5
},
{
"Shortname": "rifle.lr300",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "rifle.bolt",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "rifle.l96",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "lmg.m249",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "explosive.timed",
"MinAmount": 3,
"MaxAmount": 5
},
{
"Shortname": "autoturret",
"MinAmount": 1,
"MaxAmount": 2
},
{
"Shortname": "metal.fragments",
"MinAmount": 1000,
"MaxAmount": 6000
},
{
"Shortname": "hq.metal.ore",
"MinAmount": 500,
"MaxAmount": 2000
},
{
"Shortname": "supply.signal",
"MinAmount": 1,
"MaxAmount": 1
},
{
"Shortname": "targeting.computer",
"MinAmount": 1,
"MaxAmount": 2
}
]
},