IPB

Welcome Guest ( Log In | Register )

soldiers twist around himself, soldier AI spinning fix
EduardoST
post Feb 27 2016, 06:50 PM
Post #1


Major
****

Group: Soldiers
Posts: 135
Joined: 15-March 10
From: Chile
Member No.: 7,347



I test a bazooka or RPG, but the soldiers instead of shooting at vehicles or tanks, just go round...

Why is that? It can be fixed?
Go to the top of the page
 
+Quote Post
2 Pages V   1 2 >  
Start new topic
Replies (1 - 14)
Death_EnForcer
post Feb 27 2016, 10:18 PM
Post #2


Dictator
Group Icon

Group: BFSP Team
Posts: 2,605
Joined: 17-July 04
From: New Jersey, USA
Member No.: 294



Probably has a bad ai template. Check the ai settings for the weapons.
http://www.battlefieldsingleplayer.com/for...c=8308&st=0
Go to the top of the page
 
+Quote Post
MasterChiefRulZ
post Feb 27 2016, 11:25 PM
Post #3


You know the drill...
Group Icon

Group: Mr. Admin
Posts: 10,465
Joined: 31-December 03
From: Home
Member No.: 48



Massive spinning bot discussion here. Fix listed.


AIX forum bot spinner discussion


Was common with AIX custom AI. (preview of thread) I removed spinning bots in my personal copy of AIX by editing all the weapon AI settings so that AI don't have the same priority of attack on more than one target at the same time with the same weapon (in a kit).


--------------------
Go to the top of the page
 
+Quote Post
EduardoST
post Feb 28 2016, 07:39 AM
Post #4


Major
****

Group: Soldiers
Posts: 135
Joined: 15-March 10
From: Chile
Member No.: 7,347



Thanks to both of you! :-)
Go to the top of the page
 
+Quote Post
EduardoST
post Feb 28 2016, 01:35 PM
Post #5


Major
****

Group: Soldiers
Posts: 135
Joined: 15-March 10
From: Chile
Member No.: 7,347



I could share your fix, It does not give me results sad.gif all they soldiers revolve like crazy sad.gif mad.gif

I tried to make my own, but I think it was worse cryer.gif computer.gif bawling.gif bawling.gif bawling.gif
Go to the top of the page
 
+Quote Post
MasterChiefRulZ
post Feb 28 2016, 10:58 PM
Post #6


You know the drill...
Group Icon

Group: Mr. Admin
Posts: 10,465
Joined: 31-December 03
From: Home
Member No.: 48



QUOTE (EduardoST @ Feb 28 2016, 02:35 PM) *
I could share your fix, It does not give me results sad.gif all they soldiers revolve like crazy sad.gif mad.gif

I tried to make my own, but I think it was worse cryer.gif computer.gif bawling.gif bawling.gif bawling.gif

Works for me. I see zero spinners anymore. uhm.gif

Might want to re-read and recheck your AI settings in your weapons Ed. Remember that other thread where you stated the textures were in the right spot, and then you discovered they weren't?

That's the beauty of checking ourselves. Never assume something is correct, or get in a hurry and just rush over it. People that do these things won't get far in modding because the modding hobby requires the ability to problem solve taking time, patience, and determination. If you can master this you'll go far not just in modding, but in life. smile.gif


--------------------
Go to the top of the page
 
+Quote Post
EduardoST
post Feb 29 2016, 06:55 AM
Post #7


Major
****

Group: Soldiers
Posts: 135
Joined: 15-March 10
From: Chile
Member No.: 7,347



I can no fix it, is to stop spinning the AT when they are near a vehicle... for now, everything else well. the only problem is when they are very close to a tank or other vehicle, I can not think of anything else, and now I have a headache :-(

Thank you anyway.

This post has been edited by EduardoST: Feb 29 2016, 07:00 AM
Go to the top of the page
 
+Quote Post
Death_EnForcer
post Feb 29 2016, 08:54 AM
Post #8


Dictator
Group Icon

Group: BFSP Team
Posts: 2,605
Joined: 17-July 04
From: New Jersey, USA
Member No.: 294



You said you were testing an AT weapon. What mod are you using? Try using AIX2 because it's a more stable mod for the bots.
Go to the top of the page
 
+Quote Post
EduardoST
post Feb 29 2016, 09:34 AM
Post #9


Major
****

Group: Soldiers
Posts: 135
Joined: 15-March 10
From: Chile
Member No.: 7,347



QUOTE (Death_EnForcer @ Feb 29 2016, 11:54 AM) *
You said you were testing an AT weapon. What mod are you using? Try using AIX2 because it's a more stable mod for the bots.


It is the mod that I use and love, but the AT soldiers twist when they are near a tank or vehicle. :-(
Go to the top of the page
 
+Quote Post
Bubbles
post Feb 29 2016, 09:49 AM
Post #10


General
*****

Group: Soldiers
Posts: 1,468
Joined: 13-February 06
From: Earth
Member No.: 1,539



Can you see what weapon they have in their hands when they are twisting?
Go to the top of the page
 
+Quote Post
EduardoST
post Feb 29 2016, 10:14 AM
Post #11


Major
****

Group: Soldiers
Posts: 135
Joined: 15-March 10
From: Chile
Member No.: 7,347



QUOTE (Bubbles @ Feb 29 2016, 12:49 PM) *
Can you see what weapon they have in their hands when they are twisting?


RPG or SRAW or any other missile launcher AT :-(
Go to the top of the page
 
+Quote Post
Bubbles
post Feb 29 2016, 01:24 PM
Post #12


General
*****

Group: Soldiers
Posts: 1,468
Joined: 13-February 06
From: Earth
Member No.: 1,539



If you haven't touched AIX, then the AI should be already optimized and should not have any issues.

Open the tweak file and look what aitemplate file they are using. I like to just keep mine simple and use one type for the same type of weapons. An example... all my RPG/SMAW etc would be an AT aitemplate. That way if I need to change something then it's one place and affects all weapons using that template.

So I have one for pistols
rifles
sniper
AT
etc.

FH2 does it like this. Very simple yet effective.

Try this in your aitemplate:

CODE
weaponTemplate.indirect 0
weaponTemplate.minRange 5.0
weaponTemplate.maxRange 75.0
weaponTemplate.optimalRangePercentage 65
weaponTemplate.setFiringPose Crouching
weaponTemplate.setStrength Infantry 2.0
weaponTemplate.setStrength LightArmour 8.0
weaponTemplate.setStrength HeavyArmour 10.0
weaponTemplate.setStrength NavalArmour 8.0
weaponTemplate.setStrength Helicopter 8.0
weaponTemplate.setStrength AirPlane 0.0
weaponTemplate.deviation 5.0
weaponTemplate.deviationCorrectionTime 2.0
rem weaponTemplate.allowedDeviation 2.25
weaponTemplate.allowedDeviation 0.1
weaponTemplate.setFiresThroughTransparent 0
weaponTemplate.setSoundSphereRadius 125.0
weaponTemplate.weaponFire PIFire


Go to the top of the page
 
+Quote Post
EduardoST
post Feb 29 2016, 02:37 PM
Post #13


Major
****

Group: Soldiers
Posts: 135
Joined: 15-March 10
From: Chile
Member No.: 7,347



QUOTE (Bubbles @ Feb 29 2016, 04:24 PM) *
If you haven't touched AIX, then the AI should be already optimized and should not have any issues.

Open the tweak file and look what aitemplate file they are using. I like to just keep mine simple and use one type for the same type of weapons. An example... all my RPG/SMAW etc would be an AT aitemplate. That way if I need to change something then it's one place and affects all weapons using that template.

So I have one for pistols
rifles
sniper
AT
etc.

FH2 does it like this. Very simple yet effective.

Try this in your aitemplate:

CODE
weaponTemplate.indirect 0
weaponTemplate.minRange 5.0
weaponTemplate.maxRange 75.0
weaponTemplate.optimalRangePercentage 65
weaponTemplate.setFiringPose Crouching
weaponTemplate.setStrength Infantry 2.0
weaponTemplate.setStrength LightArmour 8.0
weaponTemplate.setStrength HeavyArmour 10.0
weaponTemplate.setStrength NavalArmour 8.0
weaponTemplate.setStrength Helicopter 8.0
weaponTemplate.setStrength AirPlane 0.0
weaponTemplate.deviation 5.0
weaponTemplate.deviationCorrectionTime 2.0
rem weaponTemplate.allowedDeviation 2.25
weaponTemplate.allowedDeviation 0.1
weaponTemplate.setFiresThroughTransparent 0
weaponTemplate.setSoundSphereRadius 125.0
weaponTemplate.weaponFire PIFire


Thanks, I'll see how it goes with this template :-)
Go to the top of the page
 
+Quote Post
MasterChiefRulZ
post Feb 29 2016, 04:55 PM
Post #14


You know the drill...
Group Icon

Group: Mr. Admin
Posts: 10,465
Joined: 31-December 03
From: Home
Member No.: 48



QUOTE
If you haven't touched AIX, then the AI should be already optimized and should not have any issues.

Actually that's incorrect. The spinning bots were a factor even back in the AIX testing days and was something FFOLKES never was able to resolve.

I figured a fix out on my own which I linked to in Post #3 instead of repeating it ad nauseum, but Ed has difficulty understanding it. uhm.gif

Here's an excerpt... Originally posted Feb 2012

QUOTE
Alright, you're good to go!


Yeah I know, I just rezzed a thread years old, but I just wanted to make sure that this is common knowledge now. I've found a fix for the spinning bot issue, did a search and found this particular thread, to my knowledge this fix isn't posted? Anyways... After spending extensive time in my own mod, I had a hunch, tried it and with fantastic results. The offending bots were commonly AT bots, so I went in and compared all the weapon ai files and noticed something, many of the weapons had the same strength against multiple enemies.

So what? You ask. Well, I divvied up the different weapons to different strengths and BOOMSHACKALACKA the bots behave with zero spinnage. The trick is that bots would have two different targets (say a heavy vehicle and light vehicle) with the same strength for the same weapon, the bot would all the sudden have the urge to attack both targets with the same weapon, in it's indecision it would start spinning. Realigning weapon strengths in the Weapon AI fixed this.

One thing you have to be careful is when you change weapon strength be sure that aligns well elsewhere otherwise this same spinning will crop up again with another priority conflict. I know many vehicles share the same strength allotment towards enemies but function OK, not sure why. The KA-50 Blackshark with it's annoying hover action in Gulf of Oman, I fixed it in the same way. Realigning priorities of targets and now it happily flies about the map killing instead of camping in the MEC base in a dead hover. Granted the chopper may fly WAAAAAYYY up in the sky to get a clean shot with it's cannons now, as it's cannons are fixed and it always seems to want to strafe with it's guns; it's rare and is a welcome trade off as the Blackshark actually kills stuff now and is seen more often on the field.

Also added the AIX RPG behavior to other AT weapons, so much more fun to fly a BlackHawk or other transport through a hailstorm of rockets from infantry below (besides just the RPG).


--------------------
Go to the top of the page
 
+Quote Post
EduardoST
post Feb 29 2016, 04:56 PM
Post #15


Major
****

Group: Soldiers
Posts: 135
Joined: 15-March 10
From: Chile
Member No.: 7,347



I think my computer is wrong, or my game was installed wrong, or my soldiers were trained to be stupid :'(

I have a tangle of numbers, I do not know where to start :-(:-(

Although not so terrible, at least manages to attack from a distance sad.gif

Gracias!! Thanks! :-)
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2017 - 07:00 AM