On Fri, 13 May 2005 02:58:23 -0700
Stephen Micheals <[EMAIL PROTECTED]> bubbled:

> http://www.geocities.com/cofrdrbob/bspformat.html

First thanks for that spec, I already found out that the .bsp contains a
zip structure at the end.

One more question:

For example, I took de_dust.bsp and did a zip file listing.
[output]
Archive:  de_dust.bsp
warning [de_dust.bsp]:  10131516 extra bytes at beginning or within zipfile
  (attempting to process anyway)
    testing: materials/maps/de_dust/de_dust/tilefloor02_640_1232_72.vmt   OK
    testing: materials/maps/de_dust/de_dust/tilefloor02_-400_1408_72.vmt   OK
    testing: materials/maps/de_dust/de_dust/tilefloor02_0_1648_72.vmt   OK
    testing: materials/maps/de_dust/de_dust/tilefloor02_8_2184_72.vmt   OK
    testing: materials/maps/de_dust/de_dust/tilefloor02_1024_1248_72.vmt   OK
    testing: materials/maps/de_dust/de_dust/tilefloor02_640_1024_72.vmt   OK
    testing: materials/maps/de_dust/de_dust/tilefloor02_0_1376_72.vmt   OK
[/output]

So, how do I decode the tilefloor02_640_1232_72.vmt to the corresponding
material file?
Is it always ("%s_%d_%d_%d.%s", file name, pos1, pos2, pos3,
                                extension) and only for vmt's?

So the right tile would be: cstrike/materials/de_dust/tilefloor02.vmt

Do I have to parse the zip file that way:
- first directory is file type
- second and third is map
- fourth and rest is the file itself in cstrike
?


And how should I get the correct files for that:
[output]
    testing: materials/maps/de_dust/cubemapdefault.vtf   OK
    testing: materials/maps/de_dust/c640_1232_72.vtf   OK
    testing: materials/maps/de_dust/c-400_1408_72.vtf   OK
    testing: materials/maps/de_dust/c0_1648_72.vtf   OK
    testing: materials/maps/de_dust/c8_2184_72.vtf   OK
    testing: materials/maps/de_dust/c1024_1248_72.vtf   OK
    testing: materials/maps/de_dust/c640_1024_72.vtf   OK
    testing: materials/maps/de_dust/c0_1376_72.vtf   OK
    testing: materials/maps/de_dust/c120_-1648_144.vtf   OK
[/output]

Only found a materials/shadertest/cubemap.vtf

Regards,
Martin

-- 
MyExcuse:
The kernel license has expired

Martin Zwickel <[EMAIL PROTECTED]>
Research & Development

TechnoTrend AG <http://www.technotrend.de>

Attachment: pgp66MPpg9jNQ.pgp
Description: PGP signature

Reply via email to