gemidyne / microtf2

A custom gamemode for Team Fortress 2 - Players compete against each other to get the most points by playing a series of rapid fire microgames in order to win the round!
https://www.gemidyne.com/projects/microtf2
GNU General Public License v2.0
30 stars 16 forks source link

Map seems to be having some missing mp3 issues here. #234

Closed gdfsgdfg closed 2 years ago

gdfsgdfg commented 2 years ago

Untitled

safalin1 commented 2 years ago

This can happen if the gamemode is not installed on the server correctly, or that your client-side sound caches have become corrupt.

Client-side audio cache corruption happens rarely, but has been seen before. Try deleting any sound.cache files in your local client TF2 folder.

If the issue persists, this is most likely a gamemode install issue on the server - the install guide can help in those cases: https://github.com/gemidyne/microtf2/wiki/How-to-install-the-gamemode

gdfsgdfg commented 2 years ago

All sound.caches are cleared I know about that bug myself, it only seems that the typing word boss minigame is the only one missing the mp3s mostly for the music I think. If you don't have that on your side then I'm not sure. Might as well blame it on sm 1.11 I guess.

I am using the map from releases and compiled the newest plugin version ya got there so that can't be it.

safalin1 commented 2 years ago

I have been looking more about this...

Source is saying it is failing to load {.wav, }.wav and version.wav. We use a {version} tag in sound paths within the plugin that means that when we release a new version of the plugin & map, all new paths are used, so we sidestep the Source sound cache corruption bug

An example path in the screenshot you provide should be: #define BOSSGAME7_SFX_BOSS_START "gemidyne/warioware/{version}/bosses/sfx/drpa_bossstart.mp3"

The {version} tag above is replaced with the current gamemode version (v5_2b), so this path should become: #define BOSSGAME7_SFX_BOSS_START "gemidyne/warioware/v5_2b/bosses/sfx/drpa_bossstart.mp3" This indicates that the plugin is not doing that {version} token replacement at all.

From looking at the source code it looks like this is indeed a bug, as I can see it doing the token replacement when it's preloading the sounds, but not when playing in certain cases.

I'll keep looking into it and keep you updated

safalin1 commented 2 years ago

I have pushed an optional release which should fix this

gdfsgdfg commented 2 years ago

Nice, I'll see the outcome if people vote for wario again.