kernel-panic-codecave / Multiverse2

GNU General Public License v3.0
0 stars 3 forks source link

Mod claims existing world name and gets disabled. #5

Open Luna-Nocturna opened 1 year ago

Luna-Nocturna commented 1 year ago

Hello,

I'll straight up say I don't have the most understanding on worlds yet. However I can't even the basic functions of this mod to work yet.

Without any other mods as a test to see how this would work and I tried the following:

  1. I crafted a portal ingame which then claimed I had to config a world in the config first.
  2. I had to do this from the main menu > workshop as the config wasn't allowed to save ingame.
  3. Creating a simple world with any name and set to Vanilla seems to work fine.
  4. However at that point when the config is saved and the mods are reloaded Multiverse2 gets disabled. The error log claims there's already an existing world with the same name.

Error log:

[06:56:35.313] [.NET ThreadPool Worker/ERROR] [tML]: An error occurred while loading Multiverse2 v2.4.1
It has been detected that this mod was built for tModLoader v2022.6.96.4
However, you are using tModLoader v2022.9.47.17
The mod(s) have been automatically disabled.
System.Exception: Cannot add two Subworld with the same name: Multiverse2/TEST. Maybe 2 classes share a classname but in different namespaces while autoloading or you manually called AddContent with 2 Subworld of the same name.
   at Terraria.ModLoader.ModTypeLookup`1.RegisterWithName(T instance, String name, String fullName) in tModLoader\Terraria\ModLoader\ModTypeLookup.cs:line 33
   at Terraria.ModLoader.ModTypeLookup`1.Register(T instance) in tModLoader\Terraria\ModLoader\ModTypeLookup.cs:line 23
   at SubworldLibrary.Subworld.Register() in SubworldLibrary.cs:line 807
   at Terraria.ModLoader.ModType.Terraria.ModLoader.ILoadable.Load(Mod mod) in tModLoader\Terraria\ModLoader\ModType.cs:line 34
   at Terraria.ModLoader.Mod.AddContent(ILoadable instance) in tModLoader\Terraria\ModLoader\Mod.cs:line 132
   at Multiverse2.Content.Subworlds.MultiverseSystem.OnModLoad() in Multiverse2/Content/Subworlds/MultiverseSystem.cs:line 27
   at Terraria.ModLoader.SystemLoader.OnModLoad(Mod mod) in tModLoader\Terraria\ModLoader\SystemLoader.cs:line 68
   at Terraria.ModLoader.ModContent.<>c.<Load>b__42_0(Mod mod) in tModLoader\Terraria\ModLoader\ModContent.cs:line 320
   at Terraria.ModLoader.ModContent.LoadModContent(CancellationToken token, Action`1 loadAction) in tModLoader\Terraria\ModLoader\ModContent.cs:line 383
   at Terraria.ModLoader.ModContent.Load(CancellationToken token) in tModLoader\Terraria\ModLoader\ModContent.cs:line 310
   at Terraria.ModLoader.ModLoader.Load(CancellationToken token) in tModLoader\Terraria\ModLoader\ModLoader.cs:line 125
[06:56:35.314] [.NET ThreadPool Worker/INFO] [tML]: Disabling Mod: Multiverse2