Raised This Month: $32 Target: $400
 8% 

Latest CSS Update changed keyhinttext?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Remy Lebeau
Senior Member
Join Date: Dec 2009
Location: Sydney, Australia
Old 04-24-2014 , 21:59   Latest CSS Update changed keyhinttext?
Reply With Quote #1

I have created a RPG style HUD for war3source that uses keyhint to display. Up until today it had been working just fine...

As of the latest CSS update, it now flickers in and out. Does anyone know if the update will have changed how keyhinttext works? I'm not seeing any errors, just that the HUD is now flickering.

I have it updating on a 1 second timer, so it could be that CSS now displays the keyhint for less time by default... I guess I could simply change time timer frequency to 0.1 seconds, see what that does, but it seems like a shame to take a performance hit :S

You can see the source code for the HUD here: http://war3source.com/index.php?topic=1894.0

Any help much appreciated!

edit: tried setting the update timer to 0.1 seconds, the display still flickers (starts to fade out and comes back in again)

Last edited by Remy Lebeau; 04-24-2014 at 22:11.
Remy Lebeau is offline
Remy Lebeau
Senior Member
Join Date: Dec 2009
Location: Sydney, Australia
Old 04-24-2014 , 22:50   Re: Latest CSS Update changed keyhinttext?
Reply With Quote #2

I'm thinking that the default duration for a KeyHintText Message in CSS may have changed... Anyone know how to check / set that? The smlib code to print the actual message is:

Code:
stock bool:Client_PrintKeyHintText(client, const String:format[], any:...)
{
    new Handle:userMessage = StartMessageOne("KeyHintText", client);
    
    if (userMessage == INVALID_HANDLE) {
        return false;
    }

    decl String:buffer[254];

    SetGlobalTransTarget(client);
    VFormat(buffer, sizeof(buffer), format, 3);

    BfWriteByte(userMessage, 1); 
    BfWriteString(userMessage, buffer); 

    EndMessage();
    
    return true;
}
edit: another weird symptom: when you're dead keyhinttext messages work fine, it's only when you're alive that they flicker!

edit 2: if you want to see this error in action, the HUD is currently running on this server: http://www.gametracker.com/server_in...9.80.127:27015

Last edited by Remy Lebeau; 04-25-2014 at 04:38.
Remy Lebeau is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 04-25-2014 , 04:39   Re: Latest CSS Update changed keyhinttext?
Reply With Quote #3

some cool guy told me we can use ShowSyncHudText now in CS:S
__________________
retired
shavit is offline
Remy Lebeau
Senior Member
Join Date: Dec 2009
Location: Sydney, Australia
Old 04-25-2014 , 18:07   Re: Latest CSS Update changed keyhinttext?
Reply With Quote #4

Quote:
Originally Posted by shavit View Post
some cool guy told me we can use ShowSyncHudText now in CS:S
Can you reference where you saw that? I'm happy to put the time into converting it, but would (For now) prefer to know what is going on with keyhinttext...
Remy Lebeau is offline
Remy Lebeau
Senior Member
Join Date: Dec 2009
Location: Sydney, Australia
Old 04-25-2014 , 18:45   Re: Latest CSS Update changed keyhinttext?
Reply With Quote #5

Discussion continues in this thread: https://forums.alliedmods.net/showthread.php?t=182929
Remy Lebeau is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-26-2014 , 07:06   Re: Latest CSS Update changed keyhinttext?
Reply With Quote #6

@original post, keyhinttext.
I tested and not seeing any flickering. Maybe in your game
or some plugin perhaps annoying that usermessage
Bacardi is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 04-26-2014 , 07:31   Re: Latest CSS Update changed keyhinttext?
Reply With Quote #7

Seems like you get flickers because there are 2 keyhinttexting plugins, happened to me when I used both "showkeys" and "speclist".
__________________
retired
shavit is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode