tModLoader

tModLoader

Fancy Lighting
[Solved] Game crashes the second I join a world with this mod enabled
Try to join my world with the new update of Fancy Lighting, game instantly crashes and gives me the following text in a crash window:

System.AggregateException: One or more errors occurred. (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) --> System Index OutOfRangeException: Index was outside the bounds of the array. at FancyLighting.SmoothLighting.<> c_DisplayClass26_0.<CalculateSmoothLighting> b__1(Int32 x1) in FancyLighting\SmoothLighting.cs:line 292 at System. Threading, Tasks Parallel.<>c_DisplayClass19_0"1.<ForWorker>b_1(RangeWorker& currentWeorker, Int32 timeout, Boolean& replicationDelegateVieldedBeforeCompletion) End of stack trace from previous location ~ at System. Threading, Tasks Parallel.<>c_DisplayClass19_0"1.<ForWorker>b_1(RangeWorker& currentWeorker, Int32 timeout, Boolean& replicationDelegateVieldedBeforeCompletion) at System. Threading, Tasks. askReplicator Replica Execute) --- End of inner exception stack trace at System. Threading, Tasks.TaskReplicator Run{TState]|ReplicatableUserAction’l action, ParallelOptions options, Boolean stopOnFirstFailure) at System. Threading, Tasks.Parallel.ForWorker{TLocal]{Int32 frominclusive, Int32 toExclusive, ParallelOptions paralle!Options, Action’ body, Action’2 bodyWithstate, Func’d bodyWithLocal, Func’ locallnit, Action’T localFinally) "End of stack trace from previous location ~ at System. Threading, Tasks.Parallel. hrowSingleCancellationException OrOtherException(|Collection exceptions, CancellationToken cancelToken, Exception otherException) at System. Threading, Tasks.Parallel.ForWorker{TLocal](Int32 frominclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action” body, Action'2 bodyWithstate, Func’d bodyWithLocal, Func’ locallnit, Action’T localFinally) at System. Threading, Tasks.ParallelFor(Int32 frominclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action'| body) at FancyLighting.SmoothLighting,CalculateSmoothLighting(Boolean background) in FancyLighting\SmoothLighting.cs:line 286 at FancyLighting.FancyLightingMod.<AddHooks> b_46_6(orig_RenderTiles2 orig, Main self) in FancyLightingMod.csline 204 at Terraria.Main.DoDraw(GameTime gameTime) in tModLoader\Terraria\Main.csline 48702 at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 48564 at Microsoft Xna.Framework.Game.Tick( in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 557 at Microsoft Xna.Framework.Game.RunLoop( in D:\a\tModL oader\tModl oader\FNA\src\Game.csline 883, at Microsoft Xna,Framework.GameRun( in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 414 at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 234 (Inner Exception #1) System.indexOutOfRangeException: Index was outside the bounds of the array. at FancyLighting.SmoothLighting.<> c_DisplayClass26_0.<CalculateSmoothLighting>b_1(Int32 x1) in FancyLighting\SmoothLighting.cs:line 292 at System. Threading, Tasks Parallel.<>c_DisplayClass19_0"1.<ForWorker>b_1(RangeWorker& currentWeorker, Int32 timeout, Boolean& replicationDelegateVieldedBeforeCompletion) End of stack trace from previous location ~ at System. Threading, Tasks Parallel.<>c_DisplayClass19_0"1.<ForWorker>b_1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateVieldedBeforeCompletion) at System. Threading, Tasks. TaskReplicator Replica Execute()<--- --> (Inner Exception #2) System.IndexOutOfRange£xception: Index was outside the bounds of the array. at FancyLighting.SmoothLighting.<> c_DisplayClass26_0.<CalculateSmoothLighting>b_1(Int32 x1) in FancyLighting\SmoothLighting.cs:line 292 at System. Threading, Tasks Parallel.<>c_DisplayClass19_0"1.<ForWorker>b_1(RangeWorker& currentWeorker, Int32 timeout, Boolean& replicationDelegateVieldedBeforeCompletion) --- End of stack trace from previous location --- at System. Threading, Tasks Parallel.<>c_DisplayClass19_0"1.<ForWorker>b_1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateVieldedBeforeCompletion) at System. Threading, Tasks. TaskReplicator Replica Execute()<--- A client.log file containing error information has been generated in C:\Program Files (x86)\Steam\steamapps\common\tModLoade/\tModL oader-Logs (You will need to share this file if asking for help)
Last edited by Collcroc123; 3 Jul, 2022 @ 7:34pm
< >
Showing 1-2 of 2 comments
Rex  [developer] 3 Jul, 2022 @ 6:54pm 
Is your mod updated to v0.2.5? I have added safeguards so that smooth lighting is turned off in these situations instead of crashing the game.
Collcroc123 3 Jul, 2022 @ 7:35pm 
Updated, it's working now. Thanks!
< >
Showing 1-2 of 2 comments
Per page: 1530 50