Aha, I feel like this is a question for me
There's actually no need of the planets mass to calculate anything in the game. The reason for that is because in any formula, the planet mass (M) is ALWAYS multipled by G, the universal gravitational constant. For example, the local gravitational field is expressed that way:
g = G.M/r²
The same goes for the orbital period, which is obtained through the following relation:
T²/sma³ = 4.π²/(G.M)
For this reason, what is used in practice is the gravitational parameter:
μ = G.M
That way, the 2 formulas above can be rewritten that way:
g = μ/r²
T²/sma³ = 4.π²/μ
So now you may ask, how do I know the gravitational parameter right? Actually you already have the answer with this post: precisely with the formula g = μ/r². The planet file gives you the planet's radius, and the gravity at surface, so you can use this to deduce the gravitational parameter:
μ = g × radius²
Don't forget that in realistic radiuses are multiplied by 20, so for Earth you have g=9.8 m/s, and radius = 315,000 × 20 = 6,300,000.0 m.
With all this you normally have everything that's needed to calculate the orbital period.