Dew Posted May 1, 2014 Report Share Posted May 1, 2014 Hey Epoch Com, Im running dayz epoch under linux. i want to ask if anyone has a solution for my problem. i included the Sectorfng with customspawns from WAI. My Problem is now that the ammo crates getting deleted from the server cleanup script. so i replaced the crates with cars so they will not deleted from the script. But now i have the bug when someone look into the gear the vehicle disappears instandly. here is my crates.sqf file from the sectorfng. //Sector FNG Made by Phoenix @ http://fridaynightgaming.co.uk/ //Feel Free to test @ 91.121.11.49:2362 Bring a group you'll need one. //Thanks to OpenDayZ for there hard work in helping others. //Thanks to Sarge for his great AI work. if (isServer) then { //Sector FNG Weapons Crate _vehicle_103769 = objNull; if (true) then { _this = createVehicle ["Ural_INS", [6660.3984, 14177.261], [], 0, "CAN_COLLIDE"]; _vehicle_103769 = _this; _this setDir -182.5; //Clear Cargo clearweaponcargoGlobal _this; clearmagazinecargoGlobal _this; //Add Cargo _this addWeaponCargoGlobal ["M9SD",2]; _this addWeaponCargoGlobal ["DMR_DZ",2]; _this addWeaponCargoGlobal ["M4A1_AIM_SD_camo",2]; _this addWeaponCargoGlobal ["FN_FAL",2]; _this addWeaponCargoGlobal ["M249_DZ",2]; _this addWeaponCargoGlobal ["M14_EP1",2]; _this addWeaponCargoGlobal ["Mk_48_DZ",2]; _this addWeaponCargoGlobal ["BAF_L85A2_RIS_SUSAT",2]; _this addWeaponCargoGlobal ["BAF_L85A2_RIS_Holo",2]; _this addWeaponCargoGlobal ["G36K_camo",2]; _this addWeaponCargoGlobal ["NVGoggles",1]; _this addWeaponCargoGlobal ["Binocular_Vector",1]; _this addWeaponCargoGlobal ["ItemGPS",1]; _this addWeaponCargoGlobal ["BAF_LRR_scoped",1]; _this addmagazineCargoGlobal ["20Rnd_762x51_DMR",20]; _this addmagazineCargoGlobal ["30Rnd_556x45_StanagSD",20]; _this addmagazineCargoGlobal ["20Rnd_762x51_FNFAL",10]; _this addmagazineCargoGlobal ["100Rnd_762x51_M240",10]; _this addmagazineCargoGlobal ["200Rnd_556x45_M249",10]; _this addmagazineCargoGlobal ["30Rnd_556x45_G36",10]; _this addmagazineCargoGlobal ["30Rnd_556x45_Stanag",30]; _this addmagazineCargoGlobal ["15Rnd_9x19_M9SD",10]; _this addmagazineCargoGlobal ["5x_22_LR_17_HMR",5]; _this addmagazineCargoGlobal ["ItemPainkiller",5]; _this addmagazineCargoGlobal ["ItemMorphine",5]; _this addmagazineCargoGlobal ["ItemBloodBag",5]; _this addmagazineCargoGlobal ["ItemAntibiotic",5]; _this addmagazineCargoGlobal ["ItemBriefcase100oz",1]; _this addbackpackCargoGlobal ["DZ_LargeGunBag_EP1",2]; _this setPos [6660.3984, 14177.261]; }; //Sector FNG Vehicle Part Crate _vehicle_103770 = objNull; if (true) then { _this = createVehicle ["Ural_INS", [6786.0361, 14320.882], [], 0, "CAN_COLLIDE"]; _vehicle_103770 = _this; //Clear Cargo clearweaponcargoGlobal _this; clearmagazinecargoGlobal _this; //Add Cargo _this addWeaponCargoGlobal ["NVGoggles",1]; _this addWeaponCargoGlobal ["ItemGPS",1]; _this addWeaponCargoGlobal ["ItemToolbox",5]; _this addmagazineCargoGlobal ["FoodCanBadguy",10]; _this addmagazineCargoGlobal ["FoodCanBoneboy",10]; _this addmagazineCargoGlobal ["FoodCanCorn",10]; _this addmagazineCargoGlobal ["FoodCanCurgon",10]; _this addmagazineCargoGlobal ["FoodCanDemon",10]; _this addmagazineCargoGlobal ["FoodCanFraggleos",10]; _this addmagazineCargoGlobal ["FoodCanHerpy",10]; _this addmagazineCargoGlobal ["FoodCanDerpy",10]; _this addmagazineCargoGlobal ["FoodCanTylers",10]; _this addmagazineCargoGlobal ["ItemSodaMtngreen",10]; _this addmagazineCargoGlobal ["ItemSodaR4z0r",10]; _this addmagazineCargoGlobal ["ItemSodaClays",10]; _this addmagazineCargoGlobal ["ItemSodaSmasht",10]; _this addmagazineCargoGlobal ["ItemSodaDrwaste",10]; _this addmagazineCargoGlobal ["ItemSodaLemonade",10]; _this addmagazineCargoGlobal ["ItemSodaLvg",10]; _this addmagazineCargoGlobal ["ItemSodaMzly",10]; _this addmagazineCargoGlobal ["ItemSodaRabbit",10]; _this addmagazineCargoGlobal ["ItemBriefcase100oz",1]; _this addbackpackCargoGlobal ["DZ_LargeGunBag_EP1",1]; _this setPos [6786.0361, 14320.882]; }; //Sector FNG Food and Drink Crate _vehicle_103771 = objNull; if (true) then { _this = createVehicle ["Ural_INS", [6791.7695, 14091.711], [], 0, "CAN_COLLIDE"]; _vehicle_103771 = _this; _this setDir -178.83; //Clear Cargo clearweaponcargoGlobal _this; clearmagazinecargoGlobal _this; //Add Cargo _this addWeaponCargoGlobal ["NVGoggles",1]; _this addWeaponCargoGlobal ["ItemGPS",1]; _this addmagazineCargoGlobal ["PartEngine",15]; _this addmagazineCargoGlobal ["PartGeneric",15]; _this addmagazineCargoGlobal ["PartVRotor",5]; _this addmagazineCargoGlobal ["PartWheel",20]; _this addmagazineCargoGlobal ["PartFueltank",15]; _this addmagazineCargoGlobal ["PartGlass",30]; _this addmagazineCargoGlobal ["ItemBriefcase100oz",1]; _this addmagazineCargoGlobal ["CinderBlocks",40]; _this addmagazineCargoGlobal ["ItemComboLock",5]; _this addmagazineCargoGlobal ["MortarBucket",10]; _this addbackpackCargoGlobal ["DZ_LargeGunBag_EP1",1]; _this setPos [6791.7695, 14091.711]; }; //Sector FNG Medical Crate _vehicle_103772 = objNull; if (true) then { _this = createVehicle ["Ural_INS", [6591.8535, 14275.836], [], 0, "CAN_COLLIDE"]; _vehicle_103772 = _this; _this setDir 90.560677; //Clear Cargo clearweaponcargoGlobal _this; clearmagazinecargoGlobal _this; //Add Cargo _this addWeaponCargoGlobal ["NVGoggles",1]; _this addWeaponCargoGlobal ["ItemGPS",1]; _this addmagazineCargoGlobal ["ItemBandage",30]; _this addmagazineCargoGlobal ["ItemPainkiller",30]; _this addmagazineCargoGlobal ["ItemMorphine",30]; _this addmagazineCargoGlobal ["ItemBloodBag",30]; _this addmagazineCargoGlobal ["ItemEpinephrine",15]; _this addmagazineCargoGlobal ["ItemAntibiotic",30]; _this addmagazineCargoGlobal ["ItemBriefcase100oz",1]; _this addbackpackCargoGlobal ["DZ_LargeGunBag_EP1",1]; _this setPos [6591.8535, 14275.836]; }; //Sector FNG BaseBuilding Crate _vehicle_103773 = objNull; if (true) then { _this = createVehicle ["Ural_INS", [6668.1357, 14121.218], [], 0, "CAN_COLLIDE"]; _vehicle_103773 = _this; //Clear Cargo clearweaponcargoGlobal _this; clearmagazinecargoGlobal _this; //Add Cargo _this addWeaponCargoGlobal ["ItemEtool",5]; _this addWeaponCargoGlobal ["ItemToolbox",5]; _this addWeaponCargoGlobal ["NVGoggles",1]; _this addWeaponCargoGlobal ["ItemGPS",1]; _this addmagazineCargoGlobal ["HandGrenade_West",10]; _this addmagazineCargoGlobal ["ItemSandbag",10]; _this addmagazineCargoGlobal ["ItemTankTrap",10]; _this addmagazineCargoGlobal ["ItemWire",10]; _this addmagazineCargoGlobal ["ItemTent",5]; _this addmagazineCargoGlobal ["PartGeneric",5]; _this addmagazineCargoGlobal ["TrapBear",10]; _this addmagazineCargoGlobal ["ItemBriefcase100oz",1]; _this addbackpackCargoGlobal ["DZ_LargeGunBag_EP1",1]; _this setPos [6668.1357, 14121.218]; }; }; greets and sry for my horrible english :-) Link to comment Share on other sites More sharing options...
jahangir13 Posted May 1, 2014 Report Share Posted May 1, 2014 Double-post. Have some issues with the foum today. Link to comment Share on other sites More sharing options...
jahangir13 Posted May 1, 2014 Report Share Posted May 1, 2014 I am not sure but I think this is not a linux version problem. You look into the gear of the vehicle and it disappears? I guess antihack has something to do with it. It's just a guess with a problem I had with an admin tool. Find server_functions.sqf in dayz_server.pbo/init and find the following line: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { Comment it out and replace it with: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0] !=1)) then { If that does not work...go to your init.sqf and comment out ('//') the line where antihack gets loaded. Just as a test. I am nut 100% sure if it has something to do with it...or let's say I am half-sure. ;) Or when do they despawn? At restart or immediately? Regards, jahan. Link to comment Share on other sites More sharing options...
Dew Posted May 24, 2014 Author Report Share Posted May 24, 2014 i changed the line in my server_functions.sqf but still the same problem. Vehicle blows up after i start the engine. ..with this messages in the logs 15:15:02 "CLEANUP: KILLING A HACKER Dew_u_Nomie B 1-1-C:1 (Dew_u_Nomie) REMOTE IN pook_H13_gunship" 15:15:02 "ATTEMPT WRITE: CHILD:306:187331:[]:1:" the vehicle spawn in after restart with this function (i placed it in the staticammobox.sqf from WAI) //Create Sustom Vehicle in Dichina _vehicle_103774 = objNull; if (true) then { _this = createVehicle ["pook_H13_gunship",[4007.58,8053.5,-0.02349850], [], 0, "CAN_COLLIDE"]; _vehicle_103775 = _this; _uniqueid = str(round(random 999999)); _this setVariable ["ObjectID", _uniqueid, true]; _this setVariable ["ObjectUID", _uniqueid, true]; _this setVariable ["permaLoot",true,true]; _this setPos [4007.58,8053.5,-0.02349850]; }; //Create Custom Vehicle Oilfields Base _vehicle_103773 = objNull; if (true) then { _this = createVehicle ["pook_H13_gunship",[7268.79,9739.5,0.00158691], [], 0, "CAN_COLLIDE"]; _vehicle_103775 = _this; _uniqueid = str(round(random 999999)); _this setVariable ["ObjectID", _uniqueid, true]; _this setVariable ["ObjectUID", _uniqueid, true]; _this setVariable ["permaLoot",true,true]; _this setPos [7268.79,9739.5,0.00158691]; }; Link to comment Share on other sites More sharing options...
Dew Posted May 25, 2014 Author Report Share Posted May 25, 2014 so let the forum know that we found a sulution for my problem. thank to jahangir13 for helping me out. uncomment this line in the server_function.sqf if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { and copy this this on right below it if(vehicle _x != _x && (vehicle _x getVariable ["Sarge",0] != 1) && (vehicle _x getVariable ["Mission",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then { than i used this to create my custom vehicles on the map. and put it somewhere in server files :-P _vehicle_103774 = objNull; if (true) then { _this = createVehicle ["pook_H13_gunship",[4007.58,8053.5,-0.02349850], [], 0, "CAN_COLLIDE"]; _vehicle_103774 = _this; _uniqueid = str(round(random 999999)); _this setVariable ["ObjectID", _uniqueid, true]; _this setVariable ["ObjectUID", _uniqueid, true]; _this setVariable ["permaLoot",true]; _this setVariable ["Sarge",1,true]; _this setPos [4007.58,8053.5,-0.02349850]; }; //Create Custom Vehicle Oilfields Base _vehicle_103775 = objNull; if (true) then { _this = createVehicle ["pook_H13_gunship",[7268.79,9739.5,0.00158691], [], 0, "CAN_COLLIDE"]; _vehicle_103775 = _this; _uniqueid = str(round(random 999999)); _this setVariable ["ObjectID", _uniqueid, true]; _this setVariable ["ObjectUID", _uniqueid, true]; _this setVariable ["permaLoot",true]; _this setVariable ["Sarge",1,true]; _this setPos [7268.79,9739.5,0.00158691]; }; than you just need to set the Sarge variable ( _this setVariable ["Sarge",1,true]; ) so the antihack wont blow up the vehicles... regards Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now