Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Variable mix command inconsistent

A topic by Polestar created May 30, 2021 Views: 186 Replies: 6
Viewing posts 1 to 4

Hey HeroicJay, 

I excitedly bought your plugin for my game and it works just as I had hoped. Kinda...
It appears that the variable mix function just doesn't work sometimes, for no apparent reason. Most of the time it does, but every once in a while it decides not to.  This is particularly frustrating because I'm making a puzzle that relies on the music and the variable command.

Any insights?

Developer (2 edits)

There is a known issue with variable mix (and some other things as well!) not always working properly when you mess with Pitch values, and what you describe sounds like it might be it. (And, unfortunately, there doesn't seem to be much I can do to fix it. That's just how RPG Maker's audio is.)

If you're using variable mix, you should always try to use 100 Pitch (or just don't set it; 100 is default.)

If you're not doing anything with Pitch values, then give me some example commands that you're using; both the load and the play commands.

PS. Oh, yes, and also check the lengths of the sound files. If track A is longer than track B and you mix from A to B, then it's possible you could be at a point in A that is past the end of B (relative to the tempo ratio, of course, if you're using that.)

(1 edit)

I haven't touched the pitch values whatsoever and the tracks are all of identical length. Here's what all my commands look like:

LoadBGM Factory_M1_3_CF alias=1_3
PlayBGM 1_3 variable instant

Developer (1 edit)

Hm, not enough for me to tell what the problem is. I've yet to have any such problems without altering Pitch.

Are you making sure to wait long enough between the Load and the Play? If you're doing a puzzle that requires multiple tracks, I'd make sure they're all Loaded well before you need them. Probably when you start the puzzle.

(Another possibility did occur to me, but shouldn't be the case, especially if you're playing it with "instant".)

Developer

Did you figure out the problem yet?

Hey, sorry for the extremely late reply.
I have tried waiting for a very long time to be absolutely certain the tracks are loaded. It seems that, no matter what, there is always a small chance for the variable command to be completely ignored, and the track just plays from the beginning.
Could this be some weird quirk that only certain machines encounter?

Developer

Sorry for my own. And as you are the only one who has so far reported this, I'm afraid I'm stumped. It's possible it's machine-specific, only happens with certain audio files, or a number of other things; I'm afraid I don't have enough information. I might be able to look into it if I had a demo that was known to reproduce the issue, but that's kind of a difficult thing to work out over an itch.io chat (and even then, it would have to be able to repro on my own machine.)