Some mods may be broken due to the recent Alloyed Collective update.
Decompiled source of VersionChangerServer v1.2.44
BepInEx/plugins/VersionChangerServer/VersionChangerServer.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using On.RoR2; using RoR2; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("VersionChanger")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("VersionChanger")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("089f851f-dcd2-473b-b108-c62128d8df9d")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] [BepInPlugin("theniklev.VersionChangerServer", "VersionChangerServer", "1.2.4.4")] public class VersionChanger : BaseUnityPlugin { public const string PluginGUID = "theniklev.VersionChangerServer"; public const string PluginAuthor = "TheNikLev&nik9"; public const string PluginName = "VersionChangerServer"; public const string PluginVersion = "1.2.4.4"; private void OnEnable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown RoR2Application.AssignBuildId += new hook_AssignBuildId(OnAssignBuildId); } private void OnDisable() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown RoR2Application.AssignBuildId -= new hook_AssignBuildId(OnAssignBuildId); } private static void OnAssignBuildId(orig_AssignBuildId orig) { Type typeFromHandle = typeof(RoR2Application); FieldInfo field = typeFromHandle.GetField("buildId", BindingFlags.Static | BindingFlags.NonPublic); if (field != null) { field.SetValue(null, "1.2.4.4"); } } }