Disable F5 (Full Version)

All Forums >> [Artix Entertainment Games] >> [EpicDuel] >> EpicDuel General Discussion



Message


Hun Kingq -> Disable F5 (4/17/2012 22:40:55)

When in 2vs2 and 2vs1 you can tell when a players is pressing F5 it stalls the battle, causes skipped turns, and could possibly be the cause of connection lost in those battle modes.

If a player wants to leave the battle then they should be able to do it by settings only nothing else.




JohnMenzies -> RE: Disable F5 (4/17/2012 22:47:30)

F5 is a Browser Based Function, so this would possibly be difficult unless the game were made fullscreen like I've suggested several times.




ND Mallet -> RE: Disable F5 (4/17/2012 22:51:46)

@hun Impossible. The game cannot simply disable a button from working on a game window. This means simply that ED can do nothing about F5 because it cannot disable it from working on the keyboard or the browser. Also, F5 causes people to refresh the browser and DC. F5 does not cause lag and skipped turns and then ends in a DC. Every time I've seen someone fall for the F5 trick they just poof pretty quickly without any lag.




JohnMenzies -> RE: Disable F5 (4/17/2012 22:53:09)

Same Here.




Hun Kingq -> RE: Disable F5 (4/17/2012 23:41:45)

In programing you can disable any key that is including function keys they just have to make sure to make it equal false.
Here is one code:
<script language=javascript>
document.onkeydown = function(){

if(window.event && window.event.keyCode == 116)
{ // Capture and remap F5
window.event.keyCode = 505;
}

if(window.event && window.event.keyCode == 505)
{ // New action for F5
return false;
// Must return false or the browser will refresh anyway
}
}

</script>

or this

<script>
document.attachEvent("onkeydown", my_onkeydown_handler)
function my_onkeydown_handler()
{
if(event.keyCode == 116)
{
event.keyCode = 0;
event.returnValue = false;
}
}
</script>




friend18 -> RE: Disable F5 (4/18/2012 0:33:45)

I've been told to press F5 by multiple players at the lower levels. The funny thing is that I use a Mac :) And all it does is dim my keyboard :D

I actually didn't know that I could report players for this tactic, until today, so I will start to do so now. I love taking screenshots.




Retrosaur -> RE: Disable F5 (4/18/2012 0:55:50)

Isn't F5 a computer function? That is, when you press F5 (on a windows), it finds the target, then does whatever action. So if F5 is assigned to persay, "quit", then F5 would quit whatever program.

However, to ask the devs to disable the F5 key would be tricky. That might involve changing the computer settings? I'm not sure.




Frost Snake -> RE: Disable F5 (4/18/2012 1:34:47)

Well i allways make my internet fullscreen so it does nothing to me :D

And i think this should be locked. for the soul reason that it's an idiotic statement. and for the f5 button to be disabled you would have to go back in time and make it so there is no f5 button :p




Lycus -> RE: Disable F5 (4/18/2012 7:18:12)

@Hun: You can disable the F5 key as an in-game shortcut using a code like that. Doing that means that if F5 made you do something in the game, then it would no longer work. As multiple people have stated this is a browser function not a game function. The code does not effect browser controls, if someone wants to do that, they would have to go in to their browser settings and change them themselves, so that F5 is no longer a shortcut to refreshing. The issue with that is that not many browsers allow you to change that.

If that code were to work however, though it would also have issues with browser compatibility, then any person who genuinely wants to F5 due to D/C'ing or something would now not be able to. Further more, there are various other button combinations that can be used to close the browser, and do multiple others, if F5 was to be disabled, then anyone saying 'Press F5' would just move on to saying 'Press *insert other combination here*', we can't block all commands because that would create an even larger browser compatibility issue, since different browser have different shortcuts.

For those reasons it is not an option, and I'm going to lock this up. I know it's annoying, but there's hundreds of ways to respond to them, for most people it's one loss (because they should learn from the first time), and possibly a bit annoying during a few battles, but let's be honest, if they feel they have to cheat to win against you, it's a compliment. If people start trying to get you to press F5, use the in-game report system or take a screen shot, and send it to me, Ashari or The Lawman and we'll deal with it!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.09375