WH3-Mod-Manager icon indicating copy to clipboard operation
WH3-Mod-Manager copied to clipboard

Merged Pack - CTD on Startup

Open evilash1987 opened this issue 2 years ago • 25 comments

I created a merged pack of 100 mods that load without merging but do not load when merged. Any ideas why that would be happening?

My Modlist: (there are more than 100 active but all load without the first 100 merged) 2789999718|2861185989|2789898215|2789898126|2816715399|2789877676|2857602959|2881751969|2881355010|2797285526|2797285695|2840691327|2840690836|2797285787|2789842998|2810508859|2870732947|2866673136|2864556562|2862052342|2860203054|2855193935|2863475012|2800204693|2799350487|2857172528|2862798756|2878423760|2859968660|2789887182|2870464661|2872642385|2872645933|2837702906|2852872304|2876531798|2795725577|2870172362|2857187582|2790136503|2801957739|2866861283|2874009018|2789857474|2794696516|2861861497|2826930183|2853411796|2824164139|2803817483|2858308116|2868695669|2866599121|2855238321|2789858755|2790949528|2867514081|2861995234|2874672190|2879095418|2863393121|2861674142|2870486076|2807293664|2865854966|2853343800|2791636543|2790007728|2877685936|2864517340|2855994433|2863391715|2873912948|2790055541|2793731221|2793720664|2871612719|2875947979|2789854789|2789978667|2856019044|2856717088|2877014709|2853983770|2866313981|2864936382|2872414131|2857838647|2799572937|2872414549|2790206209|2789898034|2798635540|2858295501|2803479610|2859718528|2802810577|2802811244|2853477423|2825728189|2790566124|2789884957|2789881693|2864165834|2789921931|2792284475|2789914172|2789878031|2865736851|2854667379|2852724610

evilash1987 avatar Nov 05 '22 01:11 evilash1987

Update: It appears to be just this particular set of 100 mods causing issue. Other merges work just fine loading. I will try to see if I can narrow down which mod is causing this

evilash1987 avatar Nov 05 '22 13:11 evilash1987

Update 2: I think I narrowed one issue down to the mod Extra Variants: The Master Collection (Updated for 2.2)

If the mod loads without merging, it works fine. If a merge is made consisting of only this mod, it works fine. If a merge is made consisting of this mod and at least one other, crash.

evilash1987 avatar Nov 05 '22 13:11 evilash1987

Update 3: Okay, I can't seem to find any particular rhyme or reason to what is happening. I just went through my load order merging 5 at a time and it loaded fine. Merged the first 35 together (same mods, just packaged as 1 vs as 7 merges) and it only loaded when loading the packs of 5 but the 35-mod merge does not load. It is very odd I have been using this mod manager for a while and never had this issue until now.

evilash1987 avatar Nov 05 '22 14:11 evilash1987

Update 4: I think I got it. Apparently I need to reverse sort by pack name when making the merge otherwise it will merge in reverse sort order which then causes many problems for submods.

evilash1987 avatar Nov 05 '22 17:11 evilash1987

that's really, really helpful, thanks a lot see if https://github.com/Shazbot/WH3-Mod-Manager/releases/tag/v1.28.3 fixes it

Shazbot avatar Nov 06 '22 13:11 Shazbot

So what is the fix you mention? How does that affect generating merges?

EDIT: I cannot seem to even create a workable merge now. Previously I simply reverse-sorted the Pack column in the Merge window and it woold generate and load correctly. I made a merge of the whole list that way. (I have 210 mods, merged into 1). I am going to revert to 1.28.2 to see if that was still working for me today)

EDIT2: I also just notice the context-menu options for Merges are not in the menu in 1.28.3. I.e. you cannot delete or re-merge them.

evilash1987 avatar Nov 06 '22 22:11 evilash1987

it does some pre-sorting to change the order of files inside the merged pack

see if restarting the app gives you back the context-menu options

Shazbot avatar Nov 07 '22 15:11 Shazbot

the context menu issue is fixed in v1.28.4, there was a timing issue since the new merging process takes much longer

Shazbot avatar Nov 07 '22 15:11 Shazbot

With v1.28.4 I'm getting a crash no matter which mods I chose to merge. I even tried merging only two mods which I know merged successfully previously. If I activate any newly merged mods the game crashes on startup (in the first loadscreen)

mdlomn avatar Nov 08 '22 06:11 mdlomn

what are those 2 mods? if you have them enabled try disabling them

Shazbot avatar Nov 08 '22 17:11 Shazbot

Looks like it was an issue on my end. When I created the new merge patch it included another set of mods I had tried to merge before. I tried merging them again today and had no issues. Sorry about the false alarm

mdlomn avatar Nov 08 '22 20:11 mdlomn

Sorry for delay did not have a lot of time to look into this lately. In the very latest 1.30.1 (as of this writing), I cannot make a merge patch that works. As before I am still able to make one in v1.28.2. I ask that you just give us the option to create a merge from the mods "Order" column (from the main table). This merge would combine mods by starting at the highest order (i.e. lowest in the list) and descending (ascending the list but descending order), since that is how the game assigns priority.

evilash1987 avatar Nov 11 '22 16:11 evilash1987

I confess the more I use the mod merging feature that I don't believe the issue to simply be related to the order mods are merged. It appears to be an issue with how merged files are made in general. It appears that made combinations of merged mods just will not load.

evilash1987 avatar Nov 13 '22 18:11 evilash1987

I agree, that's why the old way isn't the correct way and the system needs to be automatic. If you can find a small mod combination that crashes I can examine it but otherwise it'd be too hard to examine. The mod combinations I tried testing with worked fine.

Shazbot avatar Nov 15 '22 14:11 Shazbot

@Shazbot I am surprised you cannot find any combination, as it happens quite a bit for me in any substantial mod. For instance a mod list of two items,

Combination of Mod Configuration Tool and Warband Upgrade Ultimate

2853239091|2815354316

They work as individual mods. Merged mod of the two crashes.

evilash1987 avatar Nov 15 '22 19:11 evilash1987

I can start an Immortal Empires Empire campaign fine with a merged mod with those 2

wh3mm_6wvQ0zx5co

Shazbot avatar Nov 15 '22 23:11 Shazbot

Yeah, mine did too when I did it again. I must have ran afoul of something still being selected from a previous merge? I did it again though...

image

Runs if I uncheck merge but not with merge.

EDIT: Add mod list ids -> 2869979154|2841939065|2856936614

evilash1987 avatar Nov 16 '22 00:11 evilash1987

I think I had this problem too. Essentially when you merge any mods you selected will be included in any future merge during that same session. So if you have a merge mod that doesn't work (i.e. crashing on startup) and you try merging a different set of mods without restarting the manager and deleting the previous merge mod you won't see that the original set of merged mods are included in your new merge

mdlomn avatar Nov 16 '22 01:11 mdlomn

@mdlomn That doesn't explain the new error I mentioned though.

evilash1987 avatar Nov 16 '22 19:11 evilash1987

wh3mm_uyg5ClGrCJ

this one works fine for me

Shazbot avatar Nov 16 '22 19:11 Shazbot

@mdlomn that's a very nice catch, thanks

should be fixed in v1.30.3

Shazbot avatar Nov 16 '22 19:11 Shazbot

@Shazbot

Doesn't work for me! Literally selected those three mods as enabled. Closed the mod manager. Opened it back up. Merged the three mods (did nothing but click Merge Mods, then Merge). Enabled the merged mod. Closed the mod manager. Opened it back up. Pressed play. Game startup plays but hangs/crashes before main menu.

EDIT: Misspoke a bit for click Merge Mods, then Merge. I had to select the 3 mods first then click Merge.

evilash1987 avatar Nov 16 '22 20:11 evilash1987

MD5 hash of my merged pack is C825AB4BC85E71778BE946148B6ED793, you can compare it to your merged pack, they should be the same

I used OpenHashTab but you can also calculate the hash with powershell and other ways

Shazbot avatar Nov 20 '22 12:11 Shazbot

image

It matches but still doesn't load. I have no idea why

evilash1987 avatar Nov 20 '22 19:11 evilash1987

Well now that is interesting! I opened the merge file in RPFM and (re)saved it as-is and now it loads!

evilash1987 avatar Nov 21 '22 18:11 evilash1987