Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 19th Feb 2024 at 4:36 AM
Default SimPE Will Shutdown Due to an Unhandled Exception? SimPE Version 0.75f Help?
Hello everyone, I am trying to run SimPE on my linux mint (Ubuntu 22.04, I believe) HP laptop. I am using WINE 7.0 (with winetricks), and am following the instructions on this thread, and have installed DDS Utilities, NET, and the files in "simpe_msxredist.msi" that the thread said was required. I am trying to run the 0.75f version of SimPE uploaded by Quaxi (as I read that it was best for the UC, which is the version of Sims2 I have). When I run the included NET test, it shows everything as normal, and when I run the Validator, everything shows up fine too. Wizards of SimPE is also working just fine as well. However, when I try to run SimPE itself, it says that it is shutting down due to an unhandled exception.

Here is the error log which SimPE gives me:
Quote:
Message: SimPE will shutdown due to an unhandled Exception. SimPE Version:
Default (0.75.1.31194).

Exception Stack:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type '.' from assembly ''.
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0
at System.Reflection.RuntimePropertyInfo.SetValue (System.Object obj, System.Object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x0005d] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0
at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0
at System.ComponentModel.ComponentResourceManager.ApplyResources (System.Object value, System.String objectName, System.Globalization.CultureInfo culture) [0x0025b] in <0c924620d2cd4b85a989ca168d44cf08>:0
at System.ComponentModel.ComponentResourceManager.ApplyResources (System.Object value, System.String objectName) [0x00000] in <0c924620d2cd4b85a989ca168d44cf08>:0
at SimPe.MainForm.InitializeComponent () [0x01b7a] in <bd0d1be3e73149fdae4cb7dcc005a136>:0
at SimPe.MainForm..ctor () [0x00006] in <bd0d1be3e73149fdae4cb7dcc005a136>:0
at (wrapper remoting-invoke-with-check) SimPe.MainForm..ctor()
at SimPe.MainForm.Main (System.String[] args) [0x0007b] in <bd0d1be3e73149fdae4cb7dcc005a136>:0
System.TypeLoadException: Could not load type '.' from assembly ''.
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0

Source:
mscorlib

Execution Stack:
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0
at System.Reflection.RuntimePropertyInfo.SetValue (System.Object obj, System.Object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x0005d] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0
at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in <bee01833bcad4475a5c84b3c3d7e0cd6>:0
at System.ComponentModel.ComponentResourceManager.ApplyResources (System.Object value, System.String objectName, System.Globalization.CultureInfo culture) [0x0025b] in <0c924620d2cd4b85a989ca168d44cf08>:0
at System.ComponentModel.ComponentResourceManager.ApplyResources (System.Object value, System.String objectName) [0x00000] in <0c924620d2cd4b85a989ca168d44cf08>:0
at SimPe.MainForm.InitializeComponent () [0x01b7a] in <bd0d1be3e73149fdae4cb7dcc005a136>:0
at SimPe.MainForm..ctor () [0x00006] in <bd0d1be3e73149fdae4cb7dcc005a136>:0
at (wrapper remoting-invoke-with-check) SimPe.MainForm..ctor()
at SimPe.MainForm.Main (System.String[] args) [0x0007b] in <bd0d1be3e73149fdae4cb7dcc005a136>:0

Windows Version:
Vista

.NET Version:
4.0.30319.42000


Does anyone know what the problem is here? Should I be doing something with the wrapper test? Or should I be using another version of SimPE? Any help, even just ideas, would be greatly appreciated.
Test Subject
#2 Old 7th Jun 2024 at 5:13 PM Last edited by Blayer98 : 7th Jun 2024 at 5:34 PM. Reason: Added error
Quote: Originally posted by dermestes_maculatus
Hello everyone, I am trying to run SimPE on my linux mint (Ubuntu 22.04, I believe) HP laptop. I am using WINE 7.0 (with winetricks), and am following the instructions on this thread, and have installed DDS Utilities, NET, and the files in "simpe_msxredist.msi" that the thread said was required. I am trying to run the 0.75f version of SimPE uploaded by Quaxi (as I read that it was best for the UC, which is the version of Sims2 I have). When I run the included NET test, it shows everything as normal, and when I run the Validator, everything shows up fine too. Wizards of SimPE is also working just fine as well. However, when I try to run SimPE itself, it says that it is shutting down due to an unhandled exception.

Here is the error log which SimPE gives me:


Does anyone know what the problem is here? Should I be doing something with the wrapper test? Or should I be using another version of SimPE? Any help, even just ideas, would be greatly appreciated.


I also have the same issue here, except I use a Steam Deck. I tried modifying the manifest file on Windows to see if that gave the same error but it seems like it doesn’t actually read it?

I also noticed that the older version of SimPE opens and seemingly runs just fine, until you attempt to view any data, in which you get an error regarding the Packed file.

The error in question being: “System.TypeLoadException: Could not load type of field ‘Ambertation.Panel3D.mesh’ (1) due to: Could not load file or assembly ‘Microsoft.DirectX.Direct3DX, Version=1.0,2902.0, Culture=neutral, PublicKeyToken=31bf3856ab364e35 or one of its dependencies.”

I wonder if this error is somehow related to SimPE’s later versions not opening at all
Test Subject
#3 Old Today at 5:40 PM
Default Fixing SimPe System.TypeLoadException on Linux Mint and Lutris
Quote: Originally posted by dermestes_maculatus
Hello everyone, I am trying to run SimPE on my linux mint (Ubuntu 22.04, I believe) HP laptop. I am using WINE 7.0 (with winetricks), and am following the instructions on this thread, and have installed DDS Utilities, NET, and the files in "simpe_msxredist.msi" that the thread said was required. I am trying to run the 0.75f version of SimPE uploaded by Quaxi (as I read that it was best for the UC, which is the version of Sims2 I have).

Can you point out the specific posts or page that you found the instructions on? I wasn't able to find it myself.

That said, I think I have managed to get it working, or at the very least I have gotten past the error screen we have both encountered. (I will try to be thorough in this explanation in case somebody with less experience comes by this)

I am on Linux Mint 22 Cinnamon 6.2.9, and I am using Lutris. I have installed SimPE 0.77.69 in the same wine environment as Sims 2. I open Winetricks by clicking it's name in this drop-up

I then do Select the default wineprefix -> Install a Windows DLL or component, and then in the list I select dotnet40 and then click ok

Then I restart Lutris. Now I am able to open SimPE.

Some errors about wrong image types pop up, but I suspect they're some of the pictures that Hatch put in so they're not important. Interestingly, this did not happen when I tried this in an environment where I ONLY installed SimPe.

I keep closing the image errors with the x in the top left, and eventually the program opened on an empty project succesfully.
Screenshots
Back to top