Auto Cam

Apps Auto Cam V1.6

Login or Register an account to download this content
Esotic submitted a new resource:

Auto Cam - Automated Driver and Camera Switching App

This app is based on the ActionCam that Minolin posted to the AC forums back in 2016: https://www.assettocorsa.net/forum/index.php?threads/concept-actioncam.31665/

This primary advancement of AutoCam is being able to specify how much and for how long you want specific cameras to be active. This line in the INI is where all that is specified.

cameraSwitching = 0^10^10|1^20^10|2^10^10|3^80^15|4^2^5|5^0^10|6^0^10|7^5^5|8^0^10|9^0^10

This may look a bit like greek, but hopefully...

Read more about this resource...
 
Hey, I tried fiddling with the code, but without success since I am not that proficient in programming.
What I tried to add was that the app does not switch focusCar after switchDelay set time, IF the currently focused car is still in close set distance proximity (another distance variable) to any other car. This value could, e.g., much smaller then minDistance.
Seems that such IF statement would greatly improve the app, so to not switch focused car in middle of action.
 
Hey, I tried fiddling with the code, but without success since I am not that proficient in programming.
What I tried to add was that the app does not switch focusCar after switchDelay set time, IF the currently focused car is still in close set distance proximity (another distance variable) to any other car. This value could, e.g., much smaller then minDistance.
Seems that such IF statement would greatly improve the app, so to not switch focused car in middle of action.
I agree that the driver switching logic needs to be enhanced, as it is fairly simplistic at this point in time. I'll take this request into consideration when I upgrade that code, which is on my short to medium list. :)
 
So what I'm looking for is something that can switch the camera between cockpit and track at varying intervals. What this seems to be doing is switching at the same interval but sometimes instead of switching between the cockpit and track, it switching between TV and static (both track) and cycles through cockpit, chase, hood, dash, etc., since I'm assuming it's just hitting F1. Is there a perhaps a way to bind camera 0 to the cockpit cam and only the cockpit cam? I'm only interested in two specific cameras. Cheers
 
;Camera acsys.CM.Cockpit = 0
;Camera acsys.CM.Car = 1
;Camera acsys.CM.Drivable = 2
;Camera acsys.CM.Track = 3

AutoCam isn't "hitting F1", but it's doing something similar. Camera 0 is the cockpit, Camera 2 is all the other derivable cameras that you cycle through when pressing F1 (not including the cockpit). Camera 1 is all the F6 cameras, and Camera 3 is all the track cameras.

The cameraSwitching INI entry could be modified to something like
cameraSwitching = 0^10^10|3^80^15

For each camera the numbers mean
Camera Number^Randomization Weight^Delay Before Switching

In this instance camera 3 is 8 times more likely to be selected than camera 0. When camera 3 is selected it should wait 15 seconds before randomly selecting the next camera. There's no way currently to force it to toggle between the two, but if you set the weights to equal values they should get selected with equal frequency. If the Track camera is selected and set when the track camera is already selected then it should cycle the available camera sets.

This is an example of the two cameras having equal randomization weights:
cameraSwitching = 0^10^10|3^10^15

Does that help?

Cheers,

Esotic
 
Yes I read all of that and this is what I came up with. It still cycles through the aforementioned cameras. Is there something I'm missing?

0^50^20|1^0^10|2^0^10|3^50^15|4^0^5|5^0^10|6^0^10|7^0^5|8^0^10|9^0^10
 
Esotic updated Auto Cam with a new update entry:

mostly bug fixes

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

Read the rest of this update entry...
 
Esotic updated Auto Cam with a new update entry:

car camera toggles, separate driver and camera switching toggles

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...

Read the rest of this update entry...
 
How do I get it to ignore a driver ? I want to record the race using this and bcast on another pc and get booted to pits for false start ? any help thanks

In the INI there are options for which drivers you'd like the app to ignore. You may also want BCast to ignore those same drivers, but I do not know if it had that functionality.

skipdrivers = Esotic Streaming|Place Holder
monday = Esotic Streaming|Place Holder
tuesday = Esotic Streaming|Place Holder
wednesday = Esotic Streaming|Place Holder
thursday = Esotic Streaming|Place Holder
friday = Esotic Streaming|Place Holder
saturday = Esotic Streaming|Place Holder
sunday = Esotic Streaming|Place Holder
 
Esotic updated Auto Cam with a new update entry:

pitCamera settings in the INI

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).

Read the rest of this update entry...
 
I've had a couple requests on how to force the halo view with the RSS 3 V6. In order to do this you must limit the list for that car in carCameras.ini

;Cameras are Halo1, Halo2, Driver, Front Tire, Back Tire, Rear Wing
rss_formula_rss_3_v6 = 0^0|1^1|2^0|3^0|4^0|5^0

And in the AutoCam.INI you may want to only use car cams and track cams (avoiding the cockpit and drivable cameras)
cameraSwitching = 1^30^10|3^70^15

Cheers,

Dave\Esotic
 
driverswitchingenabled doesn't appear to be functioning. I'd like to switch it off.
I assume you're referring to the driverSwitchingEnabled = 0 option in the AutoCam.INI? I just set it to 0 and AutoCam did not switch drivers. Is it possible there's another app that you're running that's switching the drivers?

Check the py_log.txt and see if these lines appear:
AutoCam: cameraSwitchingEnabled = 1
AutoCam: driverSwitchingEnabled = 0
 
I assume you're referring to the driverSwitchingEnabled = 0 option in the AutoCam.INI? I just set it to 0 and AutoCam did not switch drivers. Is it possible there's another app that you're running that's switching the drivers?

Check the py_log.txt and see if these lines appear:
AutoCam: cameraSwitchingEnabled = 1
AutoCam: driverSwitchingEnabled = 0
I certainly can't think of what other app would be switching drivers. Yours is the only one of its kind. I had a hunch that it wasn't properly reading from the .ini and I believe the log confirms that, but there is a value error I don't understand.

Code:
AutoCam: ServerName =
AutoCam: ServerIP =
AutoCam: ReadSettings from apps\python\AutoCam\AutoCam.ini
AutoCam: Loading skipDrivers for Tuesday
AutoCam: Skipping Esotic Streaming
AutoCam: Skipping Place Holder
['Traceback (most recent call last):\n', '  File "apps/python/AutoCam\\AutoCam.py", line 243, in ReadSettings\n    cam, usage, delay = strCamera.split("^")\n', 'ValueError: need more than 1 value to unpack\n']
AutoCam: AutoCam Unable to read apps\python\AutoCam\.ini
AutoCam: ReadCarCameras from apps\python\AutoCam\carCameras.ini
AutoCam: carName = ks_nissan_gtr_gt3, carCamCount = 6
AutoCam: Found ks_nissan_gtr_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Reading Car Camera options for ks_nissan_gtr_gt3
AutoCam: carName = ks_lamborghini_huracan_gt3, carCamCount = 6
AutoCam: Found ks_lamborghini_huracan_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Reading Car Camera options for ks_lamborghini_huracan_gt3
AutoCam: carName = ks_mclaren_650_gt3, carCamCount = 6
AutoCam: Found ks_mclaren_650_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Reading Car Camera options for ks_mclaren_650_gt3
AutoCam: carName = ks_mercedes_amg_gt3, carCamCount = 6
AutoCam: Found ks_mercedes_amg_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Reading Car Camera options for ks_mercedes_amg_gt3
AutoCam: carName = mclaren_mp412c_gt3, carCamCount = 6
AutoCam: Found mclaren_mp412c_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Reading Car Camera options for mclaren_mp412c_gt3
AutoCam: carName = mercedes_sls_gt3, carCamCount = 6
AutoCam: Found mercedes_sls_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Reading Car Camera options for mercedes_sls_gt3
AutoCam: carName = ks_mclaren_650_gt3, carCamCount = 6
AutoCam: Found ks_mclaren_650_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Car ks_mclaren_650_gt3 already found in dicCars
AutoCam: carName = ks_lamborghini_huracan_gt3, carCamCount = 6
AutoCam: Found ks_lamborghini_huracan_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Car ks_lamborghini_huracan_gt3 already found in dicCars
AutoCam: carName = ks_mercedes_amg_gt3, carCamCount = 6
AutoCam: Found ks_mercedes_amg_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Car ks_mercedes_amg_gt3 already found in dicCars
AutoCam: carName = ks_nissan_gtr_gt3, carCamCount = 6
AutoCam: Found ks_nissan_gtr_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Car ks_nissan_gtr_gt3 already found in dicCars
AutoCam: carName = ks_nissan_gtr_gt3, carCamCount = 6
AutoCam: Found ks_nissan_gtr_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Car ks_nissan_gtr_gt3 already found in dicCars
AutoCam: carName = bmw_z4_gt3, carCamCount = 6
AutoCam: Found bmw_z4_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Reading Car Camera options for bmw_z4_gt3
AutoCam: carName = bmw_z4_gt3, carCamCount = 6
AutoCam: Found bmw_z4_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Car bmw_z4_gt3 already found in dicCars
AutoCam: carName = mclaren_mp412c_gt3, carCamCount = 6
AutoCam: Found mclaren_mp412c_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Car mclaren_mp412c_gt3 already found in dicCars
AutoCam: carName = mercedes_sls_gt3, carCamCount = 6
AutoCam: Found mercedes_sls_gt3 in apps\python\AutoCam\carCameras.ini
AutoCam: Car mercedes_sls_gt3 already found in dicCars
AutoCam: App ID = 1
AutoCam: InitCars() done
AutoCam: acMain finished
AutoCam: using cm extensions
AutoCam: Returning from acMain
 
Last edited:
Back
Top