JoSchaap / GoT_Wasteland_V2.Stratis

WARNING! This repo is no longer updated, find the updated version on the A3Wasteland git! -
http://www.a3wasteland.com
11 stars 20 forks source link

all vehicles marked as hacked vehicles (no owner) #31

Closed JoSchaap closed 11 years ago

JoSchaap commented 11 years ago

since moving the keygen file, probably missed something somewhere..

AgentRev commented 11 years ago

I'll check your code in a couple hours.

AgentRev commented 11 years ago

You should update the following files from my master:

client\systems\adminPanel\findHackedVehicles.sqf
server\functions\checkHackedVehicles.sqf
server\functions\findClientPlayer.sqf
server\functions\fn_vehicleInit.sqf

Then, remove the following code from your root "init.sqf":

vChecksum = 1;

{
    vChecksum = vChecksum + _x;
} forEach (toArray versionName); 

After that, remove the following line from "server\functions\serverCompile.sqf", and add it instead under "generateKey = ..." in your root "init.sqf":

fn_vehicleInit = compile preprocessFileLineNumbers "server\functions\fn_vehicleInit.sqf";
JoSchaap commented 11 years ago

Appreciated! On a train now so I'll get this done later :)

AgentRev commented 11 years ago

Also, if you spawn a motorized vehicle from the client without assigning it the vChecksum, or spawn any ammo crate from the client, it will show up in the hacked vehicles.

"Unknown owner" means no one has entered the vehicle since it spawned, or that the last driver disconnected from the server.

JoSchaap commented 11 years ago

thanks!

8e3929e0d5ae6715033e85bfdc25ebf033f18420