Jump to content

Question

Posted

hello i have problem with this quest:

http://maxcheaters.com/forum/index.php?topic=80123.0

INTERLUDE version, i think code need some fixes

 

also here is error log:

 

Traceback (innermost last):

  (no code object) at line 0

SyntaxError: ('invalid syntax', ('__init__.py', 636, 33, '\t\t\t\ttry :'))

 

anybody can tell me how to fix it? or check the code of quest so it will work as t should?

1 answer to this question

Recommended Posts

  • 0
Posted

This line (636) contains 4 tabulations and a "try :" command.

 

Dunno why, but I suppose tabulations are transcripted to \t, so it will do a "\t\t\t\ttry :" command instead of a simply "try :". It explains why you got the bug.

 

How it does that on this special line and not before ? I got no answers, except try to remove tabulations before this line, or try to remake tabulations :). The used editor was perhaps crappy and added unvolontarily tags. The scripts engine perhaps interpretate it bad too.

 

So what you can do (put in order of easy to hard) :

- c/p another "try :" command from a higher part of code (like line 613), which seems to haven't this problem.

- c/p the quest in notepad (basic version) to eventually clean tags, and save under .py format.

- correct scripts engine o_o.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...