Page 1 of 1

ATL statement contains two expressions in a row; is one of them a misspelled property?

Posted: Mon Jun 04, 2018 11:35 am
by alextriestocode
I have an error in my game that I haven't been able to find anything about and was not able to fix for several hours.
Here is the Error.txt file.

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 21: ATL statement contains two expressions in a row; is one of them a misspelled property? If not, separate them with pass.
    label start
               ^

Ren'Py Version: Ren'Py 6.99.14.3.3347
Mon Jun 04 08:31:07 2018
I apologize if this isn't very descriptive ^^' I'm new to the forums. Please tell me if I need to add any information!

Re: ATL statement contains two expressions in a row; is one of them a misspelled property?

Posted: Mon Jun 04, 2018 11:43 am
by rames44
Well, you’re missing a colon after “start”. Past that, we would need more context.

Re: ATL statement contains two expressions in a row; is one of them a misspelled property?

Posted: Mon Jun 04, 2018 3:47 pm
by alextriestocode
rames44 wrote:
Mon Jun 04, 2018 11:43 am
Well, you’re missing a colon after “start”. Past that, we would need more context.
I've added the colon and tried to run the program again but I still got the same error.
Here is the complete program

Code: Select all

define dave = Character("Me")
define john = Character(_("jon arbuccle"), color="#0000ff")
define kk = Character(_("boi"), color="#626262")

image static:
    "1.png"
    0.15
    "2.png"
    0.15
    "3.png"
    0.15
    repeat

    label start:

    $ karkat_rel = 0

    scene bg room

    "I wake up in the morning and walk out the door. Today is just another day of school."
    "I sigh and start the journey. But before I can go any further, a raspy voice called."
    "???" "STRIDER! YOU'RE LATE!"
    play music "KK's Theme.mp3"
    show karkat at center:
        xzoom 2.6 yzoom 2.6

    kk "WHY DO YOU ALWAYS HAVE TO KEEP ME WAITING?"

    dave "sorry. i'll try to wake up earlier."
    show karkat angry at center:
        xzoom 2.6 yzoom 2.6

    kk "SERIOUSLY. WOULD IT KILL YOU TO GET UP ON TIME?!?"

    "I sigh. There's no use trying to get a word in when he starts yelling."

    menu:
    "Grab his hand and take him to school":
        $ karkat_rel += 1
        show karkat tsun
        kk "WHAT ARE YOU--"
        dave "as much as i'd like to stay here and chat, we've got places to be."
        kk "..."
    "Interrupt him.":
        dave "as much as i'd like to stay here and chat, we've got places to be."
        show karkat
        kk "FINE. WE'LL CONTINUE THIS CONVERSATION LATER."


    return

Re: ATL statement contains two expressions in a row; is one of them a misspelled property?

Posted: Mon Jun 04, 2018 3:53 pm
by xavimat
You have indentation errors. Label should be at 0 spaces of indent. After a colon (:) you always have to increase your indent (always, no exceptions, you need at least one line of larger indentation). In your code, after label start and after menu there is no larger indentation.

Re: ATL statement contains two expressions in a row; is one of them a misspelled property?

Posted: Mon Jun 04, 2018 6:21 pm
by alextriestocode
xavimat wrote:
Mon Jun 04, 2018 3:53 pm
You have indentation errors. Label should be at 0 spaces of indent. After a colon (:) you always have to increase your indent (always, no exceptions, you need at least one line of larger indentation). In your code, after label start and after menu there is no larger indentation.
Thank you! This fixed the problem and I'll be sure to use this information in the future.