Error trying to extract from Assetto Corsa .acd files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
brh56
Posts: 5
Joined: Fri Jan 12, 2018 3:37 pm

Error trying to extract from Assetto Corsa .acd files

Post by brh56 »

Good day all.

I just downloaded and extracted quickbms v0.8.2a. I added the 3 required assetto_corsa scripts and tried the extraction:

Code: Select all

C:\Users\Bjoern\Downloads\AssettoCorsa\apps\quickbms>quickbms -e assetto_corsa_acd.bms .\cars\nagp_mercedes_amg_gt .\data

QuickBMS generic files extractor and reimporter 0.8.2a
by Luigi Auriemma
e-mail: me@aluigi.org
web:    aluigi.org
        (Jan  8 2018 - 13:27:53)

                   quickbms.aluigi.org  Homepage
                            zenhax.com  ZenHAX Forum
                               @zenhax  Twitter & Scripts


- start the scanning of the input folder: .\cars\nagp_mercedes_amg_gt
- open input file C:\Users\Bjoern\Downloads\AssettoCorsa\apps\quickbms\cars\nagp_mercedes_amg_gt\.\animations\car_door_L.ksanim
- open script assetto_corsa_acd.bms
- set output folder .\data

  offset   filesize   filename
--------------------------------------
KEY animations -> 51-57-36-177-246-209-74-116

Error: incomplete input file 0: C:\Users\Bjoern\Downloads\AssettoCorsa\apps\quickbms\cars\nagp_mercedes_amg_gt\animations\car_door_L.ksanim
       Can't read 2 bytes from offset 00003ec8.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0   100%   16076      16072      . offset 00003ec8

Last script line before the error or that produced the error:
  125 get TMP long



Thanks for your continued work for us sim racers.

Regards,
Bjoern
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error trying to extract from Assetto Corsa .acd files

Post by aluigi »

You must select the file with acd extension as input file.
Your error was to select the whole folder instead of the single file.
brh56
Posts: 5
Joined: Fri Jan 12, 2018 3:37 pm

Re: Error trying to extract from Assetto Corsa .acd files

Post by brh56 »

Of course, sorry about that.
:oops:
brh56
Posts: 5
Joined: Fri Jan 12, 2018 3:37 pm

Re: Error trying to extract from Assetto Corsa .acd files

Post by brh56 »

Now that I have successfully extracted the .ini files and modified one car.ini file, I would like to reimport the file back into data.acd. That didn't seem to work.
So what is wrong with this command:

Code: Select all

quickbms assetto_corsa_acd_rebuilder.bms .\cars\nagp_mercedes_amg_gt\data.acd .\data


Note that the size of the original data.acd file is 248Kb and the data.acd.rebuilt is 2.3Mb, not sure what happened here.


Thank you,

Bjoern
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error trying to extract from Assetto Corsa .acd files

Post by aluigi »

No need to reimport the files since they work perfectly if you leave them in the data folder.
Additionally the script can't be used for reimporting.
I made a script for recreating the acd archive but it's not necessary.
brh56
Posts: 5
Joined: Fri Jan 12, 2018 3:37 pm

Re: Error trying to extract from Assetto Corsa .acd files

Post by brh56 »

I don't understand. I changed the car.ini file and it has to be updated into the data.acd file, not so?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error trying to extract from Assetto Corsa .acd files

Post by aluigi »

It's enough that you move the whole "data" folder where is located the original data.acd file.
I don't remember if you have to delete data.acd for forcing the game to read the data folder.
brh56
Posts: 5
Joined: Fri Jan 12, 2018 3:37 pm

Re: Error trying to extract from Assetto Corsa .acd files

Post by brh56 »

aluigi wrote:It's enough that you move the whole "data" folder where is located the original data.acd file.
I don't remember if you have to delete data.acd for forcing the game to read the data folder.

I have no idea what you mean with those statements. All I want to do is extract the car.ini file from the data.acd file and put it back into the data.acd file, that's it.

Anyone else is welcome to chime in here.