Hello,
I'm somewhat stuck trying to Show the text Input field:
When though I checked the Forum toroughly, the script command "TextInput(Text Field UI, Code, TextInput)" doesn't work and causes a Syntax error.
Why does this happen and is there a solution?
Dialogue System: Lua code 'TextInput(Text Field UI, Code, TextInput)' threw exception 'Code has syntax Errors:
Line 2, Col 1 : Failed to parse Letter of Name.
Line 2, Col 1 : Failed to parse Name of VarName.
Line 2, Col 1 : Failed to parse 'nil' of NilLiteral.
Line 2, Col 1 : Failed to parse Text of BoolLiteral.
Line 2, Col 1 : Failed to parse '0'...'9' of Digit.
Line 2, Col 1 : Failed to parse (Digit)+ of FloatNumber.
Line 2, Col 1 : Failed to parse Name of VariableArg.
Line 2, Col 1 : Failed to parse firstTerm of OperatorExpr.
Line 2, Col 1 : Failed to parse Expr of ExprStmt.
Line 2, Col 1 : Failed to parse Letter of Name.
Line 2, Col 1 : Failed to parse Name of VarName.
Line 2, Col 1 : Failed to parse 'nil' of NilLiteral.
Line 2, Col 1 : Failed to parse Text of BoolLiteral.
Line 2, Col 1 : Failed to parse '0'...'9' of Digit.
Line 2, Col 1 : Failed to parse (Digit)+ of FloatNumber.
Line 2, Col 1 : Failed to parse Name of VariableArg.
Line 2, Col 1 : Failed to parse firstTerm of OperatorExpr.
Line 2, Col 1 : Failed to parse Expr of ExprStmt.
Line 2, Col 1 : Failed to parse Letter of Name.
Line 2, Col 1 : Failed to parse Name of VarName.
Line 2, Col 1 : Failed to parse 'nil' of NilLiteral.
Line 2, Col 1 : Failed to parse Text of BoolLiteral.
Line 2, Col 1 : Failed to parse '0'...'9' of Digit.
Line 2, Col 1 : Failed to parse (Digit)+ of FloatNumber.
Line 2, Col 1 : Failed to parse Name of VariableArg.
Line 2, Col 1 : Failed to parse firstTerm of OperatorExpr.
Line 2, Col 1 : Failed to parse Expr of ExprStmt.
Line 1, Col 16 'F': Failed to parse Letter of Name.
Line 1, Col 16 'F': Failed to parse Name of VarName.
Line 1, Col 16 'F': Failed to parse 'nil' of NilLiteral.
Line 1, Col 16 'F': Failed to parse Text of BoolLiteral.
Line 1, Col 16 'F': Failed to parse '0'...'9' of Digit.
Line 1, Col 16 'F': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 16 'F': Failed to parse Name of VariableArg.
Line 1, Col 16 'F': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 16 'F': Failed to parse Expr of ExprStmt.
Line 1, Col 12 'e': Failed to parse Letter of Name.
Line 1, Col 12 'e': Failed to parse Name of VarName.
Line 1, Col 12 'e': Failed to parse 'nil' of NilLiteral.
Line 1, Col 12 'e': Failed to parse Text of BoolLiteral.
Line 1, Col 12 'e': Failed to parse '0'...'9' of Digit.
Line 1, Col 12 'e': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 12 'e': Failed to parse Name of VariableArg.
Line 1, Col 12 'e': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 12 'e': Failed to parse Expr of ExprStmt.
Line 1, Col 12 'e': Failed to parse Letter of Name.
Line 1, Col 12 'e': Failed to parse Name of VarName.
Line 1, Col 12 'e': Failed to parse 'nil' of NilLiteral.
Line 1, Col 12 'e': Failed to parse Text of BoolLiteral.
Line 1, Col 12 'e': Failed to parse '0'...'9' of Digit.
Line 1, Col 12 'e': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 12 'e': Failed to parse Name of VariableArg.
Line 1, Col 12 'e': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 12 'e': Failed to parse Expr of ExprStmt.
Line 1, Col 11 'T': Failed to parse Letter of Name.
Line 1, Col 11 'T': Failed to parse Name of VarName.
Line 1, Col 11 'T': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 'T': Failed to parse Text of BoolLiteral.
Line 1, Col 11 'T': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 'T': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 'T': Failed to parse Name of VariableArg.
Line 1, Col 11 'T': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 'T': Failed to parse Expr of ExprStmt.
Line 1, Col 33 'e': Failed to parse Letter of Name.
Line 1, Col 33 'e': Failed to parse Name of VarName.
Line 1, Col 33 'e': Failed to parse 'nil' of NilLiteral.
Line 1, Col 33 'e': Failed to parse Text of BoolLiteral.
Line 1, Col 33 'e': Failed to parse '0'...'9' of Digit.
Line 1, Col 33 'e': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 33 'e': Failed to parse Name of VariableArg.
Line 1, Col 33 'e': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 33 'e': Failed to parse Expr of ExprStmt.
Line 1, Col 11 'T': Failed to parse Letter of Name.
Line 1, Col 11 'T': Failed to parse Name of VarName.
Line 1, Col 11 'T': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 'T': Failed to parse Text of BoolLiteral.
Line 1, Col 11 'T': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 'T': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 'T': Failed to parse Name of VariableArg.
Line 1, Col 11 'T': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 'T': Failed to parse Expr of ExprStmt.
Line 1, Col 11 'T': Failed to parse Letter of Name.
Line 1, Col 11 'T': Failed to parse Name of VarName.
Line 1, Col 11 'T': Failed to parse 'nil' of NilLiteral.
Line 1, Col 11 'T': Failed to parse Text of BoolLiteral.
Line 1, Col 11 'T': Failed to parse '0'...'9' of Digit.
Line 1, Col 11 'T': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 11 'T': Failed to parse Name of VariableArg.
Line 1, Col 11 'T': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 11 'T': Failed to parse Expr of ExprStmt.
Line 1, Col 16 'F': Failed to parse ')' of GroupExpr.
Line 1, Col 10 '(': Failed to parse Letter of Name.
Line 1, Col 10 '(': Failed to parse Name of VarName.
Line 1, Col 10 '(': Failed to parse 'nil' of NilLiteral.
Line 1, Col 10 '(': Failed to parse Text of BoolLiteral.
Line 1, Col 10 '(': Failed to parse '0'...'9' of Digit.
Line 1, Col 10 '(': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 10 '(': Failed to parse Name of VariableArg.
Line 1, Col 10 '(': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 10 '(': Failed to parse Expr of ExprStmt.
Line 1, Col 10 '(': Failed to parse remaining input.
'
UnityEngine.Debug:LogError(Object)
PixelCrushers.DialogueSystem.Lua:RunRaw(String, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter/Lua.cs:219)
PixelCrushers.DialogueSystem.Lua:Run(String, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter/Lua.cs:120)
PixelCrushers.DialogueSystem.ConversationModel:GetState(DialogueEntry, Boolean, Boolean, Boolean) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:233)
PixelCrushers.DialogueSystem.ConversationModel:GetState(DialogueEntry) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:297)
PixelCrushers.DialogueSystem.ConversationController:OnFinishedSubtitle(Object, EventArgs) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:224)
PixelCrushers.DialogueSystem.ConversationView:FinishSubtitle() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:391)
PixelCrushers.DialogueSystem.ConversationView:OnFinishedSubtitle() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:398)
PixelCrushers.DialogueSystem.Sequencer:FinishSequence() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:487)
PixelCrushers.DialogueSystem.Sequencer:Update() (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Sequencer.cs:480)
Text Input Field not appearing
Text Input Field not appearing
- Attachments
-
- error3.PNG (6.97 KiB) Viewed 326 times
-
- error2.PNG (221.23 KiB) Viewed 326 times
-
- error1.PNG (73.76 KiB) Viewed 326 times
Re: Text Input Field not appearing
Hi,
TextInput() is a sequencer command. Please put it in the node's Sequence field instead of the Script field.
TextInput() is a sequencer command. Please put it in the node's Sequence field instead of the Script field.
Re: Text Input Field not appearing
Hello,
now I feel really stupid. Thanks for pointing it out!
now I feel really stupid. Thanks for pointing it out!
Re: Text Input Field not appearing
No worries!