Sounds (Burnout Paradise): Difference between revisions

m
Updated common data type link.
mNo edit summary
m (Updated common data type link.)
Line 87:
 
=== Replacing a registry entry ===
Generally, replacing a registry entry is unnecessary. If changing the name is required, however, it can be done. When viewing the resource using a hex editor, by finding the associated <code>gamedb://</code> path (which includes the name of the file), an entry can be updated to use a new name. 16 bytes before the start of the string is the hash of that string. Using Bo98's [https://bpr.bo98.uk/cgssound-playback-name/ online hasher], the new string can have a [[CommonSound Datahash Types| (Burnout Paradise)#CgsSound::Playback::Name|namesound hash]] generated and the old hash and string can be replaced, effectively replacing the entry.
 
Hashes for streams are different—they are hashes of the file name in the <code>gamedb://</code> string, such as <code>Adam_Ant</code> or <code>RaceStartRolling</code>. It is important to get this right as this is how the game will find the file to read from.