tModLoader

tModLoader

Supernova Mod
This topic has been locked
JJ's Place 16 Dec, 2023 @ 6:55pm
Bug with Advanced Worldgen
This bug will happen sometimes when generating a new world.

Logs:
[20:41:07.055] [WorldGen/WARN] [tML]: Silently Caught Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SupernovaMod.Api.ChestLoot.ChestGenPass.UpdateChest(Chest chest) in SupernovaMod\Api\ChestLoot\ChestGenPass.cs:line 41
at DMD<System.Void SupernovaMod.Api.ChestLoot.ChestGenPass:ApplyPass(Terraria.WorldBuilding.GenerationProgress, Terraria.IO.GameConfiguration)>(ChestGenPass this, GenerationProgress progress, GameConfiguration configuration)
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 148
at Hook<System.Void AdvancedWorldGen.BetterVanillaWorldGen.Replacer::Timer(Terraria.WorldBuilding.On_GenPass+orig_Apply,Terraria.WorldBuilding.GenPass,Terraria.WorldBuilding.GenerationProgress,Terraria.IO.GameConfiguration)>(ChestGenPass , GenerationProgress , GameConfiguration )
at SyncProxy<System.Void SupernovaMod.Api.ChestLoot.ChestGenPass:ApplyPass(Terraria.WorldBuilding.GenerationProgress, Terraria.IO.GameConfiguration)>(ChestGenPass , GenerationProgress , GameConfiguration )
at DMD<System.Void Terraria.WorldBuilding.WorldGenerator:GenerateWorld(Terraria.WorldBuilding.GenerationProgress)>(WorldGenerator this, GenerationProgress progress)
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ChangeWeights(orig_GenerateWorld orig, WorldGenerator self, GenerationProgress progress) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 136
at Hook<System.Void AdvancedWorldGen.BetterVanillaWorldGen.Replacer::ChangeWeights(Terraria.WorldBuilding.On_WorldGenerator+orig_GenerateWorld,Terraria.WorldBuilding.WorldGenerator,Terraria.WorldBuilding.GenerationProgress)>(WorldGenerator , GenerationProgress )
at SyncProxy<System.Void Terraria.WorldBuilding.WorldGenerator:GenerateWorld(Terraria.WorldBuilding.GenerationProgress)>(WorldGenerator , GenerationProgress )
at Terraria.WorldGen.GenerateWorld_RunTasksAndFinish(Int32 seed, Stopwatch generationStopwatch, GenerationProgress customProgressObject) in tModLoader\Terraria\WorldGen.cs:line 14025
at DMD<System.Void Terraria.WorldGen:GenerateWorld(System.Int32, Terraria.WorldBuilding.GenerationProgress)>(Int32 seed, GenerationProgress customProgressObject)
at SyncProxy<System.Void Terraria.WorldGen:GenerateWorld(System.Int32, Terraria.WorldBuilding.GenerationProgress)>(Int32 , GenerationProgress )
at DMD<System.Void Terraria.WorldGen:do_worldGenCallBack(System.Object)>(Object threadContext)
at AdvancedWorldGen.UI.UIChanger.<>c__DisplayClass10_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UIChanger.cs:line 38
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

[20:41:07.057] [WorldGen/ERROR] [tML]: A problem was encountered during world generation
Supernova: Filling chests...
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SupernovaMod.Api.ChestLoot.ChestGenPass.UpdateChest(Chest chest) in SupernovaMod\Api\ChestLoot\ChestGenPass.cs:line 41
at DMD<System.Void SupernovaMod.Api.ChestLoot.ChestGenPass:ApplyPass(Terraria.WorldBuilding.GenerationProgress, Terraria.IO.GameConfiguration)>(ChestGenPass this, GenerationProgress progress, GameConfiguration configuration)
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 148
at Hook<System.Void AdvancedWorldGen.BetterVanillaWorldGen.Replacer::Timer(Terraria.WorldBuilding.On_GenPass+orig_Apply,Terraria.WorldBuilding.GenPass,Terraria.WorldBuilding.GenerationProgress,Terraria.IO.GameConfiguration)>(ChestGenPass , GenerationProgress , GameConfiguration )
at SyncProxy<System.Void SupernovaMod.Api.ChestLoot.ChestGenPass:ApplyPass(Terraria.WorldBuilding.GenerationProgress, Terraria.IO.GameConfiguration)>(ChestGenPass , GenerationProgress , GameConfiguration )
at DMD<System.Void Terraria.WorldBuilding.WorldGenerator:GenerateWorld(Terraria.WorldBuilding.GenerationProgress)>(WorldGenerator this, GenerationProgress progress)
[20:41:07.069] [WorldGen/INFO] [StatusText]: Saving world data
[20:41:07.591] [WorldGen/INFO] [StatusText]: Validating world save
[20:41:08.631] [WorldGen/DEBUG] [SatelliteStorage]: Saving world data
[20:41:13.113] [Main Thread/DEBUG] [tML]: Process.Start (UseShellExecute = True): "tModLoader-Logs"
< >
Showing 1-3 of 3 comments
KoekMeneer  [developer] 17 Dec, 2023 @ 1:39pm 
Hey,

Thank you for the report.
I think I fixed the bug, could you try again?
JJ's Place 19 Dec, 2023 @ 2:35pm 
It works! Thanks for the quick response!
KoekMeneer  [developer] 20 Dec, 2023 @ 11:16am 
No problem!
< >
Showing 1-3 of 3 comments
Per page: 1530 50