Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 29th Jun 2024 at 6:23 PM
Default How to fix the following errors when pressing "build solution" in VS2022??
Can someone please help me get rid of these errors/warnings so I can finish my mod? I'm not entirely sure what I did wrong, I tried deleting the DDLs and re-adding them but it didnt work. I can't find where a duplicate is at?? I'm new to modding fyi!!
Screenshots
Advertisement
Scholar
#2 Old 30th Jun 2024 at 3:50 AM
Have you succeeded in building a mod previously? I admit that I've never seen that error. In my VS, I see the dlls under References under the project in the sidebar. What do you see there?

Echo Weaver's Simblr: http://echoweaver.tumblr.com/
A portrait in stubbornness - Playing the same legacy since 2009
Sample a Brave Legacy: http://sims3sample.illation.net
Test Subject
Original Poster
#3 Old 30th Jun 2024 at 5:27 PM
Quote: Originally posted by echoweaver
Have you succeeded in building a mod previously? I admit that I've never seen that error. In my VS, I see the dlls under References under the project in the sidebar. What do you see there?


No this is my first ever mod I've created.
I was able to fix all of the errors but now I have a few warnings showing up. Here they are:
(When I fixed the errors it allowed me to build the solution and continue but when I try to load the mod into my game my game just crashes.)
Screenshots
Scholar
#4 Old 1st Jul 2024 at 1:33 AM
Those are still indicators that you've added those DLLs twice.

Echo Weaver's Simblr: http://echoweaver.tumblr.com/
A portrait in stubbornness - Playing the same legacy since 2009
Sample a Brave Legacy: http://sims3sample.illation.net
Test Subject
Original Poster
#5 Old 10th Jul 2024 at 5:54 PM
Quote: Originally posted by echoweaver
Those are still indicators that you've added those DLLs twice.

hey sorry for late response I was gone on vaca.
I was able to fix all errors and warnings. But now when I load the mod into my game my game just crashes upon loading. My mod doesn't conflict with any other mods so what could possibly be going wrong?
Scholar
#6 Old 10th Jul 2024 at 8:30 PM
Hmm. It sounds like something fundamental has not been done. What tutorial are you following?

If you follow a good tutorial line-by-line, this should come together.

Echo Weaver's Simblr: http://echoweaver.tumblr.com/
A portrait in stubbornness - Playing the same legacy since 2009
Sample a Brave Legacy: http://sims3sample.illation.net
Trainee Moderator
staff: trainee moderator
#7 Old 10th Jul 2024 at 8:37 PM
It seems like you have created the project incorrectly. I assume you have checked Pure Script Modding Tutorial and Creating Game Compatible Visual Studio Project Tutorial.

Your project type must be Class Library (.NET Framework), not Class Library, and it must target .NET Framework v2.0.
mscorlib.dll, System.dll, and System.Xml.dll must be extracted from the game files, and these ones must be referenced. You cannot reference Microsoft's original assemblies. The second tutorial also explains how to reference the game's own mscorlib.dll.
Test Subject
Original Poster
#8 Old Today at 1:59 AM
Quote: Originally posted by Eca
It seems like you have created the project incorrectly. I assume you have checked Pure Script Modding Tutorial and Creating Game Compatible Visual Studio Project Tutorial.

Your project type must be Class Library (.NET Framework), not Class Library, and it must target .NET Framework v2.0.
mscorlib.dll, System.dll, and System.Xml.dll must be extracted from the game files, and these ones must be referenced. You cannot reference Microsoft's original assemblies. The second tutorial also explains how to reference the game's own mscorlib.dll.


oh thank you for telling me this, I was following pudding face's tutorial on youtube since I'm more of a visual learner. I'm sure this will be a pretty quick fix
Back to top