F507DMT Posted February 4, 2014 Report Share Posted February 4, 2014 Hi everyone! I have a problem, vehicles are not sold with missions (( because of which it is impossible to sell cars that do not exist in the database. Epoch Chernorus 1.0.4 Help pls ps my en bad)) Link to comment Share on other sites More sharing options...
0 BetterDeadThanZed Posted February 7, 2014 Report Share Posted February 7, 2014 Spent most of our time in point pleasant for a wedding, it wasn't bad. I can't believe they charge you to access the beach though, blew my mind. Back on topic, I know what the OP is trying to do and I posted a fix for it. You can sell EMS mission vehicles without them saving to the database. They changed the way vehicles are handled in 1.0.4 so you need a uniqueID assigned to the vehicle when it spawns. It doesn't matter if it's in the database or not. So they have a Point Pleasant on that little island over there off the coast of France? What a coincidence, just like New Jersey. The OP disagrees. He can't sell EMS mission vehicles, nor can a lot of other people that have posted about this issue. Fuchs says it's because the spawned vehicles aren't written to the database. Link to comment Share on other sites More sharing options...
0 fr1nk Posted February 7, 2014 Report Share Posted February 7, 2014 I was able to sell mission vehicles just fine in previous patches (for a couple different mission systems), even if they weren't written to the database. I think what Cen is saying is the vehicle spawning method needs to be adjusted so the vendors can recognize and know what to do with them. Link to comment Share on other sites More sharing options...
0 cen Posted February 7, 2014 Report Share Posted February 7, 2014 I was able to sell mission vehicles just fine in previous patches (for a couple different mission systems), even if they weren't written to the database. I think what Cen is saying is the vehicle spawning method needs to be adjusted so the vendors can recognize and know what to do with them. Ding ding ding! fr1nk wins the internet. They changed it in 1.0.4 so I posted how to fix it :D Paxton 1 Link to comment Share on other sites More sharing options...
0 DoS-gaming Posted February 7, 2014 Report Share Posted February 7, 2014 I can confirm that cen is right thanks for the fix cen :) Link to comment Share on other sites More sharing options...
0 BetterDeadThanZed Posted February 8, 2014 Report Share Posted February 8, 2014 I was able to sell mission vehicles just fine in previous patches (for a couple different mission systems), even if they weren't written to the database. I think what Cen is saying is the vehicle spawning method needs to be adjusted so the vendors can recognize and know what to do with them. Me too, until they changed it so you had to be the last one in the driver's seat. Link to comment Share on other sites More sharing options...
0 fr1nk Posted February 8, 2014 Report Share Posted February 8, 2014 Me too, until they changed it so you had to be the last one in the driver's seat. Have you tried yet? Link to comment Share on other sites More sharing options...
0 F507DMT Posted February 9, 2014 Author Report Share Posted February 9, 2014 Have you tried yet? which file to change this???? Link to comment Share on other sites More sharing options...
0 bobalonius Posted February 9, 2014 Report Share Posted February 9, 2014 I don't know of any mission system that writes the mission vehicles to the database. The vehicles from the Wicked AI system write to the database on our servers. Link to comment Share on other sites More sharing options...
0 F507DMT Posted February 9, 2014 Author Report Share Posted February 9, 2014 0 Link to comment Share on other sites More sharing options...
0 F507DMT Posted February 9, 2014 Author Report Share Posted February 9, 2014 If u use Sarge AI //F507DMT private ["_coords","_MainMarker","_chopper","_wait"]; [] execVM "\z\addons\dayz_server\EMS\SMGoMajor.sqf"; WaitUntil {MissionGo == 1}; _coord1 = [11464.772, 10619.15, 0]; _coord2 = [12193.327, 7132.9824, 0]; _coord3 = [13702.819, 2919.6946, 0]; _coord4 = [1657.7039, 2383.8894, 0]; _coord5 = [10361.221, 5993.5337]; _coord6 = [9256.6543, 4101.2207]; _coord7 = [2171.2224, 14935.52]; _coord8 = [840.05267, 12325.708]; _coord9 = [8718.7344, 14130.797, 0]; _coord10 = [7789.0034, 3460.9116]; _coord11 = [11996.692, 9178.75]; _coord12 = [4374.8794, 4003.894]; _coord13 = [5500.3198, 13332.453, 0]; _coord14 = [869.2265, 6473.7524, 0]; _coord15 = [869.2265, 6473.7524, 0]; _coord16 = [7270.5029, 14127.697, 0]; _coord17 = [13892.205, 2884.7598, 0]; _coord18 = [10180.267, 1948.7859]; _coord19 = [5172.7148, 11431.229]; _coord20 = [7767.4424, 11532.106]; _coord21 = [8351.0068, 10417.919]; _coord22 = [9526.8135, 12440.739]; _coord23 = [6249.1104,9579.043,0]; _coord24 = [1478.0565, 9989.9814, -0.28155354]; _coord25 = [3200.6785, 7685.7559]; _coord26 = [6694.5132, 2535.55]; _coord27 = [6333.5601, 4295.0767]; _coord28 = [3248.0078, 6196.52]; _coord29 = [6684.2734, 12524.593, 3.0517578e-005]; _coord30 = [12474.939, 13468.215, 0]; _coords = [_coord1, _coord2, _coord3, _coord4, _coord5, _coord6, _coord7, _coord8, _coord9, _coord10, _coord11, _coord12,_coord13, _coord14, _coord15, _coord16, _coord17, _coord18, _coord19, _coord20, _coord21, _coord22, _coord23, _coord24,_coord25, _coord26, _coord27, _coord28, _coord29, _coord30] call BIS_fnc_selectRandom; _uniqueid = str(round(random 999999)); //Mission start [nil,nil,rTitleText,"Колонна со строй-материалами попала под обстрел, помощь бы не помешала!", "PLAIN",10] call RE; Ccoords = _coords; publicVariable "Ccoords"; [] execVM "debug\addmarkers.sqf"; _uralcrash = createVehicle ["UralWreck",_coords,[], 0, "CAN_COLLIDE"]; _uralcrash setVariable ["Sarge",1,true]; _hummer = createVehicle ["UralCivil2_DZE",[(_coords select 0) + 20, (_coords select 1) - 5,0],[], 0, "CAN_COLLIDE"]; _hummer1 = createVehicle ["V3S_RA_TK_GUE_EP1_DZE",[(_coords select 0) + 30, (_coords select 1) - 5,0],[], 0, "CAN_COLLIDE"]; _hummer setVariable ["ObjectID", _uniqueid, true]; _hummer setVariable ["ObjectUID", _uniqueid, true]; _hummer1 setVariable ["ObjectID", _uniqueid, true]; _hummer1 setVariable ["ObjectUID", _uniqueid, true]; _crate = createVehicle ["USVehicleBox",[(_coords select 0) - 6, _coords select 1,0],[], 0, "CAN_COLLIDE"]; [_crate] execVM "\z\addons\dayz_server\EMS\misc\fillConstructionMajor.sqf"; _crate setVariable ["permaloot",true]; _aispawn = [_coords,80,6,6,1] execVM "\z\addons\dayz_server\EMS\add_unit_server.sqf";//AI Guards sleep 5; _aispawn = [_coords,70,6,6,1] execVM "\z\addons\dayz_server\EMS\add_unit_server.sqf";//AI Guards sleep 5; _aispawn = [_coords,40,4,4,1] execVM "\z\addons\dayz_server\EMS\add_unit_server.sqf";//AI Guards sleep 5; _aispawn = [_coords,10,4,4,1] execVM "\z\addons\dayz_server\EMS\add_unit_server.sqf";//AI Guards sleep 5; _aispawn = [_coords,50,4,6,1] execVM "\z\addons\dayz_server\EMS\add_unit_server_rpg.sqf";//STRELA + STINGER sleep 5; waitUntil{{isPlayer _x && _x distance _crate < 40 } count playableunits > 0}; //Mission completed [nil,nil,rTitleText,"Спасибо игрокам, это было не просто!", "PLAIN",6] call RE; [] execVM "debug\remmarkers.sqf"; MissionGo = 0; Ccoords = 0; publicVariable "Ccoords"; SM1 = 5; [0] execVM "\z\addons\dayz_server\EMS\major\SMfinder.sqf"; add in file: _uniqueid = str(round(random 999999)); _hummer setVariable ["ObjectID", _uniqueid, true]; _hummer setVariable ["ObjectUID", _uniqueid, true]; _hummer1 setVariable ["ObjectID", _uniqueid, true]; _hummer1 setVariable ["ObjectUID", _uniqueid, true]; Link to comment Share on other sites More sharing options...
0 PetuniaEpoch Posted February 9, 2014 Report Share Posted February 9, 2014 I can also confirm that this DOES work for SQF spawned vehicles. I use some not thru a mission system, but same thing - using createunit in SQF. Assigning a ID as per the instructions works and the vehicles can be sold. All good! thanks for the fix guys! Link to comment Share on other sites More sharing options...
0 jay8454 Posted February 22, 2014 Report Share Posted February 22, 2014 This script is insta-Killing people What did I F' Up? : private ["_coords","_MainMarker","_wait"]; [] execVM "\z\addons\dayz_server\AIM\SMGoMajor.sqf"; WaitUntil {MissionGo == 1}; _coords = [getMarkerPos "center",0,5700,100,0,20,0] call BIS_fnc_findSafePos; _uniqueid = str(round(random 999999)); [nil,nil,rTitleText,"Bandits have discovered a weapons cache! Check your map for the location!", "PLAIN",10] call RE; diag_log "AIM: Major mission created (SM1)"; Ccoords = _coords; publicVariable "Ccoords"; [] execVM "debug\addmarkers.sqf"; _hummer = createVehicle ["Offroad_DSHKM_Gue_DZE",[(_coords select 0) + 20, (_coords select 1) + 20,0],[], 0, "CAN_COLLIDE"]; _hummer1 = createVehicle ["LandRover_Special_CZ_EP1_DZE",[(_coords select 0) + 35, (_coords select 1) - 10,0],[], 0, "CAN_COLLIDE"]; _hummer2 = createVehicle ["ArmoredSUV_PMC_DZE",[(_coords select 0) + 45, (_coords select 1) + 10,0],[], 0, "CAN_COLLIDE"]; _hummer setVariable ["ObjectID", _uniqueid, true]; _hummer setVariable ["ObjectUID", _uniqueid, true]; _hummer1 setVariable ["ObjectID", _uniqueid, true]; _hummer1 setVariable ["ObjectUID", _uniqueid, true]; _hummer2 setVariable ["ObjectID", _uniqueid, true]; _hummer2 setVariable ["ObjectUID", _uniqueid, true]; _crate = createVehicle ["USVehicleBox",[(_coords select 0) + 25, (_coords select 1),0],[], 0, "CAN_COLLIDE"]; [_crate] execVM "\z\addons\dayz_server\AIM\misc\fillBoxesW.sqf"; _crate setVariable ["permaloot",true]; _crate = createVehicle ["USVehicleBox",[(_coords select 0) + 40, (_coords select 1),0],[], 0, "CAN_COLLIDE"]; [_crate] execVM "\z\addons\dayz_server\AIM\misc\fillBoxesH.sqf"; _crate setVariable ["permaloot",true]; _aispawn = [_coords,80,6,4,1] execVM "\z\addons\dayz_server\AIM\add_unit_server.sqf";//AI Guards sleep 1; _aispawn = [_coords,80,6,4,1] execVM "\z\addons\dayz_server\AIM\add_unit_server.sqf";//AI Guards sleep 1; _aispawn = [_coords,80,4,4,1] execVM "\z\addons\dayz_server\AIM\add_unit_server.sqf";//AI Guards waitUntil{{isPlayer _x && _x distance _hummer < 10 } count playableunits > 0}; [nil,nil,rTitleText,"The weapons cache is under survivor control!", "PLAIN",6] call RE; [] execVM "debug\remmarkers.sqf"; MissionGo = 0; Ccoords = 0; publicVariable "Ccoords"; SM1 = 1; [0] execVM "\z\addons\dayz_server\AIM\Major\SMfinder.sqf"; Link to comment Share on other sites More sharing options...
0 (HPG) Heavy Posted February 27, 2014 Report Share Posted February 27, 2014 This script is insta-Killing people What did I F' Up? : private ["_coords","_MainMarker","_wait"]; [] execVM "\z\addons\dayz_server\AIM\SMGoMajor.sqf"; WaitUntil {MissionGo == 1}; _coords = [getMarkerPos "center",0,5700,100,0,20,0] call BIS_fnc_findSafePos; _uniqueid = str(round(random 999999)); [nil,nil,rTitleText,"Bandits have discovered a weapons cache! Check your map for the location!", "PLAIN",10] call RE; diag_log "AIM: Major mission created (SM1)"; Ccoords = _coords; publicVariable "Ccoords"; [] execVM "debug\addmarkers.sqf"; _hummer = createVehicle ["Offroad_DSHKM_Gue_DZE",[(_coords select 0) + 20, (_coords select 1) + 20,0],[], 0, "CAN_COLLIDE"]; _hummer1 = createVehicle ["LandRover_Special_CZ_EP1_DZE",[(_coords select 0) + 35, (_coords select 1) - 10,0],[], 0, "CAN_COLLIDE"]; _hummer2 = createVehicle ["ArmoredSUV_PMC_DZE",[(_coords select 0) + 45, (_coords select 1) + 10,0],[], 0, "CAN_COLLIDE"]; _hummer setVariable ["ObjectID", _uniqueid, true]; _hummer setVariable ["ObjectUID", _uniqueid, true]; _hummer1 setVariable ["ObjectID", _uniqueid, true]; _hummer1 setVariable ["ObjectUID", _uniqueid, true]; _hummer2 setVariable ["ObjectID", _uniqueid, true]; _hummer2 setVariable ["ObjectUID", _uniqueid, true]; _crate = createVehicle ["USVehicleBox",[(_coords select 0) + 25, (_coords select 1),0],[], 0, "CAN_COLLIDE"]; [_crate] execVM "\z\addons\dayz_server\AIM\misc\fillBoxesW.sqf"; _crate setVariable ["permaloot",true]; _crate = createVehicle ["USVehicleBox",[(_coords select 0) + 40, (_coords select 1),0],[], 0, "CAN_COLLIDE"]; [_crate] execVM "\z\addons\dayz_server\AIM\misc\fillBoxesH.sqf"; _crate setVariable ["permaloot",true]; _aispawn = [_coords,80,6,4,1] execVM "\z\addons\dayz_server\AIM\add_unit_server.sqf";//AI Guards sleep 1; _aispawn = [_coords,80,6,4,1] execVM "\z\addons\dayz_server\AIM\add_unit_server.sqf";//AI Guards sleep 1; _aispawn = [_coords,80,4,4,1] execVM "\z\addons\dayz_server\AIM\add_unit_server.sqf";//AI Guards waitUntil{{isPlayer _x && _x distance _hummer < 10 } count playableunits > 0}; [nil,nil,rTitleText,"The weapons cache is under survivor control!", "PLAIN",6] call RE; [] execVM "debug\remmarkers.sqf"; MissionGo = 0; Ccoords = 0; publicVariable "Ccoords"; SM1 = 1; [0] execVM "\z\addons\dayz_server\AIM\Major\SMfinder.sqf"; Link to comment Share on other sites More sharing options...
0 mgm Posted July 5, 2014 Report Share Posted July 5, 2014 Two hours ago I couldn't sell some vehicles too (mission ones), I started reading on the matter starting with this thread and ended up resolving this issue using cen's proposed fix. If you're using EMS Defent's Edit you can copy & paste my modified file might apply to original EMS too but I'm not sure as I don't use it. Link to comment Share on other sites More sharing options...
Question
F507DMT
Link to comment
Share on other sites
39 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now