Error.

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
lilurz
Regular
Posts: 27
Joined: Wed Jun 12, 2019 1:40 am
Completed: None, yet.
Projects: The Hawkins Files
Location: Your computer
Contact:

Error.

#1 Post by lilurz »

Code:

Code: Select all

background Image("gui/textbox1.png", xalign=0.5S, yalign=1.0)





Error:

Code: Select all

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
  File "renpy/common/00start.rpy", line 79, in _init_language
    renpy.change_language(language)
SyntaxError: invalid syntax (game/screens.rpy, line 139)

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\bootstrap.py", line 314, in bootstrap
    renpy.main.main()
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\main.py", line 529, in main
    run(restart)
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\main.py", line 71, in run
    renpy.translation.init_translation()
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\translation\__init__.py", line 558, in init_translation
    renpy.store._init_language()  # @UndefinedVariable
  File "renpy/common/00start.rpy", line 79, in _init_language
    renpy.change_language(language)
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\translation\__init__.py", line 638, in change_language
    new_change_language(tl, language)
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\translation\__init__.py", line 604, in new_change_language
    i.apply()
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\ast.py", line 2551, in apply
    value = renpy.python.py_eval(expr)
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\python.py", line 2033, in py_eval
    code = py_compile(code, 'eval')
  File "C:\Users\lily1\Downloads\vn\renpy-7.3.2-sdk\renpy\python.py", line 690, in py_compile
    raise e
SyntaxError: invalid syntax (game/screens.rpy, line 139)

Windows-8-6.2.9200
Ren'Py 7.3.2.320
The Hawkins Files 1.0
Fri Aug 23 18:34:44 2019

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Error.

#2 Post by rayminator »

have you change anything before that line?
make sure is indented properly it as to line with ysize gui.textbox_height

it should look like this

Code: Select all

style namebox is default
style namebox_label is say_label


style window:
    xalign 0.5
    xfill True
    yalign gui.textbox_yalign
    ysize gui.textbox_height

    background Image("gui/textbox.png", xalign=0.5, yalign=1.0)

lilurz
Regular
Posts: 27
Joined: Wed Jun 12, 2019 1:40 am
Completed: None, yet.
Projects: The Hawkins Files
Location: Your computer
Contact:

Re: Error.

#3 Post by lilurz »

rayminator wrote: Fri Aug 23, 2019 10:15 pm have you change anything before that line?
make sure is indented properly it as to line with ysize gui.textbox_height

it should look like this

Code: Select all

style namebox is default
style namebox_label is say_label


style window:
    xalign 0.5
    xfill True
    yalign gui.textbox_yalign
    ysize gui.textbox_height

    background Image("gui/textbox.png", xalign=0.5, yalign=1.0)


No. I didn't.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Error.

#4 Post by rayminator »

okay I do see one thing is wrong

you have it like this take the S out of xalign=0.5S

Code: Select all

background Image("gui/textbox1.png", xalign=0.5S, yalign=1.0)

lilurz
Regular
Posts: 27
Joined: Wed Jun 12, 2019 1:40 am
Completed: None, yet.
Projects: The Hawkins Files
Location: Your computer
Contact:

Re: Error.

#5 Post by lilurz »

rayminator wrote: Sat Aug 24, 2019 10:55 am okay I do see one thing is wrong

you have it like this take the S out of xalign=0.5S

Code: Select all

background Image("gui/textbox1.png", xalign=0.5S, yalign=1.0)
Thanks! It worked!

Post Reply

Who is online

Users browsing this forum: baguetti, Ocelot, snotwurm