VILE
Global Moderator
Posts: 653
|
Post by VILE on Apr 15, 2009 6:56:29 GMT -5
I was fiddling around with model swapping, when I found something very interesting. I found the offset that can edit the file size that is checked to verify the file authenticity. Example: If Ness's .pac is 20000 bytes and I modify it so it is 21000 bytes, the game will no longer find it valid, but if i edit the bytes that i found so they equal 21000, the game will now find the file valid. I'm thinking this could help with model swapping/stage editing.
EDIT: I forgot to mention, there are multiple offsets, one for each file embedded with in the file.
|
|
|
Post by spunit262 on Apr 15, 2009 11:39:51 GMT -5
Would this offset happen to be the 32 bit right after the TEX0/PLT0/ect, Because I noticed that but didn't think changing that would be enough for that to work. Also I was thinking of making a program called pacinsert that would make inserting stuff into pacs manually easier, so if this works I could add the ably to insert larger file to it.
|
|
VILE
Global Moderator
Posts: 653
|
Post by VILE on Apr 15, 2009 18:17:08 GMT -5
Would this offset happen to be the 32 bit right after the TEX0/PLT0/ect, Because I noticed that but didn't think changing that would be enough for that to work. Also I was thinking of making a program called pacinsert that would make inserting stuff into pacs manually easier, so if this works I could add the ably to insert larger file to it. You are talking about a different offset. These offsets control the file sizes of every file inside the file itself.
|
|
|
Post by spunit262 on Apr 15, 2009 18:45:53 GMT -5
Is this offset at 0x44 for the first file? Did you just insert Lucas' 00.brres in Ness .pac? Because if you did then that may only work with inserting a .brres into a pac. But that also lets me ignore the other .brres in the pac.
|
|
VILE
Global Moderator
Posts: 653
|
Post by VILE on Apr 15, 2009 18:51:59 GMT -5
Is this offset at 0x44 for the first file? Did you just insert Lucas' 00.brres in Ness .pac? Because if you did then that may only work with inserting a .brres into a pac. But that also lets me ignore the other .brres in the pac. That is similar to what i did but no. The file doesn't load if it has Lucas's brres file in place of Ness's.
|
|