Author Topic: Simulating High Ping  (Read 2371 times)

Why modify the game? Blockland already has a ping function built in. If you could figure out how that works, you could easily modify it.
Show me how you're going to change the game code.

Some routers allow you to limit speed on a MAC Address, or globally.
Completely unrelated. Just stop posting here if you can't figure out how to help the OP simulate high ping.

Show me how you're going to change the game code.
First off, you need to find what is called when a ping is received. Say, just for laughs Network::Pinged(%args) is called.

Code: [Select]
package PingTest{
function Network::Pinged(%args){
  //Not quite sure how to cause a delay. However, after delayed:
  parent::Pinged(%args);
}
};
activatePackage(PingTest);
All you would need to do is delay the client from replying for x amount of time.

Completely unrelated. Just stop posting here if you can't figure out how to help the OP simulate high ping.
I was talking to Nexus.

Do you seriously think that the network infrastructure would actually be exposed to the script engine

That may just be the dumbest thing I've heard all week

Do you seriously think that the network infrastructure would actually be exposed to the script engine

That may just be the dumbest thing I've heard all week
Let me try to make this more understandable.

If we were able to manipulate a ping pong function, this is how we would do it.

Let me try to make this more understandable.

If we were able to manipulate a ping pong function, this is how we would do it.
big if there
if everybody in the world gave me a dollar i'd be rich
but i'm not that rich because they won't

Let me try to make this more understandable.

If we were able to manipulate a ping pong function, this is how we would do it.
Somehow I get the feeling that if this topic was about how packages worked, it wouldn't be asking about simulating higher latency.

What Kalphiter pointed out is that you could not do this without modifying the base game code. When asked to provide an example of how you planned to modify that base game code, you proceeded to post something totally unrelated - an example of how you would package around the function were to to exist, which completely fails to answer anything about the topic at hand or Kalphiter's question.

Not only that, but you initially proposed that modifying the base code would be unnecessary despite that anyone with any idea what they were talking about would have known that is not the case.

Oh, just Jeep having no idea what he's talking about again.
Nothing new.

Best idea I can come up with is to download/upload a ton of stuff to use a lot of bandwidth. Might be unreliable though.
Plus it wouldn't really be simulating high latency, it would be actually causing it
« Last Edit: September 15, 2012, 03:12:58 AM by Headcrab Zombie »

Even if one could manipulate the ping request function, that would only change the reported ping.

Plus it wouldn't really be simulating high latency, it would be actually causing it
I don't really care if it's simulated or actually being caused. I just need to be capable of doing it on command for testing purposes.

I don't really care if it's simulated or actually being caused. I just need to be capable of doing it on command for testing purposes.
Using a proxy might cause a lot of latency.

Let me try to make this more understandable.

If we were able to manipulate a ping pong function, this is how we would do it.

Here's a pro tip: when you get called out for making a totally uneducated guess about something while trying to sound real knowledgeable on the subject, you don't then double down and make it worse lol.

Oh, just Jeep having no idea what he's talking about again.
Nothing new.

Best idea I can come up with is to download/upload a ton of stuff to use a lot of bandwidth. Might be unreliable though.
Plus it wouldn't really be simulating high latency, it would be actually causing it
Did you want to give advice? Or just say that to me? Because I'm pretty sure that mine was better than yours. Yeah, mine wasn't the best. But I tried to help, nonetheless.

Did you want to give advice? Or just say that to me?
I did offer a suggestion but ok lol.

Because I'm pretty sure that mine was better than yours.
Um.
Your 'solution' doesn't work at all, because you simply can't do what you're suggesting to do.
Not that it would work if you could do it, the networking system does not work the way you seem to think it does.

But I tried to help, nonetheless.
And then you kept trying even after multiple people said you have no idea what you're talking about.