Sign in to follow this  
Followers 0
[SF] Lord1385

Error in file for Vehicle

1 post in this topic

Posted (edited)

 

Hello community ,

I have made in my log an error because the cars and I do not like I have to get out to the file nix it comes to following :

Spoiler

19:09:09 Warning: Convex component representing Skids not found
19:09:09 Array mat in bin\config.bin/CfgVehicles/UH1HL_base/Damage/ not multiply of 3
19:09:09 Exile_Chopper_Huey_Green: Glass7_destruct - unknown animation source HitGlass7
19:09:09 Error: bin\config.bin/CfgVehicles/UH1H_Clo/Turrets/MainTurret/: Turret body NewTurret not found while initializing the model exile_psycho_uh1h\uh1h_closed.p3d
19:09:09 Error: bin\config.bin/CfgVehicles/UH1H_Clo/Turrets/MainTurret/: Turret gun mainGun not found while initializing the model exile_psycho_uh1h\uh1h_closed.p3d
19:09:09 "ExileServer - Done loading vehicles!"
19:09:09 "ExileServer - Loading containers from database..."
19:09:09 "ExileServer - Done loading containers!"
19:09:09 "ExileServer - Creating spawn zone vehicles..."
19:09:09 Error in expression <n = _x select 0;
_vehicleClassName = _x select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error position: <select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error Zero divisor
19:09:09 File exile_server\code\ExileServer_world_spawnSpawnZoneVehicles.sqf, line 23
19:09:09 Error in expression <n = _x select 0;
_vehicleClassName = _x select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error position: <select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error Zero divisor
19:09:09 File exile_server\code\ExileServer_world_spawnSpawnZoneVehicles.sqf, line 23
19:09:09 Error in expression <n = _x select 0;
_vehicleClassName = _x select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error position: <select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error Zero divisor
19:09:09 File exile_server\code\ExileServer_world_spawnSpawnZoneVehicles.sqf, line 23
19:09:09 Error in expression <n = _x select 0;
_vehicleClassName = _x select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error position: <select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error Zero divisor
19:09:09 File exile_server\code\ExileServer_world_spawnSpawnZoneVehicles.sqf, line 23
19:09:09 Error in expression <n = _x select 0;
_vehicleClassName = _x select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error position: <select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error Zero divisor
19:09:09 File exile_server\code\ExileServer_world_spawnSpawnZoneVehicles.sqf, line 23
19:09:09 Error in expression <n = _x select 0;
_vehicleClassName = _x select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error position: <select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error Zero divisor
19:09:09 File exile_server\code\ExileServer_world_spawnSpawnZoneVehicles.sqf, line 23
19:09:09 Error in expression <n = _x select 0;
_vehicleClassName = _x select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error position: <select 1;
for "_i" from 1 to _numberOfVe>
19:09:09   Error Zero divisor
19:09:09 File exile_server\code\ExileServer_world_spawnSpawnZoneVehicles.sqf, line 23
19:09:09 "ExileServer - Spawning Dynamic Vehicles. GridSize: 2000 Vehs/Grid : 7"
19:09:09 TowingTractor: Invalid parent bone 'wheel_1_2' for 'wheel_1_2_hide'
19:09:09 TowingTractor: Invalid parent bone 'wheel_2_2' for 'wheel_2_2_hide'
19:09:09 Error in expression <forceSize interpolate [150,150.1,-1,1]>
19:09:09   Error position: <forceSize interpolate [150,150.1,-1,1]>
19:09:09   Error Undefined variable in expression: forcesize
19:09:09 Exile_Car_Octavius_White: IndicatorOil - unknown animation source oilTemp
19:09:09 Exile_Car_Octavius_White: fuel - unknown animation source fuel_1
19:09:09 Exile_Car_Octavius_White: gearbox - unknown animation source gearbox
19:09:09 Exile_Car_Octavius_White: Trunk2 - unknown animation source trunk
19:09:09 Exile_Car_UAZ_Green: wiper_1_loop - unknown animation source wipers
19:09:09 Exile_Car_UAZ_Green: wipers - unknown animation source wiper

Play I do on the Map Taviana which is the file .
Spoiler

/**
 * ExileServer_world_spawnSpawnZoneVehicles
 *
 * 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["_spawnRadius","_vehiclesToSpawn","_markerName","_markerCenterPosition","_numberOfVehiclesToSpawn","_vehicleClassName","_i","_vehiclePosition","_vehicleDirection"];
"Creating spawn zone vehicles..." call ExileServer_util_log;
_spawnRadius = getNumber(configFile >> "CfgSettings" >> "BambiSettings" >> "spawnZoneRadius");
_vehiclesToSpawn = getArray(configFile >> "CfgSettings" >> "BambiSettings" >> "spawnZoneVehicles");
{
    _markerName = _x;
    if (getMarkerType _markerName == "ExileSpawnZone") then
    {
        _markerCenterPosition = getMarkerPos _markerName;
        {
            _numberOfVehiclesToSpawn = _x select 0;
            _vehicleClassName = _x select 1;
            for "_i" from 1 to _numberOfVehiclesToSpawn do
            {
                _vehiclePosition = [_markerCenterPosition, _spawnRadius] call ExileClient_util_world_findRoadPosition;
                if(_vehiclePosition isEqualTo [])exitWith{};
                _vehicleDirection = (random 360);
                [_vehicleClassName, _vehiclePosition, _vehicleDirection, true] call ExileServer_object_vehicle_createNonPersistentVehicle;
            };
        }
        forEach _vehiclesToSpawn;
    };
}
forEach allMapMarkers;
true


 
and here are my ExileServer_world_spawnVehicles
Spoiler

/**
 * ExileServer_world_spawnVehicles
 *
 * 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["_mapsizeX","_mapsizeY","_gridSize","_gridVehicles","_gridSizeOffset","_vehicleCount","_debugMarkers","_vehicleClassNames","_maximumDamage","_damageChance","_xSize","_workingXSize","_ySize","_workingYSize","_position","_spawned","_spawnedPositions","_positionReal","_spawnControl","_vehicleClassName","_vehicle","_hitpointsData","_hitpoints","_debugMarker"];
_mapsizeX = worldSize; 
_mapsizeY = worldSize; 
_gridSize = getNumber(configFile >> "CfgSettings" >> "VehicleSpawn" >> "vehiclesGridSize");
_gridVehicles = getNumber(configFile >> "CfgSettings" >> "VehicleSpawn" >> "vehiclesGridAmount");
format ["Spawning Dynamic Vehicles. GridSize: %1 Vehs/Grid : %2",_gridSize,_gridVehicles] call ExileServer_util_log;
_gridSizeOffset = _gridSize % 2;
_vehicleCount = 0;
_debugMarkers = ((getNumber(configFile >> "CfgSettings" >> "VehicleSpawn" >> "vehiclesDebugMarkers")) isEqualTo 1);
_vehicleClassNames = getArray (configFile >> "CfgSettings" >> "VehicleSpawn" >> "ground");
_maximumDamage = getNumber (configFile >> "CfgSettings" >> "VehicleSpawn" >> "maximumDamage");
_damageChance = getNumber (configFile >> "CfgSettings" >> "VehicleSpawn" >> "damageChance");
for "_xSize" from 0 to _mapsizeX step _gridSize do
{
    _workingXSize = _xSize + _gridSizeOffset;
    for "_ySize" from 0 to _mapsizeY step _gridSize do
    {
        _workingYSize = _ySize + _gridSizeOffset;
        _position = [_workingXSize,_workingYSize];
        _spawned = 0;
        _spawnedPositions = [];
        while {_spawned < _gridVehicles} do 
        {
            _positionReal = [[10000,12600], 25, 15000, 5, 0 , 4000 , 0 , _spawnedPositions] call BIS_fnc_findSafePos;
            if(count _positionReal isEqualTo 3)exitWith{};
            _spawnControl = [[(_positionReal select 0) - 50, (_positionReal select 1) + 50],[(_positionReal select 0) + 50,(_positionReal select 1) - 50]];
            _spawnedPositions pushBack _spawnControl;
            _positionReal pushBack 0;
            _vehicleClassName = selectRandom _vehicleClassNames;
            _vehicle = [_vehicleClassName, _positionReal, random 360, true] call ExileServer_object_vehicle_createNonPersistentVehicle;
            _hitpointsData = getAllHitPointsDamage _vehicle;
            if !(_hitpointsData isEqualTo []) then 
            {
                _hitpoints = _hitpointsData select 0;
                {
                    if ((random 100) < _damageChance) then
                    {
                        _vehicle setHitPointDamage [_x, random _maximumDamage];
                    };
                }
                forEach _hitpoints;
            };
            if (_debugMarkers) then
            {
                _debugMarker = createMarker ["vehicleMarker#"+str _vehicleCount, _positionReal];
                _debugMarker setMarkerColor "ColorOrange";
                _debugMarker setMarkerType "mil_dot_noShadow";
            };
            _spawned = _spawned + 1;
            _vehicleCount = _vehicleCount + 1;
        };
    };
};
format ["Dynamic vehicles spawned. Count : %1",_vehicleCount] call ExileServer_util_log;
true


 

Thank you in advance for your help and sorry for my bad English 
Edited by [SF] Lord1385

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.