Hi there, I would like to move this file to my server pbo.
"call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\chernarus11.sqf"; //Add trader city objects locally on every machine early"
I have moved it to my mission pbo and tested by changing the call to this and it spawns fine.
"call compile preprocessFileLineNumbers "buildings\chernarus11.sqf"; //Add trader city objects locally on every machine early"
For some reason however I can not get it to spawn if it is placed server side and executed from server_functions.sqf either using [] execVm, execVm or call compile preprocessFileLineNumbers.
The main reason for wanting to move this file is that when I edit my map I dont want to place any objects over existing ones. If it is not going to be possible then an alternative will be to load the buildings in the 3d editor make my map and just remove the duplicates that already spawn/exist in chernarus11.sqf
Contents of chernarus11.sqf below extracted from dayz_code.
[[
["Land_Toilet",[11467.2,11341.8,-0.000213623],305.487],
["ClutterCutter_EP1",[11467,11364.1,-3.05176e-005],352.588],
["ClutterCutter_EP1",[11459.2,11355.8,6.10352e-005],352.588],
["Land_Market_stalls_01_EP1",[11466.3,11354.1,0.000244141],125.224],
["Land_Barrel_water",[11462,11350.4,0],352.588],
["LADAWreck",[11446.7,11340,-0.0010376],202.448],
["AmmoCrates_NoInteractive_Large",[11465.9,11356,-9.15527e-005],36.0883],
["SmallTable",[11462.7,11365.5,3.05176e-005],310.096],
["Base_WarfareBBarrier10xTall",[11469,11348.2,0.000213623],305.305],
["Land_covering_hut_big_EP1",[11462.8,11365.4,0],311.327],
["Misc_palletsfoiled",[11461.1,11364.8,0],51.7611],
["AmmoCrates_NoInteractive_Large",[11463,11367.1,3.05176e-005],43.5004],
["Land_covering_hut_EP1",[11471.8,11370,0.000366211],209.264],
["Land_Campfire",[11469.9,11367.1,0.00012207],360],
["C130J_wreck_EP1",[3974.4,11601.3,-1.96616],57.1171],
["Hhedgehog_concreteBig",[4078.33,11649.3,0.00369263],296.798],
["ZavoraAnim",[4084.16,11659.8,0.0244141],299.651],
["LADAWreck",[4048.96,11667.1,0.0264282],60.3712],
["T72Wreck",[3966.99,11639.2,0.0274963],359.898],
["T72WreckTurret",[3993.57,11635.5,0.0666809],260.215],
["Mi8Wreck",[3993.91,11674.9,-0.0588989],359.806],
["Sign_1L_Firstaid",[6314.69,7791.69,0.0931702],40.9063],
["Sign_Danger",[4027.15,11657.2,0.00314331],49.7929],
["Sign_Danger",[4057.95,11638.4,0.00283813],359.861],
["Sign_Danger",[4042.48,11647.1,0.00311279],34.9939],
["Sign_Danger",[4019.37,11664.9,0.00344849],26.0144],
["Land_fort_rampart",[4051.15,11642.5,-0.144409],201.75],
["Land_fort_rampart",[4034.25,11651.1,-0.156891],219.713],
["Land_fort_rampart",[4021.05,11662.9,-0.158691],226.337],
["Hedgehog_EP1",[4025.14,11654.7,-0.00497437],0],
["Hedgehog_EP1",[4039.87,11643.1,-0.00436401],0],
["Hedgehog_EP1",[4012.94,11668.5,-0.00592041],0],
["AmmoCrates_NoInteractive_Large",[4062.64,11682,0.00790405],72.512],
["Misc_Backpackheap",[4074.33,11676.9,-0.00875854],345.662],
["Land_CamoNetVar_EAST",[4060.96,11680.6,-0.0159912],353.354],
["Land_GuardShed",[4086.96,11659.9,0.0321045],292.954],
["UralWreck",[3878.58,11678.6,0.00140381],51.5933],
["Land_Bucket_EP1",[4073.1,11679,0.00186157],326.178],
["WoodChair",[4064.72,11680.6,-0.000518799],13.1974],
["Land_Pillow_EP1",[4072.13,11677.8,0.000823975],3.74772],
["FoldTable",[4063.39,11679.6,0.00289917],68.2496],
["FoldChair",[4057.48,11678.5,0.00289917],254.154],
["FoldTable",[4058.81,11678.6,0.00231934],266.933],
["Land_Misc_Well_C_EP1",[4085.06,11669.4,0.0221863],265.805],
["Bunker_PMC",[4025.17,11676.7,0.197113],286.394],
["Land_Toilet",[4027.18,11668.2,0.0328674],13.3195],
["Land_Misc_IronPipes_EP1",[4059.27,11657.3,-0.00704956],359.886],
["Land_Reservoir_EP1",[4057.92,11660.8,0.00180054],173.689],
["Land_stand_meat_EP1",[4073.54,11679.3,0.00949097],291.612],
["Land_stand_small_EP1",[4071.76,11676,0.00296021],21.8403],
["Land_tires_EP1",[4052.75,11666.6,0.00115967],322.767],
["Land_transport_crates_EP1",[4064.75,11682.9,0.00534058],39.609],
["ClutterCutter_EP1",[4054.37,11665.8,0],0],
["ClutterCutter_EP1",[4053.75,11671.4,-3.05176e-005],1.02537],
["Pile_of_wood",[4052.14,11666.5,0.101776],62.1647],
["AmmoCrates_NoInteractive_Medium",[4058.41,11680.7,-0.0197754],302.172],
["Land_cages_EP1",[4074.7,11681.8,0.00592041],3.70068],
["Land_covering_hut_EP1",[4074.15,11679.4,0.011261],207.469],
["Land_covering_hut_EP1",[4072.72,11676.6,0.00799561],27.1386],
["Land_Fire_barrel",[4069.34,11677.5,0.0039978],322.741],
["SmallTable",[6313.73,7790.95,0.013092],40.0105],
["Land_Water_pipe_EP1",[6314.95,7790.96,0.0931396],252.19],
["Land_Table_EP1",[4041.98,11669.9,0.0172729],300.146],
["Land_Cabinet_EP1",[6314.92,7792.31,0.0932922],128.336],
["Land_Crates_stack_EP1",[4075.23,11678.6,0.00598145],33.3804],
["Base_WarfareBBarrier10xTall",[6316.47,7792.53,0.00515747],35.6889],
["MASH_EP1",[6315.68,7841.9,-0.0414734],214.026],
["Camp_EP1",[6330.96,7831.43,-0.0237427],214.577],
["Land_tent_east",[6320.07,7797.51,0.260529],216.223],
["CampEast_EP1",[6304.15,7843.94,-0.0131226],303.319],
["CampEast_EP1",[6337.02,7822.19,-0.000305176],124.862],
["Land_GuardShed",[6300.7,7800.27,-0.006073],127.541],
["Land_Fire_barrel",[6309.98,7800.64,3.05176e-005],359.999],
["AmmoCrates_NoInteractive_Large",[6321.24,7798.93,9.15527e-005],211.388],
["Camp_EP1",[6324.05,7836.3,-0.021637],214.641],
["Land_covering_hut_big_EP1",[6317.27,7788.24,0.000183105],38.2667],
["Rubbish1",[4017.43,11670.1,0.000183105],293.976],
["Hedgehog_EP1",[4057.17,11635.8,-0.0043335],0],
["Land_Toilet",[6302.85,7793.83,-0.00384521],306.573],
["Misc_palletsfoiled",[6319.21,7787.54,-0.0223083],16.4322],
["Land_Fire_barrel",[6320.95,7787.1,0.00012207],359.999],
["Land_transport_kiosk_EP1",[6311.83,7793.13,0.00012207],127.481],
["Fort_Crate_wood",[6322.84,7791.68,3.05176e-005],50.4289],
["Land_transport_crates_EP1",[6317.23,7803.64,3.05176e-005],285.371],
["Info_Board_EP1",[11457.6,11360.7,0],304.476],
["Info_Board_EP1",[4086.25,11662.4,0.000610352],109.569],
["Info_Board_EP1",[6310.28,7797.77,6.10352e-005],126.701],
["Land_Fire_barrel",[4358.58,2260.37,-0.0199747],0],
["Land_Fire_barrel",[13533.1,6358.16,-0.019352],0],
["HeliHEmpty",[7983.97,2890.65,0.297879],359.994],
["MASH_EP1",[4836.67,2528.45,-0.0282021],207.765],
["Camp_EP1",[4827.61,2532.12,-0.0220318],207.504],
["CampEast_EP1",[4833.81,2508.78,0.0182037],334.111],
["Land_Fire_barrel",[4836.34,2519.46,-0.00964355],353.734],
["Camp_EP1",[4845.74,2522.33,-0.0619822],214.281],
["Land_CamoNetB_EAST",[12949.3,12766.1,-0.697388],25.2311],
["Misc_cargo_cont_net2",[12949,12771.6,0.0607147],122.405],
["Land_Barrel_water",[12946.4,12769.8,0.00119019],359.93],
["Misc_cargo_cont_small",[12944.5,12769.1,0.00468445],359.976],
["FoldTable",[12946.4,12765.8,0.00125122],6.6329],
["FoldChair",[12946.1,12768.1,0.00151062],328.363],
["RU_WarfareBUAVterminal",[4052.83,11662.4,-0.00228882],334.942],
["ASC_EU_LHVOld",[4088.19,11661.6,-0.00698853],140.558],
["ASC_EU_LHVOld",[4060.82,11685.2,0.01651],180.141],
["ASC_EU_LHVOld",[4040.71,11668.4,-0.00106812],31.4449],
["ASC_EU_LHVOld",[4057.1,11661.2,-0.0141602],8.31776],
["ASC_EU_LHVOld",[6296.96,7801.4,0.0017395],286.436],
["ASC_EU_LHVOld",[6317.2,7814.69,0.000274658],118.614],
["ASC_EU_LHVOld",[6314.86,7792.96,-0.00210571],190.092],
["ASC_EU_LHVOld",[11458.8,11363.8,-0.000366211],127.991],
["ASC_EU_LHVOld",[11449.3,11348.9,9.15527e-005],133.16],
["HeliHEmpty",[1617.71,7773.31,6.10352e-005],0],
["HeliHEmpty",[12072.7,12667.3,0],0],
["MAP_garaz_mala",[6301.03,7798.46,0.0646667],305.746],
["MAP_garaz_mala",[6295.69,7791.52,0.0231323],307.247],
["HeliHEmpty",[6293,7806.44,0],359.994],
["FoldChair",[12060.7,12635.9,-0.0570068],216.273],
["FoldTable",[12061.7,12637,1.52588e-005],17.3061],
["HeliHEmpty",[13473.4,5439.65,0.380941],359.963],
["HeliHEmpty",[4053.63,11671.4,0.015686],353.652],
["MAP_garaz_mala",[4036.72,11664.6,-0.187195],21.756],
["Sign_1L_Firstaid",[4058.67,11660.9,0.00271606],217.943],
["Land_sunshade_EP1",[4059.85,11660.2,0.00448608],359.872],
["HeliHEmpty",[11455.5,11341.2,0],248.275],
["Base_WarfareBBarrier10xTall",[6306.69,7787.59,0.229279],35.6858],
["Base_WarfareBBarrier10xTall",[6319.24,7778.69,0.184418],34.8167],
["Land_CncBlock_D",[6324.88,7781.74,0.000305176],93.6126],
["Land_CncBlock_D",[6324.3,7785.78,-6.10352e-005],68.9638],
["Base_WarfareBBarrier10xTall",[6312.2,7810.51,0],125.629],
["MAP_garaz_mala",[11443.3,11338.4,-0.0205383],35.8282],
["MAP_A_Castle_Bastion",[11470.7,11367.5,0.114838],34.1875],
["MAP_A_Castle_Gate",[11447.6,11358.2,-0.673737],305.541],
["MAP_A_Castle_Stairs_A",[11435.7,11352.8,0.000488281],31.4133],
["MAP_A_Castle_Bastion",[11449.2,11336,-0.00268555],215.506],
["Land_Bench_EP1",[11472.6,11371.8,9.15527e-005],300.958],
["Sign_1L_Firstaid",[11473.3,11369.8,9.15527e-005],33.0887],
["Misc_cargo_cont_net1",[6323.25,7780.07,0.000427246],359.987],
["HeliHEmpty",[4037.3,11673.5,0],353.666],
["Hhedgehog_concreteBig",[4091.63,11663.7,0.00088501],294.281],
["HeliHCivil",[12915.7,12760.8,0],0],
["Concrete_Wall_EP1",[6311.12,7801.19,-9.15527e-005],67.1369],
["Misc_concrete_High",[6326.79,7793.51,0.00012207],201.722],
["PowGen_Big",[6318.19,7806.43,-0.000152588],305.911],
["Land_BagFenceRound",[6295.64,7804.32,-0.000244141],128.792],
["MAP_R2_RockWall",[13861.8,11779.9,-15.0633],217.77],
["MAP_R2_RockWall",[13822.5,11756.4,-16.7336],279.752],
["MAP_R2_RockTower",[13831.8,11778.5,0.0100484],148.154],
["MAP_R2_RockWall",[13844.8,11776,11.7634],146.593],
["MAP_R2_RockWall",[13836.7,11733.2,-15.0741],229.843],
["MAP_R2_RockWall",[13843.1,11772.3,11.3315],320.42],
["MAP_R2_Rock1",[13848.2,11705.3,-20.9383],57.3144],
["MAP_R2_RockWall",[13857,11752.6,11.8745],117.474],
["MAP_R2_RockTower",[13867.9,11753.7,-17.1283],81.7405],
["MAP_R2_RockWall",[13827.9,11722.2,0.0184865],270.131],
["MAP_R2_RockWall",[13881,11792.8,-14.3209],142.299],
["MAP_R2_RockTower",[13827.3,11770.9,-13.6761],0],
["MAP_R2_Rock1",[13817.8,11746.1,-27.2185],68.5491],
["MAP_R2_RockWall",[13861.8,11779.9,-15.0633],217.77],
["MAP_R2_RockWall",[13822.5,11756.4,-16.7336],279.752],
["MAP_R2_RockTower",[13831.8,11778.5,0.0100484],148.154],
["MAP_R2_RockWall",[13844.8,11776,11.7634],146.593],
["MAP_R2_RockWall",[13836.7,11733.2,-15.0741],229.843],
["MAP_R2_RockWall",[13843.1,11772.3,11.3315],320.42],
["MAP_R2_Rock1",[13848.2,11705.3,-20.9383],57.3144],
["MAP_R2_RockWall",[13857,11752.6,11.8745],117.474],
["MAP_R2_RockTower",[13867.9,11753.7,-17.1283],81.7405],
["MAP_R2_RockWall",[13827.9,11722.2,0.0184865],270.131],
["MAP_R2_RockWall",[13881,11792.8,-14.3209],142.299],
["MAP_R2_RockTower",[13827.3,11770.9,-13.6761],0],
["MAP_R2_Rock1",[13817.8,11746.1,-27.2185],68.5491]
],true,false,true] call fnc_spawnObjects;
Thanks in advance !