Error when trying to extract files from the .ark file inside amplitude

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Squididly
Posts: 8
Joined: Thu Nov 10, 2016 4:32 am

Error when trying to extract files from the .ark file inside amplitude

Post by Squididly »

I'm trying to extract files from amplitude but it gives me an error this error when i use the script
Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error when trying to extract files from the .ark file inside amplitude

Post by aluigi »

I have just updated the script to version 0.1.1:
http://aluigi.org/bms/amplitude.bms
Squididly
Posts: 8
Joined: Thu Nov 10, 2016 4:32 am

Re: Error when trying to extract files from the .ark file inside amplitude

Post by Squididly »

seems to give me the same error
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error when trying to extract files from the .ark file inside amplitude

Post by aluigi »

Provide the archive.
Squididly
Posts: 8
Joined: Thu Nov 10, 2016 4:32 am

Re: Error when trying to extract files from the .ark file inside amplitude

Post by Squididly »

you want the whole .ark file? If so I uploaded it on my drive https://drive.google.com/file/d/0B85j0y ... 9lZE0/view
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error when trying to extract files from the .ark file inside amplitude

Post by aluigi »

No, it works perfectly.
Probably you are still using the old version of the script, check the first line of the script which contains the version.
Squididly
Posts: 8
Joined: Thu Nov 10, 2016 4:32 am

Re: Error when trying to extract files from the .ark file inside amplitude

Post by Squididly »

you were right i thought i copy and pasted my bad. thank you for fixing it
Squididly
Posts: 8
Joined: Thu Nov 10, 2016 4:32 am

.NSE files

Post by Squididly »

while looking at all the files I found where the audio tracks for each song and I extracted them using psound,
but i dont have proper file names for them and some of them are slowed down and possibly missing.
im just wondering if its possible to properly extract them with quickbms.
I included one of the files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error when trying to extract files from the .ark file inside amplitude

Post by aluigi »

It's raw Playstation compressed audio.
Squididly
Posts: 8
Joined: Thu Nov 10, 2016 4:32 am

Re: Error when trying to extract files from the .ark file inside amplitude

Post by Squididly »

I'm not sure if this is still the right place to post but its still related to Amplitude.
I found the older demo version of the game and wanted to extract the .ark file but if I try to use the script it gives me a memory allocation error.
I'm assuming this is because its an older build of the game since I was able to extract the .ark file in the P.O.D. demo which seems to use the latest build of the game.
I was just wondering if i could get any help extracting this file
https://drive.google.com/file/d/1_h_r9u ... OSP6G/view

and here is what quickbms gives me whenever i try to extract it using the script

Code: Select all

by Luigi Auriemma
e-mail: me@aluigi.org
web:    aluigi.org
        (Oct 20 2019 - 14:45:05)

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

- GUI mode activated, remember that the tool works also from command-line
  where are available various options like folder scanning, filters and so on

- select BMS script. type ? for using the content of clipboard like a script
- select input archives/files, type * for the whole folder and subfolders
- select output folder where extracting files
- open input file K:\random iso files\amplitude\demo tracks\MAIN.ARK
- open script K:\random iso files\amplitude\quckbms\amplitude.bms
- set output folder K:\random iso files\amplitude\demo tracks\demo extract

  offset           filesize   filename
--------------------------------------

- error in src\extra\xalloc.c line 618: xdbg_malloc()

Error: memory allocation problem
       Not enough memory resources are available to process this command.


press ENTER to quit
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error when trying to extract files from the .ark file inside amplitude

Post by aluigi »

http://aluigi.org/bms/amplitude_demo.bms

The format is slightly different (and simpler) so it required a new script.
Squididly
Posts: 8
Joined: Thu Nov 10, 2016 4:32 am

Re: Error when trying to extract files from the .ark file inside amplitude

Post by Squididly »

thank you so much
now i know that the .nse files are audio files however these files also have their own respective .bnk file which
while researching this i noticed there was a script for gh1 to extract the sound files so i was just wondering
if its possible to do the same with the amplitude files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error when trying to extract files from the .ark file inside amplitude

Post by aluigi »

NSE has playstation adpcm data.
BNK has a "SAMP" magic containing what they look like names of instruments/effects.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error when trying to extract files from the .ark file inside amplitude

Post by aluigi »

I made a script, I will improve it when I will have more samples in the future:
http://aluigi.org/bms/bnk_nse.bms

*edit* yeah the format of bnk is different than the one parsed in the gh1_bnk_nse.bms script
Squididly
Posts: 8
Joined: Thu Nov 10, 2016 4:32 am

Re: Error when trying to extract files from the .ark file inside amplitude

Post by Squididly »

So while i was messing around with the demo version I noticed that in the demo files there are text files that you can edit but in the release version of the game its missing the text files. Now i found a .bin file that might contain the text files the game uses to load song data. I was curious to see if its possible to extract the .txt files that might be contained in it?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error when trying to extract files from the .ark file inside amplitude

Post by aluigi »

Yeah there are the names of the text files and then a sequence of strings and 32bit fields but not easy to parse.
If you want to edit something, it's better if you use a hex editor without changing the structure and size of the file.