From d65c20a05d02007c530f4773f7759781ceb8c6ef Mon Sep 17 00:00:00 2001
From: zznty <94796179+zznty@users.noreply.github.com>
Date: Tue, 13 Jun 2023 22:42:35 +0700
Subject: [PATCH] update se to 1.202.120
---
Torch.API/Torch.API.csproj | 2 +-
Torch.API/packages.lock.json | 6 +++---
Torch.Server/Initializer.cs | 2 +-
Torch.Server/Managers/RemoteAPIManager.cs | 2 +-
Torch.Server/Torch.Server.csproj | 2 +-
Torch.Server/packages.lock.json | 6 +++---
Torch/Patches/ModsDownloadingPatch.cs | 3 ++-
Torch/Torch.csproj | 2 +-
Torch/packages.lock.json | 6 +++---
9 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/Torch.API/Torch.API.csproj b/Torch.API/Torch.API.csproj
index 2c3609e..fa44ad7 100644
--- a/Torch.API/Torch.API.csproj
+++ b/Torch.API/Torch.API.csproj
@@ -21,7 +21,7 @@
-
+
all
compile
diff --git a/Torch.API/packages.lock.json b/Torch.API/packages.lock.json
index 91c492d..5aa3fce 100644
--- a/Torch.API/packages.lock.json
+++ b/Torch.API/packages.lock.json
@@ -43,9 +43,9 @@
},
"SpaceEngineersDedicated.ReferenceAssemblies": {
"type": "Direct",
- "requested": "[1.202.117, )",
- "resolved": "1.202.117",
- "contentHash": "eMyu/AJiKxgmQqMiMUuyL+XdHgNpzw6AfpL6OJkYugXnOJQ10tU8sVvEpmlPqIjWGcRrOhyA6bIGIN4s0JyyUw==",
+ "requested": "[1.202.120, )",
+ "resolved": "1.202.120",
+ "contentHash": "HTP48NOSZY3eQPX3GJN+gjxdW83SM7DX6NcKCFqNIIvjz/J+l8uimHAQp9dnLySb0wb1K1Z1xBPIXyxMQRREIw==",
"dependencies": {
"protobuf-net": "1.0.0"
}
diff --git a/Torch.Server/Initializer.cs b/Torch.Server/Initializer.cs
index 6b49f65..f1cd99d 100644
--- a/Torch.Server/Initializer.cs
+++ b/Torch.Server/Initializer.cs
@@ -172,7 +172,7 @@ namespace Torch.Server
{
var steamCmdProc = new ProcessStartInfo(steamCmdExePath)
{
- Arguments = string.Format(TOOL_ARGS, configuration.GetValue("gamePath", "../"), depotId, "3215730643277932637"),
+ Arguments = string.Format(TOOL_ARGS, configuration.GetValue("gamePath", "../"), depotId, "3111493184861426002"),
WorkingDirectory = path,
RedirectStandardOutput = true
};
diff --git a/Torch.Server/Managers/RemoteAPIManager.cs b/Torch.Server/Managers/RemoteAPIManager.cs
index 645a426..fc372e4 100644
--- a/Torch.Server/Managers/RemoteAPIManager.cs
+++ b/Torch.Server/Managers/RemoteAPIManager.cs
@@ -32,7 +32,7 @@ namespace Torch.Server.Managers
{
if (newstate == TorchGameState.Loading && MySandboxGame.ConfigDedicated.RemoteApiEnabled && !string.IsNullOrEmpty(MySandboxGame.ConfigDedicated.RemoteSecurityKey))
{
- var myRemoteServer = new MyRemoteServer(MySandboxGame.ConfigDedicated.RemoteApiPort, MySandboxGame.ConfigDedicated.RemoteSecurityKey);
+ var myRemoteServer = new MyRemoteServer(MySandboxGame.ConfigDedicated.RemoteApiIP, MySandboxGame.ConfigDedicated.RemoteApiPort, MySandboxGame.ConfigDedicated.RemoteSecurityKey);
LogManager.GetCurrentClassLogger().Info($"Remote API started on port {myRemoteServer.Port}");
}
}
diff --git a/Torch.Server/Torch.Server.csproj b/Torch.Server/Torch.Server.csproj
index 2d51f86..eadcbcf 100644
--- a/Torch.Server/Torch.Server.csproj
+++ b/Torch.Server/Torch.Server.csproj
@@ -51,7 +51,7 @@
-
+
all
compile
diff --git a/Torch.Server/packages.lock.json b/Torch.Server/packages.lock.json
index ff4e99f..567bf08 100644
--- a/Torch.Server/packages.lock.json
+++ b/Torch.Server/packages.lock.json
@@ -122,9 +122,9 @@
},
"SpaceEngineersDedicated.ReferenceAssemblies": {
"type": "Direct",
- "requested": "[1.202.117, )",
- "resolved": "1.202.117",
- "contentHash": "eMyu/AJiKxgmQqMiMUuyL+XdHgNpzw6AfpL6OJkYugXnOJQ10tU8sVvEpmlPqIjWGcRrOhyA6bIGIN4s0JyyUw==",
+ "requested": "[1.202.120, )",
+ "resolved": "1.202.120",
+ "contentHash": "HTP48NOSZY3eQPX3GJN+gjxdW83SM7DX6NcKCFqNIIvjz/J+l8uimHAQp9dnLySb0wb1K1Z1xBPIXyxMQRREIw==",
"dependencies": {
"protobuf-net": "1.0.0"
}
diff --git a/Torch/Patches/ModsDownloadingPatch.cs b/Torch/Patches/ModsDownloadingPatch.cs
index cb60e2f..d2ef647 100644
--- a/Torch/Patches/ModsDownloadingPatch.cs
+++ b/Torch/Patches/ModsDownloadingPatch.cs
@@ -10,6 +10,7 @@ using Torch.Managers.PatchManager;
using Torch.Managers.PatchManager.MSIL;
using Torch.Utils;
using VRage.Game;
+using VRage.GameServices;
namespace Torch.Patches
{
@@ -31,7 +32,7 @@ namespace Torch.Patches
}
public static void Postfix(MyWorkshop.ResultData __result, List mods)
{
- if (__result.Success) return;
+ if (__result.Result is MyGameServiceCallResult.OK) return;
_log.Warn("Missing Mods:");
var mismatchMods = mods.Where(b => __result.Mods.All(c => b.PublishedFileId != c.Id));
foreach (var mod in mismatchMods)
diff --git a/Torch/Torch.csproj b/Torch/Torch.csproj
index c814681..fff3e60 100644
--- a/Torch/Torch.csproj
+++ b/Torch/Torch.csproj
@@ -35,7 +35,7 @@
-
+
all
compile
diff --git a/Torch/packages.lock.json b/Torch/packages.lock.json
index f37d9bd..194a78c 100644
--- a/Torch/packages.lock.json
+++ b/Torch/packages.lock.json
@@ -102,9 +102,9 @@
},
"SpaceEngineersDedicated.ReferenceAssemblies": {
"type": "Direct",
- "requested": "[1.202.117, )",
- "resolved": "1.202.117",
- "contentHash": "eMyu/AJiKxgmQqMiMUuyL+XdHgNpzw6AfpL6OJkYugXnOJQ10tU8sVvEpmlPqIjWGcRrOhyA6bIGIN4s0JyyUw==",
+ "requested": "[1.202.120, )",
+ "resolved": "1.202.120",
+ "contentHash": "HTP48NOSZY3eQPX3GJN+gjxdW83SM7DX6NcKCFqNIIvjz/J+l8uimHAQp9dnLySb0wb1K1Z1xBPIXyxMQRREIw==",
"dependencies": {
"protobuf-net": "1.0.0"
}