.gin and .abk sound formats (Need for Speed mw 2005)(help)

Codecs, formats, encoding/decoding of game audio, video and music
Zpectre87
Posts: 35
Joined: Sun Feb 07, 2016 10:48 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by Zpectre87 »

id-daemon2 wrote:Ahhh, I got it. It means your WAV file has some additional properties that neither my tool, nor SX.EXE can understand.

Please use only 16-bit WAV files with no additional segments.


Weird, I saved it as 16-bit PCM. Will double check, thanks. :)

EDIT: It keeps crashing... I'm using Audacity, exporting as WAV PCM 16-bit signed.
zimex25
Posts: 31
Joined: Wed Dec 09, 2015 11:59 am

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by zimex25 »

I read this topic and I have problem: How use abk_insert ?
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

Zpectre87 wrote:Weird, I saved it as 16-bit PCM. Will double check, thanks. :)

EDIT: It keeps crashing... I'm using Audacity, exporting as WAV PCM 16-bit signed.


Send me your WAV file
zimex25
Posts: 31
Joined: Wed Dec 09, 2015 11:59 am

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by zimex25 »

@id-daemon2 I have sx.exe and abkins.exe when run abkins.exe nothing work... Maybe I doing wrong few stuff
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

zimex25 wrote:@id-daemon2 I have sx.exe and abkins.exe when run abkins.exe nothing work... Maybe I doing wrong few stuff


How do you run it? Are all parameters correct?
zimex25
Posts: 31
Joined: Wed Dec 09, 2015 11:59 am

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by zimex25 »

id-daemon2 wrote:
zimex25 wrote:@id-daemon2 I have sx.exe and abkins.exe when run abkins.exe nothing work... Maybe I doing wrong few stuff


How do you run it? Are all parameters correct?

I don't know what parameters...
Zpectre87
Posts: 35
Joined: Sun Feb 07, 2016 10:48 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by Zpectre87 »

id-daemon2 wrote:Send me your WAV file


In the attachment.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

Zpectre87 wrote:
id-daemon2 wrote:Send me your WAV file


In the attachment.


This file works OK at my side.

Run this

sx.exe -raw -eaxa_blk 993_onhighnewsmall.wav -=xa.raw

and tell me the result
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

zimex25 wrote:I don't know what parameters...


Find my post where i explain how to use it. I don't have time for this now.
zimex25
Posts: 31
Joined: Wed Dec 09, 2015 11:59 am

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by zimex25 »

id-daemon2 wrote:It's time to try the first public version of ABK encoder. I played the very first Need for Speed long ago in 1995, when it was all new, then NFS 2,3,4 and Porshe. I'm glad I can do something for the community, hope you'll like it.

Usage:

ABK_insert [ABK file] [wav file] [sample № to replace]

Use it on engine ABKs. Never tested on anything else. Use mono 16-bit files only.

Numbers correspond to those we found before. 1,2 = idle, 3,4 = down throttle so on. Also note that 2000/4000/8000 rpm nominals may not be the same for all cars.

SX.exe must be in the same dir.

You need to run the tool several times to replace sounds you want. Every time it will output a file with additional "m" in the end, so you won't lose the original file. Make batch files if you need.

still do not understand...
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

Run it from command line, with 3 parameters. Example:

ABK_insert CAR_21_ENG_MB_EE.abk new_sound.wav 5
Zpectre87
Posts: 35
Joined: Sun Feb 07, 2016 10:48 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by Zpectre87 »

id-daemon2 wrote:
Zpectre87 wrote:
id-daemon2 wrote:Send me your WAV file


In the attachment.


This file works OK at my side.

Run this

sx.exe -raw -eaxa_blk 993_onhighnewsmall.wav -=xa.raw

and tell me the result


If this doesn't work, I'll do a system restore and try from there. I think there may be something wrong with my system. Weird, though, gin_tools work fine...

EDIT: sx.exe crashed. Which libraries do you need to run sx.exe? I think that's the problem. I'm on Windows 10, that may be another problem too. :P
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

Zpectre87 wrote:EDIT: sx.exe crashed. Which libraries do you need to run sx.exe?


How exactly it crashed? As far as I know, it doesn't need any libs.
Zpectre87
Posts: 35
Joined: Sun Feb 07, 2016 10:48 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by Zpectre87 »

id-daemon2 wrote:
Zpectre87 wrote:EDIT: sx.exe crashed. Which libraries do you need to run sx.exe?


How exactly it crashed? As far as I know, it doesn't need any libs.


Gives me that msgbox that it stopped working. No error message in prompt.

Running as admin doesn't work either. Which date is your file? Mine is from 10/2004.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

sx v3.01.01 (Sound eXchange) Sep 22 2004 by Dave Mercier, EAC

i give up, we're wasting time
Zpectre87
Posts: 35
Joined: Sun Feb 07, 2016 10:48 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by Zpectre87 »

I'll do a complete refresh of my system (it's been due). If it STILL doesn't work after that, then I'll give up and see what else I can do.

id-daemon2 wrote:sx v3.01.01 (Sound eXchange) Sep 22 2004 by Dave Mercier, EAC

i give up, we're wasting time


Mate, you don't have to get angry... The tool (Sound eXchange) simply won't work on Windows 10. That's it.

I ran it on Windows XP and it worked flawlessly. Thanks!
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by spider91 »

It works well on windows 10

http://puu.sh/n7if7/bcdd9141f8.png
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

Zpectre87 wrote:Mate, you don't have to get angry...


I was not angry at all, I was sad :(
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by id-daemon »

Zpectre87 wrote:gin_tools work fine...


It works fine, because it was made by me in 2015 with .net

And that SX.EXE is an Electronic Arts tool made in 2004.
Zpectre87
Posts: 35
Joined: Sun Feb 07, 2016 10:48 pm

Re: .gin and .abk sound formats (Need for Speed mw 2005)(help)

Post by Zpectre87 »

id-daemon2, have you been able to pinpoint which rpm are the game's samples? You said something about 2000, 4000 and 8000, and I'm not exactly sure it's like that, but some sounds seem to obey these criteria despite not reaching such rpm in the game (ID 44 for example, which is 911 GT2 sound).

There are a lot of unknown parameters in attributes.bin relative to sound. I believe those may be the solution to my earlier problem with the ABK files.

spider91 wrote:It works well on windows 10

http://puu.sh/n7if7/bcdd9141f8.png


Hence why I think my Windows 10 install is missing something, a redist or whatever crap that stops me from running sx.exe.

For now, though, sending files to and from Windows XP is working, so there's that I guess.