Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Project Gotham Racing 4 models (.pak_hrd)

Post questions about game models here, or help out others!
User avatar
Machinedramon
advanced
Posts: 77
Joined: Mon Apr 08, 2019 6:13 pm
Has thanked: 13 times
Been thanked: 42 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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 :[
YEAs
ultra-n00b
Posts: 3
Joined: Sat Jul 02, 2022 3:46 am
Been thanked: 1 time

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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
YEAs
ultra-n00b
Posts: 3
Joined: Sat Jul 02, 2022 3:46 am
Been thanked: 1 time

Re: Project Gotham Racing 4 models (.pak_hrd)

Post by YEAs »

Ok update, he was able to rip a model, so it is possible.
gpktm
beginner
Posts: 29
Joined: Mon May 17, 2010 9:58 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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?
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4285
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post by shakotay2 »

Could be helpful if you uploaded that .dat sample.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
gpktm
beginner
Posts: 29
Joined: Mon May 17, 2010 9:58 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4285
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4285
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post by shakotay2 »

and..
circle.jpg
Could become tedious, though.
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
gpktm
beginner
Posts: 29
Joined: Mon May 17, 2010 9:58 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4285
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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").
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
gpktm
beginner
Posts: 29
Joined: Mon May 17, 2010 9:58 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post by gpktm »

So is that round thing the only 3d model inside the file?
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4285
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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.)
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
gpktm
beginner
Posts: 29
Joined: Mon May 17, 2010 9:58 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4285
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post 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).
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
gpktm
beginner
Posts: 29
Joined: Mon May 17, 2010 9:58 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Project Gotham Racing 4 models (.pak_hrd)

Post by gpktm »

No worries. Thanks mate!
Post Reply