• 0
atise

All vehicals gone

Question

Posted (edited)

After adjusting my servers ( ExileServer_object_vehicle_carefulCreateVehicle ) file to allow UAVs, upon turning server back up to test it, all vehicles that were on the map are now gone, when attempting to purchase vehicles from the traders, both ground and air, they take the money and don't spawn anything.

Spoiler

/**
 * ExileServer_object_vehicle_carefulCreateVehicle
 *
 * 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["_vehicleClassName","_position","_direction","_usePositionATL","_temporaryPositionInOuterSpace","_vehicleObject"];
_vehicleClassName = _this select 0;
_position = _this select 1;
_direction = _this select 2;
_usePositionATL = _this select 3;
_temporaryPositionInOuterSpace =
[
 (_position select 0) - 250 + (random 500),
 (_position select 1) - 250 + (random 500),
 1000 + (random 1000)
];
_vehicleObject = createVehicle [_vehicleClassName, _temporaryPositionInOuterSpace, [], 0, "CAN_COLLIDE"];
_vehicleObject allowDamage false;
_vehicleObject removeAllEventHandlers "HandleDamage";
_vehicleObject addEventHandler["HandleDamage", {false}];
_vehicleObject setVelocity [0, 0, 0];
if ((typeName _direction) isEqualTo "ARRAY") then
{
 _vehicleObject setVectorDirAndUp _direction;
}
else
{
 _vehicleObject setDir _direction;
};
if (_usePositionATL) then
{
 _vehicleObject setPosATL _position;
}
else
{
 _vehicleObject setPosASL _position;
};
_vehicleObject setVelocity [0, 0, 0];
_vehicleObject allowDamage true;
_vehicleObject removeAllEventHandlers "HandleDamage";
_vehicleObject setDamage 0;
clearBackpackCargoGlobal _vehicleObject;
clearItemCargoGlobal _vehicleObject;
clearMagazineCargoGlobal _vehicleObject;
clearWeaponCargoGlobal _vehicleObject;
if (_vehicleClassName isKindOf "I_UAV_01_F") then
{
 createVehicleCrew _vehicleObject;
};
 createVehicleCrew _vehicleObject;
 };
 if (_vehicleClassName isKindOf "I_UGV_01_rcws_F") then
{
 createVehicleCrew _vehicleObject;
};
 if (_vehicleClassName isKindOf "I_UAV_02_CAS_F") then
{
 createVehicleCrew _vehicleObject;
};
 if (_vehicleClassName isKindOf "I_UAV_02_F") then
{
 createVehicleCrew _vehicleObject;
};
if (_vehicleClassName isKindOf "I_UGV_01_F") then
{
 createVehicleCrew _vehicleObject;
};
if (getNumber (configFile >> "CfgSettings" >> "VehicleSpawn" >> "nightVision") isEqualTo 0) then
{
 _vehicleObject disableNVGEquipment true;
};
if (getNumber (configFile >> "CfgSettings" >> "VehicleSpawn" >> "thermalVision") isEqualTo 0) then
{
 _vehicleObject disableTIEquipment true;
};
_vehicleObject

They are still in the database but no vehicles at all are showing up on the map

Edited by atise

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Whatever you did, you broke the file. Revert it (if you followed a guide to do this, try following it more closely on the second attempt and make sure it's not outdated and not working any more) I can't see the error myself, probably because I should sleep.. >_>

Share this post


Link to post
Share on other sites
  • 0

Uav's are fine with the vanilla version of that file as they are in exile as standard. No need to overwrite or override. 

As instructed above revert to vanilla   

Share this post


Link to post
Share on other sites
Advertisement
  • 0

I reverted the file back, and the stompers still wont talk with the uav terminal.

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, atise said:

I reverted the file back, and the stompers still wont talk with the uav terminal.

They won't work with Exile. You'd need to mod it somehow.

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.