Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New discoveries in the game's data files #19

Open
aybe opened this issue May 9, 2015 · 2 comments
Open

New discoveries in the game's data files #19

aybe opened this issue May 9, 2015 · 2 comments

Comments

@aybe
Copy link

aybe commented May 9, 2015

Just found a new type of polygon: 0x14

These are found on COMMON\CAM?S.PRM files, the following length is of 52 bytes (vectors + something ?), still trying to figure out what these are 😅

Could these relate to the replay post each race ?

EDIT:

I am running a PRM validator against files in WIPEOUT\COMMON, for what it's worth, I am trying to make it pass the test, unless we know the real content I am simply skipping bytes to try achieve 100% success rate.

With the code from your experiment rate was 41%, now it is 76% 😄

I think that'll be a significant milestone once we reach 100% as at least we'll be able to read files from end to end ... until we understand them.

Here's the excerpt of the above test, suggesting it's replay-related as there are no vertices:

snap0831

@aybe aybe changed the title New type of polygon found (0x14) New discoveries in the game's data files May 9, 2015
@aybe
Copy link
Author

aybe commented May 9, 2015

CLASS.PRM

Object 1 : LIGHTS

Vertices: 0
Polygons: 4

New polygons types:

  • 0x16 : 28 bytes
  • 0x15 : 16 bytes

Some light definition ⁉️

Object 2 : extru1

Vertices: 112 (offset 364)

snap0832

Then there is a strange group just below which looked like vertices (64) but i don;t know, looks like a 5 branch star though:
snap0833

Here are the 2 combined, star is on middle as cluster of dots:
snap0834

The only hint in the header is Index1 if you subtract 100, though ...

Polygons: 118 (see just below)
I have a high confidence in it since manual count yielded same count as in header but there is a block of 448 * 8 bytes I couldn't explain the meaning, after the vertices and before those polys. To find this count I started counting right before next object and climbed up until reaching 118 polys.

2 new types of polys:

  • 0x10: 28 bytes
  • 0x12: 36 bytes

(total size incl. header)

You can make graphs very quickly using https://plot.ly/plot.

TBC 😄

EDIT I know I've already seen this model in the game but can't remember what is it ?

@aybe
Copy link
Author

aybe commented May 9, 2015

SKY.PRM

This file does not comply with the format, the name of each object is 256 bytes instead of 16.

There are many strings in it.

For the first time the 4th component of vertices are used but IDK why ...

sphere4_2

XYZ
snap0835

XYZW
snap0836

Not sure it is ever used, there is such object in every track, please confirm

EDIT: NO1.PRM has the same 256 bytes name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant