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.
-
Mooneon
- Regular
- Posts: 78
- Joined: Sat Jul 04, 2015 4:05 pm
-
Contact:
#1
Post
by Mooneon » Fri Oct 21, 2016 1:42 am
This. I cant find out. I'm sitting here for hours just backspacing and tabbing and i don't know whats going on here
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 334: indentation mismatch.
Ren'Py Version: Ren'Py 6.99.11.1749
The last code is the one. Which is line 334
Code: Select all
$ result = renpy.imagemap("images/arrow2.png", "arrow2_hover.png", [
(912, 378, 122, 137),"deadend"),
(1114, 399, 149, 118),"livingroom"),
(657, 575, 116, 122), "hallway"),
])
-
korova
- Veteran
- Posts: 217
- Joined: Sat Jun 27, 2009 5:15 pm
- Completed: Ivy, Chocolate, Time, Clair Obscur
- Projects: Writing exercises, The House [Nano18]
- Tumblr: korova08
- itch: korova
- Location: Normandie, France
-
Contact:
#2
Post
by korova » Fri Oct 21, 2016 4:50 am
I think you lack a parenthetis in the first imagemap thing (line 323) after 400 and before "balcony"
(I don't know il that's the problem though, but sometimes, the line given in the error message in not very precise)
-
Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
-
Contact:
#3
Post
by Divona » Fri Oct 21, 2016 12:03 pm
There is an extra "," in the line 323 and 333. Also what with the extra ")"?
Here is the fix:
Code: Select all
$ result = renpy.imagemap("images/arrow2.png", "arrow2_hover.png", [
(912, 378, 122, 137, "deadend"),
(1114, 399, 149, 118, "livingroom"),
(657, 575, 116, 122, "hallway")
])
On a side note "renpy.imagemap" is deprecated as well. Probably best to choose to do it other way.
https://www.renpy.org/doc/html/screens. ... statements
Completed:

-
Mooneon
- Regular
- Posts: 78
- Joined: Sat Jul 04, 2015 4:05 pm
-
Contact:
#4
Post
by Mooneon » Fri Oct 21, 2016 3:46 pm
Thank you, but now I can't click on the arrows.
-
Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
-
Contact:
#5
Post
by Divona » Fri Oct 21, 2016 9:38 pm
Mooneon wrote:Thank you, but now I can't click on the arrows.
Could be because you have incorrect path to the file called "arrow2_hover.png"?
You know what? Lets scrap those out of date code and work with the current Imagemap.
Code: Select all
screen imagemap_arrow2:
imagemap:
idle "images/arrow2.png"
hover "images/arrow2_hover.png"
hotspot (912, 378, 122, 137) action Jump("deadend")
hotspot (1114, 399, 149, 118) action Jump("livingroom")
hotspot (657, 575, 116, 122) action Jump("hallway")
label balcony:
call screen imagemap_arrow2
label deadend:
v normal talk "Nothing but a dead end. Right now it's overrun by lava."
label livingroom:
scene living with Dissolve(1.0)
"Nothing."
label hallway:
"Insert hall image here."
Completed:

Users browsing this forum: Google [Bot]