XxRTEKxX 37 Report post Posted September 19, 2015 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 Share this post Link to post Share on other sites
bonez 5 Report post Posted September 19, 2015 hey man there a LootTableCompiler was made by the devs very good for adding loot Here is the link for the topic Share this post Link to post Share on other sites
XxRTEKxX 37 Report post Posted September 19, 2015 Ill check it out. Just trying to understand how to do it manually. 1 Share this post Link to post Share on other sites
spear 23 Report post Posted September 19, 2015 I think thats way too compley doing it manually Share this post Link to post Share on other sites
XxRTEKxX 37 Report post Posted September 19, 2015 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
Nuka 4 Report post Posted September 22, 2015 (edited) So here is the most detailed and simplified guide how to add Custom Weapons to loottables using a compiler (in engrish):1. Download:LootTable.hLootTableCompiler.exe2. Create folder C:\Loot\3. Place both downloaded files there4. Edit LootTable.hGet 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.h5. Open cmd.exeType cd C:\Loot\ into cmd.exe window > Press EnterType LootTableCompiler.exe C:\Loot\LootTable.h C:\Loot\LootTable.cpp > EnterIf 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 CfgLootTablesand ending with:};7. UnPBO your @ExileServer\addons\exile_server_config.pbo file8. Open @ExileServer\addons\exile_server_config\config.cpp fileReplace whole class CfgLootTables with contens of C:\Loot\LootTable.cppSave config.cpp9. Delete your @ExileServer\addons\exile_server_config.pbo fileMake @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 fileMake mpmission\Exile.Altis.pbo from mpmission\Exile.Altis\12. Done. Edited September 22, 2015 by Nuka 2 Share this post Link to post Share on other sites
parsec 23 Report post Posted November 16, 2015 Thanks Nuka! Share this post Link to post Share on other sites
KingAlmond 2 Report post Posted December 11, 2015 Where do you edit the ammo? Share this post Link to post Share on other sites
Higgins909 8 Report post Posted December 18, 2015 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
Mezo 1264 Report post Posted December 18, 2015 Nothing will happen if they have the same number. It simply means they will have the same percentage chance of spawning 1 Share this post Link to post Share on other sites