diff --git a/backend/src/main.rs b/backend/src/main.rs index e75961a..f3f6f8c 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -349,7 +349,7 @@ async fn main() -> Result<(), Box> { )), vehicle_icons: load_vehicle_icons(&resolve_db_path( "VEHICLE_DATA_CACHE_JSON", - "vehicle_data_cache_all.json", + "vehicle_data_cache.json", )), }); tracing::info!( diff --git a/example.env b/example.env index 6fdbad8..5252507 100644 --- a/example.env +++ b/example.env @@ -15,7 +15,9 @@ TSS_TEAMS_DB=./tss_teams.db # The backend loads these at startup to translate vehicle_internal (cdk) -> name # and resolve icon filenames for the game scoreboard. VEHICLE_TRANSLATIONS_JSON=/mnt/HC_Volume_105581488/STORAGE/CACHE/vehicle_translations.json -VEHICLE_DATA_CACHE_JSON=/mnt/HC_Volume_105581488/STORAGE/CACHE/vehicle_data_cache_all.json +# vehicle_data_cache.json (icons-only) is what the bots actually write; the +# *_all variant (every vehicle, incl. iconless) also works if present. +VEHICLE_DATA_CACHE_JSON=/mnt/HC_Volume_105581488/STORAGE/CACHE/vehicle_data_cache.json # Directory of vehicle icon PNGs served at /vehicle-icons (deploy-time copy/symlink # of SHARED/ICONS/VEHICLES). VEHICLE_ICONS_SRC is the deploy source. VEHICLE_ICONS_DIR=./dist/vehicle-icons