Advanced-Rocketry / AdvancedRocketry

Space mod for minecraft
http://arwiki.dmodoomsirius.me/
MIT License
217 stars 273 forks source link

Can't add 2 moons to a single planet? #530

Closed wormzjl closed 7 years ago

wormzjl commented 7 years ago

image

With

    <planet name="Alpha Centauri B III" DIMID="15">
        <fogColor>1,1,1</fogColor>
        <skyColor>0,0,0</skyColor>
        <GasGiant>true</GasGiant>
        <atmosphereDensity>190</atmosphereDensity>
        <gravitationalMultiplier>150</gravitationalMultiplier>
        <orbitalDistance>160</orbitalDistance>
        <orbitalTheta>45</orbitalTheta>
        <rotationalPeriod>95000</rotationalPeriod>
        <hasRings>true</hasRings>
        <isKnown>false</isKnown>
        <planet name="Alpha Centauri B III Moon 1" DIMID="16">
            <fogColor>1,1,1</fogColor>
            <skyColor>0,0,0</skyColor>
            <atmosphereDensity>20</atmosphereDensity>
            <gravitationalMultiplier>30</gravitationalMultiplier>
            <biomeIds>95</biomeIds>
        </planet>
        <planet name="Alpha Centauri B III Moon 2" DIMID="17">
            <fogColor>1,1,1</fogColor>
            <skyColor>0,0,0</skyColor>
            <atmosphereDensity>20</atmosphereDensity>
            <gravitationalMultiplier>30</gravitationalMultiplier>
            <biomeIds>24</biomeIds>
        </planet>
    </planet>

Is there anything wrong?

zmaster587 commented 7 years ago

Try setting the orbital distance for each moon. I think I added code to prevent multiple bodies with the same orbital distance from being added to the same parent body.

If that doesn't work then something is screwed up in my code somewhere.

wormzjl commented 7 years ago

Tried to set it's orbital distance, and they appeared in the wrong solar system (the first solar system instead of the second)

Full code https://pastebin.com/btwXdf9t

zmaster587 commented 7 years ago

Does it have both moons even though it's in the wrong system? Upon me testing I was able to see both moons though they were in the wrong system as you described in the most recent comment.

wormzjl commented 7 years ago

Yeah, both moon and their mother planet moved to system A instead of system B