Jump to content

How To Merge (items_autogen_equipements) Files


DTRiel

Recommended Posts

There are a handful of mods that use this format and I tried opening it up and just pasting the text into the other, with slight adjustments- but it definitely didn't work. I also tried various folder adjustments, to no avail..

also looked into if NMM supported Greedfall, but nah, ofc. So if anyone knows how to merge the files together or some sort of folder creating ordeal to have them working properly in game that'd be fantasmic~!

 

Thank You, Mon(s)

Link to comment
Share on other sites

You need to find out which changes were made to the file by individual mod authors, compared to the original clean file. Easiest way would probably be to write a script, or find yourself an XML comparison tool. Then you have to incorporate all those changes into a single file. There will be conflicts, as some mods will probably edit identical nodes, and you'll have to decide which one you want to go for.

Edited by MaliciousCookies
Link to comment
Share on other sites

This is how I "merged" Absolutely Cheap Equipment with Equipement No Requirements: (pasted from ACE mod posts tab)

 

I'm not the author of either mod (and can't distribute) but I did it manually with Notepad++ search / replace.

 

1. Open EqNoReq mod version of items_autogen_equipements.sli in Notepad++
2. Search > Find > Replace to bring up sub-window
3. In Search Mode (lower left of sub-window), select radio button for "Regular Expression"
4. Find what: buyPrice=".*"
5. Replace with: buyPrice="1"
6. Select Replace All
7. Message text at bottom confirms: "554 occurrences were replaced"
8. Close sub-window
9. File > Save
10. Exit

 

Screenshot: https://twitter.com/ThoraldGM/status/1175169249347854339

Link to comment
Share on other sites

Get Notepad++

In it's Plugins Menu, look for "Compare" Plugin, if it's not there click on Plugins Admin instead and tick the Compare Plugin Box, and Install it.

 

Once you have Compare, open the two files you wish to merge in Notepad++

Select one of them, best to pick the one needing fewer changes,

Click Plugins Tab > Hover on Compare > Click on Set first to Compare

 

Switch to second file

Click Plugins Tab > Hover on Compare > Click on Compare

 

The program now opens both files side by side, and highlights the differences. (very large files may take a bit of time)

Notepad++ Auto scrolls to first difference, edit first file with second file differences (spaces, and Tabs don't usually matter if that's the only difference on a line.

 

Scroll down first window to next difference, then click second window, and it will line up automatically.

 

Edit first file until done FTW

 

Beginner mergers stick with N++, advanced can move on to KDiff

KDiff is better but more complicated, it can compare 3 files, and create a new merged file, and even automate a lot of it.

Witcher 3's Script Merger tool uses KDiff, to do the merging, using custom scripted instructions.

Best practice

FIle A is Vanilla, B & C are what you merge

Auto will merge lines from B, or C if only one doesn't match vanilla, and asks you if both are different.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...