How can i fix the main menu music thing?

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
FabioKun
Newbie
Posts: 8
Joined: Tue Dec 25, 2018 5:11 pm
Contact:

How can i fix the main menu music thing?

#1 Post by FabioKun »

So, i am trying to make a test game to get used to ren'py and stuff, but i can't put main menu music in the main menu.
Here's the error:

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/options.rpy", line 64: Line is indented, but the preceding define statement statement does not expect a block. Please check this line's indentation.
   config.main_menu_music =  "WishIWasBetterAtCreatingMusic.ogg"
    ^

Ren'Py Version: Ren'Py 7.1.3.1092
Sun Mar 24 20:19:24 2019
The rest of the code is the same since i did not change anything.
Last edited by FabioKun on Sun Mar 24, 2019 2:39 pm, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How can i fix the main menu music thing?

#2 Post by Imperf3kt »

It looks like you indented that line. You just need to remove any spacing before the word "define" as it doesn't use indentation.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

FabioKun
Newbie
Posts: 8
Joined: Tue Dec 25, 2018 5:11 pm
Contact:

Re: How can i fix the main menu music thing?

#3 Post by FabioKun »

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 17: expected statement.
    config.main_menu_music = "main_menu_music.ogg"
                           ^

Ren'Py Version: Ren'Py 7.1.3.1092
Sun Mar 24 20:37:15 2019

FabioKun
Newbie
Posts: 8
Joined: Tue Dec 25, 2018 5:11 pm
Contact:

Re: How can i fix the main menu music thing?

#4 Post by FabioKun »

Not all heroes wear capes, tho i moved it from options to scripts

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How can i fix the main menu music thing?

#5 Post by Imperf3kt »

You still need the word "define"

Like this.

Code: Select all

define config.main_menu_music = "main_menu_music.ogg"
Instead of

Code: Select all

    define config.main_menu_music = "main_menu_music.ogg"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

FabioKun
Newbie
Posts: 8
Joined: Tue Dec 25, 2018 5:11 pm
Contact:

Re: How can i fix the main menu music thing?

#6 Post by FabioKun »

yeah ty, i fixed that

Post Reply

Who is online

Users browsing this forum: No registered users