Well it certainly looks like a problem with module_troops file
Are the lines at the bottom of the file lined up like this:
upgrade(troops,"farmer","watchman")upgrade(troops,"townsman","watchman")upgrade2(troops,"watchman","caravan_guard","mercenary_crossbowman")upgrade2(troops,"caravan_guard","mercenary_swordsman","mercenary_horseman")upgrade(troops,"mercenary_swordsman","hired_blade")
Or is every upgrade a different line?