• 0
Sign in to follow this  
Followers 0
Nitropilleri

Trouble with loot table.

Question

Hi!

I've just started and i'm having trouble with loot table. I use CUP weapons in my loot table file, and i've deleted old lines from config.cpp (exile_server_config.pbo)

and just added "#include "CfgLootTables.hpp".

When server starts, all i've found is chemlights. Could you guys help me with this problem?

Here is part of the config.cpp file.

Spoiler

class CfgPatches
{
    class exile_server_config
    {
        requiredVersion = 0.1;
        requiredAddons[] = {};
        units[] = {};
        weapons[] = {};
        magazines[] = {};
        ammo[] = {};
    };
};

// Chernarus Loot Positions - Replaced CfgBuildings
#include "chernarusLootBuildings.cpp"
// Chernarus Loot Positions - Replaced CfgBuildings

#include "CfgLootTables.hpp"
class CfgSettings
{
    ///////////////////////////////////////////////////////////////////////
    // Community Base Addons
    ///////////////////////////////////////////////////////////////////////
    class CBA 
    {
        // Set this to 1 if you want to have CBA support
        useStackedEH = 1;

        // If you set this to 1 ...........................................
        iReallyWantToGetHackedAndImRetarded = 0;
    };

And here is my whole cfgloottable:

Spoiler

/*
    ///////////////////////////////////////////////////////////////////////////////
    // Class Names
    ///////////////////////////////////////////////////////////////////////////////

    Remember that item class names, group names and loot table names cannot 
    contain spaces. Also be 100% sure to have the exact same name as in Arma,
    as they are *case sensive*.

    ///////////////////////////////////////////////////////////////////////////////
    // Item Groups
    ///////////////////////////////////////////////////////////////////////////////

    You can link one group of items to loot tables.
    One item should only be in one group.

    Syntax:
    = <Group Name>
    <Spawn Chance Within Group>,<Item Class Name>

    ///////////////////////////////////////////////////////////////////////////////
    // Propability
    ///////////////////////////////////////////////////////////////////////////////

    <Spawn Chance>,<Item>

    10, Banana
    20, Tomato
    30, Cherry

    Sum of chances:
    10 + 20 + 30 = 60 = 100%

    Spawn chances:
    Banana    10 : 60 = 10 * 100 / 60 = 16.67%
    Tomato    20 : 60 = 20 * 100 / 60 = 33.33%
    Cherry    30 : 60 = 30 * 100 / 60 = 50%

    In words: 
    If Exile should spawn an item of the above group, it has a 33.33%
    chance to spawn a Banana.

    ///////////////////////////////////////////////////////////////////////////////
    // Loot Tables
    ///////////////////////////////////////////////////////////////////////////////

    Defines which item group spawns in which building type. The loot table itself
    is linked with a building in exile_server_config.pbo/config/CfgBuildings. Spawn
    chances work like for items.

    Syntax:
    > <Loot Table Name>
    <Spawn Chance Within Loot Table>,<Group Name>
*/

/*
    Loot Tables
*/

///////////////////////////////////////////////////////////////////////////////
// Slums/Ghetto, Farms, Village Houses, Castle etc.
// Spawn Guerilla things :)
///////////////////////////////////////////////////////////////////////////////
> CivillianLowerClass
30, Trash
28, Food
10, Drinks
8, Pistols
5, PistolAmmo
3, PistolAttachments
4, SMG
3, SMGAmmo
3, SMGAttachments
20, CivilianClothing
11, CivilianBackpacks
5, CivilianVests
20, CivilianHeadgear
10, CivilianItems
1, Restraints
10, Chemlights
10, RoadFlares
50, CUPPointerAttachments
150, CUPMuzzleAttachments
50, CUPOpticAttachments
50, CUPAmmunition
300, CUPPistols
50, CUPSubMachineGuns
50, CUPLightMachineGuns
50, CUPAssaultRifles

///////////////////////////////////////////////////////////////////////////////
// Apartments, Offices etc.
///////////////////////////////////////////////////////////////////////////////
> CivillianUpperClass
30, Trash
28, Food
10, Drinks
8, Pistols
5, PistolAmmo
3, PistolAttachments
4, SMG
3, SMGAmmo
3, SMGAttachments
3, Rifles
3, RifleAmmo
3, RifleAttachments
20, CivilianClothing
11, CivilianBackpacks
5, CivilianVests
20, CivilianHeadgear
10, CivilianItems
10, Chemlights
10, RoadFlares
1, Restraints
50, CUPPointerAttachments
150, CUPMuzzleAttachments
50, CUPOpticAttachments
300, CUPPistols
50, CUPSubMachineGuns
50, CUPLightMachineGuns
50, CUPAssaultRifles


///////////////////////////////////////////////////////////////////////////////
// Kiosks, Supermarkets etc.
///////////////////////////////////////////////////////////////////////////////
> Shop
30, Trash
15, Food
15, Drinks
10, Pistols
2, PistolAmmo
1, PistolAttachments
5, SMG
1, SMGAmmo
1, SMGAttachments
5, CivilianBackpacks
1, CivilianClothing
3, CivilianHeadgear
1, CivilianVests
7, CivilianItems
5, Chemlights
5, RoadFlares
4, SmokeGrenades
3, IndustrialItems
3, Restraints
3, MedicalItems
150, CUPPointerAttachments
300, CUPMuzzleAttachments
150, CUPOpticAttachments
50, CUPAmmunition
300, CUPPistols
50, CUPSubMachineGuns
50, CUPLightMachineGuns
150, CUPAssaultRifles
150, HLCMuzzleAttachments


///////////////////////////////////////////////////////////////////////////////
// Construction Sites, Warehouses, Research etc.
///////////////////////////////////////////////////////////////////////////////
> Industrial
30, Trash
40, IndustrialItems
25, Vehicle
15, RoadFlares
5, Restraints
150, CUPPointerAttachments
150, CUPMuzzleAttachments
300, CUPPistols
50, CUPSubMachineGuns
150, CUPLightMachineGuns
50, CUPAssaultRifles


///////////////////////////////////////////////////////////////////////////////
// Factories
///////////////////////////////////////////////////////////////////////////////
> Factories
10, Electronics
40, Trash
50, IndustrialItems
150, CUPPointerAttachments
150, CUPMuzzleAttachments
50, CUPAmmunition
300, CUPPistols
50, CUPSubMachineGuns
150, HLCMuzzleAttachments


///////////////////////////////////////////////////////////////////////////////
// Fuel Stations, Garages, Workshops etc.
///////////////////////////////////////////////////////////////////////////////
> VehicleService
30, Trash
25, IndustrialItems
40, Vehicle
15, RoadFlares
5, Restraints
150, CUPPointerAttachments
150, CUPMuzzleAttachments
150, CUPAmmunition
150, CUPPistols
50, CUPSubMachineGuns
150, CUPAssaultRifles
50, CUPExplosive


///////////////////////////////////////////////////////////////////////////////
// Towers, Barracks, Hangars etc.
///////////////////////////////////////////////////////////////////////////////
> Military
100, Trash
4, CivilianItems
4, GuerillaItems
1, MilitaryItems
3, HEGrenades
3, UGLFlares
3, UGLSmokes
3, HandGrenades
3, SmokeGrenades
2, Restraints
2, MedicalItems
5, GuerillaClothing
5, MilitaryClothing
4, GuerillaBackpacks
3, MilitaryBackpacks
3, GuerillaVests
3, MilitaryVests
3, DLCVests
3, GuerillaHeadgear
3, MilitaryHeadgear
1, Ghillies
1, DLCGhillies
1, Rebreathers
5, Rifles
3, RifleAmmo
3, RifleAttachments
4, LMG
2, LMGAmmo
3, Snipers
2, SniperAmmo
2, SniperAttachments
3, DLCRifles
2, DLCAmmo
2, DLCOptics
2, DLCSupressor
2, Bipods
5, Explosives
300, CUPPointerAttachments
300, CUPMuzzleAttachments
300, CUPOpticAttachments
300, CUPAmmunition
300, CUPPistols
50, CUPSubMachineGuns
300, CUPLightMachineGuns
300, CUPAssaultRifles
300, CUPSniperRifles
300, CUPExplosive
150, HLCMuzzleAttachments


///////////////////////////////////////////////////////////////////////////////
// Hospital, Medevac etc.
///////////////////////////////////////////////////////////////////////////////
> Medical
30, Trash
70, MedicalItems
150, CUPPointerAttachments
150, CUPMuzzleAttachments
150, CUPPistols
50, CUPSubMachineGuns
50, CUPLightMachineGuns
50, CUPAssaultRifles


///////////////////////////////////////////////////////////////////////////////
// Light Houses + Life Guard Towers + Castles
///////////////////////////////////////////////////////////////////////////////
> Tourist
10, MilitaryBackpacks
10, MilitaryHeadgear
5, Ghillies
5, DLCGhillies
20, Snipers
2, SniperAmmo
2, SniperAttachments
20, DLCRifles
2, DLCAmmo
2, DLCOptics
2, DLCSupressor
4, CivilianItems
4, HandGrenades
4, Restraints
4, MedicalItems
4, Explosives
150, CUPPointerAttachments
150, CUPMuzzleAttachments
50, CUPPistols
50, CUPAssaultRifles

 

Share this post


Link to post
Share on other sites

8 answers to this question

  • 0
5 hours ago, Super Jerome said:

Question, are you using the addon ExileLootDrop or standard loot?

Standard loot, do you prefer  ExileLootDrop ?

EDIT: Tried aldo with ExileLootDrop, yet all i've found is some random pistols, rarely.

My RPT file.

http://pastebin.com/uRwTtXUR

Edited by Nitropilleri

Share this post


Link to post
Share on other sites
Advertisement
  • 0
8 hours ago, Super Jerome said:

I would recommend starting from scratch with loot tables without the CUP stuff

Tried, still no loot, only few pistols.

Share this post


Link to post
Share on other sites
  • 0

Start from scratch and follow the below:

Download the tool here: Click Here

Then fill the form in here: Click Here

Then copy the output of the form into the LootTables.h file, then drag the LootTables.h file and the LootItemGroups.h file into the compile.bat file, this will generate a CfgLootTables.hpp (along with CfgLootTablesDONTUSE.hpp and CfgLootTablesDONTUSE2.hpp) file with your loot table in it. You then extract your exile_server_config file from your server, edit the config file and delete the entire CfgLootTables class and copy the contents of the CfgLootTablesDONTUSE.hpp file in its place. You must use the CfgLootTablesDONTUSE.hpp as the normal CfgLootTables.hpp has some errors in it. 

Let me know how you get on.

Share this post


Link to post
Share on other sites
  • 0
47 minutes ago, Johnny82 said:

Start from scratch and follow the below:

Download the tool here: Click Here

Then fill the form in here: Click Here

Then copy the output of the form into the LootTables.h file, then drag the LootTables.h file and the LootItemGroups.h file into the compile.bat file, this will generate a CfgLootTables.hpp (along with CfgLootTablesDONTUSE.hpp and CfgLootTablesDONTUSE2.hpp) file with your loot table in it. You then extract your exile_server_config file from your server, edit the config file and delete the entire CfgLootTables class and copy the contents of the CfgLootTablesDONTUSE.hpp file in its place. You must use the CfgLootTablesDONTUSE.hpp as the normal CfgLootTables.hpp has some errors in it. 

Let me know how you get on.

Seems to be working, i moved CfgLootTablesDONTUSE.hpp inside the Exile_server_config and renamed it to CfgLootTables.hpp

Lot's of guns are spawning (was in cherno), but seems like there are not any vests, backpacks or anything else than guns. Balota AF is completely empty, zero loot.

Share this post


Link to post
Share on other sites
  • 0

You are best just copying the text from CfgLootTablesDONTUSE and pasting it into the loot section in the config file. If that doesn't work post your config file here so we can have a look.

Share this post


Link to post
Share on other sites
  • 0

Question, if i change from standard loot to ExileLootDrop, do i have to delete CfgLootTables.hpp from .pbo file, to prevent both making drops?

 

[Q2]

without CUP, in my mission config.cpp have weapons groups.

e.q Sniper rifles.

Spoiler

class SniperRifles
    {
        name = "Sniper Rifles";
        icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
        items[] = 
        {
            "arifle_MXM_Black_F",
            "arifle_MXM_F",
            "srifle_DMR_01_F",
            "srifle_DMR_02_camo_F",
            "srifle_DMR_02_F",
            "srifle_DMR_02_sniper_F",
            "srifle_DMR_03_F",

And when i add CUP guns, do i have to make class called

CUPSniperRifles since my loottable looks like this. (just a part of it)

Spoiler

///////////////////////////////////////////////////////////////////////////////
// Slums/Ghetto, Farms, Village Houses, Castle etc.
// Spawn Guerilla things :)
///////////////////////////////////////////////////////////////////////////////
> CivillianLowerClass
30, Trash
28, Food
10, Drinks
8, Pistols
5, PistolAmmo
3, PistolAttachments
4, SMG
3, SMGAmmo
3, SMGAttachments
30, CivilianClothing
30, CivilianBackpacks
35, CivilianVests
20, CivilianHeadgear
10, CivilianItems
1, Restraints
10, Chemlights
10, RoadFlares
60, CUPPointerAttachments
60, CUPMuzzleAttachments
60, CUPOpticAttachments
60, CUPAmmunition
60, CUPPistols
60, CUPSubMachineGuns
60, CUPLightMachineGuns
60, CUPAssaultRifles
60, CUPSniperRifles

 

Edited by Nitropilleri

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.