Is there support anywhere for .cod archives?
I have found a loader to change textures, and that works, but no cod extractor.





Code: Select all
+--------------------+
| Screamer 4x4 *.cod |
+--------------------+
21 - Header (->Unique Pc HUNGARY<-)
3 - null
4 - Directory Length
// for each file
128 - Filename (null terminated, then filled with "." for the remaining bytes)
4 - Offset
4 - Length
Code: Select all
GoTo 24 0 ;
Get FNum Long 0 ;
Math FNum /= 136 ;
For n = 1 to FNum ;
Get FN String 0 ;
Set Off Long 136 ;
Math Off *= n ;
Math Off -= 8 ;
Math Off += 28 ;
GoTo Off 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Log FN FO FS FOO FSO ;
Next n ;

Code: Select all
ImpType Standard ;
GoTo 24 0 ;
Get FNum Long 0 ;
Math FNum /= 136 ;
For n = 1 To FNum ;
SavePos JP 0 ;
Get FN String 0 ;
Math JP += 128 ;
GoTo JP 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Log FN FO FS FOO FSO ;
Next n ;

