Try attached version of the file. Save to your PROGRAM folder.
I cannot guarantee this will always give 100% appropriate Opium Buyers, but it is much closer than it was.
But I did test with 50-100 names at a time, so I checked rather a lot of them.
The game may give you an on-screen error message regarding missing locations, but it will pick up on that and then find another character instead.
So basically this should work fine on @Talisman's savegame; you just potentially get some log messages when the names are generated.
I made several changes to my character init files to avoid these and also to disable some extra quest characters (the Slavers on Eleuthera and Coastbrothers on Turks, for example).
These changes will be included in the next modpack update, but do of course require a New Game to take effect.
I cannot guarantee this will always give 100% appropriate Opium Buyers, but it is much closer than it was.
But I did test with 50-100 names at a time, so I checked rather a lot of them.
The game may give you an on-screen error message regarding missing locations, but it will pick up on that and then find another character instead.
So basically this should work fine on @Talisman's savegame; you just potentially get some log messages when the names are generated.
I made several changes to my character init files to avoid these and also to disable some extra quest characters (the Slavers on Eleuthera and Coastbrothers on Turks, for example).
These changes will be included in the next modpack update, but do of course require a New Game to take effect.