Closed viper4gh closed 6 years ago
Livery Folder structure: data/liveries/[Vehicle ID]/[Car Nr. or Livery ID].png
The png files are available in two filename variantes: [Car Nr.].png - example: 2.png id[Vehicle ID].png - example: id50.png
The following Vehicle Classes are currently available: GT1, GT3, Ginetta Junior, GTE, LMP2, Indy Car, Touring Cars
Attention later: The "Ligier JS P2 Nissan" has the car number files "8.png" and "08.png". The same with number 9. If they will not work, then replace the name with the Livery IDs.
Extract vehicle number from Livery Name: https://jsfiddle.net/b9j4z651/
var LiveryName = "Cassius Racing #9"; var sliced = LiveryName.slice(LiveryName.indexOf("#")+1);
Next steps:
this.aVehicleLiveryInfoExt['PCARS2'] = [ { "id" : 9503224, "name" : "BMW 320 TC (E90)", "liveries" : [ { "id" : 51, "name" : "Cassius Racing #9" }, { "id" : 52, "name" : "Cassius Racing #10" },
An example of the needed hash:
VehicleLiveryListHash[9503224][51] = "Cassius Racing #9"
Feature is working in general now. Some problems:
Enhancements:
ToDo: generate a white silhouette of every available car for the "Custom Livery" HowTo with paint.net:
Feature fully implemented. Missing liveries will be added as soon as they are available.
If you click on a row in the Drivertable a Livery Thumbnail pops up. And/or adding a new column with the Livery Thumbnails embedded.