AGS Engine

Further development of AGS engine

Bug Issue: Buggy text parser

Pages: [1]

Creamy

  • AGSer
  • Posts: 418
« on: 15 May 2017, 17:38 »
Good evening,

The text parser doesn't seem to work properly.
The words that I add in the text parser word list aren't always recognized when I call them in game.

For instance :
Code: Adventure Game Studio
  1. function BoiteaTexte_OnActivate(GUIControl *control)
  2. {
  3.  String input = BoiteaTexte.Text;
  4.  Parser.ParseText(input);
  5.  
  6.  if (Parser.Said("hello")) {
  7.  Display("Hello there.");
  8.  }
  9.  
  10.  if (Parser.Said("goodbye")) {
  11.    Display("bye");
  12.    }
  13.  

For some reason, "hello" works in game but the game crashes because of "goodbye" :
Quote
Said: supplied word 'goodbye' is not in dictionnary or is an ignored word
« Last Edit: 15 May 2017, 18:27 by Creamy »
 

Pages: [1]

Issue Details

  • Reported
    15 May 2017, 17:38
  • Updated
    15 May 2017, 17:38
  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    AGS 3.4.0
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    (none)

Tags



Powered by: SMF Project Tools 0.5.4 © Niko Pahajoki 2007-2011