problem buildings

How do i say this…
Well i accidentally deleted all buildings when i was testing something for the next update… :S
and i didn’t have a backup…

So i wrote a script that creates buildings more or less randomly.
Some defaults, ignoring research dependency:
If planet has resource metal or quartz i added 5 small factories for each resource as default.
If stored resources exceeds 100 i add enough Silos to hold it.
Enough Habitats to hold all population.
50% planets receive shipyard, orbital docks, Orbital Cloaker
all planets get 1 orbital shield

The rest of the planet is filled with random selected buildings.

Sorry for this…