Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-05-2006, 01:29 AM
Thallen Thallen is offline
Banned
Thallen's Avatar
Join Date: Jun 2003
Location: Florida
Posts: 1,284
Thallen is an unknown quantity at this point
Send a message via ICQ to Thallen Send a message via AIM to Thallen Send a message via MSN to Thallen Send a message via Yahoo to Thallen
TPS Recorder

I think it would be very beneficial to servers with spar tournaments to have a script that recorded a player's tiles per second movement, or some variation of a movement counter. Speed hacking is still very controversial, and I think this, with a norm speed on hand, could help out a lot.
Reply With Quote
  #2  
Old 06-05-2006, 01:45 AM
xshadx xshadx is offline
Development Staff
xshadx's Avatar
Join Date: May 2006
Posts: 161
xshadx is on a distinguished road
I Agree.
__________________

Reply With Quote
  #3  
Old 06-05-2006, 03:54 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Something like this:

PHP Code:
function onActionServerside() {
  if(
params[0] == "distcheck") {
    echo(
"Warning: Player \"" player.account "\" is moving at: " params[1] @ " Tiles/sec.  This is " server.max_tilespersecond params[1] @ " Tiles/sec faster than the defined maximum. (Speedhack?)");
  }
}

//#CLIENTSIDE
function onCreated() {
  
this.player_oldposition = { player.xplayer.}; 
  
setTimer(1);
}

function 
onTimeout() {
  
temp.dx this.player_oldposition[0] - player.x;
  
temp.dy this.player_oldposition[1] - player.y;
  
temp.distmoved = ((temp.dx^2)+(temp.dy^2))^0.05;

  if(
temp.distmoved server.max_tilespersecond) {
    
triggerserver("gui"this.name"distcheck"temp.distmoved);
  }

  
this.player_oldposition = { player.xplayer.};

  
setTimer(1);

?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #4  
Old 06-05-2006, 01:09 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
I'd make the timer stop tho, if it has concluded that it is a possibly speedhacker. Else you get a message inside RC every second? Hmmm.. :P
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #5  
Old 06-05-2006, 01:30 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
There is a speedhack tolerance serveroption already. I am not sure how it works, but it might be on the wiki.
__________________
Skyld
Reply With Quote
  #6  
Old 06-05-2006, 03:11 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
speedhacktolerance=value (default is 90)
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #7  
Old 06-05-2006, 05:09 PM
Thallen Thallen is offline
Banned
Thallen's Avatar
Join Date: Jun 2003
Location: Florida
Posts: 1,284
Thallen is an unknown quantity at this point
Send a message via ICQ to Thallen Send a message via AIM to Thallen Send a message via MSN to Thallen Send a message via Yahoo to Thallen
Quote:
Originally Posted by Skyld
There is a speedhack tolerance serveroption already. I am not sure how it works, but it might be on the wiki.
If you actually played Graal, you'd know that the speedhack tolerance tool is garbage, and sparrers who use speedhacks use minor, but significant enough, amounts of speed that speedhack tolerance sucks versus.
Reply With Quote
  #8  
Old 06-05-2006, 05:26 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Most people probably do not equip their speedhacktolerance properly to make it actually do anything at all.

I do not understand how people 'speedhack' anyways unless the movement is not scripted x-x
Reply With Quote
  #9  
Old 06-05-2006, 05:35 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Thallen
If you actually played Graal, you'd know that the speedhack tolerance tool is garbage, and sparrers who use speedhacks use minor, but significant enough, amounts of speed that speedhack tolerance sucks versus.
Most servers probably do not even realise that the speedhack tolerance exists, which probably explains why most servers are victims to it.
__________________
Skyld
Reply With Quote
  #10  
Old 06-05-2006, 06:01 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
The speedhack feature is kick-ass, even to minor, but significant enough, amounts of speed if you put the value low enough.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #11  
Old 06-05-2006, 07:05 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Actually.. Okies script is garbage.. since.. if you speed up the frame rating of the game, also the scripts will go faster (see movement scripts as a proof, players can speed that up also).. so the distance that's traveled every second will be the same for what the game thinks....

Since you are also speeding up the timeout, it will still calculate, and result regular distance that has been traveled...

Appologiez if any spelling is wrong in my little story :P I am dutch and don't talk that proper English all day.
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #12  
Old 06-05-2006, 07:22 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by contiga
Actually.. Okies script is garbage.. since.. if you speed up the frame rating of the game, also the scripts will go faster (see movement scripts as a proof, players can speed that up also).. so the distance that's traveled every second will be the same for what the game thinks....
Not all speedhacks speed up the frame rate. (I don't see you contributing a better script, either )
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #13  
Old 06-05-2006, 07:26 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Well, you could do a serverside one.. but it might cause too much lag yeah.. an option would be: recording every player for 10 seconds, then skipping to another one (serverside).. and compare? If you'd do every single player serverside, it'd cause a lot of lag.. so I think skipping between players would be the best.

ps. If I wanted to make one, I'd already done it.. you just were at this thread earlier then me =p
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #14  
Old 06-06-2006, 05:54 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by contiga
Well, you could do a serverside one.. but it might cause too much lag yeah.. an option would be: recording every player for 10 seconds, then skipping to another one (serverside).. and compare? If you'd do every single player serverside, it'd cause a lot of lag.. so I think skipping between players would be the best.
Recording every player for 10 seconds would not work, because not everyone is going to be constantly moving for 10 seconds.

Quote:
Originally Posted by contiga
ps. If I wanted to make one, I'd already done it.. you just were at this thread earlier then me =p
Nah, you'd probably wait until someone else made one and then steal their idea.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #15  
Old 06-06-2006, 09:55 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by xXziroXx
speedhacktolerance=value (default is 90)
Era has it at 0 and we catch 100% of the hackers
Reply With Quote
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 +2. The time now is 04:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.