Not Terminated with a Newline

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.
Post Reply
Message
Author
ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Not Terminated with a Newline

#1 Post by ArizaLuca »

Wow, I've created three topics in the span of two days. Hooray! -_-

So I did some coding, but when I did the code told me:

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 24: is not terminated with a newline. (Check strings and parenthesis.)
        LiveComposite(

Ren'Py Version: Ren'Py 6.99.14.1.3218
Wed Mar 28 21:05:01 2018
The offending line of code is in this little section:

Code: Select all

init python:
    j_eyes = 'normal'
    j_mouth = 'normal'
    j_eyebrows = 'normal'
    j_pose = 'normal'
    j_shine = 'shine'
    j_outfit = 'jesse_outfit'

define j = Character("Jesse", color="ffffff")
define m = Character("Mevia", color="7fff9")
define ha = Character("Hadrian", color="8f46ff")
define i = Character("Ivor", color="dce18b")
define h = Character("Harper", color="b99846")
define c = Character("Cassie Rose", color="da0035")
define a = Character("Aiden", color="bcff9d")
define r = Character("Romeo", color="ff0000")
define w = Character("Warden", color="fcffa7")
define p = Character("PAMA", color="00ff7c")
define s = Character("Stella", color="da9dff")
define q = Character("???", color="ffffff")
define e = Character("[name]")

image jesse1:
    LiveComposite(
        (400, 720),
        (0, 0), "jesse_1_base.png",
        (0, 0), ConditionSwitch(
            "j_eyes == 'closed'", "jesse_f_closed_eyes.png",
            "j_eyes == 'halfshut'", "jesse_f_half_shut_eyes.png",
            "j_eyes == 'wide'", "jesse_f_wide_eyes.png",
            "j_eyes == 'slightwide'", "jesse_f_slightly_wide_eyes.png",
            "j_eyes == 'screwedup'", "jesse_f_screwed_up_eyes.png",
            "True", "jesse_f_normal_eyes.png",
            ),
The 'offending' line of code is immediately under 'image jesse1:' and is the 'LiveComposite' and... I've written the code before that exact way, and it worked fine? So I don't know what I seem to be doing wrong.

User avatar
Lord Hisu
Regular
Posts: 58
Joined: Sun Feb 11, 2018 2:31 am
Contact:

Re: Not Terminated with a Newline

#2 Post by Lord Hisu »

You're missing a parenthesis.
Try this:

Code: Select all

image jesse1:
    LiveComposite(
        (400, 720),
        (0, 0), "jesse_1_base.png",
        (0, 0), ConditionSwitch(
            "j_eyes == 'closed'", "jesse_f_closed_eyes.png",
            "j_eyes == 'halfshut'", "jesse_f_half_shut_eyes.png",
            "j_eyes == 'wide'", "jesse_f_wide_eyes.png",
            "j_eyes == 'slightwide'", "jesse_f_slightly_wide_eyes.png",
            "j_eyes == 'screwedup'", "jesse_f_screwed_up_eyes.png",
            "True", "jesse_f_normal_eyes.png"))

ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Re: Not Terminated with a Newline

#3 Post by ArizaLuca »

Ahhh, thank you so much!

Post Reply

Who is online

Users browsing this forum: Black Spriggan, snotwurm