NexusRPLD-aedenthorn_NexusUpdateCheck icon

aedenthorn NexusUpdateCheck

THIS IS NEXUS REUPLOAD by aedenthorn-Provides a simple, flexible means of letting users know about updates to BepInEx mods hosted on the Nexus.

Last updated a year ago
Total downloads 641
Total rating 1 
Categories Utility Hildir's Request Update
Dependency string NexusRPLD-aedenthorn_NexusUpdateCheck-1.3.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2105 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2105

README

Download and endorse this mod in Nexus. All credits goes to aedenthorn.

About this mod

Provides a simple, flexible means of letting users know about updates to BepInEx mods hosted on the Nexus.

Description

This mod allows mod authors and mod users to create a simple way to check for updates to any BepInEx mod on the nexus.

Making Mods Compatible

For mod authors, just add an int config setting with the key "NexusID" and the value of the mod's id on the nexus. E.g.:

nexusID = Config.Bind<int>("General", "NexusID", 48, "Nexus mod ID for updates");

For mod users, if you have a mod that hasn't added this config value, you can try adding the key value pair NexusID = ## (replace ## with that mod's Nexus ID) to that mod's config file (provided it uses standard config creation method) and this mod will pick it up, e.g.:

NexusID = 48

Warning, this appears to break some mods. They must be fragile.

You can find the number in the URL for the mod, e.g.:

https://www.nexusmods.com/valheim/mods/48

And you can find the config files in the folder BepInEx/config. If a mod doesn't have a config file, you can have this mod create an empty one for it.

You should only have to do this once, and the entry will stay there even though it's not recognized by that mod as a config variable.

How It Works

It uses BepInEx to find metadata for all BepInEx plugins installed.

It then finds the BepInEx config file for each mod and gets its nexus id that has been helpfully supplied by the mod author or manually added by the mod user.

Next, it sends an http request (yes, this mod connects to the Internet...) to Nexus Mods that simply consists of the mod's nexus page url. It parses the html code for the version string and compares it to the version in the DLL file.

Finally, it displays a list of mods with new versions on the main menu with buttons that trigger your browser to visit each mod's nexus page.

Config

A config file BepInEx/config/aedenthorn.NexusUpdate.cfg is created after running the game once with this mod).

You can adjust the config values by editing this file using a text editor or in-game using the Config Manager.

To reload the config from the config file, type nexusupdate reset into the game's console (F5).

Technical

To install manually, place the dll file in the BepInEx/plugins folder. You will need BepInEx.

Code is at https://github.com/aedenthorn/ValheimMods.

If you want to complain or ask for help or help aedenthorn test her mods, you can visit her Discord server.

Click here for a list of all aedenthorn's mods for Valheim.


Uploaded to Thunderstore for my own modpack.