From 565bcd410349832475baffb0cc1c87317aa9d41c Mon Sep 17 00:00:00 2001 From: Michael Youngling <89745384+m88youngling@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:03:11 -0400 Subject: [PATCH 1/6] Update StatisticsEndpoints.cs Uhhh I hope this change adds the ability for the api to report the number of rooms per platform. --- .../Controllers/StatisticsEndpoints.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs b/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs index dcd9a5c29..08ae07e5c 100644 --- a/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs +++ b/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs @@ -36,6 +36,7 @@ public async Task GetStatistics() Slots = await StatisticsHelper.SlotCount(this.database, new SlotQueryBuilder()), Users = await StatisticsHelper.UserCount(this.database), RecentMatches = await StatisticsHelper.RecentMatches(this.database), + RoomsPerPlatform = await StatisticsHelper.RoomCountPerPlatform(this.database), TeamPicks = await StatisticsHelper.SlotCount(this.database, new SlotQueryBuilder().AddFilter(new TeamPickFilter())), } ); @@ -74,4 +75,4 @@ public async Task GetPlayerCounts() return this.Ok(response); } -} \ No newline at end of file +} From 8880cd63fffe994498530aa2c31422991a1501bc Mon Sep 17 00:00:00 2001 From: Michael Youngling <89745384+m88youngling@users.noreply.github.com> Date: Thu, 13 Jun 2024 10:48:42 -0400 Subject: [PATCH 2/6] Update docker-compose.yml Changed the api image source based on suggestions from Slendy --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d5b166374..6541735ef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,7 +47,7 @@ services: - "./data:/lighthouse/data:z" - "./data/.aspnet:/lighthouse/.aspnet:z" api: - image: lighthouse:latest + image: ghcr.io/lbpunion/projectlighthouse:main container_name: api restart: unless-stopped ports: @@ -86,4 +86,4 @@ services: container_name: redis restart: unless-stopped volumes: - - "redis:/var/lib/redis" \ No newline at end of file + - "redis:/var/lib/redis" From 0c19389dc8946a79ac4d3b97b433433da9b8348c Mon Sep 17 00:00:00 2001 From: Michael Youngling <89745384+m88youngling@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:25:09 -0400 Subject: [PATCH 3/6] Update docker-compose.yml --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6541735ef..6125a0cc3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ volumes: redis: services: gameserver: - image: lighthouse:latest + image: ghcr.io/lbpunion/projectlighthouse:main container_name: gameserver build: . restart: unless-stopped @@ -26,7 +26,7 @@ services: - "./data:/lighthouse/data:z" - "./data/.aspnet:/lighthouse/.aspnet:z" website: - image: lighthouse:latest + image: ghcr.io/lbpunion/projectlighthouse:main container_name: website restart: unless-stopped ports: From 752b88d4d7aee84e062bd50ea9ffd541d890874e Mon Sep 17 00:00:00 2001 From: Michael Youngling <89745384+m88youngling@users.noreply.github.com> Date: Sat, 15 Jun 2024 20:27:23 -0400 Subject: [PATCH 4/6] Update StatisticsEndpoints.cs Rolled back my failed attempt to add rooms per platform to the statistics endpoint. --- ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs b/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs index 08ae07e5c..c307334d6 100644 --- a/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs +++ b/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs @@ -36,7 +36,6 @@ public async Task GetStatistics() Slots = await StatisticsHelper.SlotCount(this.database, new SlotQueryBuilder()), Users = await StatisticsHelper.UserCount(this.database), RecentMatches = await StatisticsHelper.RecentMatches(this.database), - RoomsPerPlatform = await StatisticsHelper.RoomCountPerPlatform(this.database), TeamPicks = await StatisticsHelper.SlotCount(this.database, new SlotQueryBuilder().AddFilter(new TeamPickFilter())), } ); From 998177f9991809a39afe04f52a22ad5674ce1749 Mon Sep 17 00:00:00 2001 From: Henry Asbridge Date: Sat, 29 Jun 2024 19:15:09 +0100 Subject: [PATCH 5/6] Update StatisticsEndpoints.cs From 9773d212d316fe16b192481154b4dd65b60448ed Mon Sep 17 00:00:00 2001 From: m88youngling <89745384+m88youngling@users.noreply.github.com> Date: Fri, 28 Feb 2025 20:01:43 -0500 Subject: [PATCH 6/6] Update GameVersion.cs Added Hyphen-tilda's suggested changes to add Hong Kong IDs --- ProjectLighthouse/Types/Users/GameVersion.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse/Types/Users/GameVersion.cs b/ProjectLighthouse/Types/Users/GameVersion.cs index 567aaf482..6d895b930 100644 --- a/ProjectLighthouse/Types/Users/GameVersion.cs +++ b/ProjectLighthouse/Types/Users/GameVersion.cs @@ -87,6 +87,12 @@ public static class GameVersionHelper "NPEA00437", "BCES01693", "BCKS10150", + "NPHA80113", + "NPHA80125", + "NPHA80132", + "NPHA80163", + "NPHA80161", + "NPHA80277", //Debug, Beta and Demo "NPUA70117", "BCET70023", @@ -206,4 +212,4 @@ private static Dictionary createTitleMap() public static GameVersion FromTitleId(string titleId) => titleIdMap.TryGetValue(titleId, out GameVersion parsedVersion) ? parsedVersion : GameVersion.Unknown; -} \ No newline at end of file +}