Adventure Game Studio

AGS Development => Editor Development => Topic started by: Dave Gilbert on Sun 19/12/2021 15:33:24

Title: [BUG] Autocomplete issue
Post by: Dave Gilbert on Sun 19/12/2021 15:33:24
Sooo I'm having a weird autocomplete issue and I can't make heads or tails of it. I have a custom say function called "GSay", which takes two enums I declared called "eGesture" and "eExpression." It looks like this:

import function GSay(this Character *, String sayThis, eExpression myExp=ex_none, eGesture myGest=eGestureNone);

and works like this:

cJoe.GSay("Hello!",exSmile, eGestureWave);

It works just fine, but if I write a line a dialog that includes a comma, the autocomplete skips the "Expression" parameter and goes right to the "Gesture."

For example, the line below (which has no comma) behaves properly when autocompleting:

(http://www.wadjeteyegames.com/temp/autocomplete1.png)

But this one (which includes a comma in the string) does not.

(http://www.wadjeteyegames.com/temp/autocomplete2.png)

Am I doing something wrong here or is this something internal?

Any help appreciated!

-Dave




Title: Re: [BUG] Autocomplete issue
Post by: eri0o on Mon 03/01/2022 13:40:03
This looks like an Editor bug in the autocomplete.

Reading the source, I think GetNextWord (https://github.com/adventuregamestudio/ags/blob/master/Editor/AGS.Editor/AutoComplete.cs#L630) should return the full string. Now it will only return the " character.

Edit: Tracking this one here: https://github.com/adventuregamestudio/ags/issues/1481
Title: Re: [BUG] Autocomplete issue
Post by: FanOfHumor on Wed 05/01/2022 19:29:06
I have this problem with practically anything.Sometimes when the game crashes the autocomplete wont show.and I have to run the game again before the autocomplete finally works.This is in ags 3.5.0.
Title: Re: [BUG] Autocomplete issue
Post by: eri0o on Sat 09/07/2022 15:02:57
This has been fixed by CW in latest 3.6.0 release (beta 10).