Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
alextriestocode
- Newbie
- Posts: 3
- Joined: Mon Jun 04, 2018 9:40 am
- Tumblr: koalakind
-
Contact:
#1
Post
by alextriestocode » Mon Jun 04, 2018 11:35 am
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!
-
rames44
- Veteran
- Posts: 232
- Joined: Sun May 29, 2016 4:38 pm
-
Contact:
#2
Post
by rames44 » Mon Jun 04, 2018 11:43 am
Well, you’re missing a colon after “start”. Past that, we would need more context.
-
alextriestocode
- Newbie
- Posts: 3
- Joined: Mon Jun 04, 2018 9:40 am
- Tumblr: koalakind
-
Contact:
#3
Post
by alextriestocode » Mon Jun 04, 2018 3:47 pm
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
-
xavimat
- Eileen-Class Veteran
- Posts: 1458
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love, unknown
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
-
Contact:
#4
Post
by xavimat » 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.
-
alextriestocode
- Newbie
- Posts: 3
- Joined: Mon Jun 04, 2018 9:40 am
- Tumblr: koalakind
-
Contact:
#5
Post
by alextriestocode » Mon Jun 04, 2018 6:21 pm
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.