diff --git a/ASA-Manager/MainWindow.xaml b/ASA-Manager/MainWindow.xaml
index ed3cac9..fb65500 100644
--- a/ASA-Manager/MainWindow.xaml
+++ b/ASA-Manager/MainWindow.xaml
@@ -10,7 +10,8 @@
-
+
+
diff --git a/ASA-Manager/MainWindow.xaml.cs b/ASA-Manager/MainWindow.xaml.cs
index baba28b..a90a885 100644
--- a/ASA-Manager/MainWindow.xaml.cs
+++ b/ASA-Manager/MainWindow.xaml.cs
@@ -104,7 +104,7 @@ private void Window_Activated(object sender, EventArgs e)
SetButtonStatus();
}
- private void btn_openConfigFolder_Click(object sender, RoutedEventArgs e)
+ private void btn_openGUSConfig_Click(object sender, RoutedEventArgs e)
{
string GUSConfigPath = Path.Combine(((ASCTConfiguration)Application.Current.Properties["globalConfig"]).GameDirectory, @"ShooterGame\Saved\Config\WindowsServer\GameUserSettings.ini");
@@ -114,7 +114,7 @@ private void btn_openConfigFolder_Click(object sender, RoutedEventArgs e)
}
else
{
- string message = "No config file currently exists. Would you like to create one from the template?";
+ string message = "No gameusersettings.ini file currently exists. Would you like to create one from the template?";
string caption = "Missing Config";
MessageBoxResult result = MessageBox.Show(message, caption,
MessageBoxButton.YesNo );
@@ -127,5 +127,31 @@ private void btn_openConfigFolder_Click(object sender, RoutedEventArgs e)
}
}
}
+
+ private void btn_openGameINIConfig_Click(object sender, RoutedEventArgs e)
+ {
+ string GameConfigPath = Path.Combine(((ASCTConfiguration)Application.Current.Properties["globalConfig"]).GameDirectory, @"ShooterGame\Saved\Config\WindowsServer\Game.ini");
+
+ if (File.Exists(GameConfigPath))
+ {
+ Process.Start("notepad.exe", GameConfigPath).WaitForExit();
+ }
+ else
+ {
+ string message = "No game.ini file currently exists. Would you like to create one from the template?";
+ string caption = "Missing Config";
+ MessageBoxResult result = MessageBox.Show(message, caption,
+ MessageBoxButton.YesNo);
+
+ if (result == MessageBoxResult.Yes)
+ {
+ Directory.CreateDirectory(Path.GetDirectoryName(GameConfigPath));
+ File.WriteAllText(GameConfigPath, Properties.Resources.GameConfigTemplate);
+ Process.Start("notepad.exe", GameConfigPath).WaitForExit();
+ }
+ }
+ }
+
+
}
}
diff --git a/ASA-Manager/Properties/Resources.Designer.cs b/ASA-Manager/Properties/Resources.Designer.cs
index fd6028b..678cf11 100644
--- a/ASA-Manager/Properties/Resources.Designer.cs
+++ b/ASA-Manager/Properties/Resources.Designer.cs
@@ -60,6 +60,15 @@ internal class Resources {
}
}
+ ///
+ /// Looks up a localized string similar to [/script/shootergame.shootergamemode].
+ ///
+ internal static string GameConfigTemplate {
+ get {
+ return ResourceManager.GetString("GameConfigTemplate", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to [ScalabilityGroups]
///sg.ResolutionQuality=75
diff --git a/ASA-Manager/Properties/Resources.resx b/ASA-Manager/Properties/Resources.resx
index f78a02c..03a5e54 100644
--- a/ASA-Manager/Properties/Resources.resx
+++ b/ASA-Manager/Properties/Resources.resx
@@ -117,6 +117,9 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ [/script/shootergame.shootergamemode]
+
[ScalabilityGroups]
sg.ResolutionQuality=75
@@ -429,7 +432,7 @@ ImplantSuicideCD=28800
AllowHitMarkers=True
[SessionSettings]
-SessionName=Nitrado Suck
+SessionName=Server Created by ASCT
[/Script/Engine.GameSession]
MaxPlayers=70