When we worked on the french retranslation project, we were annoyed about the kernel2 size limitation. After I detroyed the file format with a hammer, every texts have been inserted successfully in the file.

What I share you today is a stand-alone program that reproduce my magical compression. The file is always readable by the game after changes (except if you exceed size limitation), but few kernel editors may have troubles after that.

On each section of the file, there are common texts, like "Potion", I merge this kind of text by changing the list of text positions. If possible, I merge common suffixes. Two text positions can point to the same text, on in the same text. The list of positions can be reordered, that's why few editors cannot open the resulting file.

I had improved weapon, armour descriptions so they show what hidden stat boosts are and also added descriptions to ultimate weapons for how damage calculated and this took me over the limit, but your tool fixes it.