There seems to be a problem with the image tag prefix

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
swap815translate
Newbie
Posts: 7
Joined: Sun Jan 21, 2018 6:39 am
Contact:

There seems to be a problem with the image tag prefix

#1 Post by swap815translate »

I was trying to translate the game.
I did check script (Lint) while doing that.

game / Script1 / Script1.rpy: 25 The image tag 'all' is not the prefix of a declared image, nor was it used in a show statement before this hide statement.

There are several such strings.

I am embarrassed when I try to open the file ' game/tl/Korean/Script1/Script1.rpy ', but I do not have the string Script1.rpy:25. What's wrong with this?

* The name of the script1.rpy file is an example!

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: There seems to be a problem with the image tag prefix

#2 Post by Donmai »

That error message is clearly telling you there's a problematic hide statement in that script around the line 25.
You can read the hide statement documentation here: https://www.renpy.org/doc/html/displayi ... -statement
That statement is used to remove an image from a layer, but apparently, it's being used to try to hide a non-declared image whose name starts with "all ". It's trying to interpret the word "all " as a name tag. You can read about image name tags here: https://www.renpy.org/doc/html/displayi ... html#image
You should have that error if, for example, you have something like this in your script

Code: Select all

    hide all images
Maybe that line was originally commented out?

Code: Select all

    # hide all images
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

swap815translate
Newbie
Posts: 7
Joined: Sun Jan 21, 2018 6:39 am
Contact:

Re: There seems to be a problem with the image tag prefix

#3 Post by swap815translate »

Donmai wrote: Thu Feb 01, 2018 8:13 am That error message is clearly telling you there's a problematic hide statement in that script around the line 25.
You can read the hide statement documentation here: https://www.renpy.org/doc/html/displayi ... -statement
That statement is used to remove an image from a layer, but apparently, it's being used to try to hide a non-declared image whose name starts with "all ". It's trying to interpret the word "all " as a name tag. You can read about image name tags here: https://www.renpy.org/doc/html/displayi ... html#image
You should have that error if, for example, you have something like this in your script

Code: Select all

    hide all images
Maybe that line was originally commented out?

Code: Select all

    # hide all images

Code: Select all

    hide all 
It's just like this.
Should I comment out this statement?

swap815translate
Newbie
Posts: 7
Joined: Sun Jan 21, 2018 6:39 am
Contact:

Re: There seems to be a problem with the image tag prefix

#4 Post by swap815translate »

Donmai wrote: Thu Feb 01, 2018 8:13 am That error message is clearly telling you there's a problematic hide statement in that script around the line 25.
You can read the hide statement documentation here: https://www.renpy.org/doc/html/displayi ... -statement
That statement is used to remove an image from a layer, but apparently, it's being used to try to hide a non-declared image whose name starts with "all ". It's trying to interpret the word "all " as a name tag. You can read about image name tags here: https://www.renpy.org/doc/html/displayi ... html#image
You should have that error if, for example, you have something like this in your script

Code: Select all

    hide all images
Maybe that line was originally commented out?

Code: Select all

    # hide all images
It was

Code: Select all

    hide all
but I changed it to

Code: Select all

    # hide all images
!
I did not know this simple! Your answer has been resolved :D

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]