From 0d38a8439d506cb02b27f3ae5d3ebbf93232e362 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 6 Jul 2023 19:38:07 +0200 Subject: [PATCH 1/2] ConnInfo - Set the default send fake lag to 0 seconds (i.e. no send lag) --- source/birchwood/config/conninfo.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/birchwood/config/conninfo.d b/source/birchwood/config/conninfo.d index 29649cb..25379cb 100644 --- a/source/birchwood/config/conninfo.d +++ b/source/birchwood/config/conninfo.d @@ -102,8 +102,8 @@ public shared struct ConnectionInfo this.bulkReadSize = bulkReadSize; this.quitMessage = quitMessage; - // Set the default fakelag to 1 - this.fakeLag = 1; + // Set the default fakelag to 0 seconds (no send lag) + this.fakeLag = 0; // Set the validity mode to easy this.mode = ChecksMode.EASY; From 84adc020f39be4aabc932ef3509292c013c4b3ab Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 6 Jul 2023 19:41:35 +0200 Subject: [PATCH 2/2] Unit tests (`client`) - Use 1 second fakelag when doing unit tests else my server kicks me (results in error I still need to handle) --- source/birchwood/client/client.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/birchwood/client/client.d b/source/birchwood/client/client.d index f9f3c44..41a40dd 100644 --- a/source/birchwood/client/client.d +++ b/source/birchwood/client/client.d @@ -1303,8 +1303,8 @@ public class Client : Thread //bonobonet: fd08:8441:e254::5 ConnectionInfo connInfo = ConnectionInfo.newConnection("worcester.community.networks.deavmi.assigned.network", 6667, "birchwood", "doggie", "Tristan B. Kildaire"); - // // Set the fakelag to 1 second - // connInfo.setFakeLag(1); + // Set the fakelag to 1 second (server kicks me for spam me thinks if not) + connInfo.setFakeLag(1); // Create a new Client Client client = new Client(connInfo);