I have finally gotten everything working, just as I was being fitted for a straightjacket. I have posted the working beta on my webpage, replacing the buggy files. All the time I was scouring the files trying to find the bugs, I caught other errors and such, so this should be about as finely polished a beta as you'll ever see. I am sure things will crop up here and there, and the overall economic system needs to be observed and adjusted as necessary, but I expect that the mod will be ready to go gold relatively quickly, knock on wood.
It turned out that there were two different bugs, both of which caused the exact same type of crash, and the crash was only obscurely related to the causes. They were based upon hardcoded requirements which were unique, undocumented to my knowledge, and totally inconsistent with the rest of the file. This was perhaps the most difficult case to diagnose that I have ever run across in over five years of modding. Sometime I'll make a post in the bug thread detailing them.
Thanks again to everyone who chimed in with suggestions and advice.
BKB, I think the mod would have worked without changing all the names back, but if I hadn't, I would never have been able to isolate these bugs, so it wasn't wasted effort. Changing everything back allowed me to mix and match the modded and original units and buildings texts, which finally allowed me to determine that, although the completion of a castle triggered the crash, the causes themselves were in the units text.
I should have kept a diary of my efforts so that I could include it in an application for a job in the industry, because I don't know how many pros would have been able to isolate and solve these without any access to the hardcode.
Anyway, it's done. I'll start the official beta thread sometime shortly, but I thought I would let you guys know first. Installation instructions are detailed in the Intro readme, but all you need to do really is make sure the executable is pointed to your MTW folder. It used to be pointed at the Total War folder, but this should be easier. Remember that only the Late campaign is included.
Bookmarks