Jump to content

World Generation crash for Pie


Elvaron
  • Branch: Live Branch Version: Windows Pending

World Generator seems to have an unhandled System.OverflowException for values outside the range:

Error in WorldGenScreen.WorldGenScreen.OnSpawn
System.OverflowException: Value was either too large or too small for an Int32.
  at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00057] in <9577ac7a62ef43179789031239ba8798>:0
  at System.Int32.Parse (System.String s) [0x00007] in <9577ac7a62ef43179789031239ba8798>:0
  at OfflineWorldGen.DoWorldGenInitialize () [0x00011] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\worldgen\OfflineWorldGen.cs:333
  at OfflineWorldGen.DoWorldGen (System.Int32 selectedDimension) [0x00008] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\worldgen\OfflineWorldGen.cs:326
  at OfflineWorldGen.Generate () [0x00170] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\worldgen\OfflineWorldGen.cs:123
  at WorldGenScreen.OnSpawn () [0x0006a] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\scripts\ui\WorldGenScreen.cs:40
  at KMonoBehaviour.Spawn () [0x00078] in C:\jenkins_workspace\workspace\SimGame_Windows\game\Assets\Plugins\Klei\util\KMonoBehaviour.cs:285

UnityEngine.Debug:LogError(Object, Object)
Debug:LogError(Object, Object) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Debug.cs:152)
DebugUtil:LogErrorArgs(Object, Object[]) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:191)
DebugUtil:LogException(Object, String, Exception) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:201)
KMonoBehaviour:Spawn() (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:292)
KMonoBehaviour:Start() (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:243)


Steps to Reproduce
  • Enter a World Generator Seed with a numeric seed value larger than System.Int32.MaxValue ( 2147483647 )
  • Example: Let's use our favorite pie and enter SWMP-C-3141592653-9G as the world seed
  • Result: Crash
  • Expected Behavior: "Illegal Seed" warning or just downstep the value into the range.



User Feedback


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

×
  • Create New...