Background Is Text, Not An Image

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
TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Background Is Text, Not An Image

#1 Post by TheChatotMaestro »

Code: Select all

scene bg placeholderroom
The file's name is bg_placeholderroom

But when I run the game, there's no error, it just shows up as...
http://imgur.com/a/p1ybL

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Background Is Text, Not An Image

#2 Post by PyTom »

It needs to be "bg placeholderroom.jpg" (or .png, no quotes). Or you could "show bg_placeholderroom", but that's not recommended for a bunch of reasons.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Background Is Text, Not An Image

#3 Post by TheChatotMaestro »

I tried that, but then it says this?

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 36: end of line expected.
    scene bg placeholderroom.jpg:
                            ^

Ren'Py Version: Ren'Py 6.99.12.4.2187
Tried with and without a :, same error both times

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Background Is Text, Not An Image

#4 Post by Remix »

PyTom means rename the image with a space
image called "bg placeholderroom.jpg"

no .jpg in the display code
scene bg placeholderroom
Frameworks & Scriptlets:

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Background Is Text, Not An Image

#5 Post by TheChatotMaestro »

Ah. Well, trying that made the screen just go from the black background I had before to... still a black background.

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Background Is Text, Not An Image

#6 Post by Remix »

So, what is your image called and what code are you trying?
Frameworks & Scriptlets:

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Background Is Text, Not An Image

#7 Post by TheChatotMaestro »

The image is now called "bg placeholderroom" and it's a jpeg
I'm still doing "scene bg placeholderroom.jpg"

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Background Is Text, Not An Image

#8 Post by Remix »

Code: Select all

label start:
    scene bg placeholderroom
no quotes, no .jpg, just that
Frameworks & Scriptlets:

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Background Is Text, Not An Image

#9 Post by TheChatotMaestro »

It worked! Thank you so much.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Sugar_and_rice