• 0
Dougie Dayz

land_i_barracks_v1_f not spawning loot

Question

I have noticed 1 building im trying to get to spawn loot, its not spawning any... I already reconfigured loot positons... pasted them in the cpp... it is also listed in the servers .cpp under CFGBuildings.... why is their not any loot showing for this building?? 

land_i_barracks_v1_f

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

I have had the same issue since v0.9.8. I was hoping the latest v1.0.0 would fix this. What would prevent this one specific building from spawning loot? I do see it listed in with potential loot co-ordinates. All other buildings are fine but this one classname.

Share this post


Link to post
Share on other sites
  • 0

I have also noticed, this building is not listed in the editor as well.. But its listed under my .cpp cfgbuildings and also has its defined loot positions?  

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Posted (edited)

The problem is client side script.  land_i_barracks_v1_f does not inherit from House class but from Building. Client ofc ignores these type of buildings while doing nearestObjects call... the problem lays in the ExileClient_system_lootManager_thread_spawn.sqf file @ line 19.

_buildings = player nearObjects ["House", _spawnRadius];

to

_buildings = nearestObjects [player, ["Building","House"], _spawnRadius];

This fix works on my server so far :)
Cheers, Icy

 

Edited by IcyAxe

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

Thanks, will do this and post results! =)  And could you tell me also why this building does not show in my editor? I havn't changed anything just updated using the same mods etc.. I placed these buildings on my custom map in previous exile patch. 

Edited by Dougie Dayz

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

Still having the same problem, loot still isn't showing, I done what you mentioned on my server? But not client side and also defined loot positions in the config?  But like i said for some reason in my editor these buildings will not show up? But they show up if i open up my saved mission they'll show on the map their just not in the Assets list?

Edited by Dougie Dayz

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

I you need to override the file in mission config.cpp

and you need to put fixed file somewhere with the mission like i put it in two subfolders ;)

class CfgExileCustomCode 
{
	/*
		You can overwrite every single file of our code without touching it.
		To do that, add the function name you want to overwrite plus the 
		path to your custom file here. If you wonder how this works, have a
		look at our bootstrap/fn_preInit.sqf function.

		Simply add the following scheme here:

		<Function Name of Exile> = "<New File Name>";

		Example:

		ExileClient_util_fusRoDah = "myaddon\myfunction.sqf";
	*/
	
	ExileClient_system_lootManager_thread_spawn = "Exile\code\ExileClient_system_lootManager_thread_spawn.sqf";
};

I think editor is failing for the same reason.

Edited by IcyAxe

Share this post


Link to post
Share on other sites
  • 0

Thanks IcyAxe! I setup your fix in the customcode section and has fixed it. Loot is spawning in :-)

Share this post


Link to post
Share on other sites
  • 0

Reading Mission loop, i guess i done something wrong in my mission.pbo?

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

  • Recently Browsing   0 members

    No registered users viewing this page.