This version attempts to fix a few bugs related to cars in the pits being reported by the API as being in motion.
It also increases coordination with AnnouncerBot to decrease switching in some scenarios while ABot is talking.
Info related to the most relevant new INI entries:
battleGap = 0.5
The battleGap defines the gap, in seconds, that 2 cars need to be within to be considered in a battle on track. Cars that are in a battle will get priority over other cars.
leadersOverClosest = 1
When leadersOverClosest is set to 1 the two cars within battleGap and closest to the top of the grid will take priority. When leadersOverClosest is set to 0 the two cars within battleGap that are the closest together (in seconds) will take priority.
battleCams = 3^1^10|0^1^10|1^1^10
When 2 cars are switched to because they are within the battleGap cameras from the battleCams will be used.
noDrivableCamWithVirtualMirror = 1
The very latest CSP versions contain the extension ac.ext_isVirtualMirrorForced(), which should communicate to python apps when the virtual mirror is being forced on by the server. If noDrivableCamWithVirtualMirror is set to 1 and the server is forcing virtual mirrors to be on, AutoCam will use the first car camera defined in the carCameras.ini file. Lines in the carCameras.ini look like this:
bmw_m3_e30_dtm = 2^1|0^1|1^1|3^1|4^0|5^0
I've found many of the kunos cars to use car camera 2 as the interior view that shows the driver, but there is no standard for which car cameras shows which angle, so you may want to set the first car in this manually.
This version should resolve a few gaps in the logic for supporting timed races (both with and without the extra lap). There are also advancements to tracking cars that are off pace and entering/exiting pit lane.
During the qualifying session AutoCam will attempt to track average speeds, and during the race it will use this data to determine if cars are off pace, and then switch to them. There are options in the INI that control how often a car can be considered off pace, so they won't be switched to constantly.
The version should also support a pre-race countdown.
Cheers,
Esotic
There is now an INI option for firstLapSwitching, which in default mode is just track cams:
firstLapSwitching = 3^1^10
I also made some tweaks to the driver switching in qually, and at the end of the race.
Sorry about that. This version should include the missing library file to support HotKeys.
Ctrl+F6 will toggle camera switching
Ctrl+F7 will toggle driver switching
The app title will now indicate when camera and driver switching are on/off by the use of a capital or lowercase letter. Capital letter means on, lowercase letter means off. So "AutoCam Cd" means camera switching is on, driver switching is off.
V1.3.3 should resolve errors related to an issue with AC occasionally reporting the number of car cameras as -1.
I forgot to include the pitCameraSwitching definitions in the INI for V1.3 release. This has been fixed:
pitCameraSwitching = 0^1^5|1^1^5|2^1^5|4^1^5
On many tracks the pit wall obscures the track cameras from viewing the cars that are in pit lane. This option allows a different set of cameras for when all cars are stuck in pit lane (like during a wait countdown).
Updates includes options to enable/disable driver and camera switching separately in the INI.
cameraSwitchingEnabled = 1
driverSwitchingEnabled = 1
It also includes a carCameras.ini file that lists each car and an option to enable/disable each car camera. The car cameras are not named, so it's a bit of a guess and check process to make sure you've disabled the cameras you don't like. For testing I'd suggest using just the one car you are editing in a hotlapping session, and then only use car cameras in the cameraSwitching definition:
;use just the car cameras for testing:
cameraSwitching = 1^1^5
Code:;for each car there should be one line ;each car camera has a number and a weight for how often to use it [SETTINGS] bmw_m3_e30_dtm = 0^1|1^1|2^1|3^1|4^1|5^1|6^1|7^1|8^1|9^1|10^1|11^1|12^1 ac_legends_ferrari_330p4 = 0^1|1^1|2^1|3^1|4^1|5^1 ks_audi_sport_quattro = 0^1|1^1|2^1|3^1|4^1|5^1
The app is also fairly aggressive about maintaining the camera that it chose last, as AC will sometimes change the camera, and this logic should help to maintain just the desired cameras.
Thanks to Jon Astrop for donating some code to help fix a bug.
AutoCam should default to only showing drivers that are not in the pits, but if for some reason all drivers are in the pits, like during a wait countdown, there's logic to use a special set of cameras, which should help avoid situations where the camera is just staring at a pit wall.
Cheers,
Esotic
V1 had some issues with hyperactive cameras between sessions. This update should fix that.