Sign in to follow this  

World Seed Crash


LaggingSavant
  • Branch: Preview Branch Version: Windows Fixed

Using World Seeds for Maximum 32 bit integer -1 , -2, -3

2,147,483,646; 2,147,483,645; 2,147,483,644

crashes the world generation algorithm.

Output log Exception

Seeds are [2147483646/2147483646/2147483646/2147483646]
ERROR: Value is too small.
  at System.Math.Abs (Int32 value) [0x0000b] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Math.cs:74 
  at System.Random..ctor (Int32 Seed) [0x00013] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Random.cs:62 
  at SeededRandom..ctor (Int32 seed) [0x00017] in D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\Plugins\Klei\worldgen\SeededRandom.cs:10 
  at VoronoiTree.Tree.SetSeed (Int32 seed) [0x00003] in D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\Plugins\Klei\worldgen\Voronoi\VoronoiTree.cs:48 
  at VoronoiTree.Tree..ctor (VoronoiTree.Site site, VoronoiTree.Tree parent, Int32 seed) [0x00025] in D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\Plugins\Klei\worldgen\Voronoi\VoronoiTree.cs:32 
  at VoronoiTree.Tree.AddSite (VoronoiTree.Site site, NodeType type) [0x0001f] in D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\Plugins\Klei\worldgen\Voronoi\VoronoiTree.cs:97 
  at ProcGen.WorldLayout.GenerateOverworld (Boolean usePD) [0x0030f] in D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\scripts\worldgen\WorldLayout.cs:166 
  at ProcGenGame.WorldGen.GenerateLayout (ProcGenGame.OfflineCallbackFunction updateProgressFn) [0x000d4] in D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\scripts\worldgen\WorldGen.cs:759 
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
Debug:LogError(Object, Object) (at D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\Plugins\Debug.cs:96)
Output:LogError(String) (at D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\Plugins\Output.cs:163)
Output:LogError(Object[]) (at D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\Plugins\Output.cs:46)
WorldGenLogger:LogException(String, String) (at D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\scripts\worldgen\WorldGenLogger.cs:6)
ProcGenGame.WorldGen:GenerateLayout(OfflineCallbackFunction) (at D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\scripts\worldgen\WorldGen.cs:767)
ProcGenGame.WorldGen:GenerateWorldData() (at D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\scripts\worldgen\WorldGen.cs:932)
ProcGenGame.WorldGen:GenerateOffline() (at D:\JenkinsWorkspace\Preview_Simgame_Windows\game\Assets\scripts\worldgen\WorldGen.cs:303)

 


Steps to Reproduce
create a custom game, type in the maximum 32 bit integer and subtract 1, select generate world.
Sign in to follow this  


User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now