Thread Rating:
  • 4 Vote(s) - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiserver 2.0
#39
Done cpp version including the changes of 2.01. Only tested a bit but seems to work well. However, the ping command does not work well in both versions as it gives a much lower value than the OS ping command. The following piece of code can't be right:

Code:
//LF2 has a inner clock, and it delays its respond if the request was sent quicker that its FPS ratio.
//So I subtract this ratio from the total ping result.
//Apparently LF2 waits 2 frames before it responds.
//I don't sure why. I will check it again when I have some time.
players[i].TotalWaitAmount -= PING_LF2_WAIT_BETWEEN_FRAMES * 2;
if (players[i].TotalWaitAmount < 0) players[i].TotalWaitAmount = 0;

So, zort just gave a great idea. How about using the system ping command instead of using LF2 to check it? In c++ I'd do it like:

Code:
system("ping some_ip");
[Image: random.php?pic=random]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
The meaning of life is to give life a meaning.
Stop existing. Start living.
Reply
Thanks given by:


Messages In This Thread
Multiserver 2.0 - by ayalx - 03-13-2016, 08:41 AM
RE: Multiserver 2.0 - by A-Man - 03-13-2016, 11:02 AM
RE: Multiserver 2.0 - by STM1993 - 03-13-2016, 02:10 PM
RE: Multiserver 2.0 - by ayalx - 03-13-2016, 03:53 PM
RE: Multiserver 2.0 - by MangaD - 03-13-2016, 04:41 PM
RE: Multiserver 2.0 - by ayalx - 03-13-2016, 04:58 PM
RE: Multiserver 2.0 - by MangaD - 03-13-2016, 05:00 PM
RE: Multiserver 2.0 - by HibariKyoya - 03-13-2016, 05:10 PM
RE: Multiserver 2.0 - by mfc - 03-13-2016, 09:05 PM
RE: Multiserver 2.0 - by Neuro - 03-14-2016, 03:01 PM
RE: Multiserver 2.0 - by Zelphir - 06-28-2016, 07:46 AM
RE: Multiserver 2.0 - by ayalx - 03-14-2016, 06:22 PM
RE: Multiserver 2.0 - by Boop - 03-15-2016, 09:50 AM
RE: Multiserver 2.0 - by ayalx - 03-15-2016, 05:33 PM
RE: Multiserver 2.0 - by Neuro - 03-16-2016, 08:42 PM
RE: Multiserver 2.0 - by ayalx - 03-17-2016, 08:07 AM
RE: Multiserver 2.0 - by boaz070 - 03-20-2016, 12:00 PM
RE: Multiserver 2.0 - by ayalx - 03-20-2016, 02:38 PM
RE: Multiserver 2.0 - by MangaD - 03-27-2016, 02:22 PM
RE: Multiserver 2.0 - by ayalx - 04-03-2016, 07:32 PM
RE: Multiserver 2.0 - by Som1Lse - 04-03-2016, 08:35 PM
RE: Multiserver 2.0 - by ayalx - 04-04-2016, 06:43 AM
RE: Multiserver 2.0 - by Som1Lse - 04-04-2016, 04:37 PM
RE: Multiserver 2.0 - by ayalx - 04-04-2016, 07:28 PM
RE: Multiserver 2.0 - by The Lone Wolf - 05-13-2016, 01:16 PM
RE: Multiserver 2.0 - by ayalx - 05-13-2016, 09:31 PM
RE: Multiserver 2.0 - by The Lone Wolf - 05-14-2016, 06:10 AM
RE: Multiserver 2.0 - by MangaD - 05-21-2016, 12:09 PM
RE: Multiserver 2.0 - by MangaD - 06-28-2016, 08:33 AM
RE: Multiserver 2.0 - by Zelphir - 06-28-2016, 10:25 AM
RE: Multiserver 2.0 - by ayalx - 06-29-2016, 06:41 PM
RE: Multiserver 2.0 - by MangaD - 07-08-2016, 11:26 AM
RE: Multiserver 2.0 - by ayalx - 07-11-2016, 05:37 PM
RE: Multiserver 2.0 - by Zelphir - 07-20-2016, 01:06 AM
RE: Multiserver 2.0 - by MangaD - 07-20-2016, 01:55 PM
RE: Multiserver 2.0 - by Zelphir - 07-20-2016, 03:17 PM
RE: Multiserver 2.0 - by MangaD - 07-20-2016, 04:48 PM
RE: Multiserver 2.0 - by ayalx - 07-20-2016, 06:49 PM
RE: Multiserver 2.0 - by Zelphir - 09-10-2016, 10:10 PM
RE: Multiserver 2.0 - by MangaD - 08-28-2016, 08:22 PM
RE: Multiserver 2.0 - by NightmareX1337 - 08-28-2016, 09:04 PM
RE: Multiserver 2.0 - by MangaD - 08-28-2016, 10:22 PM
RE: Multiserver 2.0 - by ayalx - 08-29-2016, 06:24 PM
RE: Multiserver 2.0 - by A-Man - 08-29-2016, 06:35 PM
RE: Multiserver 2.0 - by MangaD - 09-11-2016, 04:52 PM
RE: Multiserver 2.0 - by ayalx - 09-14-2016, 06:41 PM
RE: Multiserver 2.0 - by Gad - 07-23-2017, 12:50 PM
RE: Multiserver 2.0 - by Bigfighter000034 - 07-27-2017, 07:28 PM
RE: Multiserver 2.0 - by MangaD - 07-28-2017, 11:29 AM
RE: Multiserver 2.0 - by ayalx - 07-29-2017, 07:24 AM
RE: Multiserver 2.0 - by MangaD - 08-04-2017, 06:46 AM
RE: Multiserver 2.0 - by ayalx - 09-29-2017, 11:56 AM
RE: Multiserver 2.0 - by brenodantas10 - 12-13-2018, 02:22 AM
RE: Multiserver 2.0 - by MangaD - 12-13-2018, 10:09 AM
RE: Multiserver 2.0 - by Zelphir - 01-10-2022, 06:08 PM
RE: Multiserver 2.0 - by MangaD - 01-10-2022, 06:45 PM
LF 2 Multiserv - by As098 - 02-25-2018, 09:56 PM
RE: Multiserver 2.0 - by MangaD - 02-26-2018, 12:22 PM



Users browsing this thread: 7 Guest(s)