Author Topic: Issue : Dialogs skip too fast  (Read 534 times)

NicolaGs

  • Going nowhere fast
    • NicolaGs worked on a game that was nominated for an AGS Award!
      NicolaGs worked on a game that won an AGS Award!
Issue : Dialogs skip too fast
« on: 06 Jan 2018, 13:33 »
Hi,

Some players found a weird bug in my game. It's related to the dialogs : they start to skip instantaneously without any user input after some time playing.

Quote from: a player...
I've tried playing your game, but unfortunately after a while the text all scrolls through very quickly whenever I examine or do any other actions on things. I restarted a couple times and experienced the same thing.

Or visible here, in this walkthrough video : https://youtu.be/o-nvhUfGK9o?t=2244

My question is : has anyone seen the same problem (possible AGS engine bug) or coult it be just my game (bug in my scripts...)?

The game has the option to change the dialogs skip speed (4 choices : from click-to-skip to high speed) but changing this seems to not be of any help.
It was seen only by 2 players... so it may be related to their system.

I don't have any information on the players' system version atm (it's Windows, but don't know the version).

The game runs with latest stable AGS version (3.4.1.11).

Nicolas
My first game : I Want Out!

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Issue : Dialogs skip too fast
« Reply #1 on: 06 Jan 2018, 14:19 »
Ok, let me clarify first of all: are you saying that even if you set "skip only by click" mode they still continue to skip that fast?
Does your game feature voice-over? If yes, is there a difference if you turn voice on/off?

E: Checked the rest of the video, it looks like they begin doing that after certain point? Did user alt+tab somewhere during the game? I recall that may cause some keys "stick" in memory so AGS always thinks that a key is pressed.
« Last Edit: 06 Jan 2018, 14:21 by Crimson Wizard »

NicolaGs

  • Going nowhere fast
    • NicolaGs worked on a game that was nominated for an AGS Award!
      NicolaGs worked on a game that won an AGS Award!
Re: Issue : Dialogs skip too fast
« Reply #2 on: 06 Jan 2018, 14:26 »
are you saying that even if you set "skip only by click" mode they still continue to skip that fast?
Apparently, yes (according to the only feedback I had)...

Quote
Does your game feature voice-over? If yes, is there a difference if you turn voice on/off?
No!
My first game : I Want Out!

NicolaGs

  • Going nowhere fast
    • NicolaGs worked on a game that was nominated for an AGS Award!
      NicolaGs worked on a game that won an AGS Award!
Re: Issue : Dialogs skip too fast
« Reply #3 on: 06 Jan 2018, 14:33 »
E: Checked the rest of the video, it looks like they begin doing that after certain point? Did user alt+tab somewhere during the game? I recall that may cause some keys "stick" in memory so AGS always thinks that a key is pressed.
Oh, didn't see your edit... Well I'll ask, but it could be that, because, by looking at the video, there's a cut just before the occuring of the bug... So maybe the player took a look at the walkthrough and got back to the game...
My first game : I Want Out!

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Issue : Dialogs skip too fast
« Reply #4 on: 06 Jan 2018, 14:37 »
I remember someone posting a possible fix for Allegro 4 on forums before, but apparently I forgot to add it... again.
I will try to find it and see if it's possible to make a patch.

NicolaGs

  • Going nowhere fast
    • NicolaGs worked on a game that was nominated for an AGS Award!
      NicolaGs worked on a game that won an AGS Award!
Re: Issue : Dialogs skip too fast
« Reply #5 on: 06 Jan 2018, 14:40 »
Thanks for your fast answer, CW!
My first game : I Want Out!

Re: Issue : Dialogs skip too fast
« Reply #6 on: 13 Apr 2018, 22:04 »
Hey, a person found this bug with alt+tab, but it doesn't happen in any computer I own, so I can't reproduce. I also couldn't find the mentioned thread in Allegro forum - I also can only Google on Allegro forum, but from itself I can only look the latest 5 topics...

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Issue : Dialogs skip too fast
« Reply #7 on: 13 Apr 2018, 22:45 »
Hey, a person found this bug with alt+tab, but it doesn't happen in any computer I own, so I can't reproduce. I also couldn't find the mentioned thread in Allegro forum - I also can only Google on Allegro forum, but from itself I can only look the latest 5 topics...

It was not on Allegro's forum, it was on this very forum, somewhere in Engine development. I could not find it last time, probably was just skipping it by.

I recall it involved some changes which looked confusing, so I'd rather not apply them automatically without some research first.

Re: Issue : Dialogs skip too fast
« Reply #8 on: 14 Apr 2018, 01:45 »
Ha CW, I found the thread I think you are talking about: this thread here.

From the thread, the available options were:
 - using only mouse to skip text ;
 - modifying alleg-allegro/src/win/wkeybd.c , to remove the section with /* ignore special Windows keys (alt+tab, alt+space, (ctrl|alt)+esc) */ ...  (I don't think we need to prevent alt+tab from being handled in game if it isn't handled... So removing kind makes sense, but I can't understand why this would work ) ;
 - letting go (lot's of games don't play well with alt+tab and people are usually fine?) .

Edit:

I went with using only mouse to skip text. This solves the problem.
« Last Edit: 28 Apr 2018, 18:42 by eri0o »

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Issue : Dialogs skip too fast
« Reply #9 on: 30 Apr 2018, 15:03 »
- modifying alleg-allegro/src/win/wkeybd.c , to remove the section with /* ignore special Windows keys (alt+tab, alt+space, (ctrl|alt)+esc) */ ...  (I don't think we need to prevent alt+tab from being handled in game if it isn't handled... So removing kind makes sense, but I can't understand why this would work ) ;

I'd look into this at some point, but the fact that it does not reproduce at all times makes testing problematic.