Still getting the plains error.
Think the problem with this is that you're getting 'plains' as your zonecode and then trying to plug it into the database. globals.areas.database in explorationregions.gd lists the zonecode as being called 'prairie' instead.
so as a quick fix could just slap this under your zonecode at line 2210
if zonecode == 'plains':
zonecode = 'prairie'