Murgatroyd

Fixing R3F so you can't tow/lift locked vehicles.

7 posts in this topic

Installing R3F logistics on the latest version of exile resulted in locked vehicles being towable/liftable on my server.  I've noticed some other people on these and other forums having the same issue so here's the solution to the problem.

1. unPBO @ExileServer\addons\exile_server.pbo.

2. Copy the following 3 files from the code directory in the exile_server pbo to somewhere in your unPBO'ed Exile mission (i.e. Exile.Altis). I recommend creating a folder called overrides in the root mission folder and copying them there:

Quote

ExileServer_object_lock_network_hotwireLockRequest.sqf

ExileServer_object_lock_network_lockToggle.sqf

ExileServer_object_vehicle_database_load.sqf

3. In ExileServer_object_lock_network_hotwireLockRequest.sqf

    Add the following line after "_object enableRopeAttach true;":

	_object setVariable ["R3F_LOG_disabled", false, true];

4. In ExileServer_object_lock_network_lockToggle.sqf

    Add the following line after "_object enableRopeAttach true;":

				_object setVariable ["R3F_LOG_disabled", false, true];

    Add the following line after "_object enableRopeAttach false;":

				_object setVariable ["R3F_LOG_disabled", true, true];

5. In ExileServer_object_vehicle_database_load.sqf

    Add the following line after "_object enableRopeAttach false;":

	_vehicleObject setVariable ["R3F_LOG_disabled", true, true];

    Add the following line after "_object enableRopeAttach true;":

	_vehicleObject setVariable ["R3F_LOG_disabled", false, true];

6. Open config.cpp in your root mission folder and add the following to the CfgExileCustomCode class (assuming you created the overrides directory):

	ExileServer_object_vehicle_database_load = "overrides\ExileServer_object_vehicle_database_load.sqf";
	ExileServer_object_lock_network_lockToggle = "overrides\ExileServer_object_lock_network_lockToggle.sqf";
	ExileServer_object_lock_network_hotwireLockRequest = "overrides\ExileServer_object_lock_network_hotwireLockRequest.sqf"

    It should now look like this if you haven't overridden any other files:

class CfgExileCustomCode 
{
	/*
		You can overwrite every single file of our code without touching it.
		To do that, add the function name you want to overwrite plus the 
		path to your custom file here. If you wonder how this works, have a
		look at our bootstrap/fn_preInit.sqf function.

		Simply add the following scheme here:

		<Function Name of Exile> = "<New File Name>";

		Example:

		ExileClient_util_fusRoDah = "myaddon\myfunction.sqf";
	*/
	
	ExileServer_object_vehicle_database_load = "overrides\ExileServer_object_vehicle_database_load.sqf";
	ExileServer_object_lock_network_lockToggle = "overrides\ExileServer_object_lock_network_lockToggle.sqf";
	ExileServer_object_lock_network_hotwireLockRequest = "overrides\ExileServer_object_lock_network_hotwireLockRequest.sqf"
};

7. re-PBO your mission file, put it back in place, and start up your server.

 

Thanks to MrTesla on the BIS forums for his post getting me started in the right direction.

Edited by Murgatroyd
  • Like 5

Share this post


Link to post
Share on other sites
Advertisement
Quote
On 11/24/2018 at 3:54 PM, iIIi_Spike_iIIi said:

For some reason this doesn't work for me, i can't unlock any vehicle anymore, there is the option unlock but when i click it the numpad for entering the code doesn'T appear. Is there anything additional required?

 

Same Here

Share this post


Link to post
Share on other sites
Advertisement

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.