Grocel / 3D-Stream-Radio

It is an spawnable scripted entity for Garry's Mod that allows you to play online streams and local files as 3D world sound.
https://steamcommunity.com/sharedfiles/filedetails/?id=246756300
17 stars 4 forks source link

UI Bugged First Time Opening Audio File #15

Closed Peekofwar closed 1 year ago

Peekofwar commented 1 year ago

I ran into a perculiar bug today when I went to touch Stream Radio... When I first open an audio file, the UI loads in in a buggy state. At first nothing appears wrong when you look at the interface and tooltips and button rollover effects work normally and display correct tooltips, however when you attempt to actually interract with them, it seems as though the buttons are not where they should be.

At first load of the stream player UI, the button order is as follows: Pause, Stop, Decrease Volume, Increase Volume, Timeline, Back. image However, if you exit the player and then open the file again, the interface loads with this layout: Pause, Stop, Previous Track, Next Track, Decrease Volume, Increase Volume, Loop Mode,, Timeline, Back. This is the order in which interactions trigger even if the previous button order is displayed. image

https://github.com/Grocel/3D-Stream-Radio/assets/10189526/e24bee37-a1d6-4614-9748-8c304f96bbee

For additional context: This bug was encountered whilst playing on a dedicated server that had just been restarted (also meaning all addons were freshly updated).

Grocel commented 1 year ago

Thanks of that well written report. The visuals confirms the addon to be up to date. I will try to fix this.

Apparently there is a networking issue, so the client is out of sync to the server when a playlist file is first opened per radio entity. When the radio opens a playlist file again, it will work properly for rest of the entity's existence.