Closed Markus1812 closed 3 years ago
My first achievement is, that I got "the correct" filename. At least, FiveM is loading/streaming the file now.
First I used:
{archetype} ^ {(int) (mlo.x * 100)} ^ {(int) (mlo.y * 100)} ^ {(int) (mlo.z * 100)} & 0xffffffff
85189926 ^ 32768 ^ -58059 ^ 6059 & 0xffffffff = -85168200
In Two's complement, -85168200 = 11111010111011000110111110111000
And when we take the binary number, and put it back to decimal (without Two's complement)
11111010111011000110111110111000 = 4209799096
And the file 4209799096.ymt
actually gets requested/downloaded/loaded by GTA when getting near the hospital interior linked above.
The interesting thing is, that 4209799096
is to big for a Two's complement Int32 number, but it seems as GTA expects filenames to be like this? The next problem is, that CodeWalker won't allow me to put that number in the .ymt, because its to big. But I'll try other methods again later today and will report, when I got further news.
(and no, 4209799096.ymt is not a default GTA file)
Send me the ymap + ytyp and I can look at it
Hey, i am trying to implement the Audio Occlusion files for this interior: https://github.com/Evgenius33/Pillbox-Hospital-Interior
The dat151 and dat15 files are already working thanks to your documentation and Codewalker. I already tested them and I got reverb/echo in the hospital rooms.
My problem is, that the *.ymt file doesn't even get downloaded by fivem, because (my guess) I think the game doesn't request these files from streaming?
What I have done:
phxlsmc_interior_col
(hash: 85189926)85189926 ^ Math.floor((327.6865 * 100)) ^ Math.floor((-580.5995 * 100)) ^ Math.floor((60.59223 * 100)) & 0xffffffff
= -8516819985189926 ^ 32768 ^ -58059 ^ 6059 & 0xffffffff
= -85168200-85168198
,-85168199
,-85168200
as Occlusion Hash (and InteriorProxyHash, DestIneriorHash)strlist
and searched for these files. They never showed up and never got added to the cache index.Maybe important info:
*.ymt
files inupdate\update.rpf\x64\audio\occlusion.rpf
. None of them has a filename with a negative number?Files (these are xml files, but Github only allows them as .txt)
phxlsmc_interior_col_mix.dat15.rel.xml.txt phxlsmc_interior_col_game.dat151.rel.xml.txt -85168198.ymt.pso.xml.txt
I hope you have an idea, what I am doing wrong. When I figured everything out, I plan to extend this documentation with my findings and to upload the audio files to the hospital repository. Thanks.