Re: Bovine M2TW Checker
The file extension is a bit of a gamble - we had several occasions in RotK (with the character models) where the file had no extension in the CAS listing. But never in the resource and settlement models.
The texture subfolder path is always present, haven't come across any stratmodel CAS file that does not use it. DDS or TEXTURE is never used as extension in the CAS listing. So layman me would say to search for '\textures\' and then parse what comes after it until the first empty space?
See examples, small window (caoren) lacking the extension, large window being a standard entry:
Note: in case of the missing extension for the character model we actually had to provide a dummy file (zero byte, no extension) to avoid the 'out of video memory' error, the TGA file in the textures folder would be covered by it's entry in descr_model_strat, the added TGA.DDS file being a valid addition - all three of them thereby being valid files present in the textures sub folder.
As I said: have yet to come across an issue like this with resource models.
Thought for a check regarding TGA.DDS files: if exists [referenced name].TGA then [name].TGA.DDS valid - in other words: if a reference exists with the TGA extension (eg descr_model_strat) then a file with the same name and TGA.DDS file extension is a valid file.
Last edited by Gigantus; December 06, 2018 at 11:38 PM.