sakura_chan 9 Posted August 18, 2009 Ok folks, this is something I started today, and I'm going to release it as an open test to the community because of the great success I've had with it. Vehicles should now have much improved path finding skills, especially in a situation where they have to turn around in a narrow street or within a forest road. Basically I tweaked the AI driving variables to the point that vehicles are able to turn more accurately, with fewer back and forth motions. The bigger trucks had a ridiculous and unrealistic turn radius making them hit everything. This has been corrected. I was able to get AI to drive for what could be called a boring amount of time, without crashing or getting stuck on fences and streetlamps. Officially this has only been tested on the HMMVV and the MTVR, but the principles are the same for most vehicles. There MAY be some bad effects on the civilian cars, as I have not tweaked their variables completely. If you would like to help, if you find that the AI driving breaks when using this mod, shoot me a copy of the mission so I can further study the situation. Here is the link http://www.mediafire.com/?sharekey=a54b8a5cbcab5132e7c82ed4b8f0c380e04e75f6e8ebb871 (sakudriver.zip) mirrors are ok, I plan on releasing a more complete version later on. Share this post Link to post Share on other sites
SnR 1 Posted August 18, 2009 BIS take note, i hope all goes well Share this post Link to post Share on other sites
alx 20 Posted August 18, 2009 Thankyou for doing the work BIS should have done before release. Share this post Link to post Share on other sites
nikita320106 0 Posted August 18, 2009 thanx for just very necessary fix) Share this post Link to post Share on other sites
Guest Posted August 18, 2009 Release frontpaged at the Armaholic homepage. Driving AI fix Share this post Link to post Share on other sites
Alex72 1 Posted August 18, 2009 Another great idea. :) Will check when i get back from work. Thanks! Alex Share this post Link to post Share on other sites
manzilla 1 Posted August 18, 2009 Another fine example of a community member taking the initiative to provide a much needed fix. Whiners take note, slowly the game gets even better. ;) Thanks Sakura_Chan! Share this post Link to post Share on other sites
abs 2 Posted August 18, 2009 I love you, Sakura Chan. So much. So very much. :) Abs Share this post Link to post Share on other sites
mcpxxl 2 Posted August 18, 2009 THX a lot Hope it will also help on dedicated servers :-) Share this post Link to post Share on other sites
Jingle 0 Posted August 18, 2009 Very nice work matey - I had given up on columns of hummers getting throught cherny in one piece. :) Share this post Link to post Share on other sites
Big Dawg KS 6 Posted August 18, 2009 So wait. Did you just modify AI turn radius or the actual turn radius (thus affecting players too)? Share this post Link to post Share on other sites
.kju 3244 Posted August 18, 2009 No these AI only values. steerAheadSimul steerAheadPlan predictTurnSimul predictTurnPlan brakeDistance Share this post Link to post Share on other sites
Big Dawg KS 6 Posted August 18, 2009 Fair enough. So I guess this means that poor AI driving was not really an engine problem... just bad data. Share this post Link to post Share on other sites
flyfinn 0 Posted August 18, 2009 Hi.. Nice work Kju.. Waiting for the complete version.. and it should be added to next patch.. Share this post Link to post Share on other sites
Alex72 1 Posted August 18, 2009 (edited) Tested with this activated and checked a humvee driving. So far it is worse for me with the tweak. Where roads has 90 degrees corners the car always drive straight forward full speed and into the buildings. So it doesnt slow down at all and hit the house with full force. However im certain you guys will get this in shape, and im very happy you found out it can be fixed. :) EDIT: If someone else can test it would be nice. In a village where you have a 90 degree turn add waypoints for the car to drive through it and see if you get the same result as me. Alex Edited August 18, 2009 by Alex72 Share this post Link to post Share on other sites
.kju 3244 Posted August 18, 2009 @ Flyfinn I had no involvement in this. All Sakura Chan's work. :) Share this post Link to post Share on other sites
mcpxxl 2 Posted August 19, 2009 Hi mate For me it was a big impact for better "ai driving" Also we think that it runs on dedicated a lot better ! THX a lot for this Share this post Link to post Share on other sites
4 IN 1 0 Posted August 19, 2009 (edited) once again sakura chan comes to save the day Edited August 19, 2009 by 4 IN 1 Share this post Link to post Share on other sites
sakura_chan 9 Posted August 20, 2009 (edited) So far it is worse for me with the tweak. Where roads has 90 degrees corners the car always drive straight forward full speed and into the buildings. So it doesnt slow down at all and hit the house with full force.Alex I can't seem to replicate this. In my version the hummer slows down about 10m away from the turn and slowly drives through it. If you could supply a mission it would be appreciated! edit***nvm Ok, here is what the problem was. During my testing I was giving the unit a far away waypoint, so the vehicle made all the decisions about turning on its own. If, however, you manually place a waypoint at each turn, the vehicle will drive balls out though it. This is because I added "brakedistance" to my testing, and I couldn't see any effect. default is 10, I set it to 3, so the AI basically wasn't hitting the brakes and would miss the waypoint. I set it to 13 now and the problem is gone! Edited August 20, 2009 by Sakura_Chan Share this post Link to post Share on other sites
manzilla 1 Posted August 20, 2009 I can't seem to replicate this. In my version the hummer slows down about 10m away from the turn and slowly drives through it. If you could supply a mission it would be appreciated!edit***nvm Ok, here is what the problem was. During my testing I was giving the unit a far away waypoint, so the vehicle made all the decisions about turning on its own. If, however, you manually place a waypoint at each turn, the vehicle will drive balls out though it. This is because I added "brakedistance" to my testing, and I couldn't see any effect. default is 10, I set it to 3, so the AI basically wasn't hitting the brakes and would miss the waypoint. I set it to 13 now and the problem is gone! I can't replicate this either. I've tried and tried to get vehicles stuck, a lot is done under MrCent's HC expansion, but I they drive practically flawlessly. You've done one helluva a job here Sakura_Chan. F$in' brilliant! Thank you. Share this post Link to post Share on other sites
cat_black 10 Posted August 20, 2009 Hi, I've used your mod. But I don't see any (small?) improvement. Column HMV(240)-HMV(240)-HMV(240)-AVENGER-MTVR-MTVR-MTVR-HMV(240)-HMV(240)-HMV(240) Given simple move(Engage,Column(any type),Safe,Full) order on a stright road Left map end to Chernogorsk. Goes well maybe strighter then they did, but still splits in smaller groups, have problems with keeping together, stops randomly, not to mention that MTVR sometimes break from the group and go to the forest :>. I don't know what the diference is from OFP but the driveing AI here is awful. And sadly your tweak, doesn't do any good. (or I'm just doing sth wrong). On the other side one mtvr given long 12km route thrugth the forest, goes great. Share this post Link to post Share on other sites
.kju 3244 Posted August 20, 2009 well formations is something different, no? Share this post Link to post Share on other sites
cat_black 10 Posted August 20, 2009 well, not from my experience (i used a lot editor in OFP now switched to ARMA2 skipped ARMA). Group of units given an on road (close road?) waypoint with formation column, staggered column , column (compact) should go on road smoothly. Suprisingly it works more or less correctly for infantry if the setup is right, they would walk by the road side. anyway i just tested the move waypoint without any parameters :? still the group goes like crap. Share this post Link to post Share on other sites
NeMeSiS 11 Posted August 20, 2009 well, not from my experience (i used a lot editor in OFP now switched to ARMA2 skipped ARMA).Group of units given an on road (close road?) waypoint with formation column, staggered column , column (compact) should go on road smoothly. Suprisingly it works more or less correctly for infantry if the setup is right, they would walk by the road side. anyway i just tested the move waypoint without any parameters :? still the group goes like crap. Safe mode will make them try to follow roads properly. Share this post Link to post Share on other sites
sakura_chan 9 Posted August 20, 2009 het cat black could you post up a mission please? Share this post Link to post Share on other sites