Gamer's Proxy - a program to emulate ping / packet loss

Maps, modifications, add-ons, projects, and other releases for Zandronum. Also includes announcers.
User avatar
Zalewa
Developer
Posts: 332
Joined: Wed May 30, 2012 3:28 pm

Gamer's Proxy - a program to emulate ping / packet loss

#1

Post by Zalewa » Thu Jan 31, 2013 7:28 pm

Ever played a competitive game with a friend in which one of you hosted the server on their own machine? Ever thought that it's unfair that one person's ping is zero and the other one's is 80? Here's a program that can correct that:

https://sourceforge.net/projects/gamersproxy/

This is an open-source program that can emulate constant ping, ping spikes and packet losses.
Download, extract wherever you want, launch the executable and read the instructions that are conveniently placed in the main window of the program.

The download site provides build for Windows only, but the program will compile and work just fine on Linux too. On Ubuntu all that is necessary is the standard compiler tools, cmake and libqt4-dev, and mercurial to check the repository out. Program should also compile on Mac, although getting that to work may require some hassle.

Some may remember that I released a similar program a few years ago, DelayedUDPProxy. That previous program was written in Java and required JRE to run - not nice. This new program is written in C++ using Qt library and should require no additional crap to run.
Spoiler: Screenshot of the program in action (Open)
The ping to the proxied server is actually higher than the ping that is visible in the proxy settings. Proxy was set to have 80ms as the base ping and it's allowed to increase this ping randomly by 50% max, so that's what is happening here.

Image
Spoiler: Video demonstrating how the program works (1080 HD) (Open)
phpBB [video]
The [video] tag is deprecated, please use the [media] tag
Last edited by Zalewa on Wed Feb 13, 2013 5:42 pm, edited 1 time in total.
Doomseeker - a real answer to cross-platform server browser.
Doomseeker dev builds - unofficial Doomseeker builds for Windows.
Gamer's Proxy - a program to emulate ping and packet losses.

TerminusEst13
Retired Staff / Community Team Member
Posts: 865
Joined: Tue Jun 05, 2012 11:06 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#2

Post by TerminusEst13 » Thu Jan 31, 2013 7:48 pm

Well, this is interesting.

I can think of functions beyond competition, too, like checking to make sure your code/ACS functions in laggy environments.
The Ranger - New class for HeXen.
ZDoom Wars - I drew some pictures.
Samsara - Some class-based mod I guess?
Metroid: Dreadnought - I am a dumb fanboy.
DemonSteele - ~come with me to anime world~

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Gamer's Proxy - a program to emulate ping / packet loss

#3

Post by Llewellyn » Fri Feb 01, 2013 2:37 am

Reminds me of SkullProxy.
I tried to find a working copy of that again but failed :P

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Gamer's Proxy - a program to emulate ping / packet loss

#4

Post by DevilHunter » Fri Feb 01, 2013 5:28 am

I have SkullProxy, and it still works. If need be, I can upload it. Grabbing this now :p

EDIT: Btw, does One have to do all that stuff like Back in the day?? Like where you First find the Ip of the server, put it in Gamer's Proxy, enter in a port like 10667, Join the server, wait till fully connected, Disconnect using Console, type in "connect localhost:10667" in console, wait till fully connected again, then enable the Proxy?

Yes I still have the instructions.. I dunno how I got to the post, but I got there before the Forums went poof.
Last edited by DevilHunter on Fri Feb 01, 2013 5:38 am, edited 1 time in total.

User avatar
Zalewa
Developer
Posts: 332
Joined: Wed May 30, 2012 3:28 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#5

Post by Zalewa » Fri Feb 01, 2013 4:38 pm

Is SkullProxy the other Java program that continuously hogs 100% of at least one CPU core when enabled? That was the original reason for creating my own program these few years ago, because the other one was broken. I dug up a screenshot of SkullProxy 0.2a and if that is the final version then Gamer's Proxy simply offers more functionality (and is platform native and platform independent at the same time).
DevilHunter wrote: EDIT: Btw, does One have to do all that stuff like Back in the day?? Like where you First find the Ip of the server, put it in Gamer's Proxy, enter in a port like 10667, Join the server, wait till fully connected, Disconnect using Console, type in "connect localhost:10667" in console, wait till fully connected again, then enable the Proxy?
That sounds convoluted and I don't think that SkullProxy was that broken. Anyway, my program doesn't require that much hassle. It basically ends at "Join the server" part, however you do need to join using the address of the proxy, and not the address of the real server.
Doomseeker - a real answer to cross-platform server browser.
Doomseeker dev builds - unofficial Doomseeker builds for Windows.
Gamer's Proxy - a program to emulate ping and packet losses.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Gamer's Proxy - a program to emulate ping / packet loss

#6

Post by DevilHunter » Fri Feb 01, 2013 8:40 pm

Erm well, not Skullproxy.. It was DelayedUDPProxy1.0a.jar, My bad. I was half asleep when I wrote that post. Anyhow, I got that from the really old post on ST. I think the same instructions still apply for DelayedUDPProxy.

Anyhow, I haven't tested out GamersProxy yet. But I might sooner or later. Have so much going on, and half the time, I don't feel like doing anything.

User avatar
Zalewa
Developer
Posts: 332
Joined: Wed May 30, 2012 3:28 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#7

Post by Zalewa » Fri Feb 01, 2013 8:42 pm

DevilHunter wrote: Erm well, not Skullproxy.. It was DelayedUDPProxy1.0a.jar, My bad. I was half asleep when I wrote that post. Anyhow, I got that from the really old post on ST. I think the same instructions still apply for DelayedUDPProxy.
I am the author of Delayed UDP Proxy and the thing you're describing is simply not true. My program never required such convoluted actions.
Doomseeker - a real answer to cross-platform server browser.
Doomseeker dev builds - unofficial Doomseeker builds for Windows.
Gamer's Proxy - a program to emulate ping and packet losses.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Gamer's Proxy - a program to emulate ping / packet loss

#8

Post by DevilHunter » Fri Feb 01, 2013 9:59 pm

Ok so maybe the Method of Just starting the proxy, then joining Localhost works, instead of the way I posted. I just grabbed the instructions from the old Skullproxy post.

Anyhow, now to try out GamersProxy. Btw, do you mind if I put DelayedUDPProxy on my http?

Thereaper666
New User
Posts: 7
Joined: Sat Feb 09, 2013 12:44 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#9

Post by Thereaper666 » Sat Feb 09, 2013 12:46 pm

DevilHunter wrote: I have SkullProxy, and it still works. If need be, I can upload it. Grabbing this now :p

EDIT: Btw, does One have to do all that stuff like Back in the day?? Like where you First find the Ip of the server, put it in Gamer's Proxy, enter in a port like 10667, Join the server, wait till fully connected, Disconnect using Console, type in "connect localhost:10667" in console, wait till fully connected again, then enable the Proxy?

Yes I still have the instructions.. I dunno how I got to the post, but I got there before the Forums went poof.
Yes could you upload a copy of skullproxy0.2a i really want to test this out and compare it with gamersproxy!

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Gamer's Proxy - a program to emulate ping / packet loss

#10

Post by DevilHunter » Sat Feb 09, 2013 9:24 pm

Yes well, as I said in the Next Post.. That it was DelayedUDPProxy, but anyhow Here it is...

DelayedUDPProxy1.0a.zip

Enjoy :p

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Gamer's Proxy - a program to emulate ping / packet loss

#11

Post by DevilHunter » Mon Feb 11, 2013 9:09 am

Welp, I know this might break the rules but eh.. Anyhow, I tried GamersProxy last night, and well.. It didn't do anything. I saw the numbers move around in the Window but thats it. My ping didn't increase, I didn't get any lagspikes or anything. And YES, I set the ips/ports right, and even went as far as Rebooting my router and junk.

However, DelayedUDPProxy works just fine.

User avatar
Zalewa
Developer
Posts: 332
Joined: Wed May 30, 2012 3:28 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#12

Post by Zalewa » Mon Feb 11, 2013 5:02 pm

Well, I can't say I'm surprised that it didn't work for you, DevilHunter.
Doomseeker - a real answer to cross-platform server browser.
Doomseeker dev builds - unofficial Doomseeker builds for Windows.
Gamer's Proxy - a program to emulate ping and packet losses.

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: Gamer's Proxy - a program to emulate ping / packet loss

#13

Post by Watermelon » Mon Feb 11, 2013 5:29 pm

This is a pretty cool idea Zalewa, great job on making it!
Wish I had this a few years ago, I would have used it. I probably will one day though.
Last edited by Watermelon on Mon Feb 11, 2013 5:30 pm, edited 1 time in total.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Gamer's Proxy - a program to emulate ping / packet loss

#14

Post by DevilHunter » Mon Feb 11, 2013 8:05 pm

Well Unless I'm doing something wrong. Here is what I did..

I put the Ip of the SERVER into the Target IP/Port, Set the Settings I wanted... Started the Proxy, and then Loaded the wads into ZDL, and put "+connect Localhost:30000" in the CmdLine area. (would like to point out that no matter what, it would always default to 30000, as in, it will NOT let me select a different Listen Port), and Then hit Launch.

Joined the server no problem, checked to see that it connected to the Port, and it did. Joined up, and didn't notice any lag whatsoever. I even have port 30000 Open. It don't make any sense.

Thereaper666
New User
Posts: 7
Joined: Sat Feb 09, 2013 12:44 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#15

Post by Thereaper666 » Mon Feb 11, 2013 9:01 pm

Yeah why the heck would you not let use change the listen server to something below 30000, i want to try this for other games aswell.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Gamer's Proxy - a program to emulate ping / packet loss

#16

Post by DevilHunter » Tue Feb 12, 2013 11:37 pm

Well, I tried it again.. No dice.. I don't get why it won't work. I did everything just as the Instructions say.

User avatar
Zalewa
Developer
Posts: 332
Joined: Wed May 30, 2012 3:28 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#17

Post by Zalewa » Tue Feb 12, 2013 11:56 pm

Thereaper666 wrote: Yeah why the heck would you not let use change the listen server to something below 30000, i want to try this for other games aswell.
My bad. This is actually a bug and I'll release a fix for that as soon as possible, and post the update here. I don't see how this is preventing you from trying this for other games, though.
Doomseeker - a real answer to cross-platform server browser.
Doomseeker dev builds - unofficial Doomseeker builds for Windows.
Gamer's Proxy - a program to emulate ping and packet losses.

Thereaper666
New User
Posts: 7
Joined: Sat Feb 09, 2013 12:44 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#18

Post by Thereaper666 » Wed Feb 13, 2013 11:47 am

Zalewa wrote:
Thereaper666 wrote: Yeah why the heck would you not let use change the listen server to something below 30000, i want to try this for other games aswell.
My bad. This is actually a bug and I'll release a fix for that as soon as possible, and post the update here. I don't see how this is preventing you from trying this for other games, though.
Neither do i, i used this for Call of Duty on xbox and it worked like a charm, I was obviously being the host of a game and people sent me messages like they were getting ping spikes and i was lagging them, well pretty much after that it never worked again.

User avatar
ZZYZX
Posts a lot
Posts: 742
Joined: Thu Jun 07, 2012 5:56 pm
Location: Ukraine
Clan: A3
Clan Tag: [A3]

RE: Gamer's Proxy - a program to emulate ping / packet loss

#19

Post by ZZYZX » Wed Feb 13, 2013 1:50 pm

This software allows you to lag-dodge projectiles while playing in competitive modes. Ever saw a player that teleports through rocket that would otherwise hit him? I did.
Last edited by ZZYZX on Wed Feb 13, 2013 1:50 pm, edited 1 time in total.

User avatar
Zalewa
Developer
Posts: 332
Joined: Wed May 30, 2012 3:28 pm

RE: Gamer's Proxy - a program to emulate ping / packet loss

#20

Post by Zalewa » Wed Feb 13, 2013 5:52 pm

Version 1.1 is up. The problem with the minimal value for "Listen port" being 30000 is now fixed. Grab it at the SourceForge page.

Proof that the program works:
Spoiler: Video demonstrating how the program works (1080 HD) (Open)
phpBB [video]
The [video] tag is deprecated, please use the [media] tag
Circunei Z wrote: This software allows you to lag-dodge projectiles while playing in competitive modes. Ever saw a player that teleports through rocket that would otherwise hit him? I did.
So, the player did dodge the projectile, which saved him from getting killed. On the other hand, this player must be experiencing some massive lags to achieve that, so he's pretty much screwed. If you're pointing out that this program can be used as a haxing tool I want to point out something else: It took me one day to write this program. Anybody who's hellbent on abusing lag in such manner would probably do it in half that time, probably by starting downloads of a bunch of documentary films during the game. If the game has trouble tracking your position properly due to this, then you will have as much trouble tracking positions of other players.
Doomseeker - a real answer to cross-platform server browser.
Doomseeker dev builds - unofficial Doomseeker builds for Windows.
Gamer's Proxy - a program to emulate ping and packet losses.

Post Reply