Working on possibilities for changing the height at different parts of a ground tile I decided to change the names of the tiles. They were:
Field8.ter
Grass.ter
Water.ter
Coast1.ter
Coast3.ter
Coast2.ter
Field1.ter
etc
In the game code things like "BN", "LR" and "BP" are added to the front of these producing the real tilenames such as "BNField8.ter" and so on.
Not having the "BN", "LR" and "BP" in the list of names gives flexibility, so I decided to further extend the flexibility by removing the "ter" at the end so that different extenders could be used and create names like "Field8.mpf".
So I changed the routine to use the shortened name, and added lines to add "ter" where it was needed.
All I needed was a new tile list file without the "ter" at the end.
So using the text version I blanket deleted the "ter", saved the file, and converted it to a string file.
Now, programmers invariably assume that when they make a change and the new version generates an error that they did something wrong, so they go back, change tweak and re-test.
That happened to me, I spent half the morning doing that and getting nowhere. My new version gave a CTD as soon as I clicked on single mission.
I did a cursory check of the stringfile with the names, and the number was right, so I was beginning to tear my hair out. Then I looked a bit closer and spotted something.
In my haste to remove the "ter" extender I had not considered that "water" also contains "ter", and the blanket removal in notepad had reduced "Water.ter" to "Wa."
There had been no error in the programming, but the new exe was crashing when it could not find "BNWa.ter"

I re-did the whole thing, by removing the entire ".ter" extender, creating a new stringfile, and then changing the program code to add the ".ter" extender where needed.
It worked

In case you are wondering where this is heading I'm looking at adding a mini height map to selected tiles named "Field8.mpf", "Grass.mpf" etc so that the names match the tile names.
The effects we might get are something like this


Jel