tModLoader

tModLoader

Advanced World Generation
Crash at the end of World Gen
Every time I try to generate a world with custom Width and Height, it generates just fine until the very last step "Finishing Touches", where it then crashes to desktop.
I have managed to generate a regular large world with this.
Log looks like this:

[14:26:59.742] [WorldGen/INFO] [AdvancedWorldGen]: leftBeachEnd : 560
[14:26:59.742] [WorldGen/INFO] [AdvancedWorldGen]: rightBeachStart : 20477
[14:26:59.742] [WorldGen/INFO] [AdvancedWorldGen]: lowDepthBeachSize : 5
[14:26:59.742] [WorldGen/INFO] [AdvancedWorldGen]: worldSurface : 518
[14:26:59.742] [WorldGen/INFO] [AdvancedWorldGen]: rockLayer : 1295
[14:26:59.742] [WorldGen/INFO] [AdvancedWorldGen]: worldSurfaceMin : 612
[14:26:59.742] [WorldGen/INFO] [AdvancedWorldGen]: worldSurfaceMax : 828
[14:26:59.742] [WorldGen/INFO] [AdvancedWorldGen]: totalBeachSize : 565
[14:28:11.205] [WorldGen/INFO] [StatusText]: Creating underworld
[14:28:21.786] [WorldGen/INFO] [StatusText]: Settling liquids
[14:30:24.438] [WorldGen/WARN] [tML]: Silently Caught Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at StormDiversMod.Common.ChestGeneration.PostWorldGen() in StormDiversMod\Common\ChestGeneration.cs:line 464
at Terraria.ModLoader.SystemLoader.PostWorldGen() in tModLoader\Terraria\ModLoader\SystemLoader.cs:line 497
at Terraria.WorldGen.GenerateWorld_RunTasksAndFinish(Int32 seed, Stopwatch generationStopwatch, GenerationProgress customProgressObject) in tModLoader\Terraria\WorldGen.cs:line 14059
at DMD<DMD<>?35795638::Terraria.WorldGen::GenerateWorld>(Int32 seed, GenerationProgress customProgressObject)
at SyncProxy<System.Void Terraria.WorldGen:GenerateWorld(System.Int32, Terraria.WorldBuilding.GenerationProgress)>(Int32 , GenerationProgress )
at DMD<DMD<>?63185144::Terraria.WorldGen::do_worldGenCallBack>(Object threadContext)
at AdvancedWorldGen.UI.UIChanger.<>c__DisplayClass10_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UIChanger.cs:line 38
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

[14:30:24.440] [WorldGen/DEBUG] [tML]: Web Request: http://awg.alwaysdata.net/register.php
[14:30:24.440] [WorldGen/WARN] [tML]: Silently Caught Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ILUnreplace() in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.IL.cs:line 31
at AdvancedWorldGen.UI.UIChanger.EmergencySaving(String suffix) in AdvancedWorldGen\UI\UIChanger.cs:line 61
at AdvancedWorldGen.UI.UIChanger.<>c__DisplayClass10_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UIChanger.cs:line 38
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

[14:30:24.444] [WorldGen/ERROR] [tML]: Unhandled Exception
System.NullReferenceException: Object reference not set to an instance of an object.
at AdvancedWorldGen.BetterVanillaWorldGen.Replacer.ILUnreplace() in AdvancedWorldGen\BetterVanillaWorldGen\Replacer.IL.cs:line 31
at AdvancedWorldGen.UI.UIChanger.EmergencySaving(String suffix) in AdvancedWorldGen\UI\UIChanger.cs:line 61
at AdvancedWorldGen.UI.UIChanger.<>c__DisplayClass10_0.<ThreadifyWorldGen>b__0() in AdvancedWorldGen\UI\UIChanger.cs:line 46
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
[14:30:24.445] [WorldGen/FATAL] [tML]: Native exception has occurred, attempting to determine erroring module...
[14:30:24.447] [WorldGen/FATAL] [tML]: Exception occurred in module: C:\WINDOWS\System32\KERNELBASE.dll
[14:30:24.447] [WorldGen/FATAL] [tML]: Attempting to save minidump...
[14:30:26.904] [.NET TP Worker/WARN] [tML]: Silently Caught Exception:
System.Net.Sockets.SocketException: No such host is known.
at System.Net.Sockets.SocketAsyncEventArgs.<DnsConnectAsync>g__Core|112_0(MultiConnectSocketAsyncEventArgs internalArgs, Task`1 addressesTask, Int32 port, SocketType socketType, ProtocolType protocolType, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute)
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

[14:30:26.906] [.NET TP Worker/WARN] [tML]: Silently Caught Exception:
System.Net.Http.HttpRequestException: No such host is known. (awg.alwaysdata.net:80)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute)
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Net.Sockets.SocketAsyncEventArgs.<DnsConnectAsync>g__Core|112_0(MultiConnectSocketAsyncEventArgs internalArgs, Task`1 addressesTask, Int32 port, SocketType socketType, ProtocolType protocolType, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute)
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception, Task`1& taskField)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

[14:30:26.939] [WorldGen/FATAL] [tML]: Minidump saved to: 'E:\SteamLibrary\steamapps\common\tModLoader\tModLoader-Logs\client_v2025.5.3.0_07-31-25_14-30-24-4473_51.dmp.zip'
[14:30:26.939] [WorldGen/FATAL] [tML]: This file can be provided to tModLoader developers to help diagnose the issue.


Let me know if I need to provide any extra information.
< >
Showing 1-2 of 2 comments
Ishigh  [developer] 1 Aug @ 7:50am 
That's an issue you'll have to share with StormDiversMod first. If they do need a change I can provide but at a glance it's only their fault
SirUmnei 1 Aug @ 12:20pm 
Aaaah ok. Thank you for clarifying. I can probably just turn off the mod and turn it back on after world gen.

I'll post an update later today.
Last edited by SirUmnei; 1 Aug @ 12:21pm
< >
Showing 1-2 of 2 comments
Per page: 1530 50