Ammo Crates Fix

BoNeHeD

Member
I got my ammo crates to work again... Go the the server.pbo system folder and the server_cleanup.fsm and comment out the following code:

"//Check for Ammobox" \n
"// {" \n
"//if(!(_x isKindOf ""WeaponHolder"")) then {" \n
"//diag_log (""CLEANUP: DELETING AN AMMOBOX "" + (typeOf _x));" \n
"//deleteVehicle _x;" \n
"//};" \n
"//} forEach allMissionObjects ""ReammoBox"";" \n
"//*/" \n
""// \n
 
many script runnings. but i dont think these affect server_cleanup.
i will try later running a vanilla 1.7.7.1 instance.

are u importing them via deployable tables or mission?
if your using mission, how can you spawn them with gear in it?
 
Cur,

If dayz.st hosting you server? Use the following tutorial to help you install the boxes:
The database he is talking about is located on your dayz.st control panel.

Go the the server.pbo system folder and the server_cleanup.fsm and comment out the following code:

"//Check for Ammobox" \n
"// {" \n
"//if(!(_x isKindOf ""WeaponHolder"")) then {" \n
"//diag_log (""CLEANUP: DELETING AN AMMOBOX "" + (typeOf _x));" \n
"//deleteVehicle _x;" \n
"//};" \n
"//} forEach allMissionObjects ""ReammoBox"";" \n
"//*/" \n
""// \n

If you have further questions, just let me know...
 
Just a heads up for people reading this

Ammo boxes are NOT the same thing as Ammo/Weapon crates.
 
I found in variables.sqf you can edit this line to include any ammo crates you want to add as safe objects:
Code:
SafeObjects = ["Land_Fire_DZ", "TentStorage", "Wire_cat1", "Sandbag1_DZ", "Hedgehog_DZ", "StashSmall", "StashMedium"];

If you add them to that list it will prevent the server_monitor.sqf from deleting them here:
Code:
else { // else for object or non legit vehicle
            if (!(_class in SafeObjects )) then { 
                _damage = 1;
            };

This requires a custom variables.sqf. If you don't already have one you can add it to your mission by editing your init.sqf like this:
Code:
call compile preprocessFileLineNumbers "variables.sqf";

Copy variables.sqf from ArmA 2\@Dayz\Addons\dayz_code\init to the root of your mission pbo then make your changes.



confirmed working. Thanks :).
 
The problem we encountered now is that not every box is spawning. In our base the boxes are spawning fine, but in every other base they doesn't spawn. Anybody knows how to fix this?.
 
On my server. I commented out the lines in the the server.pbo system folder and the server_cleanup.fsm and I can see all the ammo and weapons crates and use them....

"//Check for Ammobox" \n
"// {" \n
"//if(!(_x isKindOf ""WeaponHolder"")) then {" \n
"//diag_log (""CLEANUP: DELETING AN AMMOBOX "" + (typeOf _x));" \n
"//deleteVehicle _x;" \n
"//};" \n
"//} forEach allMissionObjects ""ReammoBox"";" \n
"//*/" \n
""// \n
 
i deleated that but my crates or boxes are'nt showing i am a total noob at this lol, at the stage were i am ready to give up or pay someone to sort it out for me, but thank you for you'r responce.
 
Back
Top