The Forum is up for sale: XeNTaX Forum looking for new owner

Project cars 3

Post questions about game models here, or help out others!
JamesBone
n00b
Posts: 11
Joined: Sat Jan 08, 2022 9:43 am

Re: Project cars 3

Post by JamesBone »

watty256 wrote: Wed May 26, 2021 10:08 am
zimex25 wrote: Tue May 25, 2021 10:55 am How convert .tex into .dds?
1. Download HxD Editor (for example)
2. Drag on drop .tex file in HxD
3. Remove everything before .dds
4. Save on open in Photoshop.
This PC3 .tex file doesn't have .dds in it??? any ideas???

https://mega.nz/file/4XQF1KYC#huVrY7EOM ... 7dSWm5vJ19k
Thank you! I have successfully decrypted with ikskoks's tool and Skyth's key.
User avatar
Mike Oxmaul
n00b
Posts: 15
Joined: Fri Dec 05, 2014 2:54 pm
Location: Internet
Has thanked: 25 times
Been thanked: 4 times
Contact:

Re: Project cars 3

Post by Mike Oxmaul »

JamesBone wrote: Thu Jan 20, 2022 12:28 pmI have successfully decrypted with ikskoks's tool and Skyth's key.
Hi! What are the tools you are talking about? Can you please be more specific?
Nenkai
ultra-n00b
Posts: 4
Joined: Sat Jul 30, 2016 12:29 am
Been thanked: 9 times

Re: Project cars 3

Post by Nenkai »

Made tools for unpacking PAK & TOC with path names, and decrypting MEB.
https://github.com/Nenkai/PCarsTools
mono24
double-veteran
double-veteran
Posts: 826
Joined: Sat Nov 06, 2010 12:27 am
Has thanked: 430 times
Been thanked: 232 times

Re: Project cars 3

Post by mono24 »

Nenkai wrote: Thu Nov 10, 2022 2:41 am Made tools for unpacking PAK & TOC with path names, and decrypting MEB.
Is there a way to extract in a batch, as the tool is hardcoded to NOT accept usage like the following

Code: Select all

for /r %%G in (path_to_game\*.bff) do <tool.exe> <options> "%%G"
or

Code: Select all

for /r %%G in (path_to_output\*.meb) do <tool.exe> <options> "%%G"
If i where to extract based on a TOC, it will not allow "-o <path_to_output>" that's only allowed only while using "pak" and you must select only one *.bff at a time.
Decrypting "*.meb" in a batch its impossible as well.
Individual paths for each asset must be provided.

Unless i am missing something very obvious?


Also some *.meb assets like the attached one throw the following error:

Code: Select all

Unhandled exception. System.Exception: Expected POSITION stream in meb as first entry
   at PCarsTools.Model.MeshBinary.Load(String fileName) in C:\Users\nenkai\source\repos\PCarsTools\PCarsTools\Model\MeshBinary.cs:line 62
   at PCarsTools.Program.DecryptModel(DecryptModelVerbs options) in C:\Users\nenkai\source\repos\PCarsTools\PCarsTools\Program.cs:line 145
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at PCarsTools.Program.Main(String[] args) in C:\Users\nenkai\source\repos\PCarsTools\PCarsTools\Program.cs:line 25
sample.zip
You do not have the required permissions to view the files attached to this post.
Nenkai
ultra-n00b
Posts: 4
Joined: Sat Jul 30, 2016 12:29 am
Been thanked: 9 times

Re: Project cars 3

Post by Nenkai »

Made some fixes.
https://github.com/Nenkai/PCarsTools/releases/tag/1.0.1

No output directory for TOC handling is intended mostly due to how Project Cars GO works (where all files are not packed, but encrypted/compressed in-place).
gvse
ultra-n00b
Posts: 1
Joined: Fri Nov 11, 2022 6:28 pm

Re: Project cars 3

Post by gvse »

Hi Nenkai,

I replied to you at github (MikeVapour).
Thank you for the quick fix: the PC2 files unpack now correctly and there is no garbage data at the end of files.

I was wondering if you would look into making PC3 files compatible with PC2/AMS2. The conversion of tex is handled by headercutter.bms script, but PC3 mebs have a slightly different header (more data) compared to PC2/AMS2.

PC3 typical headers:
```
00 00 C0 01 00 01 10 00 00 00 00 00
```

PC2/AMS2 headers:
```
00 00 00 01 01 00 00 00
```

When it comes to tracks, I suspect there is a problem with .sgb64 files. Looking at process monitor I don't see AMS2 loading it. Asa result you end up "in limbo" with the skybox only. Ai go on about their business but the wolrd is missing. This happens even when I edit meb headers manually, replace bmt with mtx and tex with dds.
Is it something you could look into? I've exhausted my skills on this.
User avatar
Mike Oxmaul
n00b
Posts: 15
Joined: Fri Dec 05, 2014 2:54 pm
Location: Internet
Has thanked: 25 times
Been thanked: 4 times
Contact:

Re: Project cars 3

Post by Mike Oxmaul »

mono24 wrote: Fri Nov 11, 2022 2:14 am Is there a way to extract in a batch, as the tool is hardcoded to NOT accept usage like the following...
Hi! I used these snippets and they're work. Just save as .cmd/.bat files, place it in the directory where .bff / .meb files are present and launch.
Make sure you have a correct path to PCarsTools.exe and game directory.

Code: Select all

for %%a in (*.bff) do "C:\PCarsTools\PCarsTools.exe" pak -i "%%a" -g "C:\FFCR"

Code: Select all

for %%a in (*.imb) do "C:\PCarsTools\PCarsTools.exe" decryptmodel -i "%%a"
for %%a in (*.meb) do "C:\PCarsTools\PCarsTools.exe" decryptmodel -i "%%a"
Post Reply