The main components include:
When manually editing a generated provinces.bmp , disable "Anti-aliasing" in your image editor (like Paint.NET ). Every single pixel must be a solid, unique RGB color; a slight "blur" will result in the game seeing thousands of "micro-provinces" and crashing.