by Dan East » Apr 26, 2001 @ 11:07am
Okay, so to search for .bsp files, you will need to examine:<br>[pre]<br>/quake/id1/maps/*.bsp<br>For each enumerated pak#.pak file:<br> /quake/id1/pak#.pak/maps<br>For each enumerated pak#.pak.gz file:<br> /quake/id1/pak#.pak.gz/maps<br>For each enumerated Storage Card:<br> /Storage Card [#]/quake/id1/maps/*.bsp<br> For each enumerated pak#.pak file:<br> /Storage Card [#]/id1/pak#.pak/maps<br> For each enumerated pak#.pak.gz file:<br> /Storage Card [#]/id1/pak#.pak.gz/maps<br>[/pre]<br><br>Officially, Quake will stop searching for pak files in a particular directory if the numerical sequence is broken. For example, if you have the following pak files in a dir:<br>pak0.pak<br>pak1.pak<br>pak3.pak<br>the pak3.pak file will not be recognized by Quake since the pak2.pak is missing.<br><br>It would be far easier to reuse the C source for accessing pak files found in common.c, then to try and translate the VB back into C. After all, the Quake C source is where the VB author got the algorithm in the first place.<br><br>Dan East