tModLoader

tModLoader

Advanced World Generation
Ishigh  [developer] May 8, 2022 @ 2:56am
Bug reports
Just to make it simple, you can send logs there
Only give logs with the context of the world parameters (seed, size, options).
Also if you have any mod enabled, disable as many of them as possible because I can't test 1000 mods every time I receive a bug report.
Please also precise the mod version and tmodloader version if you don't post the full log.
If you don't do all of that, I'm sorry but I can't help
Last edited by Ishigh; Jun 1, 2022 @ 3:57pm
< >
Showing 61-75 of 319 comments
Ishigh  [developer] Aug 25, 2022 @ 8:51pm 
Also for a similar reason, there can't be more than 30 island (and I didn't change that yet), so it seems that it crashes at x >= 25000
Last edited by Ishigh; Aug 25, 2022 @ 8:51pm
Crow Aug 26, 2022 @ 12:37am 
Originally posted by Ishigh:
Also for a similar reason, there can't be more than 30 island (and I didn't change that yet), so it seems that it crashes at x >= 25000

I see, thank you for explaining it
Last edited by Crow; Aug 26, 2022 @ 12:43am
Gilrix Aug 26, 2022 @ 12:51am 
Originally posted by Ishigh:
Also for a similar reason, there can't be more than 30 island (and I didn't change that yet), so it seems that it crashes at x >= 25000

Thank you for the information. I was able to generate a 24000x6400 world without any issues, and I loaded in just fine.
Crow Aug 26, 2022 @ 12:54am 
I lowered down to 24000x7200 and crashed, latest versions of AWG and tModLoader, Overhaul enabled.

[00:50:29.023] [Main Thread/INFO] [tML]: Creating hornet nests... [00:50:30.295] [WorldGen/WARN] [tML]: Silently Caught Exception: System.Exception: Jungle grass not found for jungle chest ! at AdvancedWorldGen.BetterVanillaWorldGen.Jungle.JungleChests.ApplyPass() in AdvancedWorldGen\BetterVanillaWorldGen\Jungle\JungleChests.cs:line 48 at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 104 at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress) at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ChangeWeights(orig_GenerateWorld orig, WorldGenerator self, GenerationProgress progress) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 93 at DMD<Terraria.WorldGen::GenerateWorld>(Int32 seed, GenerationProgress customProgressObject) at DMD<Terraria.WorldGen::do_worldGenCallBack>(Object threadContext) at AdvancedWorldGen.UI.UiChanger.<>c__DisplayClass9_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UiChanger.cs:line 37 at System.Threading.Thread.StartHelper.Callback(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Thread.StartCallback() [00:50:30.298] [WorldGen/ERROR] [tML]: A problem was encountered during world generation Jungle Chests System.Exception: Jungle grass not found for jungle chest ! at AdvancedWorldGen.BetterVanillaWorldGen.Jungle.JungleChests.ApplyPass() in AdvancedWorldGen\BetterVanillaWorldGen\Jungle\JungleChests.cs:line 48 at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 104 at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress) [00:50:44.863] [Main Thread/DEBUG] [tML]: Process.Start (UseShellExecute = True): "tModLoader-Logs"
There also seems to be a similar issue with desert generation on larger scales?


[13:29:17.395] [WorldGen/ERROR] [tML]: A problem was encountered during world generation
Full Desert
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Terraria.GameContent.Biomes.Desert.DesertHive.PlaceClustersArea(DesertDescription description, ClusterGroup clusters, Rectangle area, PostPlacementEffect[,] postEffectMap, Point postEffectMapOffset) in tModLoader\Terraria\GameContent\Biomes\Desert\DesertHive.cs:line 228
at Terraria.GameContent.Biomes.Desert.DesertHive.PlaceClusters(DesertDescription description, ClusterGroup clusters) in tModLoader\Terraria\GameContent\Biomes\Desert\DesertHive.cs:line 175
at DMD<Terraria.GameContent.Biomes.Desert.DesertHive::Place>(DesertDescription description)
at Terraria.GameContent.Biomes.DesertBiome.Place(Point origin, StructureMap structures) in tModLoader\Terraria\GameContent\Biomes\DesertBiome.cs:line 38
at Terraria.WorldGen.<>c.<GenerateWorld>b__362_22(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 6685
at Terraria.GameContent.Generation.PassLegacy.ApplyPass(GenerationProgress progress, GameConfiguration configuration) in tModLoader\Terraria\GameContent\Generation\PassLegacy.cs:line 226
at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress)

A 17600x5600 world. Anything i can do to let it finish?
(Same issue with changed worldgen:)


[13:34:56.796] [WorldGen/ERROR] [tML]: A problem was encountered during world generation
Full Desert
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at AdvancedWorldGen.BetterVanillaWorldGen.DesertStuff.ModifiedDesertHive.PlaceClustersArea(ClusterGroup clusterGroup, Dictionary`2 hive) in AdvancedWorldGen\BetterVanillaWorldGen\DesertStuff\ModifiedDesertHive.cs:line 85
at AdvancedWorldGen.BetterVanillaWorldGen.DesertStuff.ModifiedDesertHive.PlaceClusters(ClusterGroup clusters) in AdvancedWorldGen\BetterVanillaWorldGen\DesertStuff\ModifiedDesertHive.cs:line 15
at AdvancedWorldGen.BetterVanillaWorldGen.DesertStuff.ModifiedDesertHive.Place(DesertDescription description) in AdvancedWorldGen\BetterVanillaWorldGen\DesertStuff\ModifiedDesertHive.cs:line 7
at Terraria.GameContent.Biomes.DesertBiome.Place(Point origin, StructureMap structures) in tModLoader\Terraria\GameContent\Biomes\DesertBiome.cs:line 38
at Terraria.WorldGen.<>c.<GenerateWorld>b__362_22(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 6685
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 104
at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress)
Ishigh  [developer] Aug 26, 2022 @ 10:26am 
Originally posted by SuCr Princess of Evil:
(Same issue with changed worldgen:)


[13:34:56.796] [WorldGen/ERROR] [tML]: A problem was encountered during world generation
Full Desert
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at AdvancedWorldGen.BetterVanillaWorldGen.DesertStuff.ModifiedDesertHive.PlaceClustersArea(ClusterGroup clusterGroup, Dictionary`2 hive) in AdvancedWorldGen\BetterVanillaWorldGen\DesertStuff\ModifiedDesertHive.cs:line 85
at AdvancedWorldGen.BetterVanillaWorldGen.DesertStuff.ModifiedDesertHive.PlaceClusters(ClusterGroup clusters) in AdvancedWorldGen\BetterVanillaWorldGen\DesertStuff\ModifiedDesertHive.cs:line 15
at AdvancedWorldGen.BetterVanillaWorldGen.DesertStuff.ModifiedDesertHive.Place(DesertDescription description) in AdvancedWorldGen\BetterVanillaWorldGen\DesertStuff\ModifiedDesertHive.cs:line 7
at Terraria.GameContent.Biomes.DesertBiome.Place(Point origin, StructureMap structures) in tModLoader\Terraria\GameContent\Biomes\DesertBiome.cs:line 38
at Terraria.WorldGen.<>c.<GenerateWorld>b__362_22(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 6685
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 104
at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress)
Uh... This error makes absolutely no sense, can I have the full log ?
After a bit more testing, it looks like the mod works more or less fine, it just looks like it hangs on desertification, and that error is actually what happens if you abort.
Ishigh  [developer] Aug 26, 2022 @ 11:52am 
Originally posted by SuCr Princess of Evil:
After a bit more testing, it looks like the mod works more or less fine, it just looks like it hangs on desertification, and that error is actually what happens if you abort.
No visual indication thatsomething is happening doesn't help indeed, I'll add one
And add a "worldgen was stopped forcibly and whatever error happens next is not my fault" to the log too, maybe, if it's impossible to abort it neatly?
Ishigh  [developer] Aug 26, 2022 @ 12:16pm 
Originally posted by SuCr Princess of Evil:
And add a "worldgen was stopped forcibly and whatever error happens next is not my fault" to the log too, maybe, if it's impossible to abort it neatly?
I just did it, it will be in the next update
tModLoader v2022.7.58.9
AWG v2.8.10.1
Seed: <It doesn't matter>
The error occurs even when mods are disabled (This log was made with the mods enabled);
World size 25200x7200;
Overhaul Generation is disabled;

-------------------------------------------------------------------------------------
[03:05:31.686] [WorldGen/WARN] [tML]: Silently Caught Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DMD<Terraria.WorldGen::MakeDungeon>(Int32 x, Int32 y)
at Terraria.WorldGen.<>c.<GenerateWorld>b__362_34(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 7800
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 107
at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress)
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ChangeWeights(orig_GenerateWorld orig, WorldGenerator self, GenerationProgress progress) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 96
at DMD<Terraria.WorldGen::GenerateWorld>(Int32 seed, GenerationProgress customProgressObject)
at DMD<Terraria.WorldGen::do_worldGenCallBack>(Object threadContext)
at AdvancedWorldGen.UI.UiChanger.<>c__DisplayClass9_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UiChanger.cs:line 37
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

[03:05:31.687] [WorldGen/ERROR] [tML]: A problem was encountered during world generation
Dungeon
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DMD<Terraria.WorldGen::MakeDungeon>(Int32 x, Int32 y)
at Terraria.WorldGen.<>c.<GenerateWorld>b__362_34(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 7800
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 107
at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress)
[03:07:15.518] [Main Thread/DEBUG] [tML]: Process.Start (UseShellExecute = True): "tModLoader-Logs"
-------------------------------------------------------------------------------------

If needed, I can throw the full log.
Last edited by The Leader of B.S.; Aug 26, 2022 @ 6:21pm
Ishigh  [developer] Aug 26, 2022 @ 6:32pm 
Originally posted by The Leader of B.S.:
tModLoader v2022.7.58.9
AWG v2.8.10.1
Seed: <It doesn't matter>
The error occurs even when mods are disabled (This log was made with the mods enabled);
World size 25200x7200;
Overhaul Generation is disabled;

-------------------------------------------------------------------------------------
[03:05:31.686] [WorldGen/WARN] [tML]: Silently Caught Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DMD<Terraria.WorldGen::MakeDungeon>(Int32 x, Int32 y)
at Terraria.WorldGen.<>c.<GenerateWorld>b__362_34(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 7800
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 107
at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress)
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ChangeWeights(orig_GenerateWorld orig, WorldGenerator self, GenerationProgress progress) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 96
at DMD<Terraria.WorldGen::GenerateWorld>(Int32 seed, GenerationProgress customProgressObject)
at DMD<Terraria.WorldGen::do_worldGenCallBack>(Object threadContext)
at AdvancedWorldGen.UI.UiChanger.<>c__DisplayClass9_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UiChanger.cs:line 37
at System.Threading.Thread.StartHelper.Callback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

[03:05:31.687] [WorldGen/ERROR] [tML]: A problem was encountered during world generation
Dungeon
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DMD<Terraria.WorldGen::MakeDungeon>(Int32 x, Int32 y)
at Terraria.WorldGen.<>c.<GenerateWorld>b__362_34(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 7800
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 107
at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress)
[03:07:15.518] [Main Thread/DEBUG] [tML]: Process.Start (UseShellExecute = True): "tModLoader-Logs"
-------------------------------------------------------------------------------------

If needed, I can throw the full log.
Not needed, I added a error message recently saying that worldgen would crash if you made a world with X >= 12000 if Overhaul Generation is disabled
I don't put a limit there in case some other mod fixes it and you are aware of that, but otherwise, it can't work
Crow Aug 31, 2022 @ 2:45pm 
I attempted to generate a custom world and it crashed. The crash log is below.

World Size: 40000x12000
tModLoader version: 1.4.3.6 (latest)
AWG version: 2.8.10.5 (latest)
Overhauled Worldgen: On

[14:42:47.261] [WorldGen/INFO] [Terraria]: Generating World: Sharp Tract of Suffering [14:42:47.269] [WorldGen/DEBUG] [tML]: Hook On.AdvancedWorldGen.BetterVanillaWorldGen.ControlledWorldGenPass::ApplyPass(GenerationProgress, GameConfiguration) added by AdvancedWorldGen [14:42:47.273] [WorldGen/DEBUG] [tML]: Hook On.Terraria.GameContent.Generation.PassLegacy::ApplyPass(GenerationProgress, GameConfiguration) added by AdvancedWorldGen [14:42:47.276] [WorldGen/DEBUG] [tML]: Hook On.AdvancedWorldGen.Base.NPCPass::ApplyPass(GenerationProgress, GameConfiguration) added by AdvancedWorldGen [14:42:47.323] [Main Thread/DEBUG] [tML]: Assembly Resolve: Humanizer, Version=2.2.0.0, Culture=neutral, PublicKeyToken=979442b78dfc278e -> Humanizer.resources, Version=2.2.0.0, Culture=en-US, PublicKeyToken=979442b78dfc278e [14:42:47.534] [Main Thread/INFO] [tML]: Generating world terrain... [14:42:53.359] [Main Thread/INFO] [tML]: Adding sand... [14:42:54.179] [Main Thread/INFO] [tML]: Generating ocean sand... [14:42:55.717] [Main Thread/INFO] [tML]: Generating hills... [14:42:56.043] [WorldGen/WARN] [tML]: Silently Caught Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Terraria.WorldGen.<>c.<GenerateWorld>b__362_7(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 6206 at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 107 at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress) at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ChangeWeights(orig_GenerateWorld orig, WorldGenerator self, GenerationProgress progress) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 96 at DMD<Terraria.WorldGen::GenerateWorld>(Int32 seed, GenerationProgress customProgressObject) at DMD<Terraria.WorldGen::do_worldGenCallBack>(Object threadContext) at AdvancedWorldGen.UI.UiChanger.<>c__DisplayClass9_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UiChanger.cs:line 37 at System.Threading.Thread.StartHelper.Callback(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Thread.StartCallback() [14:42:56.046] [WorldGen/ERROR] [tML]: A problem was encountered during world generation Mount Caves System.IndexOutOfRangeException: Index was outside the bounds of the array. at Terraria.WorldGen.<>c.<GenerateWorld>b__362_7(GenerationProgress progress, GameConfiguration passConfig) in tModLoader\Terraria\WorldGen.cs:line 6206 at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.Timer(orig_Apply orig, GenPass self, GenerationProgress progress, GameConfiguration configuration) in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.Hooks.cs:line 107 at DMD<Terraria.WorldBuilding.WorldGenerator::GenerateWorld>(WorldGenerator this, GenerationProgress progress) [14:43:09.717] [Main Thread/DEBUG] [tML]: Process.Start (UseShellExecute = True): "tModLoader-Logs"
Last edited by Crow; Aug 31, 2022 @ 2:52pm
Ishigh  [developer] Aug 31, 2022 @ 4:32pm 
Seems that's a vanilla issue with x >= 31 000 indeed
< >
Showing 61-75 of 319 comments
Per page: 1530 50