Jump to content
  • 0

Very bizarre sound problem


Szuran

Question

Hi, I'm having a strange sound problem.
 

Video of it: https://www.youtube.com/watch?v=fots2BoWNI8

 

Here's the explanation:

1. I have 5 music files - L2MUSx, where x is the number of the music piece, from 1 to 5
2. They are defined properly in SNDINFO - as you see in the video
3. They are tied to very simple scripts that play them, for example:
 

script "MusB" (void)
{
    PlaySound(0,"L2MUS2",chan_auto);
    Floor_LowerToLowest(94,80);
    if(mus==2){
    mus+=1;
    }
}


Problem:

The game completely confuses the order of these files. When a script calls for L2MUS1, it plays L2MUS2. Same goes for L2MUS3 and L2MUS4.

 

I tried this on 3 computers. I also asked @Ermin for help and he copy-and-pasted the code, the files, the scripts to his mod--and it worked. So we know it's not about the files being corrupted or the script being wrong.

 

I tried to:
- rename the sounds
- reupload the files
- redo the script from the scratch

- move the files in the structure of the pk3

- move them into a separate wad

- play them as sector sound sequences

- play them as scripted sound sequences

- reverting to an earlier version of GZDoom (from 4.7.1 to 4.5)

And nothing works! In my mod, L2MUS1 is always mistaken for L2MUS2.

 

What's even stranger, these files work ONLY when uploaded altogether. If I upload and define only L2MUS1, it won't play at all in the game.

 

Please help, this is very troubling.

EDIT: I will share the game's files if necessary. DM me for that.

Edited by Szuran

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

I found the solution. The problem was caused by a typo in a definition above the definition of the problematic sound. All the sounds defined below it got confused in-game as a result.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...