Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe

Test Drive Unlimited 2 [2011/BNK]

The Original Forum. Game archives, full of resources. How to open them? Get help here.
PeteTripper
ultra-n00b
Posts: 6
Joined: Sat Oct 09, 2010 7:00 pm

Re: Test Drive Unlimited 2 [2011/BNK]

Post by PeteTripper »

Thanks again for all the hard work guys.

vagos, It's no big issue but there is a problem with the dds, they don't open in rfactor, I needed to resave them. I looked at them in a hex editor and noticed the second lines between the original and the one I resaved were different. I thought maybe it had something to do with the converter you made? It's the same thing with both the terrain and the cars.


qwerty, I'm sorry you feel this way, I appreciate your work, even though I can't help because its beyond me. I tried to help but failed, my skills are elsewhere.
Here is some eye candy to brighten up the mood. :)
You do not have the required permissions to view the files attached to this post.
Knyazev
advanced
Posts: 40
Joined: Sun Feb 20, 2011 1:24 am

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Knyazev »

I found a example of structure of many game settings, which contain Havok engine.

I think, that these crypted *.xmb files have the same structure. 100%. ;-)


For example:

Code: Select all

<?xml version="1.0" encoding="ascii"?>
<hkpackfile classversion="7" contentsversion="Havok-7.1.0-r1">

	<hksection name="__types__">

		    <hkobject name="#0004" class="hkClass" signature="0x14425e51">
               <hkparam name="name">hkBaseObject</hkparam>
               <hkparam name="parent">null</hkparam>
               <hkparam name="objectSize">4</hkparam>
               <hkparam name="numImplementedInterfaces">1</hkparam>
               <hkparam name="declaredEnums" numelements="0"></hkparam>
               <hkparam name="declaredMembers" numelements="0"></hkparam>
               <hkparam name="flags">0</hkparam>
               <hkparam name="describedVersion">0</hkparam>
           </hkobject>

	</hksection>

</hkpackfile>

in TestDrive2.exe I found these lines:
Image

Havok PC Content Tools supported xml files.
All settings from games which contain a Havok Engine are stored in xml files.
Image

But, Eden Games crypted them (crypted *.xmb files) =\

Now it is necessary to decrypt them :-)
Last edited by Knyazev on Sat Mar 26, 2011 2:42 am, edited 2 times in total.
SoniKalien
beginner
Posts: 27
Joined: Sun Mar 13, 2011 4:02 am
Has thanked: 14 times
Been thanked: 17 times

Re: Test Drive Unlimited 2 [2011/BNK]

Post by SoniKalien »

Mellor, obviously you're in way over your head. Give up and go away will ya? You've ruined this thread.
xGTRacer128
ultra-n00b
Posts: 6
Joined: Thu Mar 24, 2011 5:26 pm

Re: Test Drive Unlimited 2 [2011/BNK]

Post by xGTRacer128 »

Help me pls! How to decrypt cpr file to english!???
You do not have the required permissions to view the files attached to this post.
Knyazev
advanced
Posts: 40
Joined: Sun Feb 20, 2011 1:24 am

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Knyazev »

MellorIsAPedophile

I think to you anybody any more won't help. You spoiled this topic!
Jessica
beginner
Posts: 23
Joined: Sat Mar 26, 2011 2:49 pm

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Jessica »

OK i am trying to help everyone that are having problem hopefully with my post it should help out other noobs like me :)

OBJECTIVE: to extract all the files into the right folder with the right file names so i could play this game fully extracted.

Step 1.
My first step is use this dos command in a batch file and rename this batch file extract.bat

Code: Select all

quickbms.exe -o tdu2.bms "c:\Program Files (x86)\Steam\steamapps\common\test drive unlimited 2" "c:\Users\Jessica\Desktop\quickbms\test" 
with this code (file name containing this code is tdu2.bms)

Code: Select all

IDString "XMBF"
Open FDDE big 1
Endian big
GetDString DUMMY 12
Get OFFS long
GoTo OFFS
Get DUMMY long
Get NUMHASHES long
Get HASHOFFSET long
Math HASHOFFSET += OFFS
Get NUMFILEREC long
Get FILERECOFFSET long
Math FILERECOFFSET += OFFS
If NUMHASHES != NUMFILEREC
  CleanExit
EndIf
For I = 0 < NUMHASHES
  GoTo HASHOFFSET
  Get HASH1 long
  Get HASH2 long
  Set EXT string ".bin"
  SavePos HASHOFFSET
  GoTo FILERECOFFSET
  Get FILESIZE long
  Get DUMMY long # compression?
  Get FILEOFFSET long
  SavePos FILERECOFFSET
  Math MEMSIZE = FILESIZE
  Math MEMSIZE x 4
  Log MEMORY_FILE FILEOFFSET MEMSIZE 1
  If MEMSIZE != FILESIZE
    Math MEMSIZE -= 4
    GetVarChr TMP MEMORY_FILE MEMSIZE long
    Math TMP ^= 0xD7A8E2D4
    PutVarChr MEMORY_FILE MEMSIZE TMP long
  EndIf
 
  GetVarChr HEADER MEMORY_FILE 0 long
  Math HEADER ^= 0xD7A8E2D4
  If HEADER == 0x584D4246
    Set EXT string ".xmb"
  ElseIf HEADER == 0x49474532
    Set EXT string ".ige"
  Else
    GetVarChr HEADER MEMORY_FILE 8 long
    Math HEADER ^= 0xD7A8E2D4
    If HEADER == 0x4B4E4142
      Set EXT string ".bnk"
    ElseIf HEADER == 0x57415645
      Set EXT string ".wav"
    Else
      GetVarChr HEADER MEMORY_FILE 12 long
      Math HEADER ^= 0xD7A8E2D4
      If HEADER == 0x2E324442
        Set EXT string ".2db"
      ElseIf HEADER == 0x584D4246
        Set EXT string ".xmb2"
      EndIf
    EndIf
  EndIf
 
  String NAME p= "%08X%08X%s" HASH1 HASH2 EXT
  FileXOR "\xD7\xA8\xE2\xD4"
  Log NAME 0 FILESIZE MEMORY_FILE
  FileXOR ""
Next I
It extracted all the map files to one folder with hashed file names which looks like this.

Folder name:

Code: Select all

c:\Users\Jessica\Desktop\quickbms\test


Extracted File Names:
Image


If I use the script with quickbms in gui mode it says cant find the files or wrong file type then it spat out 0 file found.

Step 2.

Make a new batch file by calling it extract2.bat and edit it by adding the following command:

Code: Select all

quickbms.exe -o binunpackerscript.bms "c:\Users\Jessica\Desktop\quickbms\test" "c:\Users\Jessica\Desktop\quickbms\test"
This is the code to use to further decrypt the bin files that were extracted from the map files in step 1:[/color]

Code: Select all

Set FULLNAME string ""
Set NAME string ""
Log MEMORY_FILE 0 0
PutVarChr MEMORY_FILE 0 4 long
GetDString DUMMY 8
GetDString ID 4
If ID != "KNAB"
  CleanExit
EndIf
GoTo 0x28
Get NUMFILES long
Get DUMMY long
Get FATOFFSET long
Math FATOFFSET += 8
Get DUMMY long
Get NAMESOFFSET long
Math NAMESOFFSET += 8
Get FILESORDER long
Math FILESORDER += 8
PutVarChr MEMORY_FILE 0 FILESORDER long
GoTo NAMESOFFSET
If NUMFILES != 0
  CallFunction Parser
EndIf

StartFunction Parser
  Get NAMESZ byte
  If NAMESZ > 0x7F
    String FULLNAME += NAME
    String FULLNAME += \
    Get FOLDERS byte
   If FOLDERS > 0x7F
     Get TMP byte
     Math TMP < 7
     Math FOLDERS & 0x0000007F
     Math FOLDERS | TMP
#     Print %FOLDERS%
   EndIf
    Math NAMESZ ^= 0xFF
    Math NAMESZ += 1
    GetDString NAME NAMESZ
    For I = 0 < FOLDERS
      CallFunction Parser
    Next I
  Else
    GetDString BASENAME NAMESZ
    String FULLNAME += BASENAME
    String FULLNAME += NAME
#   Print %FULLNAME%
   SavePos NAMESOFFSET
   GetVarChr FILESORDER MEMORY_FILE 0 long
   GoTo FILESORDER
   If NUMFILES > 0x100
     Get FILENUMBER word
   Else
     Get FILENUMBER byte
   EndIf
   SavePos FILESORDER
   PutVarChr MEMORY_FILE 0 FILESORDER long
   Math FILENUMBER *= 0x14
   Math FATOFFSET += FILENUMBER
   GoTo FATOFFSET
   Get OFFSET long
   Get SIZE long
   GetDString DUMMY 12
    Log FULLNAME OFFSET SIZE
   GoTo NAMESOFFSET
  EndIf
EndFunction Parser





EDIT: If I ran quickbms with 2nd code in a batch file command it seemed to be doing something.

Code: Select all

quickbms.exe -o binunpackerscript.bms "c:\Users\Jessica\Desktop\quickbms\test" "c:\Users\Jessica\Desktop\quickbms\test"
This seemed to be doing something it made a folder called c

Code: Select all

:\Users\Jessica\Desktop\quickbms\test\D_\Eden-Prog\Games\TestDrive2
(around 679Mb and 6358 files)

Step 3. (This is where I am stuck sorry folks I can't go further until I too get help lol)

Now my silly question is (after reading the very messy thread) how do i rename the files that were extracted from *.Map files and move them to the right folder?

I used a tool from Vegos to rename files but it didn't do anything :( All his programs doesn't work for me even though I could see the GUI and the APP seemed to be running ok but it just doesn't want to rename and move files to the right folder!!

My system is Windows 7 64 bit Ultimate with all the latest updates.

Thank you in advance.[/color]
Last edited by Jessica on Sat Mar 26, 2011 3:57 pm, edited 1 time in total.
vagos21
veteran
Posts: 128
Joined: Thu Feb 10, 2011 10:48 am

Re: Test Drive Unlimited 2 [2011/BNK]

Post by vagos21 »

ok, that's a better polite way of asking for some help, so here is the process, one last time, for running the game with the extracted files, not needing the big/map ones

here are some useful working files:
stuff.zip
and here's the process:

1. download the latest version of quickbms (0.4.1b) found here

2. make a folder somewhere (with enough disk space to extract all files).

3. drop in there quickbms and all the files included in the zip file.

4. right-click extractAll.bat and select Edit. the commands will pop up, which extract all big files.
a line is like this:
quickbms.exe xmbf.bms "c:\Program Files (x86)\Atari\TDU2\bigfile_RU_1.map" .
all you need to change (if needed) is the path to your map files -> "c:\Program Files (x86)\Atari\TDU2\bigfile_RU_1.map"
for example if you have TDU2 installed in "c:\games\TDU2", it will become "c:\games\TDU2\bigfile_RU_1.map"
save the changes and then run the extractAll.bat. this will take a while, extracting all big files into the folder you have created.

5. now your folder is full of bin files, with strange names like "01B65ABC1748B7E5.bin"

6. run filelist.cmd. this will rename all the bin files and build the folders with the right structure to be used by TDU2. after it's finished, you'll have a folder called "euro", and a few bin files left. since the process is still in development, we ignore them for now they don't seem to be in use yet.

7. move your "euro" folder to your TDU2 installed dir. actually you'll see that there's already a Euro folder in the TDU2 directory, so you'll want to MERGE them.

8. after this you're ready to play TDU2 with the extracted files. all you have to do now is MOVE your big and map files to another place, i don't suggest deleting them since they're too big for the default recycle bin size, so they'll be permanently deleted and if you mess up you'll have to re-install the game.

9. you can now run the game with the extracted files working.

that's all someone needs to do, if you can't follow this then i'm sorry there's nothing more i can do. and before going on asking questions like "how do i do this, how do i add that", this is ALL the progress that's been made, the game cannot be modded yet, hopefully if more ppl help it will happen soon too. this means there's NO packing files back to big/map files. this thread is about files modding and researching, not memory hacking the exe to get more money or changing positions and stuff like that. clear enough now?

good luck everybody.
You do not have the required permissions to view the files attached to this post.
Jessica
beginner
Posts: 23
Joined: Sat Mar 26, 2011 2:49 pm

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Jessica »

vagos21 wrote:ok, that's a better polite way of asking for some help, so here is the process, one last time, for running the game with the extracted files, not needing the big/map ones

here are some useful working files:
stuff.zip
and here's the process:

1. download the latest version of quickbms (0.4.1b) found here

2. make a folder somewhere (with enough disk space to extract all files).

3. drop in there quickbms and all the files included in the zip file.

4. right-click extractAll.bat and select Edit. the commands will pop up, which extract all big files.
a line is like this:
quickbms.exe xmbf.bms "c:\Program Files (x86)\Atari\TDU2\bigfile_RU_1.map" .
all you need to change (if needed) is the path to your map files -> "c:\Program Files (x86)\Atari\TDU2\bigfile_RU_1.map"
for example if you have TDU2 installed in "c:\games\TDU2", it will become "c:\games\TDU2\bigfile_RU_1.map"
save the changes and then run the extractAll.bat. this will take a while, extracting all big files into the folder you have created.

5. now your folder is full of bin files, with strange names like "01B65ABC1748B7E5.bin"

6. run filelist.cmd. this will rename all the bin files and build the folders with the right structure to be used by TDU2. after it's finished, you'll have a folder called "euro", and a few bin files left. since the process is still in development, we ignore them for now they don't seem to be in use yet.

7. move your "euro" folder to your TDU2 installed dir. actually you'll see that there's already a Euro folder in the TDU2 directory, so you'll want to MERGE them.

8. after this you're ready to play TDU2 with the extracted files. all you have to do now is MOVE your big and map files to another place, i don't suggest deleting them since they're too big for the default recycle bin size, so they'll be permanently deleted and if you mess up you'll have to re-install the game.

9. you can now run the game with the extracted files working.

that's all someone needs to do, if you can't follow this then i'm sorry there's nothing more i can do. and before going on asking questions like "how do i do this, how do i add that", this is ALL the progress that's been made, the game cannot be modded yet, hopefully if more ppl help it will happen soon too. this means there's NO packing files back to big/map files. this thread is about files modding and researching, not memory hacking the exe to get more money or changing positions and stuff like that. clear enough now?

good luck everybody.
OMG Kiss I love you thank you so much going to do it now :)

have a nice week end :)

PS would it be possible to pin your post onto the first page please it wil make it so much better for quick reference and tutorial?
Last edited by Jessica on Sat Mar 26, 2011 4:09 pm, edited 1 time in total.
vagos21
veteran
Posts: 128
Joined: Thu Feb 10, 2011 10:48 am

Re: Test Drive Unlimited 2 [2011/BNK]

Post by vagos21 »

Jessica wrote: This is the code to use to further decrypt the bin files that were extracted from the map
no you don't need to go that far, extracting bnks is not needed and will actually make things not work. just follow the instructions above and u'll get it all set.
P.S. the script to extract the big files is not the right one, i have the working one in the zip file attached
Jessica
beginner
Posts: 23
Joined: Sat Mar 26, 2011 2:49 pm

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Jessica »

vagos21 wrote:
Jessica wrote: This is the code to use to further decrypt the bin files that were extracted from the map
no you don't need to go that far, extracting bnks is not needed and will actually make things not work. just follow the instructions above and u'll get it all set.
P.S. the script to extract the big files is not the right one, i have the working one in the zip file attached
You instructions worked perfectly thank you so much!!

but there is only 1 problem, after moving and merging the euro folders to tdu2 main folder as well as moving away big and map files, game launcher wont launch :)

Now all it does is CTD Crash to desktop after launcher tries to launch the game.

Oh well thanks anyway...
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 4449 times
Contact:

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Mr.Mouse »

Mellor was deleted.
Knyazev
advanced
Posts: 40
Joined: Sun Feb 20, 2011 1:24 am

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Knyazev »

Jessica

To avoid check of game files, I advise to you to use my version of a TDU2 light launcher :-)
This launcher don't check the game files. ;-)

Version: 0.1. Perfectly works for me)

Install:
Unpack TDU2 Light Launcher_en.exe file to your TDU2 folder.
Run him.
You do not have the required permissions to view the files attached to this post.
Last edited by Knyazev on Sat Mar 26, 2011 5:35 pm, edited 2 times in total.
Jessica
beginner
Posts: 23
Joined: Sat Mar 26, 2011 2:49 pm

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Jessica »

Knyazev wrote:Jessica

To avoid check of game files, I advise to you to use my version of a TDU2 light launcher :-)
This launcher don't check the game files. ;-)
Thank you so much am going to try it now :)

Jess.
xoox

EDIT: PS can't use it i got steam version :( do you have a version that will work with steam please?

I even tried renaming the file and launch it by steam but steam detected it and refused to launch the game.
Last edited by Jessica on Sat Mar 26, 2011 5:38 pm, edited 1 time in total.
Knyazev
advanced
Posts: 40
Joined: Sun Feb 20, 2011 1:24 am

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Knyazev »

Jessica wrote:
Knyazev wrote:Jessica

To avoid check of game files, I advise to you to use my version of a TDU2 light launcher :-)
This launcher don't check the game files. ;-)
Thank you so much am going to try it now :)

Jess.
xoox

EDIT: PS can't use it i got steam version :(
sorry, I don't knew(

I will try create a new "TDU2 Light Launcher" which support a steam version)

Sorry for my bad english. Image
Last edited by Knyazev on Sat Mar 26, 2011 5:39 pm, edited 1 time in total.
Jessica
beginner
Posts: 23
Joined: Sat Mar 26, 2011 2:49 pm

Re: Test Drive Unlimited 2 [2011/BNK]

Post by Jessica »

Knyazev wrote:
Jessica wrote:
Knyazev wrote:Jessica

To avoid check of game files, I advise to you to use my version of a TDU2 light launcher :-)
This launcher don't check the game files. ;-)
Thank you so much am going to try it now :)

Jess.
xoox

EDIT: PS can't use it i got steam version :(
sorry, I don't knew(

I will try to create a new "TDU2 Light Launcher" which support a steam version)
You're teh best :) thanks so much !!!

Do you need my steam tdu2 game launcher?
Post Reply