Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Introduction
This topic is a little linked to viewtopic.php?f=70&t=2984.
Now remember, that the 0.1 value is very important. Do not change that, unless you know what your doing. In case you get the alertmsg when using the value 0.1, set it at 0.2, if you still get it, set it at 0.3. Although I doubt you will need to set it that high. It mainly depends on the fps lock, the higher value you have there, the higher you will need here. So you might need to test it to get it working.
Server Side
Add this in Type PlayerRec:
Code: SpeedHackCheck As Double
Now find Sub PlayerMove, at the top of that sub, add:
Code: If Timer < Player(index).Char(Player(index).CharNum).SpeedHackCheck + 0.1 Then
Call AlertMsg(index, "You are using a Speedhack. Go to the forum for more information.")
Exit Sub
End If
And below:
Code: If Player(index).GettingMap = NO Then
Add:
Code: Player(index).Char(Player(index).CharNum).SpeedHackCheck = Timer
You could also add Code: Player(index).Char(Player(index).CharNum).SpeedHackCheck = 0
to the clearplayer sub and such. But don't save it in the account file xD.
PLEASE TEST IT WITH A SPEED HACK!
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
"You are using a Speedhack. Go to the forum for more information."
xD!
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Robin Wrote:"You are using a Speedhack. Go to the forum for more information."
xD! It was just a example, in my game I added a little more. Like:
frmserver.lstSpeedHack.additem "Index: " & index & "Accountname"....
and also a warning system, where it writes the first time to the account file, and the 2nd time it finds him using it. The IP will be banned.
Lol. It's hard to test when the server uses gettickcount and several timers too.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Sonire Wrote:Lol. It's hard to test when the server uses gettickcount and several timers too. Why is that hard? Doesn't speed hack progress work on targeted exe's? They cant work on every running system xD
Dragoons Master
Unregistered
Realy... stop trying to make all this things, the all can be hacked, somehow, I don't know how, but they can. The best thing would be changing canmove functions from client to server... That's a final bug fix. Then just check the last time the player moved server side and make it sure he can't move until a second or so, just a time lock, server side.
I haven't tested it william, but I'm sure there is a way to hack Timer function.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Dragoons Master Wrote:Realy... stop trying to make all this things, the all can be hacked, somehow, I don't know how, but they can. The best thing would be changing canmove functions from client to server... That's a final bug fix. Then just check the last time the player moved server side and make it sure he can't move until a second or so, just a time lock, server side.
I haven't tested it william, but I'm sure there is a way to hack Timer function. How can they hack a Timer function in the server? This isn't added to the client.
Its been done to me easily and i forget how, i think its some retard packet that forces the timers active enabled values true false true false forcing them into speed,
the timer control in general.. sucks >.>
and tickcount isnt the greatest, i think daves C++ server is the best thing happening here atm - i want to try and write a java port ^_^
I don't see the point in having uber leet security on a Mirage Server.
most will never have more than 25 active players anyways, and even if they had 100, that's still manageable to deal with the "Omfg, that dude speed hacks"
Just ban them.
There's no point if adding a ton of extra checks and crap to stop 6 people from speed hacking a hobby ORPG.
=/
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Rezeyu Wrote:I don't see the point in having uber leet security on a Mirage Server.
most will never have more than 25 active players anyways, and even if they had 100, that's still manageable to deal with the "Omfg, that dude speed hacks"
Just ban them.
There's no point if adding a ton of extra checks and crap to stop 6 people from speed hacking a hobby ORPG.
=/ That's true, its not hard to find a speed hacker.
Dragoons Master
Unregistered
William Wrote:Dragoons Master Wrote:Realy... stop trying to make all this things, the all can be hacked, somehow, I don't know how, but they can. The best thing would be changing canmove functions from client to server... That's a final bug fix. Then just check the last time the player moved server side and make it sure he can't move until a second or so, just a time lock, server side.
I haven't tested it william, but I'm sure there is a way to hack Timer function. How can they hack a Timer function in the server? This isn't added to the client.
No no, I mean, there is a way to hack a Timer function client side, so doesn't matter what you do client side, there will be, someday, a way to hack it, so don't worry that much about client side and focus on server side.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Yeah, that's what I did  Im just waiting for someone to actually test it.
Dragoons Master
Unregistered
OOOOhhh, I didn't saw the "Server side" xD SRY xD LMAO
I will test it for you, but using mse2, i cannot seem to find
Code: If Player(index).GettingMap = NO Then
If you can tell me where this was or what sub it was in or where in the sub it was in, i could help you test this...
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Im not really sure this method is a good idea, at some times it seems to be non-functional.
This might been idea before, but I'm gonna add it anyway.
On the server sided one, make a clock, make one on client sided one aswell.
Because if they start speed hacking, the clock time at the client sided, must be different than the server sided, so that'll be a way to check if they speed hack.
Just an idea.
Also the packet lag will cause people to get booted for speed hacking :roll:
No seriously though thats a good idea, but the best idea is to stop sending "I moved here" packets and start sending "I pressed this" packets.
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
Labmonkey Wrote:Also the packet lag will cause people to get booted for speed hacking :roll:
No seriously though thats a good idea, but the best idea is to stop sending "I moved here" packets and start sending "I pressed this" packets.
If you mean switching out the client-side commands for requests, I think a lot of people have done.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Robin Wrote:Labmonkey Wrote:Also the packet lag will cause people to get booted for speed hacking :roll:
No seriously though thats a good idea, but the best idea is to stop sending "I moved here" packets and start sending "I pressed this" packets.
If you mean switching out the client-side commands for requests, I think a lot of people have done. Im unsure what you mean, can you give an example?
Move Canplayermove etc, server side.
|