There was some discussion here:http://forums.pocket...ic,29685.0.html
Your best bet may be to avoid any commands specifically designed to work with 2DAs and parse the files manually e.g. with RegEx yourself.

"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"

The REMOVE_2DA_ROW / INSERT_2DA_ROW operation is a trick I haven't thought of. Instead I tried to extend the structure created by READ_2DA_ENTRIES_NOW directly, but SET_2DA_ENTRIES_NOW didn't catch any of these changes.

I have slightly expanded the code and put it into a function if anyone is interested:

Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 18 October 2017 - 12:12 PM

Any ideas?

You do know that this is completely unneeded if you only want to insert the *'s into the table ? As the second rows same symbol is the default... meaning that the file is actually filled to without there needing to be those in place. Now of course if you then need to replace sets of those with legitimate replacement values, your solution can have a valid stance, but not in the default case.Thias can be seen for example in cases which the mx...2da file setting the default to 0 instead of something else.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

You do know that this is completely unneeded if you only want to insert the *'s into the table ? As the second rows same symbol is the default... meaning that the file is actually filled to without there needing to be those in place. Now of course if you then need to replace sets of those with legitimate replacement values, your solution can have a valid stance, but not in the default case.
Thias can be seen for example in cases which the mx...2da file setting the default to 0 instead of something else.

In my case it seems to be needed. I want to expand tooltip.2da to have individual names for the 4th and 5th ability of an item, which doesn't appear to work if some entries contain less columns. Besides, it improves compatibility with other mods that try to process the file. Otherwise, a COUNT_2DA_COLS followed by COUNT_2DA_ROWS would return a misleading number of rows.

Imagination is more important than knowledge. Knowledge is limited; imagination encircles the world. - Albert Einstein