fix: default vehicle icon cache to vehicle_data_cache.json (the file the bots write)
This commit is contained in:
+1
-1
@@ -349,7 +349,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
)),
|
)),
|
||||||
vehicle_icons: load_vehicle_icons(&resolve_db_path(
|
vehicle_icons: load_vehicle_icons(&resolve_db_path(
|
||||||
"VEHICLE_DATA_CACHE_JSON",
|
"VEHICLE_DATA_CACHE_JSON",
|
||||||
"vehicle_data_cache_all.json",
|
"vehicle_data_cache.json",
|
||||||
)),
|
)),
|
||||||
});
|
});
|
||||||
tracing::info!(
|
tracing::info!(
|
||||||
|
|||||||
+3
-1
@@ -15,7 +15,9 @@ TSS_TEAMS_DB=./tss_teams.db
|
|||||||
# The backend loads these at startup to translate vehicle_internal (cdk) -> name
|
# The backend loads these at startup to translate vehicle_internal (cdk) -> name
|
||||||
# and resolve icon filenames for the game scoreboard.
|
# and resolve icon filenames for the game scoreboard.
|
||||||
VEHICLE_TRANSLATIONS_JSON=/mnt/HC_Volume_105581488/STORAGE/CACHE/vehicle_translations.json
|
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
|
# Directory of vehicle icon PNGs served at /vehicle-icons (deploy-time copy/symlink
|
||||||
# of SHARED/ICONS/VEHICLES). VEHICLE_ICONS_SRC is the deploy source.
|
# of SHARED/ICONS/VEHICLES). VEHICLE_ICONS_SRC is the deploy source.
|
||||||
VEHICLE_ICONS_DIR=./dist/vehicle-icons
|
VEHICLE_ICONS_DIR=./dist/vehicle-icons
|
||||||
|
|||||||
Reference in New Issue
Block a user