Doing some research for bug #2884, I need to edit Morrowind.esm.
OpenCS doesn't seem to be at the stage yet that it can read and save the file 1:1 (I tried it, hundreds of errors upon starting MW and then a crash).
TES-CS has a "Merge to Master" option, but it doesn't seem to work for me. What I did:
- File -> Data Files ... -> Click on my plugin and "Set as active file"
- Click "Merge to masters"
- Select Morrowind.esm in the dialog that opens
- Select OK
Nothing happens.
TESAME, as far as I can tell, can only merge several plugins into one, but can't merge to masters. Either way, it crashed with an error message when I tried to open my plugin.
Anyone knows of any other (working) tools?
Editing an ESM / Merging an ESP to an ESM
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: Editing an ESM / Merging an ESP to an ESM
I ran into this with OpenMW-CS and talked with Zini and cc9cii about it. It is on his list of things to do...
I know that cc9cii has a branch that does unspeakable things to esp/esm files... please correct me if I'm wrong.
I know that cc9cii has a branch that does unspeakable things to esp/esm files... please correct me if I'm wrong.
Re: Editing an ESM / Merging an ESP to an ESM
In the last 10 days, they have been some commits from Marc Zinnschlag preparing the creation of a "merge tool" in open-cs (like https://github.com/OpenMW/openmw/commit ... 47360728a0) .
I don't know exactly how much this tool is working on his local branch
I don't know exactly how much this tool is working on his local branch
Re: Editing an ESM / Merging an ESP to an ESM
I am unable to replicate this (although I'm on a branch just after 0.36.1). What I tried:scrawl wrote:Doing some research for bug #2884, I need to edit Morrowind.esm.
OpenCS doesn't seem to be at the stage yet that it can read and save the file 1:1 (I tried it, hundreds of errors upon starting MW and then a crash).
1. Edit A Content File
2. Choose Morrowind.esm
3. Save then exit
4. Run Morrowind.omwgame from the launcher
5. I stopped after chargen & saving. Is there a particular location where you crash?
I guess you're trying to modify some stuff between steps 2 and 3. If you can detail them I can try to reproduce at my end.
EDIT:
Morrowind.esm 77,967 kB
Morrowind.omwgame 77,457 kB
So we might be losing something while saving...
Re: Editing an ESM / Merging an ESP to an ESM
The TES-CS merge feature should be working. I don't know why you have problems with it. Also, I have never seen TESAME crash. Very strange.
Anyway, OpenMW-CS should save files correctly, except for deleted records. I am not aware of any other missing features. If there is something going wrong that needs to be examined.
I am indeed currently working on a merge tool for OpenMW-CS. I pushed some additions yesterday that implemented most of the actual merging, with the exception of the following record types: TopicInfo, JournalInfo, Referencables, References, Land, LandTextures, Pathgrids. These are unfortunately all a bit more complicated and I will have to address them individually. Might take a while.
Anyway, OpenMW-CS should save files correctly, except for deleted records. I am not aware of any other missing features. If there is something going wrong that needs to be examined.
I am indeed currently working on a merge tool for OpenMW-CS. I pushed some additions yesterday that implemented most of the actual merging, with the exception of the following record types: TopicInfo, JournalInfo, Referencables, References, Land, LandTextures, Pathgrids. These are unfortunately all a bit more complicated and I will have to address them individually. Might take a while.
Re: Editing an ESM / Merging an ESP to an ESM
@cc9cii: run the result through vanilla MW, not OpenMW (i.e. rename omwgame to an esm). This got me tons of errors relating to missing objects referenced by INFO's and then a eventually crash.
Re: Editing an ESM / Merging an ESP to an ESM
Example of an error I get:
The object "general darius" does exist in the file.
I think vanilla might be more sensitive to the order of records in the file. I'll try moving things around to see if that helps.
Code: Select all
Object "general darius" not found for dialogue type
Topic
Info "EMPTY"
I think vanilla might be more sensitive to the order of records in the file. I'll try moving things around to see if that helps.
Re: Editing an ESM / Merging an ESP to an ESM
Right. You're trying to find out vanilla's behaviour. I'll see if there's a quick fix for the errors.
Re: Editing an ESM / Merging an ESP to an ESM
That fixed the missing objects error. Now I have missing cells. Another tweak to record ordering should do it.I think vanilla might be more sensitive to the order of records in the file. I'll try moving things around to see if that helps.
Edit: missing land textures. Last one, I think.
Edit2: land textures aren't being saved correctly. Looking into fix.
Re: Editing an ESM / Merging an ESP to an ESM
That's too bad. Now I have everything loading without errors, but still a crash at the end. Not sure how to proceed. Anyway, will push the fixes so far.