Page 1 of 1

CTD Open Beta Patch v1.03-beta2

Posted: Sun Jun 14, 2020 8:15 pm
by Malevolence
CTD while running Open Beta Patch v1.03-beta2 with a savegame from original install.

For reference, I am running a Win 10 Pro 64bit, Intel i7-1065G7, 16GB RAM. It is a Surface Pro 7, connected to 2560x1600 display monitor via USB-C. That's Intel Iris Plus integrated graphics.

Per image, answering a diplomatic decision. Clicked B. Exception with stack trace.

This exception is immediately reproducible from a save reload.

Answering A or B to the decision results in the same exception and stack trace.

Image

Code: Select all

 See the end of this message for details on invoking
 just-in-time (JIT) debugging instead of this dialog box.
 
 ************** Exception Text **************
 System.NullReferenceException: Object reference not set to an instance of an object.
    at WindowsApplication1.EventRelatedClass.ExecMetric(String dat1, String dat2, String dat3, String dat4, String datastring) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\EventRelatedClass.vb:line 16474
    at WindowsApplication1.EventRelatedClass.ExecHardcodedDecision_BasicStory(Int32 storyId, Boolean isHidden) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\SE1_specific\EventRelatedClass_SE1_StoryScripts.vb:line 9378
    at WindowsApplication1.EventRelatedClass.execHardcodedDecision(Int32 dat1, Int32 dat2, Int32 dat3, Int32 dat4, String datastring) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\SE1_specific\EventRelatedClass_SE1_StoryScripts.vb:line 1220
    at WindowsApplication1.EventRelatedClass.DoExec(Int32 enr, Int32 t1, String val1, String val2, String val3, String val4, String datastring) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\EventRelatedClass.vb:line 2760
    at WindowsApplication1.EventRelatedClass.ExecuteExec(Int32 enr, Int32 linenr) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\EventRelatedClass.vb:line 2365
    at WindowsApplication1.EventRelatedClass.DoCheckSpecificEvent(Int32 enr, Int32 tv0, Int32 tv1, Int32 tv2, Int32 tv3, Int32 tv9, Int32 tv7, Int32 tv8, Int32 tv10, Boolean skipSettingTempVars) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\EventRelatedClass.vb:line 526
    at WindowsApplication1.TabManagementWindowClass2.HandleMouseClick(Int32 x, Int32 y, Int32 b) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\NewWindows\Tabs\TabManagementWindow2.vb:line 614
    at WindowsApplication1.PlayScreenClass2.HandleMouseClick(Int32 x, Int32 y, Int32 b) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\NewScreens\PlayScreenClass2.vb:line 422
    at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 1377
    at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at WindowsApplication1.ImmoveableForm.WndProc(Message& m) in G:\VR\VRDevelopment\WindowsApplication1\ImmoveableForm.vb:line 67
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 

Code: Select all

 ************** Loaded Assemblies **************
 mscorlib
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
 CodeBase: file:C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
 WindowsApplication1
 Assembly Version: 1.0.7470.20239
 Win32 Version: 1.0.7470.20239
 CodeBase: file:C:/Users/user/Documents/My%20Games/Matrix%20Games/Shadow%20Empire/ShadowEmpire.exe
 Microsoft.VisualBasic
 Assembly Version: 10.0.0.0
 Win32 Version: 14.8.3752.0 built by: NET48REL1
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
 System
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.4001.0 built by: NET48REL1LAST_C
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
 System.Core
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
 

Code: Select all

 System.Windows.Forms
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.4150.0 built by: NET48REL1LAST_C
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
 System.Drawing
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.3752.0 built by: NET48REL1
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
 

Code: Select all

 System.Configuration
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.3752.0 built by: NET48REL1
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
 System.Xml
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.3752.0 built by: NET48REL1
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
 System.Runtime.Remoting
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.3752.0 built by: NET48REL1
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
 Accessibility
 Assembly Version: 4.0.0.0
 Win32 Version: 4.8.3752.0 built by: NET48REL1
 CodeBase: file:C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
 irrKlang.NET4
 Assembly Version: 1.0.6617.18847
 Win32 Version:
 CodeBase: file:C:/Users/user/Documents/My%20Games/Matrix%20Games/Shadow%20Empire/irrKlang.NET4.DLL
 ICSharpCode.SharpZipLib
 Assembly Version: 0.84.0.0
 Win32 Version: 0.84.0.0
 CodeBase: file:C:/Users/user/Documents/My%20Games/Matrix%20Games/Shadow%20Empire/ICSharpCode.SharpZipLib.DLL
 

Reproducible:

Code: Select all

 ************** Exception Text **************
 System.NullReferenceException: Object reference not set to an instance of an object.
    at WindowsApplication1.EventRelatedClass.ExecMetric(String dat1, String dat2, String dat3, String dat4, String datastring) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\EventRelatedClass.vb:line 16474
    at WindowsApplication1.EventRelatedClass.ExecHardcodedDecision_BasicStory(Int32 storyId, Boolean isHidden) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\SE1_specific\EventRelatedClass_SE1_StoryScripts.vb:line 9378
    at WindowsApplication1.EventRelatedClass.execHardcodedDecision(Int32 dat1, Int32 dat2, Int32 dat3, Int32 dat4, String datastring) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\SE1_specific\EventRelatedClass_SE1_StoryScripts.vb:line 1220
    at WindowsApplication1.EventRelatedClass.DoExec(Int32 enr, Int32 t1, String val1, String val2, String val3, String val4, String datastring) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\EventRelatedClass.vb:line 2760
    at WindowsApplication1.EventRelatedClass.ExecuteExec(Int32 enr, Int32 linenr) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\EventRelatedClass.vb:line 2365
    at WindowsApplication1.EventRelatedClass.DoCheckSpecificEvent(Int32 enr, Int32 tv0, Int32 tv1, Int32 tv2, Int32 tv3, Int32 tv9, Int32 tv7, Int32 tv8, Int32 tv10, Boolean skipSettingTempVars) in G:\VR\VRDevelopment\WindowsApplication1\Game\Calculations\EventRelatedClass.vb:line 526
    at WindowsApplication1.TabManagementWindowClass2.HandleMouseClick(Int32 x, Int32 y, Int32 b) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\NewWindows\Tabs\TabManagementWindow2.vb:line 614
    at WindowsApplication1.PlayScreenClass2.HandleMouseClick(Int32 x, Int32 y, Int32 b) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\NewScreens\PlayScreenClass2.vb:line 422
    at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 1377
    at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at WindowsApplication1.ImmoveableForm.WndProc(Message& m) in G:\VR\VRDevelopment\WindowsApplication1\ImmoveableForm.vb:line 67
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 

(lightly edited to reduce to space)

As an aside, written in VB? Impressive you put this level of horsepower together with it. I wouldn't have thought it possible.

RE: CTD Open Beta Patch v1.03-beta2

Posted: Mon Jun 15, 2020 7:04 am
by Vic
Thanks. Did you delete your metrics.txt file by any chance?

Quite weird bug. But will add protective code to prevent this from happening in next Open Beta.

And yes I coded in VB.Net
Its basically the same as C# after compilation.

best wishes,
Vic

RE: CTD Open Beta Patch v1.03-beta2

Posted: Mon Jun 15, 2020 7:21 am
by Malevolence
ORIGINAL: Vic

Thanks. Did you delete your metrics.txt file by any chance?

Maybe. [8D]

Is that important?

RE: CTD Open Beta Patch v1.03-beta2

Posted: Mon Jun 15, 2020 7:45 am
by Malevolence
Putting two strings in the empty file cleared the CTD