PDA

View Full Version : AMS Blue Flag



co199
11-29-2017, 04:32 AM
Hello all!

After the most recent Crew Chief update (4.8.2.4), I'm getting constant blue flag calls in Automobilista when there's a car behind me (e.g., I will pass a car going into turn 1, and Crew Chief will tell me "Good move, eyes front." followed immediately by "blue flag"). Note that I am using mod tracks, but the same tracks didn't have this issue prior to the update.

I was wondering if anyone else had seen this?

mr_belowski
11-29-2017, 08:13 AM
that's really odd. I'm going through the code now - the AMS code hasn't changed for a while so it's unlikely to be caused by the 4.8.2.4 update.

The blue flag code looks pretty solid - your race position has to be greater than the opponent's (i.e. you're behind him in the race), and he has to be more than 8 metres but less than 40 metres behind you on track in order for it to trigger. It might be getting triggered if the game is sending incorrect race positions for opponent cars, or if the game is sending incorrect lap distance data. Was this an online or offline race? Does it do it for all tracks?

co199
11-29-2017, 12:22 PM
Hi, thanks for the response!

I've done some further testing - it's happening for all tracks (tested with the default Interlagos track, Patrick Girathon's Monza track, and a couple of GSCE tracks I converted). These are offline races against the AI. It seems to happen after I've got damage - I've included a snippet from the log from my most recent race:


08:09:07.414 : pre-start message for track temp
08:09:07.420 : pre-start message for air temp
08:09:07.422 : pre-start message for P 20
08:09:07.425 : pre-start message for race laps
08:09:07.429 : ********** starting spotter***********
08:09:07.440 : Invoking spotter every 50ms, pausing 6ms between invocations
08:09:07.983 : Playing sounds, events: COMPOUND_position, COMPOUND_race_distance
08:09:09.098 : SessionPhase changed from Gridwalk to Countdown
08:09:09.101 : Laps completed = 0
08:09:09.104 : Time elapsed = 2.547834
08:09:09.106 : Position = 20
08:09:09.109 : Session phase = Countdown
08:09:10.935 : *** Processed COMPOUND_position, COMPOUND_race_distance
08:09:10.938 : There are 1 more events in the queue, playing them...
08:09:10.941 : Playing sounds, events: lap_counter/get_ready
08:09:12.320 : *** Processed lap_counter/get_ready
08:09:17.642 : SessionPhase changed from Countdown to Green
08:09:18.042 : Playing sounds, events: lap_counter/green_green_green
08:09:19.112 : *** Processed lap_counter/green_green_green
08:09:21.553 : Fuel level initialised, initialFuelLevel = 52.83311, halfDistance = 5 halfTime = -1
08:09:27.197 : Playing sounds, events: spotter/car_right
08:09:27.964 : *** Processed spotter/car_right
08:09:29.890 : Playing sounds, events: spotter/still_there
08:09:30.581 : *** Processed spotter/still_there
08:09:32.900 : Playing sounds, events: spotter/still_there
08:09:33.592 : *** Processed spotter/still_there
08:09:33.888 : Playing sounds, events: spotter/in_the_middle
08:09:34.602 : Removing immediate clip spotter/in_the_middle
08:09:34.708 : Removing immediate clip spotter/clear_right
08:09:35.106 : *** Processed spotter/in_the_middle
08:09:37.743 : Playing sounds, events: spotter/still_there
08:09:38.434 : *** Processed spotter/still_there
08:09:39.001 : Playing sounds, events: spotter/clear_all_round
08:09:39.916 : *** Processed spotter/clear_all_round
08:09:49.095 : Playing sounds, events: spotter/car_right
08:09:49.662 : Removing immediate clip spotter/car_right
08:09:49.861 : *** Processed spotter/car_right
08:09:49.863 : There are 1 more events in the queue, playing them...
08:09:49.866 : Playing sounds, events: spotter/clear_right
08:09:50.783 : *** Processed spotter/clear_right
08:09:52.465 : Race start message... isLast = False session start pos = 20 current pos = 19
08:10:03.810 : Playing sounds, events: spotter/car_right
08:10:04.425 : *** Processed spotter/car_right
08:10:06.513 : Playing sounds, events: spotter/still_there
08:10:07.281 : *** Processed spotter/still_there
08:10:09.406 : reporting ...
08:10:09.409 : AERO, TRIVIAL
08:10:09.412 : Playing sounds, events: spotter/clear_right
08:10:10.181 : *** Processed spotter/clear_right
08:10:10.184 : Playing sounds, events: damage_reporting/trivial_aero_damage
08:10:11.930 : *** Processed damage_reporting/trivial_aero_damage
08:10:15.857 : Playing sounds, events: spotter/car_left
08:10:16.699 : *** Processed spotter/car_left
08:10:18.552 : Playing sounds, events: spotter/still_there
08:10:18.802 : Removing immediate clip spotter/still_there
08:10:19.246 : *** Processed spotter/still_there
08:10:19.249 : There are 1 more events in the queue, playing them...
08:10:19.251 : Playing sounds, events: spotter/clear_left
08:10:20.092 : *** Processed spotter/clear_left
08:10:21.142 : Playing sounds, events: spotter/car_left
08:10:21.601 : fuel use per minute (basic calc) = 1.359935 fuel left = 51.47202
08:10:21.835 : *** Processed spotter/car_left
08:10:22.078 : Playing sounds, events: spotter/clear_left
08:10:22.845 : *** Processed spotter/clear_left
08:10:26.980 : Player off track: by surface type.
08:10:37.543 : Playing sounds, events: spotter/car_left
08:10:38.309 : *** Processed spotter/car_left
08:10:39.764 : Playing sounds, events: spotter/clear_left
08:10:40.456 : *** Processed spotter/clear_left
08:10:46.795 : Playing sounds, events: spotter/car_left
08:10:46.874 : Player off track: by surface type.
08:10:47.486 : *** Processed spotter/car_left
08:10:48.253 : Playing sounds, events: spotter/clear_left
08:10:49.020 : *** Processed spotter/clear_left
08:10:49.024 : Removing immediate clip spotter/clear_left
08:10:49.031 : There are 1 more events in the queue, playing them...
08:10:49.035 : Playing sounds, events: spotter/car_left
08:10:49.805 : *** Processed spotter/car_left
08:10:49.860 : Playing sounds, events: spotter/clear_left
08:10:50.551 : *** Processed spotter/clear_left
08:10:53.551 : Playing sounds, events: spotter/car_left
08:10:53.733 : Player off track: by surface type.
08:10:54.319 : *** Processed spotter/car_left
08:10:55.252 : Playing sounds, events: spotter/clear_left
08:10:56.096 : *** Processed spotter/clear_left
08:10:56.243 : reporting ...
08:10:56.246 : AERO, MINOR
08:10:56.873 : Playing sounds, events: damage_reporting/minor_aero_damage
08:10:58.621 : *** Processed damage_reporting/minor_aero_damage
08:11:21.661 : fuel use per minute (basic calc) = 1.588729 fuel left = 49.65318
08:11:22.011 : Playing sounds, events: spotter/car_left
08:11:22.776 : *** Processed spotter/car_left
08:11:24.709 : Playing sounds, events: spotter/clear_left
08:11:25.476 : *** Processed spotter/clear_left
08:11:27.029 : Playing sounds, events: spotter/car_left
08:11:27.871 : *** Processed spotter/car_left
08:11:28.527 : Playing sounds, events: spotter/clear_left
08:11:28.938 : Removing immediate clip spotter/clear_left
08:11:29.218 : *** Processed spotter/clear_left
08:11:29.220 : There are 1 more events in the queue, playing them...
08:11:29.223 : Playing sounds, events: spotter/car_left
08:11:29.572 : Laps completed = 1
08:11:29.576 : Time elapsed = 143.0189
08:11:29.578 : Position = 18
08:11:29.581 : Session phase = Green
08:11:29.585 : fuel use per lap (basic calc) = 3.535954 fuel left = 49.29716
08:11:29.990 : *** Processed spotter/car_left
08:11:29.993 : Playing sounds, events: COMPOUND_position
08:11:30.685 : *** Processed COMPOUND_position
08:11:31.950 : Playing sounds, events: spotter/still_there
08:11:32.565 : *** Processed spotter/still_there
08:11:34.596 : Playing sounds, events: flags/blue_flag
08:11:35.136 : *** Processed flags/blue_flag
08:11:35.139 : Playing sounds, events: spotter/still_there
08:11:35.831 : *** Processed spotter/still_there
08:11:37.980 : Playing sounds, events: spotter/still_there
08:11:38.821 : *** Processed spotter/still_there
08:11:40.991 : Playing sounds, events: spotter/still_there
08:11:41.834 : *** Processed spotter/still_there
08:11:43.992 : Playing sounds, events: spotter/still_there
08:11:44.686 : *** Processed spotter/still_there
08:11:47.000 : Playing sounds, events: spotter/still_there
08:11:47.694 : *** Processed spotter/still_there
08:11:47.697 : Playing sounds, events: timings/being_pressured
08:11:50.958 : *** Processed timings/being_pressured
08:11:50.960 : Clip spotter/clear_left has expired
08:11:52.248 : Playing sounds, events: spotter/car_left
08:11:53.015 : *** Processed spotter/car_left
08:11:54.593 : Playing sounds, events: flags/blue_flag
08:11:55.208 : *** Processed flags/blue_flag
08:11:55.211 : Playing sounds, events: spotter/still_there
08:11:55.979 : *** Processed spotter/still_there
08:11:57.952 : Playing sounds, events: spotter/still_there
08:11:58.152 : Removing immediate clip spotter/still_there
08:11:58.568 : *** Processed spotter/still_there
08:11:58.571 : There are 1 more events in the queue, playing them...
08:11:58.573 : Playing sounds, events: spotter/clear_left
08:11:59.264 : *** Processed spotter/clear_left
08:12:07.198 : Playing sounds, events: spotter/car_left
08:12:07.971 : Removing immediate clip spotter/car_left
08:12:08.039 : *** Processed spotter/car_left
08:12:08.042 : There are 1 more events in the queue, playing them...
08:12:08.045 : Playing sounds, events: spotter/clear_left
08:12:08.812 : *** Processed spotter/clear_left
08:12:10.499 : reporting ...
08:12:10.503 : AERO, MAJOR
08:12:10.979 : Playing sounds, events: damage_reporting/severe_aero_damage
08:12:13.706 : *** Processed damage_reporting/severe_aero_damage
08:12:15.971 : Playing sounds, events: flags/blue_flag
08:12:16.661 : *** Processed flags/blue_flag
08:12:19.696 : Player off track: by surface type.
08:12:22.980 : Playing sounds, events: penalties/cut_track_in_race
08:12:24.197 : *** Processed penalties/cut_track_in_race
08:12:24.328 : Fuel level initialised, initialFuelLevel = 53, halfDistance = 5 halfTime = -1
08:12:27.403 : Session finished, position = 20
08:12:27.407 : Session lap times:
08:12:27.410 : 02:11.891
08:12:27.980 : Playing sounds, events: COMPOUND_SESSION_END
08:12:31.607 : *** Processed COMPOUND_SESSION_END

I set this race up as 20 AI, 10 laps, starting in p20. As you can see from the log, right after the first lap I was up to P18 and immediately got the blue flag message.

Is there anything else I can provide?

co199
11-29-2017, 03:55 PM
I think the post I made earlier may still be waiting for approval since it had code blocks in it, but to answer the questions:

1. Was this an online or offline race?
This was an offline race against the AI.

Does it do it for all tracks?
I tested with the default Interlagos track, Patrick Giranthon's Monza track, and then a couple of GSCE tracks I converted myself. It happened on all tracks.

I wonder if it may be the new blue flag logic in the game - I'm not getting an actual blue flag icon in the HUD, and I tested with the built-in spotter and wasn't able to replicate it.

co199
11-30-2017, 01:19 AM
So I actually think I fixed this - it wasn't a Crew Chief issue. I backed up my control file and then deleted my profile and everything seems to be working fine now. Sorry for the false alarm and thanks for your help!

co199
11-30-2017, 03:02 AM
Ok, so I didn't actually fix it by deleting my profile. However, I did fix it! The car and skin pack I was using is older and Crew Chief was treating it as a multi-class race since the Description field in the .veh file was marking each car as its own manufacturer. Fixing the description field so it aligned with the Reiza .veh files (eg V8: Driver Name) fixed the issue!

mr_belowski
11-30-2017, 08:51 AM
I've added some additional checks for the next version anyway - the app should be less sensitive to blue flags, and I've also added the option to switch them off for AMS

The Iron Wolf
11-30-2017, 02:31 PM
If you do multi class races in AMS, you may want to check this as well: http://thecrewchief.org/showthread.php?27-Customizing-Car-Classes

This helps CC understand multi class races better, track times within class etc.

co199
11-30-2017, 02:42 PM
If you do multi class races in AMS, you may want to check this as well: http://thecrewchief.org/showthread.php?27-Customizing-Car-Classes

This helps CC understand multi class races better, track times within class etc.

Oh that's perfect, because I can tweak the .veh files to fit the pre-existing classes. Nice, thanks!

The Iron Wolf
11-30-2017, 03:38 PM
Oh that's perfect, because I can tweak the .veh files to fit the pre-existing classes. Nice, thanks!
I am not sure modifying .veh files is really neccessary. You can add your own car class definitions in CC .json file, and even send that file to us for inclusion in the next version. Just check what CC prints out under "Multi-class" string during session start. That'll give you names of how classes are in AMS. Then, you can map them in .json :) Cheers.

co199
11-30-2017, 03:44 PM
Oh, the classes of cars I'm using are already in the CC .json - I was just using GTD instead of GT3 and LMP instead of LMP1/2 for a Weathertech series.

Silvanob2
12-08-2017, 11:05 AM
I've added some additional checks for the next version anyway - the app should be less sensitive to blue flags, and I've also added the option to switch them off for AMS

Hello, i get the same issue as co199, even if the car is at 100 meters behind me i get the call, its very irritating to say the least :)
@Jim you say you added an option to switch them off, i looked in the app but coulnd find anything related to blue flag, can you help me to find it please?
if i switch the yellow flag button, the blue flag warning comes anyway.

thanks

mr_belowski
12-08-2017, 12:08 PM
you're quite right. I've no idea where that change went but it's definitely not in the release. I'll track it down and re-add it, and if I can't find it I'll implement it again

Weird...

Silvanob2
12-08-2017, 12:25 PM
BTW AMS dosent send the blue flag icon, thats why i suspect its on CC side :rolleyes:

Silvanob2
12-09-2017, 07:13 AM
Thanks a lot Jim, the option is back in this great app :)