This was going to be another question but I found the answer has already been answered. The problem is, I get the same error message as they did but their solution does not work for me (I might be forgetting a step or 2) I found out somewhat the answer to my question here I basically have the exact same setup as them (in terms of blueprints and want)
Basically I have main menu playing that crosses over if you say go to options, level select etc. But I want it to stop once the player is in level 1 map. And just to confirm (if Iām doing it right)
Here is my game instance that makes the audio carry over to other maps
So Iāve attempted with both the event beginplay and the custom event. When I use Eventplay I got the same error message as the user in the other post
The annoying thing is, it works xD it stops the audio (just not for the reason its been setup for). The OP asked about it and was told they were not using the correct variable/component but then OP said they created a custom event and it all worked.
I am 99% sure I am using the correct variable/component, when I select āAs Custom Game Instanceā from the ācast to CustomGameInstanceā node I type it āget Main Menu Trackā which then creates a middle node āTarget and Main Menu Trackā then gets plugged into the target of the stop function.
So I have a custom event as seen in the blueprint, when I do this no more error messages but the music doesnāt stop. So perhaps I misunderstood something, or there is another step that Iāve not added in, as I am still pretty new to UE so hopefully Iāve remembered to explain everything required.
Thatās super odd because its the only āmain menu musicā component Iāve got. Unless Iām doing something wrong here (I believe I canāt in this instance?)
(Did a zoomed up version if its a bit hard to see)
Yes I believe I do, just to confirm. This was the first image in my first post
From what I can tell, as you said Itās not using the actual audio component, yet I have 0 in my Level BPā¦ so Iām not sure where the 2nd and 3rd one even existā¦
If Iām understanding correctly it has run before level 1 (basically goes Main Menu>Level Map>Player clicks on Level 1>Level 1 Map.
Iām not sure what else I can show to see what else could be causing issues. Sorry if this is basically spamming you but its just to hopefully help you get the idea of the project without it being in front of you.
I am thinking because I made a new game instance, does that override the level 1 game instant, where it could go to say the default game instant in level 1 and in theory that would stop the audio from crossing over to that level (might be a bit off I assume though).
It does stop the music and get ānoneā errors ā you have stopped it more than once
It does stop the music and no other errors ā itās working
It does not stop the music and you get ānoneā errors ā somehow you have cleared the variable, or used a variable with the same name or something strangeā¦
Correct, thats how Iāve got it setup and does all that keeps playing when level x has been loaded in. Basically sounds like #3, but Iāve not used a variable with the same name or anything.
I made a video to show the game. Hopefully something sticks out and is causing the issue. Let me know if you want me to record a certain section.
(I did open some things that wonāt be of any help I donāt think, Iāve just woken up and trying to get my head around the project again - trying to remember where I had the Custom Game Instance).
You have more than one BP called ācustom game instanceā. And you have picked the wrong one somewhere.
If thatās not the case, then what you can do, is just zip up the project, put it somewhere like google docs and send me a link. I will take a look ( you can PM me the link )
So turns out (for whatever reason) because I was loading from Level 1 map and going back through the menuās to get the music playing from main menu it would give me the error when if I start from the main menu map (which it will be like that in game) it doesnāt give me the error message.
I had done it in the past but thought it was wrong so I disconnected nodes and such trying to figure it out but I needed both the event beginplay and custom event plugged into ācast to customgameinstanceā.