Page 1 of 1

1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 7:10 am
by ncc1701e
On the upper right, there was a small icon to say "France is out of oil stockpile". Usually, when you are clicking on such icon, the GUI goes directly on the country's capital.

But, in my turn, France has lost its last capital without electing a new one. So, clicking on the icon did nothing.

So, I think this is why the GUI has crashed.

In the directory C:\Users\User\AppData\LocalLow\Kraken Studios\WarPlan, the Player.txt file says:

Initialize engine version: 2019.4.1f1 (e6c045e14e4e)
[Subsystems] Discovering subsystems at path D:/JEUX/Matrix Games/WarPlanBeta/WarPlan_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: NVIDIA GeForce GTX 980 (ID=0x13c0)
Vendor:
VRAM: 4053 MB
Driver: 26.21.14.4614
Begin MonoManager ReloadAssembly
- Completed reload, in 0.085 seconds
D3D11 device created for Microsoft Media Foundation video decoding.
<RI> Initializing input.

<RI> Input initialized.

<RI> Initialized touch support.

UnloadTime: 7.496400 ms
Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 0.279900 ms

Unloading 68 unused Assets to reduce memory usage. Loaded Objects now: 1576.
Total: 48.282200 ms (FindLiveObjects: 0.246600 ms CreateObjectMapping: 0.034400 ms MarkObjects: 46.516200 ms DeleteObjects: 1.484400 ms)

Naval move null return
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 12.356700 ms

Unloading 4009 unused Assets to reduce memory usage. Loaded Objects now: 943.
Total: 69.736300 ms (FindLiveObjects: 1.435000 ms CreateObjectMapping: 0.436800 ms MarkObjects: 34.662300 ms DeleteObjects: 33.201500 ms)

Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 1.576100 ms

Unloading 81 unused Assets to reduce memory usage. Loaded Objects now: 1576.
Total: 56.785500 ms (FindLiveObjects: 1.314600 ms CreateObjectMapping: 0.088200 ms MarkObjects: 53.969100 ms DeleteObjects: 1.413000 ms)

IndexOutOfRangeException: Index was outside the bounds of the array.
at GameMenu.BuildKindScreen (System.Int32 kindStart, System.Int32 kindCount) [0x00136] in <1fa853d4dc7047d98aecd37d49c49e94>:0
at GameMenu.Production () [0x00a23] in <1fa853d4dc7047d98aecd37d49c49e94>:0
at GameMenu.OnGUI () [0x00c1d] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)

IndexOutOfRangeException: Index was outside the bounds of the array.
at GameMenu.BuildKindScreen (System.Int32 kindStart, System.Int32 kindCount) [0x00136] in <1fa853d4dc7047d98aecd37d49c49e94>:0
at GameMenu.Production () [0x00a23] in <1fa853d4dc7047d98aecd37d49c49e94>:0
at GameMenu.OnGUI () [0x00c1d] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)


....

IndexOutOfRangeException: Index was outside the bounds of the array.
at SideInfo.OnGUI () [0x00125] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)

IndexOutOfRangeException: Index was outside the bounds of the array.
at Mouse.Update () [0x006d2] in <1fa853d4dc7047d98aecd37d49c49e94>:0


...

IndexOutOfRangeException: Index was outside the bounds of the array.
at Hex.EucDistance (System.Int32 sX, System.Int32 sY, System.Int32 eX, System.Int32 eY) [0x00000] in <1fa853d4dc7047d98aecd37d49c49e94>:0
at Mouse.MoveCameraToFollow (System.Int32 x, System.Int32 y) [0x00007] in <1fa853d4dc7047d98aecd37d49c49e94>:0
at GameCycle.TurnCalculator () [0x001a4] in <1fa853d4dc7047d98aecd37d49c49e94>:0
at GameMenu.EventTurnProcess () [0x0010f] in <1fa853d4dc7047d98aecd37d49c49e94>:0
at GameMenu.OnGUI () [0x00bd3] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)

...

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 9:20 am
by ncc1701e
Trying to reproduce, I am left clicking just once on the icon and it gives me these logs:

IndexOutOfRangeException: Index was outside the bounds of the array.
at SideInfo.OnGUI () [0x00125] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)

IndexOutOfRangeException: Index was outside the bounds of the array.
at Mouse.Update () [0x006d2] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)

France has no more any capitol.

Image

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 9:21 am
by ncc1701e
And, then, when I click on all the other icons, I have these errors:

IndexOutOfRangeException: Index was outside the bounds of the array.
at SideInfo.OnGUI () [0x00125] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)

IndexOutOfRangeException: Index was outside the bounds of the array.
at Mouse.Update () [0x006d2] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)

IndexOutOfRangeException: Index was outside the bounds of the array.
at SideInfo.OnGUI () [0x00125] in <1fa853d4dc7047d98aecd37d49c49e94>:0

(Filename: <1fa853d4dc7047d98aecd37d49c49e94> Line: 0)

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 9:24 am
by ncc1701e
And if I am clearing all the icons, it is finishing by freezing the GUI.

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 10:15 am
by AlvaroSousa
Gotcha, can you send me the save game via email?

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 10:16 am
by AlvaroSousa
I bet it has to do with the new limited supply source rule and where capitals are relocated.

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 11:37 am
by ncc1701e
Alas no I cannot send a save game, this is a current PBEM but the reproduction method is there.

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 1:18 pm
by AlvaroSousa
I just updated with v8 beta 42 fixing the production issue.

Try again. If it doesn't work
You might have to download and just hit end turn so the Capitol error fixes it self on the end turn routines.
If that doesn't work I will have to restore a previous game.
If that doesn't work I will have to do the above + you will have to go back to 1.07.

This is why you have to be careful with Betas. Lots of things can go wrong. I'd put it in a separate folder and just test with A.I.

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sat Jul 11, 2020 4:14 pm
by ncc1701e
ORIGINAL: Alvaro Sousa

This is why you have to be careful with Betas. Lots of things can go wrong. I'd put it in a separate folder and just test with A.I.

Yep I have two folders as you told me last time. I was just lazy to stop Warplan to switch between my current AI game and my PBEM game. Will do so now.

RE: 1.00.08U41: Game crash due to GUI problem

Posted: Sun Jul 12, 2020 2:05 am
by AlvaroSousa
Well I believe I realized the issue and fixed it. So get the newest beta from Saturday