Understanding Loot Spawns Config

19 posts in this topic

I'm going through the Massi mods, and adding all the items, vehicles, uniforms and weapons to my server config .cpp file. So far I've added a lot to the traders. 

Can someone explain how the loot spawn section works? 

class Military
        top = 94.13;
        count = 220;
        maximum = 100;
        sum = 22000;
        items[] = 
            {3, "30Rnd_mas_556x45_Stanag"},
            {3.9, "U_B_CombatUniform_mcam_worn"},
            {4.7, "arifle_mas_hk416"},
            {5.4, "Binocular"},
            {6.1, "V_PlateCarrier1_rgr"},
            {6.8, "B_OutdoorPack_tan"},
            {7.5, "V_Rangemaster_belt"},
            {8.2, "B_OutdoorPack_blu"},
            {8.9, "H_HelmetB_light_sand"},
            {9.6, "U_B_CombatUniform_mcam_tshirt"},

Is the lower number a lower chance of spawning, or is it a higher chance? Can someone explain what count, Maximum, and Sum are? Is it max 100 items or max 100%? 

1 person likes this

Share this post

Link to post
Share on other sites

I"ve been trying to get the compiler to work, but can't seem to figure it out, so till someone explains it better, i'll keep doing this manually. 


Share this post

Link to post
Share on other sites

So here is the most detailed and simplified guide how to add Custom Weapons to loottables using a compiler (in engrish):

1. Download:



2. Create folder C:\Loot\

3. Place both downloaded files there

4. Edit LootTable.h

Get the class names of weapons/items you want to add and place them into this file using this format: 

> LootTableName
Spawn Chance %, Item Class Name
*Higher change -> More often Spawn

(Currenty there only 8 loottables (> CivillianLowerClass, > CivillianUpperClass, > Shop, > Industrial, > VehicleService, > Military, > Medical, > Tourist)

Here is example of LootTable.h with inserted CUP weapons: LootTable.h

5.  Open cmd.exe

Type cd C:\Loot\ into cmd.exe window > Press Enter

Type LootTableCompiler.exe C:\Loot\LootTable.h C:\Loot\LootTable.cpp > Enter

If you done right you will see C:\Loot> in console. But if you done something wrong in LootTable.h there will be error message in console, in this case correct file and try again.

6. Compiler will create LootTable.cpp in C:\Loot\ folder starting from:

class CfgLootTables

and ending with:


7. UnPBO your @ExileServer\addons\exile_server_config.pbo file

8. Open @ExileServer\addons\exile_server_config\config.cpp file

Replace whole class CfgLootTables with contens of C:\Loot\LootTable.cpp

Save config.cpp

9. Delete your @ExileServer\addons\exile_server_config.pbo file

Make @ExileServer\addons\exile_server_config.pbo from @ExileServer\addons\exile_server_config\

10. UnPBO your mission file (by default it mpmission\Exile.Altis.pbo)

Edit mpmission\Exile.Altis\config.cpp:

Place all added to LootTable.h third party classes into class CfgExileArsenal and set up quality and price.

11. Delete mpmission\Exile.Altis.pbo file

Make mpmission\Exile.Altis.pbo from mpmission\Exile.Altis\

12. Done.

Edited by Nuka
2 people like this

Share this post

Link to post
Share on other sites

Why is it so complicated to add stuff to the loot list?

What if something has the same number? Why hasn't it been setup to where we can Just enter the %?

I've pretty much gotta add 200+ guns to a few zones then who knows how much ammo and attachments.


But yeah, I'm sure one of them will have the same number, what will happen?

Share this post

Link to post
Share on other sites

Nothing will happen if they have the same number. It simply means they will have the same percentage chance of spawning :)

1 person likes this

Share this post

Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.