• 0
MrDraug

CUP Vehicles error 13

Question

Hello community,

I just installed CUP Mods and started with adding cars to traders. Now im getting error 13 when I try to buy it. I used search function and found a lot of old posts here. But nothing could help me. 

I want to know, is there a solution to fix this problem. I can buy other cars and helicopters from vanila, its just with cup mods. I tried MAS mods also, they are working perfectly, but I want to use CUP.

 

Thank you!

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0
9 minutes ago, WhiteBl00d said:

make sure you have no space in your CUP mod folders.
if you have one just change it to this: @CUP_Vehicles

Hay!

Im pretty sure I have no spaces there...

 

lVdfb.png

Edited by MrDraug

Share this post


Link to post
Share on other sites
Advertisement
  • 0
10 hours ago, Grayz_lost said:

Hi , i had the same issue ,,, think there is not enough space to spawn the vehicle in as some smaller vehicles worked and some larger vehicles didnt ... 

I tried with all vehicles, ground and air. I added custom Heliplace for spawn. We made a lot of place to spawn there, added an loop to keep searching for an place around the map. Srsly? NO PLACE?! I dont know... 

Share this post


Link to post
Share on other sites
  • 0

Are you using this file to overide where youre heli/vehicles spawn ..

ExileServer_system_trading_network_purchaseVehicleRequest.

Spoiler

/**
 * Edit by Scorpi
 * ExileServer_system_trading_network_purchaseVehicleRequest
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_sessionID","_parameters","_vehicleClass","_pinCode","_playerObject","_salesPrice","_playerMoney","_position","_vehicleObject","_responseCode","_nObject", "_position3d","_position2d"];
_sessionID = _this select 0;
_parameters = _this select 1;
_vehicleClass = _parameters select 0;
_pinCode = _parameters select 1;
try 
{
    _playerObject = _sessionID call ExileServer_system_session_getPlayerObject;
    if (isNull _playerObject) then
    {
        throw 1;
    };
    if !(alive _playerObject) then
    {
        throw 2;
    };
    if (_playerObject getVariable ["ExileMutex",false]) then
    {
        throw 12;
    };
    _playerObject setVariable ["ExileMutex", true];
    if !(isClass (missionConfigFile >> "CfgExileArsenal" >> _vehicleClass) ) then
    {
        throw 3;
    };
    _salesPrice = getNumber (missionConfigFile >> "CfgExileArsenal" >> _vehicleClass >> "price");
    if (_salesPrice <= 0) then
    {
        throw 4;
    };
    _playerMoney = _playerObject getVariable ["ExileMoney", 0];
    if (_playerMoney < _salesPrice) then
    {
        throw 5;
    };
    if !((count _pinCode) isEqualTo 4) then
    {
        throw 11;
    };
    if (_vehicleClass isKindOf "Ship") then
    {
        _nObject = nearestObject [(getPosATL _playerObject), "Land_HelipadEmpty_F"];
        if ( isNull _nObject ) then { throw 13; };
        _position = getPos _nObject;
        _position set [2, 0.0];
        _vehicleObject = [_vehicleClass, _position, (random 360), true, _pinCode] call ExileServer_object_vehicle_createPersistentVehicle;
    }
    else
    {
    if (_vehicleClass isKindOf "Air") then
    {
        _nObject = nearestObject [(getPosATL _playerObject), "Land_HelipadSquare_F"];
        if ( isNull _nObject ) then { throw 13; };
        _position3d = getPos _nObject;
        _position2d = [_position3d select 0, _position3d select 1];
    }
    else
    {
        _nObject = nearestObject [(getPosATL _playerObject), "Land_HelipadEmpty_F"];
        if ( isNull _nObject ) then { throw 13; };
        _position3d = getPos _nObject;
        _position2d = [_position3d select 0, _position3d select 1];
    };
        _vehicleObject = [_vehicleClass, _position3d, (random 360), true, _pinCode] call ExileServer_object_vehicle_createPersistentVehicle;
    };    
    _vehicleObject setVariable ["ExileOwnerUID", (getPlayerUID _playerObject)];
    _vehicleObject setVariable ["ExileIsLocked",0];
    _vehicleObject lock 0;
    _vehicleObject call ExileServer_object_vehicle_database_insert;
    _vehicleObject call ExileServer_object_vehicle_database_update;
    _playerMoney = _playerMoney - _salesPrice;
    _playerObject setVariable ["ExileMoney", _playerMoney, true];
    format["setPlayerMoney:%1:%2", _playerMoney, _playerObject getVariable ["ExileDatabaseID", 0]] call ExileServer_system_database_query_fireAndForget;
    [_sessionID, "purchaseVehicleResponse", [0, netId _vehicleObject, _salesPrice]] call ExileServer_system_network_send_to;
    _logging = getNumber(configFile >> "CfgSettings" >> "Logging" >> "traderLogging");
    if (_logging isEqualTo 1) then
    {
        _traderLog = format ["PLAYER: ( %1 ) %2 PURCHASED VEHICLE %3 FOR %4 POPTABS | PLAYER TOTAL MONEY: %5",getPlayerUID _playerObject,_playerObject,_vehicleClass,_salesPrice,_playerMoney];
        "extDB2" callExtension format["1:TRADING:%1",_traderLog];
    };
}
catch 
{
    _responseCode = _exception;
    [_sessionID, "purchaseVehicleResponse", [_responseCode, "", 0]] call ExileServer_system_network_send_to;
};
if !(isNull _playerObject) then 
{
    _playerObject setVariable ["ExileMutex", false];
};
true

 

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.