Page 2 of 4

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Sat Jul 02, 2022 3:08 pm
by Machinedramon
Well, its a bit complex, as said, there is no tools that I know of, but although there are not tools, and honestly I'm a bit lazy to find any of my scripts, if you can unpack the data using the zlib libraries(at least that's what I did using python) you would be able to get raw files, the structure is fairly complex cause there is a lot of information how the game renders vehicles, from the illuminance of the vertexes to the normals, usually you will find something like vertex like information repeated and then the faces, faces are in groups from each sumbaterial....
i have unpacked before and I know of somebody that was able to work with the raw data and extract the 3d data, but honestly, it not easy nor fast.... so yeah, unless you have programming knowledge + 3d raw files knowledge, rn as is there is nothing you can do to get them models :[

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Sat Jul 02, 2022 7:57 pm
by YEAs
okay actually i think i've found a way to get the models, ninja ripper 2.0.9 has support for xenia, so i think it'd be possible to rip the models

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Sun Jul 03, 2022 5:24 am
by YEAs
Ok update, he was able to rip a model, so it is possible.

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Wed Aug 24, 2022 10:31 am
by gpktm
Can you assist with this, please? I am trying to extract a model from PGR3. I managed to extract the pak_hrd and end up with an SCNE folder that contains a .dat file, after that point, I can't find any solution moving forward. I've heard that PGR4 has the same files as 3. You reckon you can give it a go and see if you can extract the file?

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Wed Aug 24, 2022 2:46 pm
by shakotay2
Could be helpful if you uploaded that .dat sample.

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 1:50 am
by gpktm
Oh, bugger! Sorry mate, I was under the impression that I did already.

No worries, please see attached. Keep in mind that this is a file that I have found in some other forum. By coincidence is exactly the model that I need, so hopefully what the guy uploaded is the actual model and not something else.

https://sharemods.com/xm499p0l4x7d/00000000.dat.html

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 6:03 am
by shakotay2
Thanx! I see 77 assumed vertices. But the big rest of the data looks to me as if it were still compressed.
Which decompression did you use on the pak_hrd file? I assume zlib. And how? offzip?

Funny, when I offzipped one of these headered blocks I got a face indices block:
.
FIs.jpg

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 6:29 am
by shakotay2
and..
circle.jpg
Could become tedious, though.

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 10:21 am
by gpktm
Hi again

For extracting the content from .pak_hrd I've used Quick BMS. Please see link below for the original pak.hrd file.
https://sharemods.com/d01fze02utph/Original.7z.html

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 10:44 am
by shakotay2
Thanks. .dat/pak_hrd seem to be almost the same files, except for the pak_hrd missing 24 headerbytes and some bytes at the end, starting with 4D495343 ("MISC").

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 11:03 am
by gpktm
So is that round thing the only 3d model inside the file?

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 11:16 am
by shakotay2
There's 83 assumed headers, but without knowing what's behind it you'll need to decompress/examine each block separately.
(Probably offzip loses some data. We'll have to check for the usize value in the headers, if any.)

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 11:23 am
by gpktm
OK... How do I do this, please? I have no clue about programming. The Ninja Ripper that the other guy mentioned above, doesn't do any job? I wouldn't mind paying for it, as long as I knew that it works.

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 11:42 am
by shakotay2
gpktm wrote: Thu Aug 25, 2022 11:23 am OK... How do I do this, please? I have no clue about programming.
Well, that's not explained in four sentences. Just wait 'till I found some time, sooner or later.
.
whatever_GothamRacing.jpg
Or..
The Ninja Ripper that the other guy mentioned above, doesn't do any job? I wouldn't mind paying for it, as long as I knew that it works.
Didn't test a ripper for years. The ones I knew (including the Ninja) came with no charge and usually worked (sometimes only a scene shot, though, no T-pose and so).

Re: Project Gotham Racing 4 models (.pak_hrd)

Posted: Thu Aug 25, 2022 1:16 pm
by gpktm
No worries. Thanks mate!