SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Bug Reports (https://mb.srb2.org/forumdisplay.php?f=97)
-   -   1-up sound can't be replaced (https://mb.srb2.org/showthread.php?t=46648)

Goldenhog 02-23-2020 05:01 PM

1-up sound can't be replaced
 
1 Attachment(s)
According to the source code, if DSONEUP is not found then DSCHCHNG (the tally end sound) plays when getting an extra life if the game is set to play a sound instead of the jingle. However, DSCHCHNG will stay even if a WAD that includes DSONEUP is loaded (see attachment, it's a renamed DSKC42).

This also happens in 2.2.1. I wish I hadn't forgotten to report it

TehPuertoRicanSpartan 02-23-2020 06:09 PM

You have to convert it to a .pk3 file. Let's see if it works or not...

Lach 02-23-2020 07:14 PM

It doesn't work because sound lumps by default aren't cached until they need to be played for the first time, so the entry for sfx_oneup never sets up its lumpnum to reference DSONEUP and the check for its existence fails. We're currently working on getting an official DSONEUP sound done so we can get rid of that condition and just play the sound. In the meantime, you can use the soundtest command to forcibly call S_StartSound on sfx_oneup and link it properly. (sfx_oneup should be 168.)

glaber 02-23-2020 08:19 PM

I thought there was another way to make the game use a custom 1up sound. Dimension Glaber uses a custom 1up sound effect instead of a 1up music track and it plays.

Goldenhog 02-23-2020 08:33 PM

Dimension Glaber uses MAINCFG's Use1upSound to set it up, I guess that gets the game to wake up. I was trying to do it the non-game-modifying way of just feeding the game the right sound file.

TehPuertoRicanSpartan 03-07-2020 12:39 AM

Wait a second... SRB2 used that! Not only Dimension Glaber. It uses mods! I looked into the cdsfx.pk3's files. I will get a mod about that, but not the cdsfx.pk3 itself...


All times are GMT. The time now is 05:31 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.