Skip to content

Баг Bug LoadingScreen_Update /Patches/WorldSetup.cs #1

@of-Lex

Description

@of-Lex

Видимо Facepunch поменяли нечто "LoadingScreen" на что-то другое.
Для себя лично закомментировал код весь класс LoadingScreen_Update в связи с ненадобностью.
Плагин успешно скомпилировался и запустился.

Apparently Facepunch replaced "LoadingScreen" with something else.
I personally commented out the entire LoadingScreen_Update class code because it was no longer needed.
The plugin compiled and ran successfully.

`//[HarmonyPatch]
//internal static class LoadingScreen_Update
//{
// private static MethodBase TargetMethod() { return AccessTools.Method(typeof(LoadingScreen), "Update", new Type[] { typeof(string) }); }
// private static void Prefix(ref string strType)
// {
// if (tempData.terrainTexturing == null || strType != "DONE") return;
// Logging.Info($"SIZE: {tempData.mapsize} | SEED: {tempData.mapseed}");

// if (Config.Swap.Enabled)
// {
// string path = Path.GetFullPath("maps") + "\" + string.Format(Config.mapSettings.MapName, tempData.mapsize, tempData.mapseed) + (!Config.mapSettings.MapName.EndsWith(".map") ? ".map" : "");
// SwapMonument.Initiate(path);
// }

// MapImage.RenderMap(0.75f, 150);

// //Rust.Application.Quit();
// Application.Quit();
// return;
// }
//}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions