Page 1 of 1

Menu movie displayable disappears [solved]

Posted: Sun Mar 12, 2017 4:29 am
by Amy_oai
Hi!
When returning to the main menu from the preferences screen, I'm greeted with a menu devoid of the background movie I set

This is what I'm dealing with;

This problem only occurs when I come back via the preference menu; when I open the game, the background is there and when the script runs out, the background is there.


Here's the code,
in script.rpy

Code: Select all

image main_menu = Movie(channel="main_menu", play="LakeBG0.ogv")
in screens.rpy

Code: Select all

screen main_menu:
    tag menu
    add "main_menu"

    imagemap:
        ground "images/idle1.png"
        idle "images/idle1.png"
        hover "images/selected.png"
and options.rpy

Code: Select all

mm_root = "main_menu",
gm_root = "main_menu",
I tried making the movie the ground image for the menu, but I only run into the same problem, with an even worse looking result (just hotspots being displayed)

Image
If anyone can help me out, that'd be much appreciated! ♥

Re: Menu movie displayable disappears

Posted: Sun Mar 12, 2017 2:54 pm
by gas
Rename the image into something different than "main_menu".Well, DON'T use "main_menu" name for anything else than the main menu screen itself.
It's a special name. I think that this will solve the issue.

Re: Menu movie displayable disappears [solved]

Posted: Mon Mar 13, 2017 2:54 am
by Amy_oai
Thanks for the suggestion, gas! Just fyi it gave the same issue.
But a solution was found anyway! I totally overlooked that I was using

Code: Select all

screen main_menu:
    tag menu
so when I tried going back from the preferences menu, that one was still shown as

Code: Select all

MainMenu()
So yeah, simply was calling upon the wrong screen.

it was a dumb error on my part, thanks for trying to help out though!

Re: Menu movie displayable disappears [solved]

Posted: Fri Dec 22, 2017 8:08 pm
by Geckos
Amy_oai wrote: Mon Mar 13, 2017 2:54 am Thanks for the suggestion, gas! Just fyi it gave the same issue.
But a solution was found anyway! I totally overlooked that I was using

Code: Select all

screen main_menu:
    tag menu
so when I tried going back from the preferences menu, that one was still shown as

Code: Select all

MainMenu()
So yeah, simply was calling upon the wrong screen.

it was a dumb error on my part, thanks for trying to help out though!
Having the same issue here, myself!
I'm not entirely certain what you mean with your solution having been fixed by calling a different window. Any chance I could get you to show your working code?
Thanks so much!
Hope your weekend is great.
EDIT
Figured it out with

Code: Select all

    add Movie(size=(1920, 1080))
    on "show" action Play("movie", "movies/potd2_menu.webm", loop=True)
    on "hide" action Stop("movie")
    on "replace" action Play("movie", "movies/potd2_menu.webm", loop=True)
    on "replaced" action Stop("movie")
    

Re: Menu movie displayable disappears [solved]

Posted: Sat Dec 23, 2017 2:20 am
by Amy_oai
Geckos wrote: Fri Dec 22, 2017 8:08 pm
Having the same issue here, myself!
I'm not entirely certain what you mean with your solution having been fixed by calling a different window. Any chance I could get you to show your working code?
Thanks so much!
Hope your weekend is great.
EDIT
Figured it out with

Code: Select all

    add Movie(size=(1920, 1080))
    on "show" action Play("movie", "movies/potd2_menu.webm", loop=True)
    on "hide" action Stop("movie")
    on "replace" action Play("movie", "movies/potd2_menu.webm", loop=True)
    on "replaced" action Stop("movie")
    
I see you fixed it yourself already, but here's the distribution of the game that never was. Check out the code if you'd like, and have a great weekend yourself!
nanotest-1.0-pc.zip
(81.64 MiB) Downloaded 35 times