• 0
cGs! mIKE

How to spawn loot with new Patch

Question

Posted (edited)

Hello Developers,

So I've merged and listed all buildings for Chernarus with our config.    The buildings defined and added to the existing building list provided with the fresh install are NOT able to spawn loot.  But then there are buildings not even defined on the config (exile_server_config) that are spawning loot.  

My question,  where do we define building loot positions now with the new patch?  the config.cpp inside exile_server_config.pbo is not making any changes to our loot issues.    The format is exactly how the "fresh" install config looks,  so now I am stumped.

here is a fresh install defined building: 

Spoiler

class land_1
    {
        table = "Industrial";
        positions[] = {{14.0977, 9.27832, -5.30631},{-6.3584, 8.4375, -5.30632},{-14.2788, 8.0957, -5.30632}};
    };

 

Here is how we format our chernarus buildings we want to add:

Spoiler

class Land_i_Barracks_V2_F
{
    table = "Military";
    positions[] = {{-0.505859, 3.2168, 0.605521}, {-0.601563, 3.07617, 3.9395}, {-11.0234, -2.65625, 0.60552}, {-11.1328, -3.58398, 3.9395}, {-12.377, 0.271484, 3.9395}, {-2.39453, -3.92773, 0.605342}, {-5.09766, -4.89844, 3.93943}, {-8.69922, 3.24414, 3.9395}, {-9.12695, 3.73047, 0.60552}, {10.3711, 3.51367, 0.605521}, {10.6484, 2.85156, 3.9395}, {13.0684, -3.30469, 0.605521}, {13.1934, -3.42383, 3.9395}, {3.28711, -3.98633, 0.605521}, {3.4707, -3.55469, 3.9395}, {6.22852, 3.50391, 3.9395}, {6.39258, 3.05664, 0.605521}};
};

 

Yet,  we have a building not even listed in the config.cpp called "Land_Housev_2_T1" that IS IN FACT spawning loot, even though it isn't shown anywhere in our config.cpp.      Seems like building positions are supposed to be pulled from somewhere else now.  please advise.

++++++++++++++++++++++++++++++++

After working on it all day,  the LOOT started to spawn when I moved all custom placed buildings to server side.  The unfortunately part, was that by doing that... it was pure luck to actually logon.  The server would load the mission file, but you would sit there on the waiting screen until the server disconnected you.

 

So my answer to original question is "move buildings to server side will make loot spawn"... but now my problem is, why wont my server let anyone in when I move files to server side?   The second I remove the server side scripting for the custom building, the server lets you in.

in the server side PBO,   here is the init. inside the pbo:

Spoiler

diag_log "## Starting Custom Content PBO";

[] execVM "a3_custom\mapcontent\WestBoat.sqf";

diag_log "## Custom Content PBO Loaded";
systemchat("Custom Content PBO Loaded");

 

and here are the buildings being pulled out of WestBoat.sqf

Spoiler

_objects =
[
//mike
    ["Land_Shed_Small_F",[4700.04,2593.32,0],264.545,0,0,false],
    ["Land_Cargo_Patrol_V3_F",[4685.08,2589.7,0],355.227,0,0,true],
    ["Land_BagFence_Short_F",[4687.77,2587.52,0],352.159,0,0,true],
    ["Land_BagFence_Short_F",[4686.04,2587.33,0.000999451],352.159,0,0,true],
    ["Land_BagFence_Short_F",[4684.34,2587.09,0.0019989],352.159,0,0,true],
    ["Land_BagFence_Short_F",[4682.61,2586.98,0.00299835],355.568,0,0,true],
    ["Land_d_House_Big_02_V1_F",[4578.88,2523.87,0],311.932,0,0,true],
    ["Land_d_Stone_Shed_V1_F",[4583.42,2534.16,0],129.205,0,0,true],
    ["Land_d_Stone_HouseSmall_V1_F",[4593.85,2542.72,0],312.273,0,0,false],
    ["C130J_wreck_EP1",[4609.39,2531.07,0.19973],68.3978,0,0,false],
    ["Land_i_Barracks_V1_F",[4636.85,2449.45,0],185.455,0,0,true],
    ["Land_i_Barracks_V1_F",[4583.39,2452.7,0],182.72,0,0,true],
    ["Land_MilOffices_V1_F",[4598.72,2413.14,0],183.75,0,0,true],
    ["Land_dp_smallTank_F",[4655.36,2448.98,0],112.159,0,0,false],
    ["Land_spp_Panel_Broken_F",[4612.54,2456.23,0],184.773,0,0,true],
    ["Land_spp_Panel_F",[4604.56,2456.95,0],185.455,0,0,true],
    ["Land_Loudspeakers_F",[4591.91,2460.06,0],0,0,0,false],
    ["Land_Canal_WallSmall_10m_F",[4574.86,2463.68,0],0,0,0,true],
    ["Land_WaterCooler_01_new_F",[4831.67,2540.66,0.6],208.636,0,0,false],
    ["Land_TableDesk_F",[4829.84,2543.95,0.6],209.318,0,0,false],
    ["Land_TableDesk_F",[4832.39,2542.49,0.6],209.318,0,0,false],
    ["Land_OfficeChair_01_F",[4829.45,2543.35,0.6],206.591,0,0,false],
    ["Land_OfficeChair_01_F",[4832.29,2541.44,0.6],176.25,0,0,false],
    ["Land_BagBunker_Large_F",[4806.33,2543.69,0],27.2728,0,0,false],
    ["Land_Cargo_House_V3_F",[4820.63,2555.02,0],30,0,0,false],
    ["Land_Cargo_House_V3_F",[4817.39,2549.24,0],210,0,0,false],
    ["Land_u_Barracks_V2_F",[4871.94,2292.45,0],211.364,0,0,true],
    ["Land_u_Barracks_V2_F",[4843.65,2300.06,-0.0344877],119.664,0,0,true],
    ["Land_Sea_Wall_F",[4920.65,2329.75,-2],26.5909,0,0,false],
    ["Land_Sea_Wall_F",[4959.21,2302.94,-2],27.9545,0,0,false],
    ["Land_Airport_Tower_F",[5195.93,2295.57,0],42.6136,0,0,false],
    ["Land_Sea_Wall_F",[5242.15,2243.54,0],282.614,0,0,false],
    ["Land_Sea_Wall_F",[5233.57,2198.77,0],282.614,0,0,false],
    ["Dirthump_2_F",[4604.78,2508.16,-0.600296],249.205,0,0,false],
    ["Land_Canal_WallSmall_10m_F",[5096.32,2352.87,3.00027],118.295,0,0,false],
    ["Land_Canal_WallSmall_10m_F",[5092.06,2344.95,0.5003],118.295,0,0,false],
    ["Land_i_Barracks_V2_F",[5169.75,2344.57,0],303.75,0,0,false],
    ["Land_Wreck_Slammer_F",[5115.36,2360.32,0],303.068,0,0,false],
    ["T72Wreck",[5120.23,2370.78,0],297.273,0,0,false]
];
{
    private ["_object"];
    _object = (_x select 0) createVehicle [0,0,0];
    _object setDir (_x select 2);
    _object setPosATL (_x select 1);
    _object allowDamage false;
    _object enableSimulationGlobal true;
}
forEach _objects;
 


Like I said,   doing buildings server side allow loot to spawn the "chance" i get into the server to look.  But unfortunately 99% of the time, the connection times out.  This happened to 40 other players when I reloaded with the server side settings in place, no one could come in the server. 

Edited by Sjolie
adding to question

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

The only reason that I can think of that prevents people from joining is that you have an SQF error somewhere in your custom server init. If you manage to have an error in there, the server main thread will not boot completely and thus all login functions are unavailable.

Be aware that all custom objects should be in the initServer.sqf and not inside the init.sqf, as the latter executes on both client and server.

Please check your server RPT for possible script errors. If you cannot find something, then put life-sign diag_logs to figure out where it breaks. For example, like so:

diag_log "A";

if (bla) then {...};

diag_log "B";

_foo = _bar;

diag_log "C";

Milkyway = { _this spawn Milkyway; };

[] spawn Milkyway;

diag_log "D";

That is all I can advise you to do with the given information.

Share this post


Link to post
Share on other sites
Advertisement

  • Recently Browsing   0 members

    No registered users viewing this page.