End of line expected 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
User avatar
LadyOfGatsby
Veteran
Posts: 327
Joined: Wed Jul 23, 2014 5:25 pm
Projects: Ethereal Creatures
Skype: vall3rie
Contact:

End of line expected error

#1 Post by LadyOfGatsby »

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.
Last edited by LadyOfGatsby on Thu Aug 20, 2015 9:45 pm, edited 2 times in total.
ImageImage

User avatar
Stapper
Regular
Posts: 96
Joined: Wed Feb 27, 2013 9:54 pm
Contact:

Re: End of line expected error

#2 Post by Stapper »

Are these lines 331 and 364 ?

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"
You don't have the colon behind them like at the other hotspot 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":
Either way, there is something wrong with these lines.

User avatar
LadyOfGatsby
Veteran
Posts: 327
Joined: Wed Jul 23, 2014 5:25 pm
Projects: Ethereal Creatures
Skype: vall3rie
Contact:

Re: End of line expected error

#3 Post by LadyOfGatsby »

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"
ImageImage

User avatar
LadyOfGatsby
Veteran
Posts: 327
Joined: Wed Jul 23, 2014 5:25 pm
Projects: Ethereal Creatures
Skype: vall3rie
Contact:

Re: End of line expected error

#4 Post by LadyOfGatsby »

Nevermind I solved it! :)
ImageImage

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]