Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Core Mod Merger - (no IL or Hex-Editor required !) Udated to 0.1

by morgade Posted 12th Jul 2009 at 11:34 PM - Updated 27th Nov 2013 at 3:15 PM by Nysha
 
47 Comments / Replies (Who?) - 44 Feedback Posts, 2 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 2 of 2
Field Researcher
#26 Old 15th Jul 2009 at 1:42 AM
I'm getting a fatal error as well. I've got every .NET Framework imaginable, so it's not that, and I'm in the proper directory (I think; I'm really tired, so I'm not sure if I'm reading it correctly). I'm running 32-bit XP.

Quote:
C:\Program Files\Electronic Arts\The Sims 3\ModMerger>ModMerger.exe
Searching mods in C:\Program Files\Electronic Arts\The Sims 3\ModMerger\mods...
Merging 'Maximize'
####################################################################
FATAL ERROR: The type initializer for 'Morgade.ModMerger.MergeTools' threw an ex
ception.
Strong name validation failed. (Exception from HRESULT: 0x8013141A)

####################################################################
Test Subject
#27 Old 15th Jul 2009 at 11:49 AM
Would be fantastic if we could merge Awesome mod and IndieStone. I used Awesome at first but it completely kills story progression resulting in NPC families aging and dying off without ever marrying or producing any babies, so I had to use IndieStone to keep my town alive (I only play one family so I want NPC families to maintain themselves). Awesome mod has many features that I'm missing though.
Test Subject
#28 Old 16th Jul 2009 at 2:38 AM Last edited by SummerMuse : 16th Jul 2009 at 2:48 AM.
Morgade: THANK YOU THANK YOU THANK YOU!!!

I had some trouble on Vista 64, but I worked around it and figured I'd post here in case it helps others.

Problem 1: mergerAndRun.bat doesn't work, even with Run As Administrator.
Solution: Run ModMerger.exe as Administrator. Then launch TS3 by clicking the desktop icon. :-)

Problem 2: TS3 runs fine, but mods aren't showing up.
Solution: Double check your Resource.cfg file. Double check that gameplay.package was successfully created in Mods\Packages. If not, you didn't actually make it past Problem 1.

Problem 3: Now TS3 crashes at startup!
Solution: Good news! ModMerger is now working correctly! Bad news! It's using assemblies that don't match your version of TS3. You'll need to rebuild them, and this is nontrivial.

(Note: I don't know if this has been corrected in the current/latest version of ModMerger.)

I'm not going to take up space here giving a step-by-step unless Morgade and others want me to, but for now here's the shorthand of what I did. It's not for the faint of heart, nor for the impatient:
  1. Use S3PE to extract all .dlls from all of the packages in gameplay.package, simcore.package and scripts.package. There's a tutorial here on MTS about that.
  2. Copy these dlls into the ModMerger folder, overwriting the dlls of the same names. There are 13 of them.
  3. At this point, you might be able to run ModMerger and have TS3 run fine. I did these steps largely in reverse order so I don't know. If you try this and it works, please let me know.
  4. Rebuild the mods using Visual C# Express 2008. (You'll need to add references to those extracted DLLs). Copy the newly built mod dlls into the modmerger/mods folder.
  5. Run ModMerger, run TS3, and this time it works!

Hope this helps others. Morgade, THANK YOU again.
Lab Assistant
Original Poster
#29 Old 16th Jul 2009 at 2:52 AM
Quote:
Good news! ModMerger is now working correctly! Bad news! It's using assemblies that don't match your version of TS3. You'll need to rebuild them, and this is nontrivial.


Yep. It's using version 1.2.7 assemblies.
I just don't know if this causes problems with older patch versions of the game
Lab Assistant
#30 Old 16th Jul 2009 at 3:49 AM Last edited by xalwaysvindicatedx : 16th Jul 2009 at 8:03 PM.
Quote: Originally posted by morgade
Yep. It's using version 1.2.7 assemblies.
I just don't know if this causes problems with older patch versions of the game


Hahaha, I'm a bleeping idiot - I haven't patched my game since I reinstalled.

Edit: I can't figure out why it's throwing this error for the life of me. I've tried everything I can possibly think of, so I'm hoping that maybe someone else can help me figure out what's going on.

Searching mods in C:\Program Files (x86)\Electronic Arts\The Sims 3\ModMerger\mods...
Merging 'Maximize'
####################################################
FATAL ERROR: The type initializer for 'Morgade.ModMerger.MergeTools' threw an exception.
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at Morgade.ModMerger.MergeTools..cctor() in C:\TheSims-Res\MyMods\ModMerger\ModMerger\MergeTools.cs:line 26
####################################################

I'm running on Vista x64, and this issue seems to happen regardless of what mod(s) I try to install.
Test Subject
#31 Old 17th Jul 2009 at 12:25 AM
Quote: Originally posted by morgade
Yep. It's using version 1.2.7 assemblies.
I just don't know if this causes problems with older patch versions of the game


Ah! Yes. I'm using 1.2.7.1. Okay, so probably not a Windows Vista problem per se. Good to know!
Test Subject
#32 Old 17th Jul 2009 at 10:47 PM
I'm having the same error as xalwaysvindicatedx, and am also on a 64 bit vista computer. I hope that is not a problem, there are a lot of core modes out there that would be nice to have in the game. My version of Sims 3 is also up to date.
Lab Assistant
#33 Old 19th Jul 2009 at 8:11 PM
Also getting same error as xalways, also running vista 64bit and game up to date
Lab Assistant
#34 Old 23rd Jul 2009 at 9:50 PM
Is there any hope that this might get looked into or that the source code would be released? If the latter is easier, I'd be happy to take a look at it.
Test Subject
#35 Old 24th Jul 2009 at 2:10 PM
Quote: Originally posted by xalwaysvindicatedx
Is there any hope that this might get looked into or that the source code would be released? If the latter is easier, I'd be happy to take a look at it.


Maybe you can send them a PM and ask for the source code, if you could look at it and get it up and running for us on a 64bit OS we would be grateful.

Barnabus
Lab Assistant
Original Poster
#36 Old 24th Jul 2009 at 11:47 PM
Posted the source code.
Any changes and improvements in the tool are also welcome !
Lab Assistant
#37 Old 25th Jul 2009 at 1:17 AM
Quote: Originally posted by morgade
Posted the source code.
Any changes and improvements in the tool are also welcome !


I managed to fix all of the problems I came across, so hopefully this will be an improvement. I found that the issue regarding the "...is not a valid Win32 application" error only occured when Sims3Metadata.dll was loaded, and replacing it with a fresh copy from the game yielded no results - so, for now, I put in a hardcoded check so that it will not try to load that DLL (it isn't used anyway).

The new version can be found here:
http://www.megaupload.com/?d=J1BL6PAJ
Test Subject
#38 Old 25th Jul 2009 at 1:48 PM
Thank you xalwaysvindicatedx for the fix, And thanks morgade for posting the source code.
Lab Assistant
#39 Old 25th Jul 2009 at 4:11 PM
This is the source of my version if anyone is interested
http://www.megaupload.com/?d=M55K1RCH
Test Subject
#40 Old 31st Jul 2009 at 10:31 PM
Idea: maybe you could put in some extraction code, so that the current gameplay.package in the Game\bin folder is first extracted to produce the standard DLLs, then patched up from there?

That way, it might be more compatible with patch 1.3.0 and future updates.
Test Subject
#41 Old 26th Aug 2009 at 1:12 PM
Morgade, about the possible conflict when two mods replace the same function, maybe it would help sovle it if MOdMerger asks which mod function to use and which one to discard.
It's just a thought, as i don't know if it could bring bigger complications (discarded mod function is important for that mod to work properly or something like that)
Test Subject
#42 Old 26th Aug 2009 at 1:16 PM
Oh and thanks!!!
I'll try to make my core mods compliant with modmerger
Test Subject
#43 Old 7th Apr 2010 at 2:35 PM
i get an access denied fatal error
Test Subject
#44 Old 10th Apr 2010 at 8:25 PM
where is this mergerAndRun.bat exactly? i didnt find it
Test Subject
#45 Old 8th Jul 2010 at 8:25 PM
I REALLY need help, I'm NOT computer savy in this way, and I have NO idea how to even install a core mod, let alone all this complicated stuff you guys are talking about here. I really want to install the custom skin mod, the extra sliders mod, and the extra traits mod, but I don't know how to install any of them. How do I do it? Please help, thanks.
Lab Assistant
#46 Old 29th Jul 2010 at 5:34 PM
Just out of curiosity is this mod still being updated? Are creators using it at all? Whats the latest scoop on this. I just want to merge a couple slider hacks that are core mods.

RUN FOREST RUN!
Lab Assistant
THANKS POST
#47 Old 18th Jun 2011 at 5:37 PM
Why isn't this a featured creation.This is genius.
Test Subject
THANKS POST
#48 Old 30th Oct 2016 at 4:36 AM
Thanks
Page 2 of 2