Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- format 1: 12 bytes
- format 2: 12 bytes (has texture count in level pgms first byte)
- format 3(final): 12 bytes (has texture count in level pgms first byte)
- format 3
- pgms header 12 bytes
- PGMS 00 00 00
- newyk_l1.lpc
- 50 47 4D 53 94 0B 37
- first for bytes don't change, the PGMS
- next three are file size in little endian order
- in calculator sci mode hex mode, insert the values from right to left, 37, next 0b, last 94
- value in bytes is 3607444
- this does not include the the last files:
- newyk_l1_aidx.dat
- newyk_l1_wpts.dat
- newyk_l1_lpts.dat
- newyk_l1_bbox.dat
- newyk_l1_skel.dat
- newyk_l1_scpt.dat
- newyk_l1_code.dat
- newyk_l1_text.txt
- newyk_l1_apos.dat
- pgms data starts with xV4
- 78 56 34 12 06
- or
- 78 56 34 12 00
- Unsure as compressed
- 00 00 00
- texture count
- 00 00
- first value is for 255 and under
- second value is for if there is 256+ textures in the level
- textures
- 44 bytes
- first four bytes contain the texture file size, minus the 44 bytes
- size stored in little endian order
- airstairs1
- 60 1D 00 00
- 1d, then 60
- 7520 bytes
- can use three values
- Demo 1's final_dm has seven square twiddled 256 x 256 textures, not the usual vq for 256.
- AC AA 02
- 02 AA AC
- 174764 bytes
- (The size info is the best one to go with. demo 2's newyk_l1 shows the dirt texture is 128 x 128, but the file size info is correct. It is actually 256 x 256.)
- also contains texture name, length, and width, and some other data
- next is the texture data itself, a .pvr without a 16 byte header
- two formats, square twiddled and vq, both have 1555 alpha, textures must be square(same length/width)
- square twiddled: 8, 16, 32
- vq(compression): 64, 128, 256, 512, 1024
- pgms level data and internal models(if any)
- Halp!
- pgms data end
- XXXX(for demo 2 and final format, demo 1 has some data stored in different locations)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement