Skip to content

Commit

Permalink
Merge pull request #222 from Foxlider/EF-cDLC-push
Browse files Browse the repository at this point in the history
cDLC Branch push
  • Loading branch information
jupster authored Nov 26, 2024
2 parents e4d8ab2 + 79fc308 commit 4702ccd
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 5 deletions.
3 changes: 3 additions & 0 deletions FASTER/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
<setting name="usingRFDlc" serializeAs="String">
<value>False</value>
</setting>
<setting name="usingEFDlc" serializeAs="String">
<value>False</value>
</setting>
</FASTER.Properties.Settings>
</userSettings>
</configuration>
2 changes: 1 addition & 1 deletion FASTER/FASTER.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>FASTERKey.snk</AssemblyOriginatorKeyFile>
<Authors>Keelah Fox, Jupster, Canno.n</Authors>
<Version>1.9.6.1</Version>
<Version>1.9.6.2</Version>
<Company>FoxliCorp.</Company>
<Description>Fox's Arma Server Tool Extended Rewrite</Description>
<Copyright>Copyright © 2019</Copyright>
Expand Down
15 changes: 15 additions & 0 deletions FASTER/Models/ServerProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public class ServerProfile : INotifyPropertyChanged
private bool _wsDlcChecked;
private bool _speDlcChecked;
private bool _rfDlcChecked;
private bool _efDlcChecked;
private bool _enableHT = true;
private bool _enableRanking;

Expand Down Expand Up @@ -214,6 +215,16 @@ public bool RFDLCChecked
}
}

public bool EFDLCChecked
{
get => _efDlcChecked;
set
{
_efDlcChecked = value;
RaisePropertyChanged(nameof(EFDLCChecked));
}
}

public bool EnableHyperThreading
{
get => _enableHT;
Expand Down Expand Up @@ -504,6 +515,10 @@ public string GetDlcAndPlayerMods(string playerMods)
{
_ = mods.Append($"{playerMods};");
}
if (EFDLCChecked)
{
_ = mods.Append("ef;");
}
return !string.IsNullOrWhiteSpace(mods.ToString()) ? $" \"-mod={mods}\"" : "";
}

Expand Down
3 changes: 3 additions & 0 deletions FASTER/Models/StaticData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ internal static class StaticData
"Harkness31",
"Ace",
"bojothebigman",
"EmPtY.zip",
"OverlordZorn",
"Jupster",
};

/// <summary>
Expand Down
11 changes: 11 additions & 0 deletions FASTER/Models/SteamUpdaterModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ public bool UsingRFDlc
}
}

public bool UsingEFDlc
{
get => Settings.Default.usingEFDlc;
set
{
Settings.Default.usingEFDlc = value;
Settings.Default.Save();
RaisePropertyChanged(nameof(UsingEFDlc));
}
}

public string ApiKey
{
get => !string.IsNullOrEmpty(Settings.Default.SteamAPIKey)
Expand Down
15 changes: 15 additions & 0 deletions FASTER/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions FASTER/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@
<Setting Name="usingRFDlc" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="usingEFDlc" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>
2 changes: 1 addition & 1 deletion FASTER/ViewModel/ProfileViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ internal async Task CopyModKeys()

internal async Task ClearModKeys()
{
var ignoredKeys = new[] {"a3.bikey", "a3c.bikey", "gm.bikey", "ws.bikey", "csla.bikey", "vn.bikey", "spe.bikey", "rf.bikey" };
var ignoredKeys = new[] {"a3.bikey", "a3c.bikey", "gm.bikey", "ws.bikey", "csla.bikey", "vn.bikey", "spe.bikey", "rf.bikey", "ef.bikey" };
if (Directory.Exists(Path.Combine(Profile.ArmaPath, "keys")))
{
foreach (var keyFile in Directory.GetFiles(Path.Combine(Profile.ArmaPath, "keys")))
Expand Down
12 changes: 11 additions & 1 deletion FASTER/ViewModel/SteamUpdaterViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public async Task UpdateClick()
Analytics.TrackEvent("Updater - Clicked Update", new Dictionary<string, string>
{
{"Name", Properties.Settings.Default.steamUserName},
{"DLCs", $"{(Parameters.UsingGMDlc ? "GM " : "")}{(Parameters.UsingCSLADlc? "CSLA " : "")}{(Parameters.UsingPFDlc ? "SOG " : "")}{(Parameters.UsingWSDlc ? "WS " : "")}{(Parameters.UsingSPEDlc ? "SPE " : "")}{(Parameters.UsingRFDlc ? "RF " : "")}"},
{"DLCs", $"{(Parameters.UsingGMDlc ? "GM " : "")}{(Parameters.UsingCSLADlc? "CSLA " : "")}{(Parameters.UsingPFDlc ? "SOG " : "")}{(Parameters.UsingWSDlc ? "WS " : "")}{(Parameters.UsingSPEDlc ? "SPE " : "")}{(Parameters.UsingRFDlc ? "RF " : "")}{(Parameters.UsingEFDlc ? "EF " : "")}"},
{"Branch", $"{(Parameters.UsingPerfBinaries? "Profiling" : "Public")}"}
});

Expand All @@ -156,6 +156,7 @@ public async Task UpdateClick()
{233794, "Arma 3 Server Creator DLC - SOGPF"},
{233795, "Arma 3 Server Creator DLC - WS"},
{233799, "Arma 3 Server Creator DLC - RF"},
{233798, "Arma 3 Server Creator DLC - EF"},
};

//IReadOnlyList<Depot> depotsList;
Expand Down Expand Up @@ -257,6 +258,15 @@ public async Task UpdateClick()
null));
}

if (Parameters.UsingEFDlc)
{
Parameters.Output += "\nChecking Arma 3 Server Creator DLC - EF...";
depotsDownload.Add((
depotsIDs.FirstOrDefault(d => d.Value == "Arma 3 Server Creator DLC - EF").Key,
"creatordlc",
null));
}

await RunServerUpdater(Parameters.InstallDirectory, appId, depotsDownload);

Parameters.Output += "\n\nAll Done ! ";
Expand Down
2 changes: 2 additions & 0 deletions FASTER/Views/Profile.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<CheckBox IsChecked="{Binding Profile.WSDLCChecked}" Content="Western Sahara DLC" Margin="10,3" HorizontalAlignment="Left"/>
<CheckBox IsChecked="{Binding Profile.SPEDLCChecked}" Content="Spearhead 1944 DLC" Margin="10,3" HorizontalAlignment="Left"/>
<CheckBox IsChecked="{Binding Profile.RFDLCChecked}" Content="Reaction Forces DLC" Margin="10,3" HorizontalAlignment="Left"/>
<CheckBox IsChecked="{Binding Profile.EFDLCChecked}" Content="Expeditionary Forces DLC" Margin="10,3" HorizontalAlignment="Left"/>
<StackPanel Height="10"/>
</StackPanel>
</GroupBox>
Expand Down Expand Up @@ -114,6 +115,7 @@
<CheckBox IsChecked="{Binding Profile.WSDLCChecked}" Content="Western Sahara DLC" Margin="10,3" HorizontalAlignment="Left"/>
<CheckBox IsChecked="{Binding Profile.SPEDLCChecked}" Content="Spearhead 1944 DLC" Margin="10,3" HorizontalAlignment="Left"/>
<CheckBox IsChecked="{Binding Profile.RFDLCChecked}" Content="Reaction Forces DLC" Margin="10,3" HorizontalAlignment="Left"/>
<CheckBox IsChecked="{Binding Profile.EFDLCChecked}" Content="Expeditionary Forces DLC" Margin="10,3" HorizontalAlignment="Left"/>
</StackPanel>
</Expander>
</Canvas>-->
Expand Down
4 changes: 3 additions & 1 deletion FASTER/Views/Updater.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@
<CheckBox IsChecked="{Binding Parameters.UsingSPEDlc}" Content="Spearhead 1944 DLC"
Margin="10,3" HorizontalAlignment="Left"/>
<CheckBox IsChecked="{Binding Parameters.UsingRFDlc}" Content="Reaction Forces DLC"
Margin="10,3" HorizontalAlignment="Left"/>
Margin="10,3" HorizontalAlignment="Left"/>
<CheckBox IsChecked="{Binding Parameters.UsingEFDlc}" Content="Expeditionary Forces DLC"
Margin="10,3" HorizontalAlignment="Left"/>
</StackPanel>
<Button Style="{StaticResource MahApps.Styles.Button.MetroSquare.Accent}" BorderThickness="0" Grid.Row="4" Content="Update" Margin="10" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Click="Update_Click"/>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion FASTER_Version.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.9.6.1</version>
<version>1.9.6.2</version>
<url>https://github.com/Foxlider/FASTER/releases/latest/download/Release_x64.zip</url>
<changelog>https://github.com/Foxlider/FASTER/releases</changelog>
<mandatory>true</mandatory>
Expand Down

0 comments on commit 4702ccd

Please sign in to comment.