#Making music persist across rooms

1 messages · Page 1 of 1 (latest)

carmine rose
#

I am making a core themed map, where the music changes once you flip from hot to cold, but once I go into another room, the music goes back to the fire one. And I dont know how to fix this.

vocal linden
#

Maybe try looking at how core itself does it. This may be bad advice, but at least i'm trying to help.

shadow trail
#

core does it with a parameter

#

the param is called 'room_state'

#

if it's hot it's 0, if it's cold it's 1

carmine rose
#

How do I use a parameter?

#

and where can I find this param

shadow trail
#

the room_state parameter is set automatically when the coremode changes

carmine rose
#

Yeah, but is there somewhere I can find this parameter? I want to put it in my map

#

Like how can I keep the music consistent between rooms

shadow trail
#

is there a parameter in your music called room_state

#

that controls hot or cold

#

if not, you gotta add that

carmine rose
#

Where do I find the music, I’m using the core music, is there a place in my mod folder where I add parameters?

shadow trail
#

oh you're using core music

#

why do you have sounds turned all the way down lmao

#

tbh i dont fully understand exactly how core music works

#

are your music settings different between rooms?

carmine rose
#

I turned the sound down so you could hear the difference, but my music settings are the same for each room

vocal linden
#

i'm going to take a quick look at this and see if i can find anything

vocal linden
#

I... cant find anything. looking at the bin file for core gives me nothing for some reason, and the whole parameter thing doesnt seem to apply to anything. this kind of troubles me because with what i plan on doing, i will need to make a core map in the future.

shadow trail
vocal linden
#

I'm going to take a wild guess as to what you're supposed to do with this. it seems like you write all that in Lua, and then stick the file somewhere in the mod folder?

sacred mesa
#

by the fact that the sound is changing, the param must be working

vocal linden
#

oh

sacred mesa
#

i think the problem is that the param is somehow resetting between rooms

#

which it shouldn't

shadow trail
#

yeah my only guess is that maybe the music is being reloaded on the transitions which doesn’t make any sense