primordial stew
Emperor
Unfortunately any missing art file will CTD civ*, so here is a script do some basic checking:
http://forums.civfanatics.com/downloads.php?do=file&id=9361
This program creates a hash of all the dds/kfm/nif files (in pre-digested files), and then goes through the files in the assets/xml/art folder and reports any missing files.
It also scans various files for ART_DEF* statements, and then reports if there is no match found in the files from assets/xml/art/*xml.
Here is how I run it:
1. using the unpack utility Firaxis has provided, unpack all the (warlords for example) .fpk files into some dir.
2. in a cgywin shell, do what this psuedo-code .csh script would:
"dirs containing art files" are root dirs of where those .fpks were unpacked to, and, and your mod's art dir. The script is setup for RFRE.
eg) in ....\mods\RFRE\Assets\Art\art_kfm.txt
./Art/Terrain/resources/amber/gems.kfm
./Art/Terrain/resources/Barley/tobacco.kfm
./Art/Terrain/resources/Barley/wheat.kfm
etc...
Never mind the forward vs backward slash directory separator, it doesn't matter.
3. in cgywin, run: checkArtFiles.pl
4. examine: $mod/assets/art_debug.log. Mine is 900k, but mostly this is debug info. Check for lines with "-E-" in them (ie near the end of the file).
eg)
-I- opened source file: xml/Civilizations/CIV4LeaderHeadInfos.xml
-E- xml/Civilizations/CIV4LeaderHeadInfos.xml: art_def_leader_alexander NOT found
-E- xml/Civilizations/CIV4LeaderHeadInfos.xml: art_def_leader_genghis_khan NOT found
-I- opened source file: xml/Civilizations/CIV4TraitInfos.xml
So the game will CTD if the reference to either art_def_leader_alexander or art_def_leader_genghis_khan get called (eg meet these leaders during diplomacy).
I'm pretty sure this doesn't check for all files, but it's not hard to expand it. Let me know if there are changes to make.
http://forums.civfanatics.com/downloads.php?do=file&id=9361
This program creates a hash of all the dds/kfm/nif files (in pre-digested files), and then goes through the files in the assets/xml/art folder and reports any missing files.
It also scans various files for ART_DEF* statements, and then reports if there is no match found in the files from assets/xml/art/*xml.
Here is how I run it:
1. using the unpack utility Firaxis has provided, unpack all the (warlords for example) .fpk files into some dir.
2. in a cgywin shell, do what this psuedo-code .csh script would:
Code:
foreach d ( "dirs containing art files")
foreach t ( dds nif kfm )
cd $d
find . -type f -name "*$t" > art_${t}.txt
end
end
"dirs containing art files" are root dirs of where those .fpks were unpacked to, and, and your mod's art dir. The script is setup for RFRE.
eg) in ....\mods\RFRE\Assets\Art\art_kfm.txt
./Art/Terrain/resources/amber/gems.kfm
./Art/Terrain/resources/Barley/tobacco.kfm
./Art/Terrain/resources/Barley/wheat.kfm
etc...
Never mind the forward vs backward slash directory separator, it doesn't matter.
3. in cgywin, run: checkArtFiles.pl
4. examine: $mod/assets/art_debug.log. Mine is 900k, but mostly this is debug info. Check for lines with "-E-" in them (ie near the end of the file).
eg)
-I- opened source file: xml/Civilizations/CIV4LeaderHeadInfos.xml
-E- xml/Civilizations/CIV4LeaderHeadInfos.xml: art_def_leader_alexander NOT found
-E- xml/Civilizations/CIV4LeaderHeadInfos.xml: art_def_leader_genghis_khan NOT found
-I- opened source file: xml/Civilizations/CIV4TraitInfos.xml
So the game will CTD if the reference to either art_def_leader_alexander or art_def_leader_genghis_khan get called (eg meet these leaders during diplomacy).
I'm pretty sure this doesn't check for all files, but it's not hard to expand it. Let me know if there are changes to make.