Trying to merge mods - problem

Youmu970

Chieftain
Joined
Jan 19, 2015
Messages
19
I'm trying to merge a bunch of mods into a single mod (don't worry, I won't distribute), but I'm having some problems. Currently I have Colonialist Legacies' Canada and Australia. The DOM audio isn't working, leaders won't speak, and custom soundtrack isn't working. I can't upload the file, so are there any common mistakes that could cause this? I uploaded the files into the VFS.
 
So I tried modtools, but it only loaded Australia. What do?

EDIT: it recognized Mexico, just not Canada.
 
Yes I see what you mean I had alook and the .modinfo file doesn't line up with the mod folder name, so copy the name of the .modinfo excluding the .modinfo bit and overwrite the folder name then modtools will recognise it

ie: the "[BNW] Colonialist Legacies - Canada (v2) "name of folder and replace with "Canada ft. Lester B. Pearson (v 1)"from the .modinfo file
 
I tried this modtools also, but I can't merge "YnAEMP DLL 43 civs (v 2)". It says: "DLL files MUST be called CvGameCore_Expansion1.dll and be in the root of the mod"
Is there a way to solve this?
 
Even though it's throwing up a red warring about "DLL files MUST be called CvGameCore_Expansion1.dll and be in the root of the mod" it will still merge. In session/preference drop down make sure
"Fix minor errors" is checked then hit "save as mod" button, it will still throw up the warning but it will merge. I just test it with "YnAEMP DLL 34 civs (v 4)" and it worked fine so it should be the same with version 2
 
Thanks for help, but merged mod doesn't work. I added next mods:
-YnAEMP DLL 43 civs (v 2)
-JFD's Cultural Diversity (Core) (v 2)
-More Luxuries (v 155)
-Reforestation (v 8)
-Health & Plague for BNW (v 19)
-Sukritact's Events and Decisions (v 1)
-DMS's Natural Disasters (v 2)
-Yet (not) Another Earth Maps Pack (v 23)

First few times when I clicked "save as mod" nothing happened, and 5th or 6th time it worked, mods were merged with error mentioned in previous post. But merged mod don't work in a game, game crashed.
 
Version of ModTools that fixes the requirement that replacement DLL must conform to old-style loading

DLL can now be called anything (and be in any-subdirectory) so long as the OnGetDLLPath entry is correct

EDIT: I'll push this up to my web-site later, so if the attachment vanishes from here, just re-download from there.

EDIT2: As a rule-of-thumb, any DLL mod should load first, so should be the first mod in the list to merge

EDIT3: Now pushed to my web-site, so removed from here
 
Ah brilliant whoward69 I knew it would have been either first or last hence the vise versa advice but there you go mr.mare straight from the man himself, amazing tool btw whoward69 thanks mate bloody awesome. I've used this quite abit I managed to merge about about 80 mods into one with your tool not for any particular reason just to see if it could be done and yep it can and they work although getting the load order right took few tries so cheers man, legend :)
 
Thanks for help, but nope, can't get it to work, every time merging stops at "Processing 'Health & Plague for BNW (v 19)'" and seems like can't overcame that. Last time I left it for 30 minutes to finish merging, but nothing happened.
Maybe some mods just wont work with each-other?
Mod List:
-YnAEMP DLL 43 civs (v 2)
-JFD's Cultural Diversity (Core) (v 2)
-More Luxuries (v 155)
-Reforestation (v 8)
-Health & Plague for BNW (v 19)
-Sukritact's Events and Decisions (v 1)
-DMS's Natural Disasters (v 2)
-Yet (not) Another Earth Maps Pack (v 23)

*also corrected list in #8 post
 
Does "'Health & Plague for BNW (v 19)" verify on it's own (just drag it from the left list into the empty right list and click Verify)?

EDIT: If not, is it missing the <HideSetupGame>0</HideSetupGame> element (should be at xpath /Mod/Properties/HideSetupGame), if it's missing, add it as that'll cause the verification to fail with no message.

If so, open the .modinfo file for it with Notepad, look for any <Mod> tags within <Dependencies>, <References> and <Blocks> elements and make sure they all have id="" attributes (they should have otherwise they're invalid, but if the .modinfo file has been corrupted somehow and one is missing, it will give the error situation you're seeing.) If any are missing, just delete the line (it's invalid and not doing anything anyway!)

If so, will it merge with just "YnAEMP DLL 43 civs (v 2)" (ie YnAEMP as the first entry in the right list and Health as the second and last entry)?

If so, add Cultural Diversity between them and try the merge again, if that works remove CD and replace with More Lux etc.

There will be a minimum combination that doesn't merge. When you know what that is, can you give the list (in order) with links to the mod downloads (Steam links are no use to me, so you may need to zip the mods and attach them to your post), and I'll run that sub-set through the code with debugging enabled.
 
awesome advice bigW do you have any ideas about lua files not seeming to intialise for eg when i merge a mod or 80 like events and decisions the decision part works fine but the event part doesn't see to appear at all ???? stumped any ideas mate
 
Thanks for helping with this whoward69, "Health & Plague for BNW (v 19)" won't verify on it's own, yes, it has a element <HideSetupGame>0</HideSetupGame>, and has attributes on <Dependencies>, <References> and <Blocks> elements.

Thank you so much for helping me with this, here are the mods with download links:
-YnAEMP DLL 43 civs (v 2)
-JFD's Cultural Diversity (Core) (v 2)
-More Luxuries (v 155)
-Reforestation (v 8)
-Health & Plague for BNW (v 19)
-Sukritact's Events and Decisions (v 1)
-DMS's Natural Disasters
-Yet (not) Another Earth Maps Pack (v 23)

DMS's Natural Disasters mod require the Events and Decisions mod from Sukritact.
Thank again, your contribution to Civ 5 is enormous!!!
 
The attached fixes a number of issues
EDIT: Attachment removed, later version can be found here

* fixed bug if HideSetupGame was omitted from .modinfo file (defaults to 0, ie false)
* fixed xml generation bug that was writing <Game ...> as <Game" ...>
* added handling of the ReloadAudioSystem property (new since original version was written!)
* fixed inability to save project from a single mod
* fixed issue with _small.xml files (causing the issue in this thread)
* fixed issue with "unknown" files (eg .txt files) (also causing the issue in this thread)

Have tested with Health & Plague (verifies) and merging with (my) DLL (works) - not tried the full list - too much to download and I'm lazy and someone else can do that ;)
 
do you have any ideas about lua files not seeming to initialise

Duplicate file names is the only thing I can think off - but they should be reported.
 
The attached fixes a number of issues

* fixed bug if HideSetupGame was omitted from .modinfo file (defaults to 0, ie false)
* fixed xml generation bug that was writing <Game ...> as <Game" ...>
* added handling of the ReloadAudioSystem property (new since original version was written!)
* fixed inability to save project from a single mod
* fixed issue with _small.xml files (causing the issue in this thread)
* fixed issue with "unknown" files (eg .txt files) (also causing the issue in this thread)

Have tested with Health & Plague (verifies) and merging with (my) DLL (works) - not tried the full list - too much to download and I'm lazy and someone else can do that ;)

thanks, making a project out of one single mod does work now :)

But I have two questions:
1) Mods are only displayed in your tool, when the folder name of the mod is exactly the same like the modinfo file. Is this needed? I often change folder names, to get a better overview of my mods. So it would be good, if you are able to change this behaviour :)
2) When I verify my mods, it happens often, that the md5 in modinfo is not correct, because I don't work with modbuddy and when I add a new file, I simply copy paste an exisiting md5 value. How to correct this with your tool without merging anything?

And:
Do you answer PMs? Or should I better start a thread and ask their for your attention? I know it's just some hours since my PM, but I just ask this, because it would be great to get an answer from you, before you get inactive again :) =P
 
1) The game relies on the .modinfo file having the same base name as the directory it's in (or at least it used to, Firaxis may have changed this)

2) Session -> Preferences -> Fix Minor Errors
(Except that won't write back into a mod unless you are merging ... you could always copy/paste the reported value via notepad)

PM's - rarely. They are always the last thing on my list of things to do. PM is info to one person, post is info to everyone who reads it - and there's always the chance someone else can answer it as well.
 
Wow, thanks a lot whoward69, it actually started to merge mods, can I ask you just when you have some free time to take look at:
-Sukritact's Events and Decisions (v 1) - there were to many strings with errors, I don't know if they are going to affect the game,
-DMS's Natural Disasters (v 2) - merged mod somehow can't be enabled when I start the game. It says that it required "Sukritact's Events and Decisions", but I already merged that mod too with all others. I even tried to merge this two mods alone, and it still says that it required "Sukritact's Events and Decisions".

Thanks again for everything.
 
Back
Top Bottom