niston Posted November 4, 2019 Share Posted November 4, 2019 I got a plugin I downloaded from nexus. Noticed lots of CTDs with it installed. Decided to pick up where the Author left off like a year ago. Investigating the CTDs, I noticed that ALOT of references in the plugin were broken. For example, xEdit would report heaps of errors like so (note that the ID used in the example is just for illustrative purposes): [00:06] [REFR:0304178D] (places [01003C48] < Error: Could not be resolved > in GRUP Cell Temporary Children of SafariAdventureGate01 [CELL:0200318B] (in NukaWorld "Nuka-World" [WRLD:0200290F] at -1,7))[00:06] REFR \ NAME - Base -> [01003C48] < Error: Could not be resolved > Master ID 1 is Far Harbor ESMMaster ID 2 is NukaWorld ESM What happened? I found out quick: The master ID was changed from 02 to 01, for whatever reason. The REFR should place 02003c48 instead of 0100348! And there were hundreds of those errors in the plugin, where the master ID apparently got mangled. Obviously, there are also cases where the mangled ID is a valid reference, so it would then point to something out of FH ESM, instead of something out of NW ESM. No wonder the game CTDs like crazy! At first I thought it must have happened because the master table has probably been, at some point, manually edited in xEdit. So I fixed all of these errors manually, changing them from 01xxx back to 02xxx and didn't think of it much further. But lo and behold: When I did some CK work on the navmesh of said plugin, this type of error popped back up. I verified multiple times. It appears to be the Creation Kit is messing up these IDs. I would fix them once again by hand in xedit, changing the 01 back to a 02. Then work the plugin some more in CK, and these errors would be back. It would mess up REFRs seemingly at random. Which begs some questions: 1) WTF is going on? 2) Has anybody seen anything like it before? 3) Is there a way to fix this via xedit script, instead of going through 100s of records manually? It's kinda stupid to have to go through this ordeal each and every time the plugin was edited in Creation Kit.... Link to comment Share on other sites More sharing options...
VIitS Posted November 5, 2019 Share Posted November 5, 2019 If you load a plugin into the CK that has a master without the ESM flag, the CK will rip it out when you save. It can only be fixed if you open the mod in xEdit immediately afterwards, and manually add the master back to the mod by editing the File Header in the same position in the list (i.e. if the removed master was the second from the bottom, you have to put it as the second from the bottom) before saving it. If you add the master by right clicking on the plugin and choosing Add Master, it won't work. If you save the plugin after the master gets ripped out and before you manually add it to the plugin, it is permanently broken and you would have to manually renumber the records or delete them and start over. The easiest way to handle this is just to make sure that the masters for a plugin you want to load in the CK have the ESM flag. You can add the flag without changing the file extension using xEdit, and then shouldn't have the masters ripped out*. If you aren't having any masters ripped out, try using the Sort Masters option in xEdit to make the order of the list match the order they will be loaded in game. That might help, though I don't know why the CK would be doing something like that if it wasn't also ripping out a master. *at least if you have the newest version, or most of the older versions. There was one or two versions where it had to have the .esm or .esl file extensions, and didn't care about the flag. Link to comment Share on other sites More sharing options...
niston Posted November 6, 2019 Author Share Posted November 6, 2019 Yes, I am aware re master handling in CK. However, in this particular case, the IDs that got mangled are all from vanilla/DLC ESM files. CK will not rip these from the master table upon opening the plugin. Futhermore, the master table is intact, with just the 3 expected entries (Fallout.esm, the far harbor ESM and nukaworld ESM) in it. There has to be something else at play here. EDIT: After updating and finalizing cell navmesh once more, a bunch of records are now broken again: [REFR:02003397] became [REFR:01003397] [REFR:0202320A] became [REFR:0102320A][CELL:0200339A] became [0100339A][CELL:02003397] became [REFR:01003397] Rest of the list here: [00:00] DLC04NukaWorldPowerPlant01 "Nuka-World Power Plant" [CELL:02008B57][00:00] CELL \ XPRI - Physics References \ Reference -> [01016842] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0102C8C2] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0102C8C5] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0102CF8C] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0102CFA6] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0102CFA7] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0102CFB8] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103028F] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010302AB] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010302AC] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010302AE] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103032B] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103032C] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030330] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030331] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103033E] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103033F] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030353] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030368] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030409] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103040A] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030430] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030F24] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030F2C] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030F2F] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030F30] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030F3C] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030F5D] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030F60] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01030FCF] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103101C] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103101D] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103101E] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103101F] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103104B] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103104C] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103104D] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010310AA] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010310AB] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010331D6] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010331E0] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010331F2] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010331F3] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010331F4] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010331F5] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01033216] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103321A] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103322C] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01033284] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0103328B] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010332A6] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010332A7] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010332CF] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010332D1] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01033304] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01033327] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01033328] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010334C5] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045A69] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045A6A] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045A71] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045A7D] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045A7F] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045A83] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045A8C] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045A8D] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045AAA] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045ABA] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045AE9] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045AEA] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045AFA] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045C02] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045C05] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01045C19] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0104A2ED] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [0104F641] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01050032] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01050087] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01050089] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010500A6] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010500A7] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [010500AD] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01056C4E] < Error: Could not be resolved >[00:00] CELL \ XPRI - Physics References \ Reference -> [01056C50] < Error: Could not be resolved > All of these were changed by CK from 02xxxxxx to 01xxxxxx. Manually changing them back to 02xxxxxx fixes them. The plugin did not have these errors before I started work on the navmesh. And I definately did not add or remove any masters in between. Link to comment Share on other sites More sharing options...
niston Posted November 7, 2019 Author Share Posted November 7, 2019 I'm beginning to think that the plugin file in question is somehow corrupted in some insidious way, as it doesn't happen w/ any other file but this one. Link to comment Share on other sites More sharing options...
Thirdstorm Posted November 8, 2019 Share Posted November 8, 2019 Did you try re-sorting masters in Xedit? Link to comment Share on other sites More sharing options...
niston Posted November 8, 2019 Author Share Posted November 8, 2019 Yep I tried that. I think the problem is related to navmesh corruption, because a) The original navmesh in the plugin was completely fubar'd in some places. Like, missing a bunch of vertices and suchlike.b) The REFR corruption only occurs after finalizing cell navmesh. Wonder if there 's a way to fix this. Copying all records to a new plugin maybe? Hmm... Link to comment Share on other sites More sharing options...
Recommended Posts