A small script should be able to detect any textures and models that are in the data directories, but not used. E.g. simple version:
for each kart and track, test that all images are in one of the b3d files; and that each b3d file is in the scene.xml file.
Improved version: for any textures in the texture directory also check if it is used (i.e. it's in one of the b3d files of karts/tracks, and not overwritten) - this must also keep track of other usage of those textures (not sure, perhaps in models, though model textures tend to be in the model directory)
Author: hikerstk
A small script should be able to detect any textures and models that are in the data directories, but not used. E.g. simple version: for each kart and track, test that all images are in one of the b3d files; and that each b3d file is in the scene.xml file.
Improved version: for any textures in the texture directory also check if it is used (i.e. it's in one of the b3d files of karts/tracks, and not overwritten) - this must also keep track of other usage of those textures (not sure, perhaps in models, though model textures tend to be in the model directory)
Remember to handle b3dz files correctly.
Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/1102