Scottish kings came to favor the site , and it was James IV who decided to transform the simple lodgings into a true royal palace .
James IV made the decision to turn the plain living areas into a true royal palace .