dayZ (arma) AI Controlled Bus Route.

Ok tried the first method, (It was at line 10), that failed to work, code is to big to post, Is there another way to add a file, I have looked but cant seem to work it out, not sure if they have disabled it or just moved the option somewhere else.
 
Put the file over on a hoster like speedshare or so...

send from my Galaxy S2 using tapatalk
 
Another one helped me ,i helped u a bit .

So that's why i love arma 2 ,dayz and this awesome community .

send from my Galaxy S2 using tapatalk
 
i get kicked the hole time

here my script.txt

i only have a old_script.txt because i use Dayz Epoch

i tried: with 1 with 5 nothing works

all buses are destroyed

maybe this is the error:

22:09:41 "DEBUG: unable to find sutable vehicle to spawn"

Which Bus Script Are Attempting To Use?
axeman's version or NeverUsedID's version?

You also have a lot of errors thrown from your dayz_server.pbo which may not be helping the situation.
The errors are coming from the following path: addons\dayz_server\compile\server_updateObject.sqf,
I am only learning code myself but it looks like you need to replace "<" and ">" with "[" and "]" , the square bracket may even be wrong, I am not 100% sure,.
You have multiple lines with the same error, 24, 59, 72 and other errors for 96 and 16.

As for your buses being detroyed this is what I found,
"CLEANUP: KILLING A HACKER Ewan Jones R 1-1-C:1 REMOTE IN Ikarus_TK_CIV_EP1"

In you scripts.txt try changing line 21, "createVehicle" from 5 -1 and if it still kicks you add this into it
!"addons\units\add_unit.sqf" !"addons\busroute\bus_driver.sqf"

Again I am only learning but this is the same line that was kicking me after the latest BattlEye update.
Thankyou NeverUsedId For helping me fix that issue.
 
axeman's version

As for your buses being detroyed this is what I found,
"CLEANUP: KILLING A HACKER Ewan Jones R 1-1-C:1 REMOTE IN Ikarus_TK_CIV_EP1"

In you scripts.txt try changing line 21, "createVehicle" from 5 -1 and if it still kicks you add this into it
!"addons\units\add_unit.sqf" !"addons\busroute\bus_driver.sqf"

-1 or 1 ???


thank u any way i test it when i come home

server_updateObject.sqf :

Code:
/*
[_object,_type] spawn server_updateObject;
*/
private ["_object","_type","_objectID","_uid","_lastUpdate","_needUpdate","_object_position","_object_inventory","_object_damage","_isNotOk"];
 
_object =    _this select 0;
_type =    _this select 1;
_parachuteWest = typeOf _object == "ParachuteWest";
_isNotOk = false;
 
_objectID =    _object getVariable ["ObjectID","0"];
_uid =        _object getVariable ["ObjectUID","0"];
 
if ((typeName _objectID != "string") || (typeName _uid != "string")) then
{
    diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
    //force fail
    _objectID = "0";
    _uid = "0";
};
 
if (!_parachuteWest) then {
    if (_objectID == "0" && _uid == "0") then
    {
        _object_position = getPosATL _object;
            diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",
            typeOf _object,
            _object_position select 0,
            _object_position select 1,
            _object_position select 2]);
            _isNotOk = true;
    };
};
 
if (_isNotOk) exitWith { deleteVehicle _object; };
 
_lastUpdate = _object getVariable ["lastUpdate",time];
_needUpdate = _object in needUpdate_objects;
 
// TODO ----------------------
_object_position = {
    private["_position","_worldspace","_fuel","_key"];
    _position = getPosATL _object;
    _worldspace = [
        round(direction _object),
        _position
    ];
    _fuel = 0;
    if (_object isKindOf "AllVehicles") then {
        _fuel = fuel _object;
    };
    _key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
    diag_log ("HIVE: WRITE: "+ str(_key));
 
    _key call server_hiveWrite;
};
 
_object_inventory = {
    private["_inventory","_previous","_key"];
    _inventory = [
        getWeaponCargo _object,
        getMagazineCargo _object,
        getBackpackCargo _object
    ];
    _previous = str(_object getVariable["lastInventory",[]]);
    if (str(_inventory) != _previous) then {
        _object setVariable["lastInventory",_inventory];
        if (_objectID == "0") then {
            _key = format["CHILD:309:%1:%2:",_uid,_inventory];
        } else {
            _key = format["CHILD:303:%1:%2:",_objectID,_inventory];
        };
        diag_log ("HIVE: WRITE: "+ str(_key));
        _key call server_hiveWrite;
    };
};
 
_object_damage = {
    private["_hitpoints","_array","_hit","_selection","_key","_damage"];
    _hitpoints = _object call vehicle_getHitpoints;
    _damage = damage _object;
    _array = [];
    {
        _hit = [_object,_x] call object_getHit;
        _selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
        if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
        _object setHit ["_selection", _hit]
    } forEach _hitpoints;
 
    _key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
    diag_log ("HIVE: WRITE: "+ str(_key));
    _key call server_hiveWrite;
    _object setVariable ["needUpdate",false,true];
};
 
_object_killed = {
    private["_hitpoints","_array","_hit","_selection","_key","_damage"];
    _hitpoints = _object call vehicle_getHitpoints;
    _damage = damage _object;
    _array = [];
    {
        _hit = [_object,_x] call object_getHit;
        _selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
        if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
        _hit = 1;
        _object setHit ["_selection", _hit]
    } forEach _hitpoints;
    _damage = 1;
 
    if (_objectID == "0") then {
        _key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage];
    } else {
        _key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
    };
    diag_log ("HIVE: WRITE: "+ str(_key));
    _key call server_hiveWrite;
    _object setVariable ["needUpdate",false,true];
};
 
_object_repair = {
    private["_hitpoints","_array","_hit","_selection","_key","_damage"];
    _hitpoints = _object call vehicle_getHitpoints;
    _damage = damage _object;
    _array = [];
    {
        _hit = [_object,_x] call object_getHit;
        _selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
        if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
        _object setHit ["_selection", _hit]
    } forEach _hitpoints;
 
    _key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
    diag_log ("HIVE: WRITE: "+ str(_key));
    _key call server_hiveWrite;
    _object setVariable ["needUpdate",false,true];
};
// TODO ----------------------
 
_object setVariable ["lastUpdate",time,true];
switch (_type) do {
    case "all": {
        call _object_position;
        call _object_inventory;
        call _object_damage;
    };
    case "position": {
        if (!(_object in needUpdate_objects)) then {
            diag_log format["DEBUG Position: Added to NeedUpdate=%1",_object];
            needUpdate_objects set [count needUpdate_objects, _object];
        };
    };
    case "gear": {
        call _object_inventory;
    };
    case "damage": {
        if ( (time - _lastUpdate) > 5) then {
            call _object_damage;
        } else {
            if (!(_object in needUpdate_objects)) then {
                diag_log format["DEBUG Damage: Added to NeedUpdate=%1",_object];
                needUpdate_objects set [count needUpdate_objects, _object];
            };
        };
    };
    case "killed": {
        call _object_killed;
    };
    case "repair": {
        call _object_damage;
    };
};

but there is no < or >
 
@El R3y

Sorry replace the 5 with a 1.

Looked through the code above and cannot reference it with the following errors:

Code:
22:22:33 Error in expression <"0";
};
if (!_parachuteWest) then {
if (_objectID == "0" && _uid == "0") then
{
>
22:22:33  Error position: <_objectID == "0" && _uid == "0") then
{
>
22:22:33  Error Undefined variable in expression: _objectid
22:22:33 File z\addons\dayz_server\compile\server_updateObject.sqf, line 24
22:22:33 "HIVE: WRITE: "CHILD:305:<null>:[0,[0,0,0]]:0:""
22:22:33 Error in expression <
};
_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
diag_log (>
22:22:33  Error position: <_objectID,_worldspace,_fuel];
diag_log (>
22:22:33  Error Undefined variable in expression: _objectid
22:22:33 File z\addons\dayz_server\compile\server_updateObject.sqf, line 59
22:22:33 Error in expression <Inventory",[]]);
if (str(_inventory) != _previous) then {
_object setVariable["l>
22:22:33  Error position: <_previous) then {
_object setVariable["l>
22:22:33  Error Undefined variable in expression: _previous
22:22:33 File z\addons\dayz_server\compile\server_updateObject.sqf, line 72
22:22:33 "HIVE: WRITE: "CHILD:306:<null>:[]:0:""
22:22:33 Error in expression <s;
 
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
diag_log ("HI>
22:22:33  Error position: <_objectID,_array,_damage];
diag_log ("HI>
22:22:33  Error Undefined variable in expression: _objectid
22:22:33 File z\addons\dayz_server\compile\server_updateObject.sqf, line 96
22:22:33 Error in expression <iable ["ObjectUID","0"];
 
if ((typeName _objectID != "string") || (typeName _uid>
22:22:33  Error position: <_objectID != "string") || (typeName _uid>
22:22:33  Error Undefined variable in expression: _objectid
22:22:33 File z\addons\dayz_server\compile\server_updateObject.sqf, line 16

Here are the relating sections of code mentioned in the errors:

Line 24:
Code:
if (!_parachuteWest) then {
    if (_objectID == "0" && _uid == "0") then
    {
        _object_position = getPosATL _object;
            diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",
            typeOf _object,
            _object_position select 0,
            _object_position select 1,
            _object_position select 2]);
            _isNotOk = true;
    };
};

Line 59:
Code:
    _key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
    diag_log ("HIVE: WRITE: "+ str(_key));
 
    _key call server_hiveWrite;
};
 
_object_inventory = {
    private["_inventory","_previous","_key"];
    _inventory = [
        getWeaponCargo _object,
        getMagazineCargo _object,
        getBackpackCargo _object
    ];

Line 72:
Code:
  _previous = str(_object getVariable["lastInventory",[]]);
    if (str(_inventory) != _previous) then {
        _object setVariable["lastInventory",_inventory];
        if (_objectID == "0") then {
            _key = format["CHILD:309:%1:%2:",_uid,_inventory];
        } else {
            _key = format["CHILD:303:%1:%2:",_objectID,_inventory];
        };
        diag_log ("HIVE: WRITE: "+ str(_key));
        _key call server_hiveWrite;
    };
};

Line 96:
Code:
    _key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
    diag_log ("HIVE: WRITE: "+ str(_key));
    _key call server_hiveWrite;
    _object setVariable ["needUpdate",false,true];
};

and Line 16:
Code:
if ((typeName _objectID != "string") || (typeName _uid != "string")) then
{
    diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
    //force fail
    _objectID = "0";

I am still trying to figure it out, lol, but not much starting me in the face, Hopefully someone else may be of assistance.

Ok line 16 is staring at me, or at least i think so,
the "||" I think are the error here.:confused:
 
hmh

BattlEye:

scripts.txt / Line #10:
5 addWaypoint !"\"addWaypoint\"," !"units\add_unit.sqf" !"busroute\bus_driver.sqf"

but there is no such file in your zip as add_units.sqf

can it be that u mean sendSupport.sqf ???
 
ok well that was already in your scripts file, I just copied it with the assumption that was the file paths in your busRoute addon.

So if that is incorrect, have you tried a couple of different methods as that is not a normal battleye addidtion?
 
I have obtained the most recent Epoch BattlEye scripts.txt. and I have already set the appropriate lines for axeman's busRoute mod , If you have any other mods you will need to make the required changes to prevent kicks relating to them.
Remove and Backup your current scripts.txt and then place the new one below in your battleye file where your old scripts.txt was and try it out. NO guarantees!

The Bus Should Spawn No Worries, I Have Checked The Vehicle Table And It Appears To Be In There.

scripts.txt: http://www.speedshare.org/download.php?id=CC862A9E1
 
I have obtained the most recent Epoch BattlEye scripts.txt. and I have already set the appropriate lines for axeman's busRoute mod , If you have any other mods you will need to make the required changes to prevent kicks relating to them.
Remove and Backup your current scripts.txt and then place the new one below in your battleye file where your old scripts.txt was and try it out. NO guarantees!

The Bus Should Spawn No Worries, I Have Checked The Vehicle Table And It Appears To Be In There.

scripts.txt: http://www.speedshare.org/download.php?id=CC862A9E1


thx u for that but i think we arte talking about differnt things.

1.) dayz epoch has no script.txt only old_script.txt
2.) i dont have the file add_unit.sqf i think thats the main problem
3.) here is my old_script.txt http://www.speedshare.org/download.php?id=726EA3061
 
thx u for that but i think we arte talking about differnt things.

1.) dayz epoch has no script.txt only old_script.txt
2.) i dont have the file add_unit.sqf i think thats the main problem
3.) here is my old_script.txt http://www.speedshare.org/download.php?id=726EA3061


1.) I got the script.txt off one of my servers running EPOCH and it is named "scripts.txt" as is on every other map.

2.) the add_unit.sqf line come out of your old_script.txt, it is on line 9. Open it with Notepad++ and take a look.

3.) You said that you can change and edit the script but still get kicked.

Is it possible by some chance that you may have found a back-up scripts.txt that has been renamed?
Mabybe have a look in your BattlEye folder for any other scripts.txt file, otherwise, I dunno.
 
1.) I got the script.txt off one of my servers running EPOCH and it is named "scripts.txt" as is on every other map.

2.) the add_unit.sqf line come out of your old_script.txt, it is on line 9. Open it with Notepad++ and take a look.

3.) You said that you can change and edit the script but still get kicked.

Is it possible by some chance that you may have found a back-up scripts.txt that has been renamed?
Mabybe have a look in your BattlEye folder for any other scripts.txt file, otherwise, I dunno.


first of all : thank u for your time ;)

1.) no kicks
2.) i dont looked the hole coast but i dont saw no bus (maybe I should take a closer look)

BUT

check out my hive log @ 20:59:29

http://www.speedshare.org/download.php?id=E78815A11

Code:
0:55:07 "BUSCREW: Creating Replacement BAF_Soldier_L_DDPM by <NULL-object> at [4094.55,2640.72,0]. Result:<NULL-object> | Loadout:any / Num:any | Group:<NULL-group>"

PS: and it dont stop it goes on and on and on
 
first of all : thank u for your time ;)

1.) no kicks
2.) i dont looked the hole coast but i dont saw no bus (maybe I should take a closer look)

BUT

check out my hive log @ 20:59:29

http://www.speedshare.org/download.php?id=E78815A11

Code:
0:55:07 "BUSCREW: Creating Replacement BAF_Soldier_L_DDPM by <NULL-object> at [4094.55,2640.72,0]. Result:<NULL-object> | Loadout:any / Num:any | Group:<NULL-group>"

PS: and it dont stop it goes on and on and on

Ok, that is really spamming your RPT file, wow.
Umm as i am unsure on this one I will palm it off to axeman or NeverUsedID if possible, lol.
Cant say I have ever had this one myself so sorry but it's above my head. o_O
 
Back
Top