Sinapus Posted January 5, 2007 Share Posted January 5, 2007 Apology: I did not find too much on this subject via searching, so if this has been covered before then I apologize. Question: if you install multiple mods via the nifty TSLPatcher and then notice that it somehow duplicated entries in two of the 2da files, how would one safely remove those entries? Do I delete the extra entries and then change the numbering of the remaining ones to line up with each other? I'm not loading any saves, my next game will be starting completely from scratch with the current settings. Explanation: Right now, my upcrystals.2da and upgrade.2da files have duplicate entries in them, and I'm not sure how. Observation: Most disturbing. I'm typing like HK-47 talks. I think I'll stop here before I meltdown. Link to comment Share on other sites More sharing options...
PrimusPilus Posted January 5, 2007 Share Posted January 5, 2007 Did it add new line numbers or do you have, for example, Line 515, followed by line 515? If that's the case then you should be able to delete one of the lines no problem. If not, you may run into conflicts because, with an armour replacement MOD for example, the .uti file references to the line number in the .2da file. Link to comment Share on other sites More sharing options...
stoffe Posted January 5, 2007 Share Posted January 5, 2007 Question: if you install multiple mods via the nifty TSLPatcher and then notice that it somehow duplicated entries in two of the 2da files, how would one safely remove those entries? If those duplicate lines originate from the same mod the author has probably forgotten the installer to check for already existing lines before adding new ones. Anyway, it depends on what 2DA file it's about. If it is indexed by line number deleting lines is usually a very bad idea, unless you delete the last line in the file. Otherwise all the lines following the one you delete will get their indexing reshuffled, and all references to those lines from elsewhere will be messed up. This is why you will see plenty of unused lines, padded lines and dummy lines still present in 2DA files like feat.2da and spells.2da; Bioware/Obsidian couldn't safely delete them without the huge amount of work involved in making sure all references elsewhere are fixed as well. Easier to just pad out unused lines with **** in all columns in those cases. Deleting lines from 2DA files indexed by the Row Label is safe to do, on the other hand. Link to comment Share on other sites More sharing options...
Sinapus Posted January 6, 2007 Author Share Posted January 6, 2007 Are upcrystals.2da and upgrades.2da one of those "indexed by line number" files? Hm. Four asterisks? Link to comment Share on other sites More sharing options...
stoffe Posted January 6, 2007 Share Posted January 6, 2007 Are upcrystals.2da and upgrades.2da one of those "indexed by line number" files? Four asterisks? I think they are indexed by line number, but I don't know for sure since I haven't been doing a whole lot of modding where those files are involved. If the Row Label column contains sequentially increasing numbers, and there are some padded dummy lines somewhere in the line that doesn't seem to serve any purpose then it's a sure bet it's line number indexed. (If you have the patience it's fairly easy to figure out though. Just add a new line and set the Row Label to something different than the line number, and try to use that line for something. If the game crashes or malfunctions then you picked the wrong index. ) **** is a special default value used in 2DA files that usually means that the column has no value set. Link to comment Share on other sites More sharing options...
Sinapus Posted January 6, 2007 Author Share Posted January 6, 2007 Well, I checked the game copies of both files and there are no padded entries in them, though both have sequentially increasing numbers in Row Label column. I first noticed this when I was upgrading an armor and found duplicate copies of an overlay and an underlay the mod provided. When I used one of the upgrades, the number of upgrades available would go down by the same number. If I looked for the upgrade in the party inventory, it would show up only once. (...I could also save copies of both files in question to a safe place, then remove the duplicates, renumber the rows to line up again and see what happens.) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.