In this particular instance, the only way I can keep the lua from going wonky is to move to a totally different directory, delete everything but LUAUI and LUARULES, the go to funta final and unzip everything except luaui and luarules, and it will work.
It stops working if I start deleting pngs from the unit textures folder of the s3o's that are not actually in the game at all. it's fircking annoying, I can';t understand what is causing this.
I'm making 2 different files, you can run diffs on the file structures if oyu want however,
the pngs are gone (not used in funta), the s3o's are gone (not used in funta), the FBI's for the s3o's are gone (not used in funta). But just those files being missing is causing lua to go wonky.
I think those two widgets force all unit models + textures to be loaded, so they can precache height and other data. If your removing unit textures, that will then make the unit model invalid, causing the unit they are trying to cache become invalid, causing that widget to crash, causing that there error.