nikez / gtav_audio_occlusion_documentation

MIT License
54 stars 15 forks source link

Native Voice doesn't work in addon interior room of native MLO #4

Open godlessssss opened 3 years ago

godlessssss commented 3 years ago

Hello, I'm trying to get occlusion working in the La Fuenta Blanca. This interior is in GTA natively, but there is an interior from UncleJust, that expands that interior to few more rooms (room4, room7...) etc. I've linked the rooms with portals (going to rework that tomorrow, because works only one-way for some reason), so the voice flows between rooms.

The main problem now is that, when I enter room4 or room7 with another person and door fully closes, the voice slowly cuts out. When someone opens the door, we can hear each other again. I've succesfully linked room4 with the corridor, so we can hear each other through the door, but it when both of us get inside, the voice cuts out.

I'm clueless where the problem might be. Is it something in ytyp or ymap? Maybe the ymt is missing something. Any help would be appreciated.

Thanks.

795232540.ymt.pso.xml.txt v_int_56.ytyp.xml.txt apa_ch2_03c_interior_v_ranchmilo.ymap.xml.txt

(GitHub doesn't support XML, had to upload it in TXT)

nikez commented 3 years ago

Help me understand this a bit better; Which rooms should have paths? I am talking about the default interior + the new rooms.

1 -> 4? 4 -> 1? etc

godlessssss commented 3 years ago

I somehow managed to link 1 -> 4 and 4 -> 1 through that door, so when I'm in room 1 and another guy is in room 4 we can hear each other. But when we are both in room 4, we cannot hear each other.

This is the ymt: 795232540.ymt.pso.xml.txt (for some reason the occlusion works only one-way, but we can hear each other - maybe I have an error somewhere?)

The paths that are yet to be done:

2 -> 1 1 -> 2

2 -> 3 3 -> 2

6 -> 1 1 -> 6

And then all limbo portals, but I will do that when I'm done with this.

These are my notes, dunno if they are gonna help or not: notes.md

So the main problem is, that when both players are in room 4, 6 or 7 they cannot hear each other.

nikez commented 3 years ago

I wonder; do you also update the Ambient Zone? Idk if the box could be too small?

godlessssss commented 3 years ago

I actually tried adding echo to room 4, just to test out, if everything was okay, but it didn't work. I then used the same file in another one-room interior, changed the position etc. and it worked for some reason. Maybe there is a position error?

These are the files I'm streaming. v_int_56_game.dat151.rel.xml.txt v_int_56_mix.dat15.rel.xml.txt

fxmanifest.lua

fx_version 'cerulean'
game 'gta5'

this_is_a_map 'yes'

data_file 'AUDIO_GAMEDATA' 'audio/v_int_56_game.dat' -- dat151
data_file 'AUDIO_DYNAMIXDATA' 'audio/v_int_56_mix.dat' -- dat15

files {
  'audio/v_int_56_game.dat151.rel',
  'audio/v_int_56_mix.dat15.rel',
}
nikez commented 3 years ago

Nah man, is the building larger than the original one? In actual square units? Get the bounding box sizes and make sure its setup

manzarek123 commented 3 years ago

Your dat151 interior archetype name is incorrect it should be v_ranch.

I am also facing an issue with this kind of mappings (Where it is a game base interior that has been extended) How do we deal with dat151 as the game already have an entry for this interior but without all the custom added rooms?

godlessssss commented 3 years ago

Oh, that actually fixed the sound issue. We can properly hear each other now. For some reason I thought, that room4 was in v_int_56. Now the only problem is probably my bad portal linking. Because sound as I mentioned earlier works only one-way. When we enter the room4 we are fine, we can hear each other and so on. When we leave back to the original interior, the voice cuts out. Might be because of my bad portal linking?