Hi!
I am testing this plugin, and came accross an error.
I downloaded the example, renamed to*.conf, everything is fine.
So I added a part for the tank, like this:
Code:
tank:
{
repeat = 1;
dice = [100];
things = (
//
// ITEMS - Health (1-15)
{ name = "weapon_first_aid_kit_spawn";
type = "item";
min = 1;
max = 4;
},
{ name = "weapon_pain_pills_spawn";
type = "item";
min = 5;
max = 8;
},
{ name = "weapon_adrenaline_spawn";
type = "item";
min = 9;
max = 12;
},
{ name = "weapon_defibrillator_spawn";
type = "item";
min = 13;
max = 15;
},
// ITEMS - Throwable (16-24)
{ name = "weapon_molotov_spawn";
type = "item";
min = 17;
max = 19;
},
{ name = "weapon_pipe_bomb_spawn";
type = "item";
min = 20;
max = 22;
},
{ name = "weapon_vomitjar_spawn";
type = "item";
min = 23;
max = 24;
},
// ITEMS - Weapon (25-30)
{ name = "weapon_chainsaw_spawn";
type = "item";
min = 25;
max = 26;
},
{ name = "weapon_grenade_launcher_spawn";
type = "item";
min = 27;
max = 28;
},
//
// UPGRADES (31-40)
{ name = "laser-incendiary";
type = "upgrade";
min = 31;
max = 33;
},
{ name = "explosive";
type = "upgrade";
min = 34;
max = 37;
},
//
// WEAPONS (41-60)
{ name = "any_pistol";
type = "weapon";
min = 45;
max = 47;
},
{ name = "any_primary";
type = "weapon";
min = 48;
max = 50;
},
{ name = "any_smg";
type = "weapon";
min = 51;
max = 52;
},
{ name = "any_rifle";
type = "weapon";
min = 53;
max = 55;
},
{ name = "any_shotgun";
type = "weapon";
min = 56;
max = 58;
},
{ name = "any_sniper_rifle";
type = "weapon";
min = 59;
max = 60;
},
//
// INFECTED - Special (61-80)
{ name = "charger_auto";
type = "infected";
min = 61;
max = 62;
},
{ name = "smoker_auto";
type = "infected";
min = 63;
max = 64;
},
{ name = "hunter_auto";
type = "infected";
min = 65;
max = 66;
},
{ name = "boomer_auto";
type = "infected";
min = 67;
max = 68;
},
{ name = "spitter_auto";
type = "infected";
min = 69;
max = 69;
},
{ name = "jockey_auto";
type = "infected";
min = 70;
max = 70;
},
// INFECTED - Boss & Team (81-90)
{ name = "witch_auto";
type = "infected";
min = 81;
max = 84;
},
{ name = "tank_auto";
type = "infected";
min = 85;
max = 88;
},
{ name = "infected-team_auto";
type = "infected";
min = 89;
max = 90;
},
// INFECTED - Mob (91-100)
{ name = "mob-random_auto";
type = "infected";
min = 91;
max = 95;
},
);
};
After this, I started to get errors, that something is missing on line "xxxxxxxxxxxx" where the number is a long crazy-assed one, which is impossible.
Logic dictates, that the error is in my insert, which you can see above.
Anyone able to spot anything unusual?
EDIT: OMG okay, I spotted the error, it's the third line from the bottom, it has an unneeded comma, it's '},' instead of '}'.
I decided not to delete my original post, as it might be useful for someone in the future.