Skip to content

Commit f366108

Browse files
committed
Patched Rocketmod Install
1 parent f2ed0d7 commit f366108

File tree

9 files changed

+14
-114
lines changed

9 files changed

+14
-114
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ https://github.com/Pustalorc/UnturnedServerManager/releases/latest
1616

1717
# Changelog:
1818

19+
**V4.0.1.2** -
20+
* Rocketmod shut their dedicated machines down. "Latest" rocketmod version is now permanently [#1363](https://github.com/RocketMod/Rocket.Unturned/releases/tag/4.9.3.0)
21+
* Modified update menu to work correctly without rocketmod versions.
22+
1923
**V4.0.1.1** -
2024
* Updated .NET Framework to 4.8
2125
* Updated packages to latest versions

src/Configuration/LocalVersions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public sealed class LocalVersions
1212
[JsonIgnore] private static string FilePath => @"config/Versions.json";
1313

1414
public DateTime LastUnturnedUpdate { get; set; } = DateTime.Now;
15-
public string RocketModVersion { get; set; } = "N/A";
1615

1716
public void SaveJson()
1817
{

src/Constants/RocketDownloadURL.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
internal static class RocketDownloadUrl
44
{
55
public static string Value =>
6-
"https://ci.rocketmod.net/job/Rocket.Unturned/lastSuccessfulBuild/artifact/Rocket.Unturned/bin/Release/Rocket.zip";
6+
"https://github.com/RocketMod/Rocket.Unturned/releases/download/4.9.3.0/Rocket.Unturned.zip";
77
}
88
}

src/GUI/UpdateMenu.Designer.cs

Lines changed: 6 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GUI/UpdateMenu.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Windows.Forms;
33
using Pustalorc.Applications.USM.Configuration;
44
using Pustalorc.Applications.USM.Updating;
5-
using Pustalorc.Applications.USM.Versions;
65

76
namespace Pustalorc.Applications.USM.GUI
87
{
@@ -11,9 +10,6 @@ public sealed partial class UpdateMenu : Form
1110
public UpdateMenu()
1211
{
1312
InitializeComponent();
14-
15-
LRVer.Text = RocketBuild.Value;
16-
1713
LoadVersions();
1814
}
1915

@@ -22,7 +18,6 @@ private void LoadVersions()
2218
{
2319
var installedVersions = LocalVersions.Load();
2420
CUVer.Text = installedVersions.LastUnturnedUpdate.ToString();
25-
CRVer.Text = installedVersions.RocketModVersion;
2621
}
2722

2823
// Form Events

src/Manager.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
</Compile>
112112
<Compile Include="SteamCMD Manager\SteamCMD.cs" />
113113
<Compile Include="Updating\Updater.cs" />
114-
<Compile Include="Versions\RocketBuild.cs" />
115114
<Compile Include="GUI\Workshop.cs">
116115
<SubType>Form</SubType>
117116
</Compile>

src/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
[assembly: AssemblyCulture("")]
1212
[assembly: ComVisible(false)]
1313
[assembly: Guid("2d1dcd0a-9719-44f5-8f0e-2fd79d918fb5")]
14-
[assembly: AssemblyVersion("4.0.1.1")]
15-
[assembly: AssemblyFileVersion("4.0.1.1")]
14+
[assembly: AssemblyVersion("4.0.1.2")]
15+
[assembly: AssemblyFileVersion("4.0.1.2")]

src/Updating/Updater.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Pustalorc.Applications.USM.Constants;
66
using Pustalorc.Applications.USM.File_Control;
77
using Pustalorc.Applications.USM.SteamCMD_Manager;
8-
using Pustalorc.Applications.USM.Versions;
98

109
namespace Pustalorc.Applications.USM.Updating
1110
{
@@ -46,16 +45,12 @@ public static void UpdateRocket()
4645
if (!FileActions.Download(RocketDownloadUrl.Value, tempZip))
4746
{
4847
MessageBox.Show(
49-
"An error occured during download. Please verify that rocketmod servers are available and try again later.",
48+
"An error occured during download. Please verify that you can access github.",
5049
"Rocketmod download failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
5150
return;
5251
}
5352

5453
FileActions.ExtractZip(tempZip, ServerPath.Value);
55-
56-
var local = LocalVersions.Load();
57-
local.RocketModVersion = RocketBuild.Value;
58-
local.SaveJson();
5954
}
6055

6156
/// <summary>

src/Versions/RocketBuild.cs

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)