[Fixed] KeyPress Event even when chat is opened

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

[Fixed] KeyPress Event even when chat is opened

Post by steeffeen »

Hey there,

It has come to my attention that since MP3 a manialink script still receives the KeyPress event while someone is typing in the chat on a server.
(Thanks phil)

So for example the most-common restart key "Delete" will get triggered if you want to delete some characters from the message you just typed in. Now the game mode will think you actually want to hit the Delete key. In game modes like obstacle that leads to an unwanted behavior.

This wasn't the case before MP3. the client-side scripts didn't receive events when the player is typing into the server chat.
I think it can be helpful that the script receives these events but there must by a way to determine that it's actually part of a chat message, like a boolean property of the script "IsChatOpen".

Imagine a game mode where you do additional stuff with the usual character keys (A-Z), then you wouldn't be able to chat at all because the game mode will go crazy.

A fix would be greatly appreciated.

Thanks in advance,
Steff
Last edited by steeffeen on 23 Jun 2014, 15:36, edited 1 time in total.
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    phil13hebert
    Posts: 564
    Joined: 29 Oct 2011, 14:11
    Location: Québec

    Re: KeyPress Event even when chat is opened

    Post by phil13hebert »

    I can confirm this behaviour that wasn't happening before mp3. In a gamemode like Obstacle, this can be quite annoying cause you don't want to always restart from 1st cp just because you typed something.

    I can also tell you that this happen to many obstacle players.
    OS: Windows 7 64 bit
    CPU: Intel Core i7 3770 @ 3.40Ghz
    RAM: 8GB DDR3 798MHz
    GPU: Nvidia GeForce GTX 660 1536MB
    Motherboard: Intel 0KM92T
    Sound: 7.1
    Peripherals: Logitech G510, SteelSeries sensei raw, Corsair vengeance 1500
    User avatar
    fleo
    Posts: 304
    Joined: 02 Sep 2011, 12:56

    Re: KeyPress Event even when chat is opened

    Post by fleo »

    I was already happening with modes with weapon choice, for instance when you were typping in french "é" which is on the same key as number 2, this chose the weapon number 2.
    Follow me on my maniaflash. Try the new elitealternative! Feedbacks on this post. :thumbsup:

    ♫ I need αεяø. I'm holding out for αεяø 'til the end of the night. ♫
    User avatar
    TMarc
    Posts: 15255
    Joined: 05 Apr 2011, 19:10
    Location: Europe
    Contact:

    Re: KeyPress Event even when chat is opened

    Post by TMarc »

    as short time workaround until this is fixed I suggest all players assign new keys to the respawn and give up, e.g. F8 and F9.
    User avatar
    xbx
    Nadeo
    Nadeo
    Posts: 1289
    Joined: 14 Jun 2010, 17:35

    Re: KeyPress Event even when chat is opened

    Post by xbx »

    hi.

    I was checking on this one, but I think I already did fix it on may 20th.
    can you confirm it is indeed fixed in current version?

    thx!
    User avatar
    phil13hebert
    Posts: 564
    Joined: 29 Oct 2011, 14:11
    Location: Québec

    Re: KeyPress Event even when chat is opened

    Post by phil13hebert »

    xbx wrote:hi.

    I was checking on this one, but I think I already did fix it on may 20th.
    can you confirm it is indeed fixed in current version?

    thx!
    I can confirm that it is now fixed. Thank you.
    OS: Windows 7 64 bit
    CPU: Intel Core i7 3770 @ 3.40Ghz
    RAM: 8GB DDR3 798MHz
    GPU: Nvidia GeForce GTX 660 1536MB
    Motherboard: Intel 0KM92T
    Sound: 7.1
    Peripherals: Logitech G510, SteelSeries sensei raw, Corsair vengeance 1500
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: [Fixed] KeyPress Event even when chat is opened

    Post by steeffeen »

    ty :thumbsup:
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      Post Reply

      Return to “ManiaScript”

      Who is online

      Users browsing this forum: No registered users and 1 guest