So I am new to coding gui and ren'py and everything was going great until I stumbled upon this error. I am trying to make an imagemap while following this guide. http://renpyhandbook.tumblr.com/post/89 ... eload-menu
Here's how my code looks like. For better version here: http://pastebin.com/usUndPnN#
imagemap:
ground "ui/savescreenbg.png"
idle "ui/savescreenbg.png"
hover "ui/savescreenbg.png"
cache False
hotspot (408,64,33,31) clicked FilePage(1) activate_sound "" hover_sound ""
hotspot (471,64,14,31) clicked FilePage(2) activate_sound "" hover_sound ""
hotspot (525,64,23,31) clicked FilePage(3) activate_sound "" hover_sound ""
hotspot (573,64,21,31) clicked FilePage(4) activate_sound "" hover_sound ""
hotspot (616,64,24,31) clicked FilePage(5) activate_sound "" hover_sound ""
hotspot (673,66,27,29) clicked FilePage(6) activate_sound "" hover_sound ""
hotspot (139,233,259,151) clicked FileSave(1):
use load_save_slot(number=1) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
hotspot (498,233,269,151) clicked FileSave(2):
use load_save_slot(number=2) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
hotspot (857,233,269,151) clicked FileSave(3):
use load_save_slot(number=3) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
hotspot (139,453,268,151) clicked FileSave(4):
use load_save_slot(number=4) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
hotspot (498,453,269,151) clicked FileSave(4):
use load_save_slot(number=4) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
hotspot (857,453,269,151) clicked FileSave(4):
use load_save_slot(number=4) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
hotspot (407,125,70,40) action Return() activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
screen load():
# This ensures that any other menu screen is replaced.
tag menu
imagemap:
ground "ui/loadscreenbg.png"
idle "ui/loadscreenbg.png"
hover "ui/loadscreenbg.png"
cache False
hotspot (408,64,33,31) clicked FilePage(1) activate_sound "" hover_sound ""
hotspot (471,64,14,31) clicked FilePage(2) activate_sound "" hover_sound ""
hotspot (525,64,23,31) clicked FilePage(3) activate_sound "" hover_sound ""
hotspot (573,64,21,31) clicked FilePage(4) activate_sound "" hover_sound ""
hotspot (616,64,24,31) clicked FilePage(5) activate_sound "" hover_sound ""
hotspot (673,66,27,29) clicked FilePage(6) activate_sound "" hover_sound ""
hotspot (139,233,259,151) clicked FileLoad(1):
use load_save_slot(number=1) activate_sound "" hover_sound ""
hotspot (498,233,269,151) clicked FileLoad(2):
use load_save_slot(number=2) activate_sound "" hover_sound ""
hotspot (857,233,269,151) clicked FileLoad(3):
use load_save_slot(number=3) activate_sound "" hover_sound ""
hotspot (139,453,268,151) clicked FileLoad(4):
use load_save_slot(number=4) activate_sound "" hover_sound ""
hotspot (498,453,269,151) clicked FileLoad(5):
use load_save_slot(number=5) activate_sound "" hover_sound ""
hotspot (857,453,269,151) clicked FileLoad(6):
use load_save_slot(number=6) activate_sound "" hover_sound ""
hotspot (407,125,70,40) action Return() activate_sound "" hover_sound ""
screen load_save_slot:
$ file_text = "% 2s. %s\n%s" % (
FileSlotName(number, 4),
FileTime(number, empty=_("Empty Slot")),
FileSaveName(number))
add FileScreenshot(number) xpos 220 ypos 20
text file_text xpos 0 ypos 10 size 40 color "#ffffff" outlines [ (2, "#302B54") ] kerning 2 font "FONT FILE NAME HERE"
key "save_delete" action FileDelete(number)
init -2 python:
config.thumbnail_width = 180
config.thumbnail_height = 150
The error says that lines 16 and 50 have the error of line expected.
End of line expected error
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.
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.
- LadyOfGatsby
- Veteran
- Posts: 327
- Joined: Wed Jul 23, 2014 5:25 pm
- Projects: Ethereal Creatures
- Skype: vall3rie
- Contact:
End of line expected error
Last edited by LadyOfGatsby on Thu Aug 20, 2015 9:45 pm, edited 2 times in total.
Re: End of line expected error
Are these lines 331 and 364 ?
You don't have the colon behind them like at the other hotspot lines:
Either way, there is something wrong with these lines.
Code: Select all
hotspot (407,125,70,40) action Return() activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
~
hotspot (407,125,70,40) action Return() activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
Code: Select all
hotspot (407,125,70,40) action Return() activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE":
~
hotspot (407,125,70,40) action Return() activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE":
- LadyOfGatsby
- Veteran
- Posts: 327
- Joined: Wed Jul 23, 2014 5:25 pm
- Projects: Ethereal Creatures
- Skype: vall3rie
- Contact:
Re: End of line expected error
Nope, its not but thanks, I'll see if that works. Lines 331 and 364 are
331: use load_save_slot(number=1) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
364: use load_save_slot(number=1) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
331: use load_save_slot(number=1) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
364: use load_save_slot(number=1) activate_sound "FILE NAME HERE" hover_sound "FILE NAME HERE"
- LadyOfGatsby
- Veteran
- Posts: 327
- Joined: Wed Jul 23, 2014 5:25 pm
- Projects: Ethereal Creatures
- Skype: vall3rie
- Contact:
Who is online
Users browsing this forum: Ahrefs [Bot]