Quantcast

Jump to content

» «
Photo

how to decode .rel file?

10 replies to this topic
maxspeedwind
  • maxspeedwind

    Player Hater

  • Members
  • Joined: 2 weeks ago
  • Aland

#1

Posted A week ago Edited by maxspeedwind, A week ago.

Hi guys, I've been studying how the game use sound and text for couple of days. I read the mission scripts decoded, found nowhere the subtitle and sound handle/hash. I guess there are other files associate text and sound hash, the files should be in GTA V\update\update.ref\x64\audio\config, like audioconfig.dat4.rel, but I cannot view it. Is there a way to view or edit .rel file now?


Mr.Arrow
  • Mr.Arrow

    God Save the Penis

  • Members
  • Joined: 08 Nov 2011
  • United-Kingdom

#2

Posted A week ago Edited by Mr.Arrow, A week ago.

Nope, same goes to GTA 4, but you can definitely play the sounds using openIV.

IgorX
  • IgorX

    3D

  • Members
  • Joined: 20 Aug 2009
  • None
  • Best WIP Mod 2014 [Grand Theft Auto 3D]

#3

Posted A week ago Edited by IgorX, A week ago.

Nope, same goes to GTA 4, but you can definitely play the sounds using openIV.

There's a tool which supports sounds.dat15 from gta 4.

As for gta 5, .dat54 contains about 17000+ audio names and metadata like time latency and etc. . It's important to edit this file in audio replacement because without it you get mixing of 2 songs. It's like to turn on 2 songs one time. =$


maxspeedwind
  • maxspeedwind

    Player Hater

  • Members
  • Joined: 2 weeks ago
  • Aland

#4

Posted A week ago

 

Nope, same goes to GTA 4, but you can definitely play the sounds using openIV.

There's a tool which supports sounds.dat15 from gta 4.

As for gta 5, .dat54 contains about 17000+ audio names and metadata like time latency and etc. . It's important to edit this file in audio replacement because without it you get mixing of 2 songs. It's like to turn on 2 songs one time. =$

 

 

what tool? and can be used to edit audioconfig of gta 5?


IgorX
  • IgorX

    3D

  • Members
  • Joined: 20 Aug 2009
  • None
  • Best WIP Mod 2014 [Grand Theft Auto 3D]

#5

Posted A week ago Edited by IgorX, A week ago.

 

 

Nope, same goes to GTA 4, but you can definitely play the sounds using openIV.

There's a tool which supports sounds.dat15 from gta 4.

As for gta 5, .dat54 contains about 17000+ audio names and metadata like time latency and etc. . It's important to edit this file in audio replacement because without it you get mixing of 2 songs. It's like to turn on 2 songs one time. =$

 

 

what tool? and can be used to edit audioconfig of gta 5?

Andrew's IV Audio Editor

It can edit dat15 file from gta 4 only. It doesn't work for gta 5 files.


maxspeedwind
  • maxspeedwind

    Player Hater

  • Members
  • Joined: 2 weeks ago
  • Aland

#6

Posted A week ago Edited by maxspeedwind, A week ago.

I just found a tool can open .rel file, here https://www.hex-rays..._freeware.shtml
 
I tried to open speech2.dat4.rel, and in 'string' window I saw some readable words as picture below.

 

72xbig.jpg

 

 

looks like sound definition, but I found no hash mentioned, then I opened audioconfig.dat4, I noticed the 'waveslots2.xml', but I didn't see the xml file in folder.

I think the tool is powerful but I have no idea how to use it, just post it here if someone is interested in this.

 

21opnwy.jpg

  • jedijosh920 and WildBrick142 like this

maxspeedwind
  • maxspeedwind

    Player Hater

  • Members
  • Joined: 2 weeks ago
  • Aland

#7

Posted A week ago Edited by maxspeedwind, A week ago.

I read some mission scripts found sentences like this sub_df51(&l_CFC, "FAM1AUD", "FAM1_TALK1", 9, 0, 0, 0))

 

It looks to define subtitle and voice, parameter FAM1AUD is obvious fam1aud.gxt2 which contains subtitle, FAM1_TALK1 I think means talk1 voice in fam1.awc.

 

I think in script it call sound with its name and in awc file we can only see hash, if I know the way it convert name to hash ....


IgorX
  • IgorX

    3D

  • Members
  • Joined: 20 Aug 2009
  • None
  • Best WIP Mod 2014 [Grand Theft Auto 3D]

#8

Posted A week ago

I read some mission scripts found sentences like this sub_df51(&l_CFC, "FAM1AUD", "FAM1_TALK1", 9, 0, 0, 0))

 

It looks to define subtitle and voice, parameter FAM1AUD is obvious fam1aud.gxt2 which contains subtitle, FAM1_TALK1 I think means talk1 voice in fam1.awc.

 

I think in script it call sound with its name and in awc file we can only see hash, if I know the way it convert name to hash ....

OpenIV can convert names to hash.


maxspeedwind
  • maxspeedwind

    Player Hater

  • Members
  • Joined: 2 weeks ago
  • Aland

#9

Posted A week ago

Unfortunately I converted FAM1_TALK1 to hash which is F322300A, but there is no such wave named F322300A in fam1.awc.

 

And I don't know what is l_CFC, also I don't understand g_3B2A/*{165}*/ = a_0 , I know a little about program.


maxspeedwind
  • maxspeedwind

    Player Hater

  • Members
  • Joined: 2 weeks ago
  • Aland

#10

Posted A week ago Edited by maxspeedwind, A week ago.

I checked functions, they simply put name as FAMAUD or FAM1_TALK into some global variables like g_3BCF, then system functions will handle these global variable to find hashed subtitle and .wav. It looks like not simply convert them to hash to match the files, system functions do more complicated things which I couldn't found out.

  • jedijosh920 likes this

maxspeedwind
  • maxspeedwind

    Player Hater

  • Members
  • Joined: 2 weeks ago
  • Aland

#11

Posted A week ago Edited by maxspeedwind, A week ago.

I've found a rule for .wav hash if it can be called a rule, like 0x19341800.wav, the file names of .wav are never bigger than 0x20??????, so I think the hash of .wav name is not directly converted from string like FAM1_TALK1 because that would made head of hash with random letter [A-F], why all hashs are between [0x000????? - 0x1???????], R* used a mask to convert them again? or is that a OpenIV problem?

 

Hash in subtitle file looks like converted from string like FAM1_TALK1, I tried to hash SS_FF\\FAM1_TALK1 or just TALK1 but matched none.

 

And both subtitle, .wav are not listed in normal speak sequence in respective file, they are random like sh*t.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users