Skip to content

Commit 5a55fb7

Browse files
[WebAPIService] - Fixes VEEMEE weekly and daily leaderboard clearing bug + further continues Novus Prime work.
Novus Prime is now fully playable, but needs further testing in case I missed something. This also fixes some nullable attributes being useless in the API service.
1 parent da6c312 commit 5a55fb7

File tree

15 files changed

+628
-49
lines changed

15 files changed

+628
-49
lines changed

AuxiliaryServices/WebAPIService/CAPONE/CaponeClass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public CAPONEClass(string method, string absolutePath, string workPath)
2121
}
2222

2323

24-
public string? ProcessRequest(byte[] PostData, string ContentType, bool https)
24+
public string ProcessRequest(byte[] PostData, string ContentType, bool https)
2525
{
2626
if (string.IsNullOrEmpty(absolutePath))
2727
return null;

AuxiliaryServices/WebAPIService/HELLFIRE/HFProcessors/NovusPrimeRequestProcessor.cs

Lines changed: 214 additions & 6 deletions
Large diffs are not rendered by default.

AuxiliaryServices/WebAPIService/HELLFIRE/HFProcessors/TycoonRequestProcessor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using WebAPIService.HELLFIRE.Helpers;
55
using System.IO;
66
using System.Threading;
7+
using WebAPIService.HELLFIRE.Helpers.Tycoon;
78

89
namespace TycoonServer.HFProcessors
910
{

AuxiliaryServices/WebAPIService/HELLFIRE/Helpers/Leaderboards.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace WebAPIService.HELLFIRE.Helpers
77
{
88
public class Leaderboards
99
{
10-
1110
public static string GetLeaderboardsClearasil(byte[] PostData, string boundary, string UserID, string WorkPath)
1211
{
1312
string path = $"{WorkPath}/ClearasilSkater/User_Data";
@@ -89,7 +88,7 @@ public static string GetLeaderboardsNovusPrime(byte[] PostData, string boundary,
8988
string LBPath = $"{WorkPath}/NovusPrime/User_Data/Leaderboards.xml";
9089

9190
#region Template LB to start with
92-
/*string templateLB = @"<GalaxyRider42>
91+
/*string templateLB = @"<Root><GalaxyRider42>
9392
<DisplayName>GalaxyRider42</DisplayName>
9493
<Score>0</Score>
9594
</GalaxyRider42>
@@ -128,7 +127,7 @@ public static string GetLeaderboardsNovusPrime(byte[] PostData, string boundary,
128127
<VoidTrekker11>
129128
<DisplayName>VoidTrekker11</DisplayName>
130129
<Score>0</Score>
131-
</VoidTrekker11>";*/
130+
</VoidTrekker11></Root>";*/
132131
#endregion
133132

134133
using (MemoryStream ms = new MemoryStream(PostData))
@@ -165,7 +164,6 @@ public static string GetGlobalPopulationLeaderboard(byte[] PostData, string boun
165164

166165
public static string GetGlobalRevenueCollectedLeaderboard(byte[] PostData, string boundary, string UserID, string WorkPath)
167166
{
168-
169167
return @"<Response>
170168
<Entry>
171169
<DisplayName>AgentDark447</DisplayName>

AuxiliaryServices/WebAPIService/HELLFIRE/Helpers/NPTicket.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static string RequestNPTicket(byte[] PostData, string boundary)
6565

6666
if (ByteUtils.FindBytePattern(ticketData, new byte[] { 0x52, 0x50, 0x43, 0x4E }, 184) != -1)
6767
{
68-
LoggerAccessor.LogInfo($"[HFGames] : User {Encoding.ASCII.GetString(extractedData).Replace("H", string.Empty)} logged in and is on RPCN");
68+
LoggerAccessor.LogInfo($"[HFGames] - NovusPrime : User {Encoding.ASCII.GetString(extractedData).Replace("H", string.Empty)} logged in and is on RPCN");
6969

7070
// Convert the modified data to a string
7171
resultString = Encoding.ASCII.GetString(extractedData) + "RPCN";
@@ -85,7 +85,7 @@ public static string RequestNPTicket(byte[] PostData, string boundary)
8585
}
8686
else
8787
{
88-
LoggerAccessor.LogInfo($"[HFGames] : {Encoding.ASCII.GetString(extractedData).Replace("H", string.Empty)} logged in and is on PSN");
88+
LoggerAccessor.LogInfo($"[HFGames] - NovusPrime : {Encoding.ASCII.GetString(extractedData).Replace("H", string.Empty)} logged in and is on PSN");
8989

9090
// Convert the modified data to a string
9191
resultString = Encoding.ASCII.GetString(extractedData);

0 commit comments

Comments
 (0)