diff --git a/Torch.Server/Managers/MultiplayerManagerDedicated.cs b/Torch.Server/Managers/MultiplayerManagerDedicated.cs index d89e500..55ac005 100644 --- a/Torch.Server/Managers/MultiplayerManagerDedicated.cs +++ b/Torch.Server/Managers/MultiplayerManagerDedicated.cs @@ -137,7 +137,7 @@ namespace Torch.Server.Managers _gameServerValidateAuthTicketReplacer = _gameServerValidateAuthTicketFactory.Invoke(); _gameServerUserGroupStatusReplacer = _gameServerUserGroupStatusFactory.Invoke(); _gameServerValidateAuthTicketReplacer.Replace( - new Action(ValidateAuthTicketResponse), MyGameService.GameServer); + new Action(ValidateAuthTicketResponse), MyGameService.GameServer); _gameServerUserGroupStatusReplacer.Replace(new Action(UserGroupStatusResponse), MyGameService.GameServer); _log.Info("Inserted steam authentication intercept"); @@ -214,7 +214,7 @@ namespace Torch.Server.Managers } //Largely copied from SE - private void ValidateAuthTicketResponse(ulong steamId, JoinResult response, ulong steamOwner) + private void ValidateAuthTicketResponse(ulong steamId, JoinResult response, ulong steamOwner, string serviceName) { var state = new MyP2PSessionState(); MySteamServiceWrapper.Static.Peer2Peer.GetSessionState(steamId, ref state); diff --git a/Torch.Server/Views/WorldGeneratorDialog.xaml.cs b/Torch.Server/Views/WorldGeneratorDialog.xaml.cs index 98beb07..5c63a60 100644 --- a/Torch.Server/Views/WorldGeneratorDialog.xaml.cs +++ b/Torch.Server/Views/WorldGeneratorDialog.xaml.cs @@ -56,7 +56,7 @@ namespace Torch.Server string localizedName = MyTexts.GetString(sessionNameId); var checkpoint = MyLocalCache.LoadCheckpoint(directory, out _); checkpoint.OnlineMode = MyOnlineModeEnum.PUBLIC; - _checkpoints.Add(new PremadeCheckpointItem { Name = localizedName, Icon = Path.Combine(directory, "thumb.jpg"), Path = directory, Checkpoint = checkpoint}); + _checkpoints.Add(new PremadeCheckpointItem { Name = localizedName, Icon = Path.Combine(directory.Replace("Sandbox.sbc", ""), "thumb.jpg"), Path = directory, Checkpoint = checkpoint}); } /* diff --git a/Torch/VRageGame.cs b/Torch/VRageGame.cs index d0a0547..efee73a 100644 --- a/Torch/VRageGame.cs +++ b/Torch/VRageGame.cs @@ -32,6 +32,7 @@ using VRage.Game.ObjectBuilder; using VRage.Game.SessionComponents; using VRage.GameServices; using VRage.Plugins; +using VRage.Scripting; using VRage.Steam; using VRage.Utils; using VRageRender; @@ -154,6 +155,7 @@ namespace Torch MyPerGameSettings.SendLogToKeen = false; // SpaceEngineersGame.SetupAnalytics(); + MyVRage.Platform.InitScripting(MyVRageScripting.Create()); MyFileSystem.ExePath = Path.GetDirectoryName(typeof(SpaceEngineersGame).Assembly.Location); _tweakGameSettings();