When determining vehicle availability, hook into VehicleAvailibility.IsVehicleAvailable and when the vehicle is located in .ap file, try to locate and its preview image. If the preview image is present, extract it to temp directory, assign it a random file name and maintain a lookup table between blueprint ID and corresponding preview image path at VehicleAvailability. Now the VehicleImageSourceConverter should look for the preview images at VehicleAvailability instead of directly assuming a file name.
One possible approach:
When determining vehicle availability, hook into
VehicleAvailibility.IsVehicleAvailable
and when the vehicle is located in .ap file, try to locate and its preview image. If the preview image is present, extract it to temp directory, assign it a random file name and maintain a lookup table between blueprint ID and corresponding preview image path atVehicleAvailability
. Now theVehicleImageSourceConverter
should look for the preview images atVehicleAvailability
instead of directly assuming a file name.