sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27374
[Question #252472]: Help! [error] Error Message: SyntaxError: Illegal character in file '' for encoding 'utf-8'
New question #252472 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252472
Hello, I'm super new to sikuli and not even well versed in other forms of programming. I downloaded this script to help me play an idle game and it wouldnt run even when i followed their instructions exactly. I even cut out all of the code i wasnt using in hopes of at least making something run but it wont run at all. I keep getting the same error message no matter what
[error] Stopped
[error] Error Message: SyntaxError: Illegal character in file '' for encoding 'utf-8'
The file name is !Swords And Potions 2 Bot.sikuli
and the script is
x=1
setAutoWaitTimeout(3)
shopkeeper="shopkeeper-1.png"
shopkeeper1=0
shopkeeper2=0
shopkeeper3=0
blacksmith=0
blacksmith1=0
blacksmith2=0
blacksmith3=0
carpenter=0
carpenter1=0
carpenter2=0
carpenter3=0
druid=0
druid1=0
druid2=0
druid3=0
tailor="tailor-2.png"
tailor1="sirenhat.png"
tailor2=0
tailor3=0
armorer=0
armorer1=0
armorer2=0
armorer3=0
leatherworker=0
leatherworker1=0
leatherworker2=0
leatherworker3=0
bowyer=0
bowyer1=0
bowyer2=0
bowyer3=0
sorceress="sorceress.png"
sorceress1="magicscroll.png"
sorceress2=0
sorceress3=0
tinkerer=0
tinkerer1=0
tinkerer2=0
tinkerer3=0
jeweler="jeweler.png"
jeweler1="pendantofsaftey.png"
jeweler2=0
jeweler3=0
luthier=0
luthier1=0
luthier2=0
luthier3=0
enchanter=0
enchanter1=0
enchanter2=0
enchanter3=0
while x==1:
if exists("closebtn.png"):
click("closebtn.png")
if exists("closeitemselect.png"):
click("closeitemselect.png")
if exists(Pattern("done-1.png").similar(0.45)):
click(Pattern("done.png").similar(0.45))
if exists("okaybtn-1.png"):
click("okaybtn.png")
if exists("endday-2.png"):
click("endday-2.png")
if exists("start.png"):
click("start-1.png")
if druid1 != 0:
if exists(druid):
click(druid)
if exists(druid1):
click(druid1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if druid2 == 0:
click("closeitemselect.png")
if druid2 != 0:
if exists(druid2):
click(druid2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if druid3 == 0:
click("closeitemselect.png")
if druid3 != 0:
if exists(druid3):
click(druid3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if blacksmith1 != 0:
if exists(blacksmith):
click(blacksmith)
if exists(blacksmith1):
click(blacksmith1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if blacksmith2 == 0:
click("closeitemselect.png")
if blacksmith2 != 0:
if exists(blacksmith2):
click(blacksmith2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if blacksmith3 == 0:
click("closeitemselect.png")
if blacksmith3 != 0:
if exists(blacksmith3):
click(blacksmith3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if tailor1 != 0:
if exists(tailor):
click(tailor)
if exists(tailor1):
click(tailor1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if tailor2 == 0:
click("closeitemselect.png")
if tailor2 != 0:
if exists(tailor2):
click(tailor2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if tailor3 == 0:
click("closeitemselect.png")
if tailor3 != 0:
if exists(tailor3):
click(tailor3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if carpenter1 != 0:
if exists(carpenter):
click(carpenter)
if exists(carpenter1):
click(carpenter1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if carpenter2 == 0:
click("closeitemselect.png")
if carpenter2 != 0:
if exists(carpenter2):
click(carpenter2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if carpenter3 == 0:
click("closeitemselect.png")
if carpenter3 != 0:
if exists(carpenter3):
click(carpenter3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if shopkeeper1 != 0:
if exists(shopkeeper):
click(shopkeeper)
if exists(shopkeeper1):
click(shopkeeper1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if shopkeeper2 == 0:
click("closeitemselect.png")
if shopkeeper2 != 0:
if exists(shopkeeper2):
click(shopkeeper2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if shopkeeper3 == 0:
click("closeitemselect.png")
if shopkeeper3 != 0:
if exists(shopkeeper3):
click(shopkeeper3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if enchanter1 != 0:
if exists(enchanter):
click(enchanter)
if exists(enchanter1):
click(enchanter1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if enchanter2 == 0:
click("closeitemselect.png")
if enchanter2 != 0:
if exists(enchanter2):
click(enchanter2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if enchanter3 == 0:
click("closeitemselect.png")
if enchanter3 != 0:
if exists(enchanter3):
click(enchanter3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if armorer1 != 0:
if exists(armorer):
click(armorer)
if exists(armorer1):
click(armorer1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if armorer2 == 0:
click("closeitemselect.png")
if armorer2 != 0:
if exists(armorer2):
click(armorer2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if armorer3 == 0:
click("closeitemselect.png")
if armorer3 != 0:
if exists(armorer3):
click(armorer3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if leatherworker1 != 0:
if exists(leatherworker):
click(leatherworker)
if exists(leatherworker1):
click(leatherworker1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if leatherworker2 == 0:
click("closeitemselect.png")
if leatherworker2 != 0:
if exists(leatherworker2):
click(leatherworker2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if leatherworker3 == 0:
click("closeitemselect.png")
if leatherworker3 != 0:
if exists(leatherworker3):
click(leatherworker3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if bowyer1 != 0:
if exists(bowyer):
click(bowyer)
if exists(bowyer1):
click(bowyer1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if bowyer2 == 0:
click("closeitemselect.png")
if bowyer2 != 0:
if exists(bowyer2):
click(bowyer2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if bowyer3 == 0:
click("closeitemselect.png")
if bowyer3 != 0:
if exists(bowyer3):
click(bowyer3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if sorceress1 != 0:
if exists(sorceress):
click(sorceress)
if exists(sorceress1):
click(sorceress1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if sorceress2 == 0:
click("closeitemselect.png")
if sorceress2 != 0:
if exists(sorceress2):
click(sorceress2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if sorceress3 == 0:
click("closeitemselect.png")
if sorceress3 != 0:
if exists(sorceress3):
click(sorceress3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if tinkerer1 != 0:
if exists(tinkerer):
click(tinkerer)
if exists(tinkerer1):
click(tinkerer1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if tinkerer2 == 0:
click("closeitemselect.png")
if tinkerer2 != 0:
if exists(tinkerer2):
click(tinkerer2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if tinkerer3 == 0:
click("closeitemselect.png")
if tinkerer3 != 0:
if exists(tinkerer3):
click(tinkerer3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if jeweler1 != 0:
if exists(jeweler):
click(jeweler)
if exists(jeweler1):
click(jeweler1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if jeweler2 == 0:
click("closeitemselect.png")
if jeweler2 != 0:
if exists(jeweler2):
click(jeweler2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if jeweler3 == 0:
click("closeitemselect.png")
if jeweler3 != 0:
if exists(jeweler3):
click(jeweler3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if luthier1 != 0:
if exists(luthier):
click(luthier)
if exists(luthier1):
click(luthier1)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if luthier2 == 0:
click("closeitemselect.png")
if luthier2 != 0:
if exists(luthier2):
click(luthier2)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
if luthier3 == 0:
click("closeitemselect.png")
if luthier3 != 0:
if exists(luthier3):
click(luthier3)
if exists("componentsmissing.png"):
click("closecomponentmissing.png")
click("closeitemselect.png")
if exists("endprogram.png"):
x = 0
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.