protonscr

SimPE

protonopen Game compatibility - Unofficial.NET
ValveSoftware/Proton#8303 · opened 2024-12-08 by Blayer98 · updated 2025-02-07 · 12 comments · github
1 matching comments, n / p to jump
BBlayer98 2024-12-08 github

Hi there, I’m using Proton Experimental, and I’ve noticed an issue when trying to run SimPE, which is used by the Sims 2 Community to make edits or view their save’s internal data through the package files in case of corrupted files or making sure their save data works properly. Unfortunately, this error occurs:

[00000128:] EXCEPTION handling: System.TypeLoadException: Could not load type '.' from assembly ''.
[00000128:] EXCEPTION handling: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

Here is the proton log that was generated.
steam-15049722351912484864.log

You may see an error regarding a missing DLL from a non-existing folder; “en”, but this doesn’t seem to fix this issue, and the error still occurs with or without the missing folder restored, it also seems the en folder isn’t used at all as the en-US folder presumably gets used instead.

Other unofficial tools like HoodChecker which also use SimPE DLLs work just fine and have no issues whatsoever, even the applications that SimPE ships with all appear to work just fine, only SimPE itself cannot be run.

With this error as it is on Linux and Proton, this makes it impossible to fix errors within a neighbourhood, get rid of unwanted sims who are causing issues, etc., without having to transfer the save onto Windows, using SimPE there, and then transferring back.

Here is also a screenshot of this error in realtime.
Screenshot_20241208_203945

BBlayer98 2024-12-10 github

I've noticed in the log that I've gotten the following errors:
6166.801:0120:0134:fixme:oleacc:LresultFromObject unsupported wParam = ffffffff

6166.831:0120:0148:err:ole:marshal_object Failed to create an IRpcStubBuffer from IPSFactory for {e89f726e-c4f4-4c19-bb19-b647d7fa8478} with error 0x80004002

6164.643:0104:0108:fixme:oleacc:find_class_data unhandled window class: L"[#32769](/issue/ValveSoftware/Proton/32769)"

Mmadewokherd 2025-01-20 github

Tried running 0.73.44 (downloaded from sourceforge) in Wine 10.0-rc6, and it started successfully, but I don't have a copy of The Sims 2 to test any further.

I also tried examining the imports of the exe's and dll's, but I couldn't find any imports that looked obfuscated in the way your log indicates.

Can you get a log with MONO_LOG_LEVEL=debug ?

BBlayer98 2025-01-22 github

Tried running 0.73.44 (downloaded from sourceforge) in Wine 10.0-rc6, and it started successfully, but I don't have a copy of The Sims 2 to test any further.

I also tried examining the imports of the exe's and dll's, but I couldn't find any imports that looked obfuscated in the way your log indicates.

Can you get a log with MONO_LOG_LEVEL=debug ?

Sure, I also just wanted to double check, do you have dotnet installed at all on that particular version of Wine?

BBlayer98 2025-01-22 github
Mmadewokherd 2025-01-31 github

I'm not using .NET Framework.

No indication of what's going on in the log.

Seems like you tried a newer SimPE than I did, do you have an up to date link?

BBlayer98 2025-01-31 github

I'm not using .NET Framework.

No indication of what's going on in the log.

Seems like you tried a newer SimPE than I did, do you have an up to date link?

I’m pretty sure the version I got (that everyone I think uses) comes from ModTheSims: https://modthesims.info/d/30839/simpe-latest-version-0-75f.html

BBlayer98 2025-02-07 github

Tried running 0.73.44 (downloaded from sourceforge) in Wine 10.0-rc6, and it started successfully, but I don't have a copy of The Sims 2 to test any further.

I also tried examining the imports of the exe's and dll's, but I couldn't find any imports that looked obfuscated in the way your log indicates.

Can you get a log with MONO_LOG_LEVEL=debug ?

I've since tried your version from SourceForge, and I still get the unhandled exception. :( However, I ran the winecfg program on Protontricks and Wine seems to be on version 9.0. If it's working for you, it must have been fixed sometime in Wine version 10, although I don't know how it was fixed. :)

SimPE 0.77.69 appears to be the current version atm: https://modthesims.info/showthread.php?t=630456

BBlayer98 2025-02-07 github

I tried to launch the program in Bottles using soda-9.0.1, which has wine-mono 9.4.0 on it, but even that did not work, so the issue must have been fixed in Wine itself somehow, I’ve looked through the patch notes however for all releases from 9.1 up to latest but I can’t seem to figure out exactly what fixes the issue if it’s not occurring for you on wine 10 rc6…

BBlayer98 2025-02-07 github

Mono: DllImport searching in: 'gdiplus' ('gdiplus').
Mono: Searching for 'GdipClonePath'.
Mono: Probing 'GdipClonePath'.
Mono: Found as 'GdipClonePath'.

I saw this in the log before the app threw the error, so based on that Kron4ek wine10-rc4 didn't work in Bottles either, it could be one of these fixes in rc5/rc6 or something else entirely:

gdiplus/tests: Fix use-after-free of a graphics object (ASan).
gdiplus/tests: Trace locked bitmap data on failure.
gdiplus: Check for MapFont result in generate_font_link_info.
gdiplus: Use font linking only for missing glyphs.

Ttermdisc 2025-02-07 github

The ModTheSims page indicates MS .Net 2 is a dependency. As such, I installed dotnet2 into a GE-Proton9-23 prefix in Lutris, and it works with no other modifications.

Image

BBlayer98 2025-02-07 github

Image

Ok, with the latest version of GE Proton, dotnet40 installed, and also the DDS Utilities app installed, this bug is causing the app to become unusable, forcing a quit process via System Monitor. Certain selections (you have to right click on objects in the resource list) can cause this bug to show up.

UPDATE: You have to load the base game’s objects.package first before opening any neighborhoods. You’ll also get an ImageType is not supported error a ton.

BBlayer98 2025-02-07 github

Image

Proton versions

Error codes