Skip to content

Commit ae51eb9

Browse files
authored
TorchBase: add server build number (#598)
Yesterday Keen pushed a security update, the game is still at version 1.205.26 but the server build number increased from 0 to 1 (and client build number from 0 to 3). The build number is not visible in Torch console title nor in Torch log, but is visible in the Keen log. In such situation, to be able to quickly check if a server has the latest update, it would be useful to show the server build number more prominently. This change adds it as a final dot in the version string, as is usual, so the current version will now show as: 1.205.26.1
1 parent 4c572ae commit ae51eb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Torch/TorchBase.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,11 @@ public virtual void Init()
311311

312312
Debug.Assert(MyPerGameSettings.BasicGameInfo.GameVersion != null, "MyPerGameSettings.BasicGameInfo.GameVersion != null");
313313
GameVersion = new MyVersion(MyPerGameSettings.BasicGameInfo.GameVersion.Value);
314+
var buildNumber = MyPerGameSettings.BasicGameInfo.ServerBuildNumber;
314315

315316
try
316317
{
317-
Console.Title = $"{Config.InstanceName} - Torch {TorchVersion}, SE {GameVersion}";
318+
Console.Title = $"{Config.InstanceName} - Torch {TorchVersion}, SE {GameVersion}.{buildNumber}";
318319
}
319320
catch
320321
{
@@ -327,7 +328,7 @@ public virtual void Init()
327328
Log.Info("RELEASE");
328329
#endif
329330
Log.Info($"Torch Version: {TorchVersion}");
330-
Log.Info($"Game Version: {GameVersion}");
331+
Log.Info($"Game Version: {GameVersion}.{buildNumber}");
331332
Log.Info($"Executing assembly: {Assembly.GetEntryAssembly().FullName}");
332333
Log.Info($"Executing directory: {AppDomain.CurrentDomain.BaseDirectory}");
333334

0 commit comments

Comments
 (0)