Wasteland with added in loot is creating errors

  • Offline 4zurewolf
  • Fresh Spawn
  • *
  • Posts: 5
  • Always Out Front

Wasteland with added in loot is creating errors

« posted: Aug 05, 2017, 01:45 AM »
Hello!

I am new to this forum but joined to receive help on a few errors I am having with wasteland. Currently I have added multiple items in to be spawned as loot in LSlootlists.sqf; and have not received any console errors from that file.

I have however received an error, since adding additional loot, in Lootspawner.sqf.

The following error pops up:

16:35:23 Error in expression <ddons\Lootspawner\Lootspawner.sqf"
 
getListBuildingnames = {
{
spawnBuilding>
16:35:23   Error position: <getListBuildingnames = {
{
spawnBuilding>
16:35:23   Error Missing ]
16:35:23 File mpmissions\__cur_mp.Altis\addons\Lootspawner\Lootspawner.sqf, line 83

And the code inside looks like this:

//Buildings that can spawn loot go in this list
#include "LSlootBuildings.sqf"
//Loot goes in these lists
#include "LSlootLists.sqf"

//-------------------------------------------------------------------------------------
//function only runs once on beginning of mission, not really needs a compile
//fill spawnBuilding_list with buildingnames only
getListBuildingnames = {
   {
      spawnBuilding_list pushBack (_x select 0);
      //diag_log format["-- LOOTSPAWNER DEBUG add to spawnBuilding_list: %1 ", (_x select 0)];
   }forEach Buildingstoloot_list;
};

Does anyone know what I can do to fix these errors?
When we are happy we enjoy the music,
but when we are sad we understand the lyrics.
  • Offline 4zurewolf
  • Fresh Spawn
  • *
  • Posts: 5
  • Always Out Front

Re: Wasteland with added in loot is creating errors

« Reply #1 posted: Aug 05, 2017, 01:51 AM »
In addition, after removing added loot from LSlootLists.sqf, the error went away.

I guess my real question is: How can I add additional loot?
When we are happy we enjoy the music,
but when we are sad we understand the lyrics.

Re: Wasteland with added in loot is creating errors

« Reply #2 posted: Aug 28, 2017, 06:36 AM »
You probably messed up the damn communist as I call them  AKA them damn commas.  Post your code here using code blocks.