Jayveer / MGS-KMS-EVM-Noesis

Noesis plugin for Metal Gear Solid 2 Model (KMS, EVM) and Animation (MAR) files
9 stars 1 forks source link

How did you calculate the values needed for the read/write functions? #2

Closed So1idus closed 9 months ago

So1idus commented 9 months ago

I apologize for opening an issue, but could you explain how you calculated the values you passed into the read and write functions? I went as far as to read the GS User Manual and yet I still don't understand.

Jayveer commented 9 months ago

That's ok, I'm assuming this is for the textures considering it's to do with GS. It was a while ago when I made this but knowing the arguments to pass to the PS2 Unswizzling code was part trial and error, and part knowledge of how the mgs games generally structure their texture formats. That part will most likely differ for other games as they will have their own custom file formats to describe the layout of the textures.

So1idus commented 9 months ago

Yeah, I was talking about the unswizzling code, I see now I could have been clearer. I deeply appreciate the clarification, though I don't look forward to experimenting.