[FIXES] Common scripting problems

xBowBii

Member
Hello scripters,
Sometimes I've got some problems with scripting where I missed something and I tried to fix it and it didn't work as fast as I would..

So I am doing this thread where I will post the problems that I had and how I fixed them. I hope it will help some people!
------------------------------------------------------------------------------------------------------------------------
Problem:
-Vehicles coming back (with no gear) at their first spawn after a restart. (Script causing this: AI Missions)

Fix:
- Open file: dayz_server\compile\Server_UpdateObject.sqf
- Approx. Line 31-32:
Code:
 if (_objectID == "0" && _uid == "0") then
- It needs to be commented out and under it:
Code:
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
- If it is not fixed after this, give me your mission and server files via PM I will see what is the problem.
------------------------------------------------------------------------------------------------------------------------
Problem 2:
-Can't join my server, and when I look at my .rpt they say me
Code:
file xxxxxx.sqf not found.
Fix:
- Open your dayz_server.pbo with PBO Manager,
- Click on the blue little wheel on top of PBO Manager's window.
- Right click that new window and click ADD.
- In the first rectangle, double click it and add: "prefix" (without the two " ).
- In the second rectangle, double click and add: "z\addons\dayz_server" (without the two " ).
- Now press APPLY
- If an error message is coming saying "Signature will be lost" press OK.

------------------------------------------------------------------------------------------------------------------------
Problem 3:
-Deploy bike killing players when they get on it.
Fix:
- Open file: dayz_server\system\server_cleanup.fsm
- Search for:

Code:
       "        diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
       "        (vehicle _x) setDamage 1;" \n
       "        _x setDamage 1;" \n
       "     };" \n
- Change the "setDamage 1;" to "setDamage 0;". DONT FORGET: THERE ARE TWO "setDamage"s! CHANGE THE TWO, NOT ONLY ONE.
------------------------------------------------------------------------------------------------------------------------
Problem 4:

- Can't teleport, etc.
Fix:
- Open your init.sqf
- Find this line: //Anti hack
- Under it, there shoud be this:
Code:
    [] execVM "\z\addons\dayz_code\system\antihack.sqf";
- Comment it out so it looks like this:
Code:
 //[] execVM "\z\addons\dayz_code\system\antihack.sqf";
------------------------------------------------------------------------------------------------------------------------
Any other problems? PM me and I will look into it!
:cool:Happy scripting!:cool:

xBowBii
 
Back
Top