Failed to parse

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
OneManOnMars
Posts: 105
Joined: Tue Apr 05, 2016 9:37 am

Failed to parse

Post by OneManOnMars »

Hey, I get this error message. I did use the lua wizard to create this condition so I am not sure what is going on.

Image

Code: Select all

Dialogue System: Lua code 'return and (CurrentQuestState("CollectRails") == "unassigned") and (4 <= Variable["railParts"] and Variable["railParts"] < 8)' threw exception 'Code has syntax errors:
Line 1, Col 109 '"': Failed to parse Letter of Name.
Line 1, Col 109 '"': Failed to parse Name of VarName.
Line 1, Col 109 '"': Failed to parse 'nil' of NilLiteral.
Line 1, Col 109 '"': Failed to parse Text of BoolLiteral.
Line 1, Col 109 '"': Failed to parse '0'...'9' of Digit.
Line 1, Col 109 '"': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 109 '"': Failed to parse Name of VariableArg.
Line 1, Col 109 '"': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 109 '"': Failed to parse Expr of ExprStmt.
Line 1, Col 109 '"': Failed to parse Letter of Name.
Line 1, Col 109 '"': Failed to parse Name of VarName.
Line 1, Col 109 '"': Failed to parse 'nil' of NilLiteral.
Line 1, Col 109 '"': Failed to parse Text of BoolLiteral.
Line 1, Col 109 '"': Failed to parse '0'...'9' of Digit.
Line 1, Col 109 '"': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 109 '"': Failed to parse Name of VariableArg.
Line 1, Col 109 '"': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 109 '"': Failed to parse Expr of ExprStmt.
Line 1, Col 109 '"': Failed to parse Letter of Name.
Line 1, Col 109 '"': Failed to parse Name of VarName.
Line 1, Col 109 '"': Failed to parse 'nil' of NilLiteral.
Line 1, Col 109 '"': Failed to parse Text of BoolLiteral.
Line 1, Col 109 '"': Failed to parse '0'...'9' of Digit.
Line 1, Col 109 '"': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 109 '"': Failed to parse Name of VariableArg.
Line 1, Col 109 '"': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 109 '"': Failed to parse Expr of ExprStmt.
Line 1, Col 16 'r': Failed to parse Letter of Name.
Line 1, Col 16 'r': Failed to parse Name of VarName.
Line 1, Col 16 'r': Failed to parse 'nil' of NilLiteral.
Line 1, Col 16 'r': Failed to parse Text of BoolLiteral.
Line 1, Col 16 'r': Failed to parse '0'...'9' of Digit.
Line 1, Col 16 'r': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 16 'r': Failed to parse Name of VariableArg.
Line 1, Col 16 'r': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 16 'r': Failed to parse Expr of ExprStmt.
Line 1, Col 12 '(': Failed to parse Letter of Name.
Line 1, Col 12 '(': Failed to parse Name of VarName.
Line 1, Col 12 '(': Failed to parse 'nil' of NilLiteral.
Line 1, Col 12 '(': Failed to parse Text of BoolLiteral.
Line 1, Col 12 '(': Failed to parse '0'...'9' of Digit.
Line 1, Col 12 '(': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 12 '(': Failed to parse Name of VariableArg.
Line 1, Col 12 '(': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 12 '(': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 33 'o': Failed to parse Letter of Name.
Line 1, Col 33 'o': Failed to parse Name of VarName.
Line 1, Col 33 'o': Failed to parse 'nil' of NilLiteral.
Line 1, Col 33 'o': Failed to parse Text of BoolLiteral.
Line 1, Col 33 'o': Failed to parse '0'...'9' of Digit.
Line 1, Col 33 'o': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 33 'o': Failed to parse Name of VariableArg.
Line 1, Col 33 'o': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 33 'o': Failed to parse Expr of ExprStmt.
Line 1, Col 12 '(': Failed to parse Letter of Name.
Line 1, Col 12 '(': Failed to parse Name of VarName.
Line 1, Col 12 '(': Failed to parse 'nil' of NilLiteral.
Line 1, Col 12 '(': Failed to parse Text of BoolLiteral.
Line 1, Col 12 '(': Failed to parse '0'...'9' of Digit.
Line 1, Col 12 '(': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 12 '(': Failed to parse Name of VariableArg.
Line 1, Col 12 '(': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 12 '(': Failed to parse Expr of ExprStmt.
Line 1, Col 52 'n': Failed to parse Letter of Name.
Line 1, Col 52 'n': Failed to parse Name of VarName.
Line 1, Col 52 'n': Failed to parse 'nil' of NilLiteral.
Line 1, Col 52 'n': Failed to parse Text of BoolLiteral.
Line 1, Col 52 'n': Failed to parse '0'...'9' of Digit.
Line 1, Col 52 'n': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 52 'n': Failed to parse Name of VariableArg.
Line 1, Col 52 'n': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 52 'n': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 55 's': Failed to parse Letter of Name.
Line 1, Col 55 's': Failed to parse Name of VarName.
Line 1, Col 55 's': Failed to parse 'nil' of NilLiteral.
Line 1, Col 55 's': Failed to parse Text of BoolLiteral.
Line 1, Col 55 's': Failed to parse '0'...'9' of Digit.
Line 1, Col 55 's': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 55 's': Failed to parse Name of VariableArg.
Line 1, Col 55 's': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 55 's': Failed to parse Expr of ExprStmt.
Line 1, Col 12 '(': Failed to parse Letter of Name.
Line 1, Col 12 '(': Failed to parse Name of VarName.
Line 1, Col 12 '(': Failed to parse 'nil' of NilLiteral.
Line 1, Col 12 '(': Failed to parse Text of BoolLiteral.
Line 1, Col 12 '(': Failed to parse '0'...'9' of Digit.
Line 1, Col 12 '(': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 12 '(': Failed to parse Name of VariableArg.
Line 1, Col 12 '(': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 12 '(': Failed to parse Expr of ExprStmt.
Line 1, Col 51 'u': Failed to parse Letter of Name.
Line 1, Col 51 'u': Failed to parse Name of VarName.
Line 1, Col 51 'u': Failed to parse 'nil' of NilLiteral.
Line 1, Col 51 'u': Failed to parse Text of BoolLiteral.
Line 1, Col 51 'u': Failed to parse '0'...'9' of Digit.
Line 1, Col 51 'u': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 51 'u': Failed to parse Name of VariableArg.
Line 1, Col 51 'u': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 51 'u': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 11 ' ': Failed to parse Letter of Name.
Line 1, Col 11 ' ': Failed to parse Name of VarName.
Line 1, Col 11 ' ': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 ' ': Failed to parse Text of BoolLiteral.
Line 1, Col 11 ' ': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 ' ': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 ' ': Failed to parse Name of VariableArg.
Line 1, Col 11 ' ': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 ' ': Failed to parse Expr of ExprStmt.
Line 1, Col 12 '(': Failed to parse Letter of Name.
Line 1, Col 12 '(': Failed to parse Name of VarName.
Line 1, Col 12 '(': Failed to parse 'nil' of NilLiteral.
Line 1, Col 12 '(': Failed to parse Text of BoolLiteral.
Line 1, Col 12 '(': Failed to parse '0'...'9' of Digit.
Line 1, Col 12 '(': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 12 '(': Failed to parse Name of VariableArg.
Line 1, Col 12 '(': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 12 '(': Failed to parse Expr of<message truncated>
Thank you!
User avatar
Tony Li
Posts: 21055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Failed to parse

Post by Tony Li »

It looks like somehow an "and" was added to the front of the text. Try setting the Conditions field to this:

Code: Select all

(CurrentQuestState("CollectRails") == "unassigned") and (4 <= Variable["railParts"]) and (Variable["railParts"] < 8)
Also, if you want to consider backing up your project and updating to version 2.2.9, the Conditions and Script fields now automatically adjust their size to fit the entire content so you can see the entire text.
Post Reply