Doliman100 / ForzaTech-extraction-tools

Reverse engineering the structure of .carbin and .modelbin files from Forza game series.
GNU General Public License v3.0
31 stars 5 forks source link

Buffer out of bounds #3

Closed Pimmiecreep closed 3 months ago

Pimmiecreep commented 4 months ago

Error when trying to convert .modelbin using the tool.

Warning: Unknown root chunk type: 30050.
node:internal/buffer:86
    throw new ERR_BUFFER_OUT_OF_BOUNDS();
          ^

RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
    at boundsError (node:internal/buffer:86:11)
    at Buffer.readUInt32LE (node:internal/buffer:222:5)
    at Reader.readArray (file:///C:/Users/Pim/Downloads/FORZA/ForzaTech-extraction-tools-main/scripts/carbin_converter.js:35:35)
    at file:///C:/Users/Pim/Downloads/FORZA/ForzaTech-extraction-tools-main/scripts/carbin_converter.js:121:22 {
  code: 'ERR_BUFFER_OUT_OF_BOUNDS'
}

Node.js v20.15.1

Not a pro at this, I reinstalled Node.js and the Extraction Tools

Doliman100 commented 4 months ago

There is no .modelbin converter in this repository. I don't know why you passed a .modelbin file to the .carbin converter. It makes no sense.

Pimmiecreep commented 4 months ago

Some guy told me it could work and that he did it? Is there any other way of converting .modelling?

Doliman100 commented 4 months ago

Why do you need it? The .modelbin imports fine in 3DSimED except for material error messages. I tried to fix it, but without success. I don't know any .modelbin downgrade tool.

Pimmiecreep commented 4 months ago

Hmmm, that's weird, I need t It to import rims from forza5. But when I load it in 3Dsim it loads the material errors but no mesh

Doliman100 commented 4 months ago

Send me the .modelbin file.

Pimmiecreep commented 4 months ago

VOR_VFF102.zip

Doliman100 commented 4 months ago

image This file imports fine.

Pimmiecreep commented 4 months ago

What is happening to my file then? Because now im trying to convert a .carbin file and it converts but im importing no mesh

Doliman100 commented 4 months ago

https://github.com/Doliman100/ForzaTech-extraction-tools/issues/3#issuecomment-2225129802 I imported your file, so the file is ok. Maybe you don't have right folder structure? Cars folder should be in ...\media\Cars\ and wheels should be in ...\media\Cars\_library\scene\wheels\.

Pimmiecreep commented 4 months ago

And from there i should import to 3DSim right?

Doliman100 commented 4 months ago

Yes.

Pimmiecreep commented 4 months ago

Okay, Thankyou! Im sorry if i bothered you. But thankyou for your help!

SakuraiKira commented 3 months ago

hello,it's there any tutorial to get forza horizon 5's texture.

I follow your step to extra a car from FH5,but don't know how to get textures , there's no result by serach from google (maybe i missed it but i can't find some help).

Doliman100 commented 3 months ago

I don't think the texture question has any relation to this issue.