So I did everything required to make a new province properly, it's in my game now and it works pretty much flawlessly, except the most important part. The game says it's not a port province, even though it's an island in the middle of a sea province. I've searched everywhere in the files and through google and there's no mention of such a flag or parameter anywhere to make a province a port.