Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Nautilus.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
common.props = common.props
Directory.Build.props = Directory.Build.props
PostBuild.targets = PostBuild.targets
Version.json = Version.json
Version.targets = Version.targets
EndProjectSection
EndProject
Expand Down
1 change: 1 addition & 0 deletions Nautilus/Initializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ static Initializer()
InventoryPatcher.Patch(_harmony);
WaterParkPatcher.Patch(_harmony);
ModMessageSystem.Patch();
FindMyUpdatesPatcher.Patch();
BiomePatcher.Patch(_harmony);
DependencyWarningPatcher.Patch(_harmony);
MainMenuPatcher.Patch(_harmony, Config);
Expand Down
14 changes: 14 additions & 0 deletions Nautilus/Patchers/FindMyUpdatesPatcher.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using BepInEx.Logging;
using Nautilus.Utility;
using Nautilus.Utility.ModMessages;

namespace Nautilus.Patchers;

internal static class FindMyUpdatesPatcher
{
internal static void Patch()
{
ModMessageSystem.SendGlobal("FindMyUpdates", "https://raw.githubusercontent.com/SubnauticaModding/Nautilus/refs/heads/master/Version.json");
InternalLogger.Log("FindMyUpdatesPatcher is done.", LogLevel.Debug);
}
}
5 changes: 5 additions & 0 deletions Version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do want to add support for this at some point, but we already have so much to keep up with when updating, we don't want to have another file that needs to be edited with each version increase.

Copy link
Contributor

@Law-Abiding-Developer Law-Abiding-Developer Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No bot or command can fix that? Interesting

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File can be updated automatically for releases through various methods, Ramune cbf to implement any of them. We will wait for a Hero.

"ModName": "Nautilus",
"LatestVersion": "1.0.0.42",
"LatestURL": "https://www.nexusmods.com/subnautica/mods/1262"
}