Jump to content

[Release] Lootspawner, configurable building loot system


Suppe

Recommended Posts

  • 3 months later...
  • 3 months later...
  • 3 months later...

Hi Guys - Trying to use this on Australia map and cant seem to get it to spawn anything in the new buildings: getting these errors:

  Reveal hidden contents

Settup like this LSlootbuildings.sqf

  Reveal hidden contents

LSlootLists.sqf

  Reveal hidden contents

Any idea why its not working?

 

PBO in in epochhive addons

getting these errors in RPT 

  Reveal hidden contents

repairkit was replaced with VehicleRepair but still give errors

MegaZ

 

PS. Have fixed some of the errors in the 1st part Added to SQM file:

  Reveal hidden contents

 

Link to comment
Share on other sites

(1) The Australian buildings are not properly indexed so there are no buildingpos locations for vanilla LootSpawner to find. This post may however be of some use:

(2) What errors does the VehicleRepair give now?

(3) You have to be careful what you put into what loot array. For example, in lootItems you have a uniform. Given that addItemCargoGlobal only handles weapons, items and magazines  then that will probably barf an error too

Link to comment
Share on other sites

`Hi Grahame, Thanks for the reply it is a standard install nothing changed. Except repairkit was replaced with VehicleRepair 

 

18:25.02 Error Undefined variable in expression: _loot
18:25.02 File loot_addon\LSpawner\fn_LSgetBuildingstospawnLoot.sqf, line 146
18:25.02 Error in expression <"repairkit", true];

with VehicleRepair  added:

18:45:04 Error Undefined variable in expression: _loot
18:45:04 File loot_addon\LSpawner\fn_LSgetBuildingstospawnLoot.sqf, line 146
18:45:04 Error in expression <"VehicleRepair", true];

Link to comment
Share on other sites

Hi File attached 

  Reveal hidden contents

thanks MegaZ

Link to comment
Share on other sites

Ah yeah... that's broken. You can either replace with the new one that I posted in that forum link - which you will need to use if you want ground loot in a lot of the Oz buildings or with this version: 

  Reveal hidden contents

My advice would be to bite the bullet and do the former

Link to comment
Share on other sites

Damn... giving away all my secrets :ph34r: Create an epoch_config/Configs/CfgLootPositions.hpp with the following in it. Then do all the other steps. You will have to change all the class numbers in LSLootBuildings.hpp though since I am not giving up my loot tables...

  Reveal hidden contents

 

Link to comment
Share on other sites

`Hi Grahame, Thanks for the help. You say i need to change class numbers in LSLootBuildings.hpp i assume u mean LSLootBuildings.sqf ?

 

mine is like this ?

  Reveal hidden contents

So for instance

["Land_Airport_left_F", 0], 

i add a new building ie:

Land_TentHangar_V1_F and add the class i wish to spawn ie 1

["Land_TentHangar_V1_F ", 1], 

 

Thanks for all the help 

 

appreciate it 

 

MegaZ

Link to comment
Share on other sites

Hi Graham i added this and get 1 error been looking through the file and it looks like a bracket is missing ?

this error:

  Reveal hidden contents

look at this see if it missing

at bottom of  Lootspawner.sqf

  Reveal hidden contents

thanks not sure where it should close.

MegaZ

Link to comment
Share on other sites

Given this and the atm script are you absolutely sure that there are no non-printing characters in these files because they all look fine? Have had an issue with another server owner who had that problem. If you want PM me the files in Discord.

P.S. The close on that else { is the last }; in the file. Verified that in NotePad++ with SQF language installed...

Link to comment
Share on other sites

  • 6 months later...

hello, i need your help, i add recently this script

and now the loot doesn't spawn anymore ....

error in my logs

  Quote

15:44:25   Error Undefined variable in expression: _loot
15:44:25 File loot_addon\LSpawner\fn_LSgetBuildingstospawnLoot.sqf, line 94
15:44:25 Error in expression <m);
_lootholder addMagazineCargoGlobal [_loot, 1];
};
_lootholder setdir (random>
15:44:25   Error position: <_loot, 1];
};
_lootholder setdir (random>
15:44:25   Error Undefined variable in expression: _loot
15:44:25 File loot_addon\LSpawner\fn_LSgetBuildingstospawnLoot.sqf, line 94
15:44:25 Error in expression <m);
_lootholder addMagazineCargoGlobal [_loot, 1];
};
_lootholder setdir (random>
15:44:25   Error position: <_loot, 1];
};
_lootholder setdir (random>
15:44:25   Error Undefined variable in expression: _loot
15:44:25 File loot_addon\LSpawner\fn_LSgetBuildingstospawnLoot.sqf, line 94

Expand  

 and more other error .... any one can help me ?

Link to comment
Share on other sites

  • 9 months later...

Anyone else have only 1lootpile spawning in everybuilding after the ArmA3Server update a few days ago? 

Im running it on Chernarus Redux and it worked before the update, I tried reverting back to right out of the box and changing the buildings for chernarus with a 100% Spawn chance to see if it works but only get one lootpile per building and this Error in .RPT

if (({_x == _loot} count exclcontainer_list) > 0) th>
14:46:46   Error position: <_loot} count exclcontainer_list) > 0) th>
14:46:46   Error Undefined variable in expression: _loot
14:46:46 File loot_addon\LSpawner\fn_LSgetBuildingstospawnLoot.sqf..., line 146
14:46:46 Error in expression <d", "repairkit", true];
};

and a few"FEW" !!LOOTSPAWNER WARNING!! No building positions

  Reveal hidden contents

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...