bFe Posted October 9, 2013 Report Share Posted October 9, 2013 So, does anyone of you have this on your server?https://github.com/andgregor/dayZ-AI-Bus-Route Link to comment Share on other sites More sharing options...
0 Sergey Posted October 9, 2013 Report Share Posted October 9, 2013 yes, and perfectly work. thanks to the axeman's Link to comment Share on other sites More sharing options...
0 anthony Posted October 9, 2013 Report Share Posted October 9, 2013 I last tried it a couple months ago and the bus would get caught on debris piles. Does this issue still occur? Link to comment Share on other sites More sharing options...
0 Sergey Posted October 9, 2013 Report Share Posted October 9, 2013 yes, the garbage stirs a peredbizheniya. but it all the same goes. truth slowly Link to comment Share on other sites More sharing options...
0 Lanmanfm Posted October 9, 2013 Report Share Posted October 9, 2013 no one could ever board it when I had it running... plus the driver was one mean SOB as he tried to run me over, turn around and tried again when he missed the first time. Link to comment Share on other sites More sharing options...
0 anthony Posted October 9, 2013 Report Share Posted October 9, 2013 Hahaha... never had him try to intentionally run someone over. But then again, he was normally stuck on a debris pile at full throttle. :D Link to comment Share on other sites More sharing options...
0 fr1nk Posted October 9, 2013 Report Share Posted October 9, 2013 It works fine, but I also had problems getting into the bus. I think it started happening after I installed AI...probably something to do with factions? Link to comment Share on other sites More sharing options...
0 Torndeco Posted October 9, 2013 Report Share Posted October 9, 2013 Don't forget to also change the code that checks for surivors in player_axeBus.sqf i.e //Nearby Survivors _survivors = (position _x) nearEntities [AllPlayers,250]; So it detects the extra survivor skins helps to stop bus driver running players over :) As for debries i just gonna add code to remove debries with 10 metres of bus Link to comment Share on other sites More sharing options...
0 bFe Posted October 10, 2013 Author Report Share Posted October 10, 2013 Thanks for the answers guys, much appreciated! Link to comment Share on other sites More sharing options...
0 axeman Posted October 10, 2013 Report Share Posted October 10, 2013 That bit doesn't stop the bus from running players over, it is designed to beep the horn and flash the lights at nearby survivors. If the AI are negotiating anything else they will mow you down if you get in the way, It appears they can only avoid one thing at a time. If it is a clear road it is relatively safe to stand infront of the bus to get it to stop, an interesting game of chicken. If sides are changed it is possible that a driver may try and kill you, have not tested this and am not entirely sure that they will use the bus as a weapon. There is an update for this that I am currently testing, that removes zombies, stops temporarily for nearby survivors, experimenting with AI load offset for busy servers, more messaging, working on removal / avoidance of debris. The current debris is supposed to be server-side so the driver should see it, he seems to just think he can drive over it anyway. Have had issues with boarding only when I added a custom option to the player menu which kept overriding the 'get on bus as passenger' option.. This code is also being expanded on for other uses... Link to comment Share on other sites More sharing options...
0 Ephox Posted October 10, 2013 Report Share Posted October 10, 2013 That bit doesn't stop the bus from running players over, it is designed to beep the horn and flash the lights at nearby survivors. If the AI are negotiating anything else they will mow you down if you get in the way, It appears they can only avoid one thing at a time. If it is a clear road it is relatively safe to stand infront of the bus to get it to stop, an interesting game of chicken. If sides are changed it is possible that a driver may try and kill you, have not tested this and am not entirely sure that they will use the bus as a weapon. There is an update for this that I am currently testing, that removes zombies, stops temporarily for nearby survivors, experimenting with AI load offset for busy servers, more messaging, working on removal / avoidance of debris. The current debris is supposed to be server-side so the driver should see it, he seems to just think he can drive over it anyway. Have had issues with boarding only when I added a custom option to the player menu which kept overriding the 'get on bus as passenger' option.. This code is also being expanded on for other uses... Sounds cool, would there be a problem with Sarge AI? I want it on my PvE server, but there is AI's so there is a threat so it is not just fun. Link to comment Share on other sites More sharing options...
0 anthony Posted October 10, 2013 Report Share Posted October 10, 2013 There is an update for this that I am currently testing, that removes zombies, stops temporarily for nearby survivors, experimenting with AI load offset for busy servers, more messaging, working on removal / avoidance of debris. The current debris is supposed to be server-side so the driver should see it, he seems to just think he can drive over it anyway. I can't remember if it was the bus script you had developed or another one, but it seemed like the bus was most likely to get stuck on debris when a player was within a several hundred meters of the debris pile when the bus came to it. I remember one day I was at camp for a while doing chores and the bus drove past several times in the span of a couple hours. Then once I left camp to scavenge and whatnot I saw him get stuck on some debris pile for about 30 minutes before I left the area. Eventually I saw him again and he would do his lap without getting stuck, until I was around a debris pile that he decided to just try to plow through instead of go around. I eventually went back to camp and monitored him via the Admin Tools map and he never got stuck so long as a player was not around a debris pile. Link to comment Share on other sites More sharing options...
0 Bags2247 Posted October 10, 2013 Report Share Posted October 10, 2013 Just wondering if you could convert the bus into something more military themed, say a MTVR_DES_EP1.. Just it being that the military have decided to try to maintain some semblence of the old ways and have provided this service for what survivors are left.. Just an idea, and have the driver and friend in a uniform as well Link to comment Share on other sites More sharing options...
0 anthony Posted October 10, 2013 Report Share Posted October 10, 2013 You can just change Ikarus_TK_CIV_EP1 to whatever you want. I was using a medical Vodnik. Link to comment Share on other sites More sharing options...
0 Bags2247 Posted October 11, 2013 Report Share Posted October 11, 2013 ok so have the bus doing the route, but need to remove debris... otherwise it goes funky for a bit.. Link to comment Share on other sites More sharing options...
0 Bags2247 Posted October 11, 2013 Report Share Posted October 11, 2013 did you ever figure a way to remove the debris off the road so this works ok.. or a fix for it...preferred Link to comment Share on other sites More sharing options...
0 fr1nk Posted October 21, 2013 Report Share Posted October 21, 2013 I'm currently running DZAI + Mission System. Can't get into the bus, there's no menu option. So, took a look at all the faction settings I could find between the three scripts and here's what I found: DZAI createcenter east; //Create centers for all AI sides createcenter resistance; east setFriend [resistance, 1]; //Resistance (AI) is hostile to West (Player), but friendly to East (AI). east setFriend [west, 0]; resistance setFriend [west, 0]; //East (AI) is hostile to West (Player), but friendly to Resistance (AI). resistance setFriend [east, 1]; west setFriend [resistance, 0]; //West (Player side) is hostile to all. west setFriend [east, 0]; MISSION SYSTEM _aiGroup = createGroup resistance; BUS ROUTE createCenter RESISTANCE; RESISTANCE setFriend [WEST,1];//Like Survivors.. RESISTANCE setFriend [EAST,0];//Don't like banditos ! WEST setFriend [RESISTANCE,1]; EAST setFriend [RESISTANCE,0]; Seems like everything is set the way it should be, but I'm really just guessing at this point. Couldn't find much for the Mission System script. Can anyone shed some insight on why the bus might be flagged as non-friendly? Thanks Link to comment Share on other sites More sharing options...
0 axeman Posted October 21, 2013 Report Share Posted October 21, 2013 DZAI is overwriting the setFriend settings. If you aren't friendly with the bus crew they won't let you on.. Am currently working on another AI project, this will also require debris awareness so will update Bus once I work it out. The AI should see the debris as they are both server spawned, gonna have to add some aware code in. Have code that clears zeds out of the way, the setDamage may work better with a value of 0.9 and the bus finishing them off (not tested) as I have noticed zeds just vanishing sometimes.. //Clear Zeds (WORKING - But zeds vanish, not ideal maybe pass to player) _nrZeds = (position _axeBus) nearEntities ["zZombie_Base",25]; if(count _nrZeds >0)then{ { _x setDamage 1; diag_log format ["AXLOG:BUS: Killing Zed:%1",_x]; }forEach _nrZeds; }; This goes in the while {alive _axeBus} do {.....}; loop at the bottom of bus_init.sqf. Also working on generic junk removal (in same place), can populate the array _arrJunk with more objects as required: _arrJunk = ["Rubbish1","Rubbish2","Rubbish3","Rubbish4","Rubbish5","Land_Misc_Rubble_EP1","UralWreck","SKODAWreck","HMMWVWreck","datsun02Wreck","hiluxWreck","UAZWreck","datsun01Wreck","Land_Misc_Garb_Heap_EP1"]; //Remove Junk _junk = (position _axeBus) nearEntities [_arrJunk,10]; if(count _junk > 0)then{ diag_log format["AXLOG:BUS:Deleting Junk:%1",_junk]; {deleteVehicle _x;}forEach _junk; }; Both of these have been tested out and working.. KamikazeXeX 1 Link to comment Share on other sites More sharing options...
0 fr1nk Posted October 21, 2013 Report Share Posted October 21, 2013 Thanks Axeman, looking forward to the new release :) Link to comment Share on other sites More sharing options...
0 Crystal Posted October 23, 2013 Report Share Posted October 23, 2013 How exactly does this script work? Does one bus spawn, get to the end of the route and the de-spawn? Or does it spawn one bus at server start which then goes back and forth? I seem to have gotten it working to some extent and changed the vehicle to a MTVR which is much better - but when it stops for me to get on, the minute it pulls away, it insta-kills me. Something I'm doing wrong? Link to comment Share on other sites More sharing options...
0 axeman Posted October 23, 2013 Report Share Posted October 23, 2013 The bus runs in a loop on the coast Road. starting at berezino / docks area. You're probably getting killed by the 'killing a hacker' code. Link to comment Share on other sites More sharing options...
0 Crystal Posted October 23, 2013 Report Share Posted October 23, 2013 Ah - is there a quick fix for that? Incidentally, how do I confirm that is the code that's kicking me? Link to comment Share on other sites More sharing options...
0 axeman Posted October 23, 2013 Report Share Posted October 23, 2013 It will show in your .rpt log file as Cleaning Up A Hacker, or something very similar.. Crystal 1 Link to comment Share on other sites More sharing options...
0 andygully Posted October 25, 2013 Report Share Posted October 25, 2013 "CLEANUP: KILLING A HACKER andy B 1-1-C:1 (andy) REMOTE IN Ikarus_TK_CIV_EP1" keeps killing me and giving this Link to comment Share on other sites More sharing options...
0 Twistit Posted October 25, 2013 Report Share Posted October 25, 2013 (edited) andygully, i had the same problem.. and finally managed to solve it =) In \system\server_cleanup.fsm find class vehicle_cleanup { name = "vehicle_cleanup"; init = /*%FSM<STATEINIT""">*/"_safety = PVDZE_serverObjectMonitor;" \n "" \n "//Check for hackers" \n " {" \n " if(vehicle _x != _x && !(vehicle _x in _safety) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n " (vehicle _x) setDamage 1;" \n " _x setDamage 1;" \n " };" \n " } forEach allUnits;" \n "" \n and replace " if(vehicle _x != _x && !(vehicle _x in _safety) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n with " if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"" && ((vehicle _x getVariable [""Sarge"",0] != 1) && (vehicle _x getVariable [""DZAI"",0] != 1) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n Also for anyone who wants to run the bus together with DZAI, following fixed the not being able to get on the bus problem: In init_bus.sqf change _axeBusGroup = createGroup RESISTANCE; to _axeBusGroup = createGroup WEST; and comment out //Set Sides // _firstRun = _this select 0; // if(_firstRun)then{ // createCenter RESISTANCE; // RESISTANCE setFriend [WEST,1];//Like Survivors.. // RESISTANCE setFriend [EAST,0];//Don't like banditos ! // WEST setFriend [RESISTANCE,1]; // EAST setFriend [RESISTANCE,0]; // }; Now you can get on the bus and it will less likely try to run you over ^^ Edited October 25, 2013 by Twistit Link to comment Share on other sites More sharing options...
0 axeman Posted October 25, 2013 Report Share Posted October 25, 2013 I will test this but a simpler option may be to do this: [DZE_safeVehicle, _axeBus] call BIS_fnc_arrayPush; in the bus init code.. Link to comment Share on other sites More sharing options...
Question
bFe
So, does anyone of you have this on your server?
https://github.com/andgregor/dayZ-AI-Bus-Route
Link to comment
Share on other sites
Top Posters For This Question
12
4
3
3
Popular Days
Oct 9
8
Oct 10
7
Oct 25
6
Oct 26
5
Top Posters For This Question
axeman 12 posts
anthony 4 posts
fr1nk 3 posts
Bags2247 3 posts
Popular Days
Oct 9 2013
8 posts
Oct 10 2013
7 posts
Oct 25 2013
6 posts
Oct 26 2013
5 posts
Popular Posts
axeman
DZAI is overwriting the setFriend settings. If you aren't friendly with the bus crew they won't let you on.. Am currently working on another AI project, this will also require debris awareness so
axeman
It will show in your .rpt log file as Cleaning Up A Hacker, or something very similar..
kheldar125
Im trying to run this script on epoch, the bus is exploding *presumably on spawn* in Berenzino. The driver and drivers mate are being ejected from the burning bus and starting to run the route on foot
53 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now