Closed TosoftAlmor closed 10 years ago
Did this work before installing the tools?
Yes it did. And I just tried to remove your script and then it works again...
Did you implement the "Server: Temporary vehicles despawning/blowing up fix" in the instructions?
This is caused by Epoch's included antihack/cleanup script in the @DayZ_Epoch_Server/addons/dayz_server.pbo. The dayz_server.pbo can be unpacked and packed just like your mission .pbo.
Open your dayz_server folder after unpacking it with your preferred PBO editor.
Open init/server_functions.sqf and search the file for the following:
if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
Comment out this line and/or replace it with the following:
if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["MalSar",0] !=1)) then {
Now open your compile/server_updateObject.sqf and place this:
if (_object getVariable "MalSar" == 1) exitWith {};
...immediately above this:
if (!_parachuteWest and !(locked _object)) then {
Repackage the server pbo and upload it to your server.
Yes I followed the install instruction from a to z :)
I run the Sarge AI too, so my script looks like this: if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable ["Sarge",0] !=1) && (vehicle _x getVariable ["MalSar",0] !=1)) then {
An if you run Sarge AI you have the same line; if ((_object getVariable "Sarge" == 1) || (_object getVariable "MalSar" == 1)) exitWith {};
I show it as _object, not object. I assume that was a type-o.
Since the two varibles are being compared with an OR (||) in the first IF test, I would assume they need to be compared in the second IF test the same way, like this:
if(vehicle x != _x && !(vehicle _x in PVDZEserverObjectMonitor) && (isPlayer x) && !((typeOf vehicle _x) in DZEsafeVehicle) && ((vehicle _x getVariable ["Sarge",0] !=1) || (vehicle _x getVariable ["MalSar",0] !=1))) then {
But that is just a guess on my part.
Yes it was a type-o with the missing _ in _object but thanks for the sharp eyes :)
I'm certain that the "if(vehicle x !=" line is fine as it is, but I will test it tomorrow. I didn't have time to test it this evening, but I will do some testing tomorrow.
Perhaps, as I said, it's a guess.
Anyway, I have been looking for an excuse to put Sarge AI in; I might try tonight to see if I can get it in and also if I have the same issue. I will let you know.
Are you using an AntiHack at all?
If the above does not work and you're not using an AH, then I am at a loss unfortunately. I tried to get SargeAI installed, but was getting RPT spam so hard I could not even log into my server, so I was unable to test it out.
It is odd that this is happening. I run SargeAI and these tools with no problem. I actually run about 25 different mods on my test server and the tools don't break anything. Please let us know if you find a fix so it can be investigated.
No response in almost a week. Assuming problem is solved.
Yes sorry I had a lot of work at hand, so I didn't have time to test it. I got it to work by changing a line where I left out the Sarge value and then it worked. Sorry for not getting back to you. And thanks for an awesome tool :)
It only gets better from here. The next commit makes the tool 30% smaller and more organized. :)
Ohh looking forward to that. Is it only me that is experiencing a missing admin menu 40% of my login times, and have to relog to get it back?
No I am having a similar issue, still trying to track down why.
@TosoftAlmor and @Cinjun, try moving the position of the Admin Tools initialization in the init.sqf - such as to the top of the file, or inside the "if (isServer)". It's possible that other server mods are conflicting with the tools showing up.
Send me a copy of your init.sqf (post it on pastebin or something similar). I have had a few people state this but I never have that issue. I want to try and see what is causing this. Some don't get it if they relog. I would like to find what causes this.
I will try that; I have not had time to mess with it as of late. Hopefully I will get a chance this evening.
If that does not work I will pastebin my init.sqf.
If it is not working please let us know in a NEW issue post so that we can easily know that it is the topic we are discussing. If it does end up working please post to the forums what you did to fix it so that other people with the same issue can fix it.
Will do.
hello i have the same problem. (vehicle blow up after getting) i tried the solution here but it doesnt work for me. i added my vehicles with the following lines.
_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];
};
is there anyone who knows a working fix.
Are the vehicles created by the tools blowing, the ones by epoch blowing up, or are custom vehicles blowing up?
just the custom vehicles but i already found a solution
http://epochmod.com/forum/index.php?/topic/10555-vehicle-dispawns-after-look-into-gear/
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
After I have installed your amazing admin tool on our server, the Chernarus Mission System mission generated vehicles are blowing up when a player gets into the driver seat and try to drive. You can access the cargo and get into the seats of the vehicles but not drive it.
I have followed your installation guide and done everything as told. I kept the Sarge AI changes in the init/server_functions.sqf and added you're changes.
Thanks in advance for any reply.