Development How to Code a New Planet

Discussion in 'Addons and Resource Packs' started by jasonB221, Aug 17, 2013.

  1. IceClimber11

    IceClimber11 Member

    Joined:
    Aug 30, 2013
    Messages:
    195
    Likes Received:
    13
    I made a test planet but i cant load it... i think its setup wrong. BTW You Rock for the help :D thanks for the tutorial
    Code:
    ---- Minecraft Crash Report ----
    // Ooh. Shiny.
    
    Time: 9/6/13 11:14 PM
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    cpw.mods.fml.common.LoaderException: java.lang.NoSuchFieldError: field_76246_e
        at cpw.mods.fml.common.LoadController.transition(LoadController.java:149)
        at cpw.mods.fml.common.Loader.loadMods(Loader.java:521)
        at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:181)
        at net.minecraft.client.Minecraft.startGame(Minecraft.java:470)
        at net.minecraft.client.Minecraft.run(Minecraft.java:796)
        at net.minecraft.client.main.Main.main(Main.java:93)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
    Caused by: java.lang.NoSuchFieldError: field_76246_e
        at micdoodle8.mods.galacticraft.moon.blocks.GCMoonBlock.<init>(GCMoonBlock.java:43)
        at micdoodle8.mods.galacticraft.moon.blocks.GCMoonBlocks.initBlocks(GCMoonBlocks.java:18)
        at micdoodle8.mods.galacticraft.moon.GalacticraftMoon.preLoad(GalacticraftMoon.java:57)
        at micdoodle8.mods.galacticraft.core.GalacticraftCore.preInit(GalacticraftCore.java:181)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
        at com.google.common.eventbus.EventBus.post(EventBus.java:267)
        at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
        at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
        at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
        at com.google.common.eventbus.EventBus.post(EventBus.java:267)
        at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
        at cpw.mods.fml.common.Loader.loadMods(Loader.java:520)
        ... 10 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
        Minecraft Version: 1.6.2
        Operating System: Windows 8 (amd64) version 6.2
        Java Version: 1.7.0_21, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 969350816 bytes (924 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
        JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        Suspicious classes: FML and Forge are installed
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        FML: MCP v8.04 FML v6.2.60.849 Minecraft Forge 9.10.1.849 6 mods loaded, 6 mods active
        mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
        FML{6.2.60.849} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized
        Forge{9.10.1.849} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized
        GalacticraftCore{0.1.39} [Galacticraft Core] (Galacticraft-1.6.2-a0.1.39.653.jar) Unloaded->Constructed->Errored
        Iceclimber11planets{1.0.0} [I Need A Name!] (bin) Unloaded->Constructed->Errored
        GalacticraftMars{0.1.39} [Galacticraft Mars] (Galacticraft-Planets-1.6.2-a0.1.39.653.jar) Unloaded->Constructed->Errored
     
  2. jasonB221

    jasonB221 Member

    Joined:
    Jul 27, 2013
    Messages:
    124
    Likes Received:
    9
    Yes, that problem occurs when you try to run the mod in eclipse. I still do not know how to fix it, so for the time being you have to reobfuscate it and run it via the minecraft client.
     
  3. IceClimber11

    IceClimber11 Member

    Joined:
    Aug 30, 2013
    Messages:
    195
    Likes Received:
    13
    Awe that sucks D:
     
  4. Minecraft_Modder

    Joined:
    Jul 6, 2013
    Messages:
    47
    Likes Received:
    1
  5. Minecraft_Modder

    Joined:
    Jul 6, 2013
    Messages:
    47
    Likes Received:
    1
    I get errors when I create PlanetWorldChunkProvider and sorry I think I've been a real pain
     
  6. Fanor

    Fanor Member

    Joined:
    Nov 2, 2013
    Messages:
    1
    Likes Received:
    0
    Hi, I have a problem I'm making a copy and paste github no planet appears in the list :/
     
  7. Saix12345

    Saix12345 Member

    Joined:
    Aug 31, 2013
    Messages:
    1
    Likes Received:
    0
    Use this in your slot renderer file.

    @Override
    public void renderSlot(int index, int x, int y, float slotHeight, Tessellator tessellator)
    {
    tessellator.startDrawingQuads();
    tessellator.addVertexWithUV(x - slotHeight / 2 * 1.3, y + slotHeight / 2 * 1.3, -90.0D, 0.35D, 0.65D);
    tessellator.addVertexWithUV(x + slotHeight / 2 * 1.3, y + slotHeight / 2 * 1.3, -90.0D, 0.65D, 0.65D);
    tessellator.addVertexWithUV(x + slotHeight / 2 * 1.3, y - slotHeight / 2 * 1.3, -90.0D, 0.65D, 0.35D);
    tessellator.addVertexWithUV(x - slotHeight / 2 * 1.3, y - slotHeight / 2 * 1.3, -90.0D, 0.35D, 0.35D);
    tessellator.draw();
    }

    This was my problem.
     
  8. MoltonMontro

    MoltonMontro Member

    Joined:
    Nov 4, 2013
    Messages:
    728
    Likes Received:
    128
    This API tutorial should be added to the site's wiki. Thumbs up to you.
     
    IsoMS likes this.
  9. Bulldog703

    Bulldog703 Member

    Joined:
    Nov 24, 2013
    Messages:
    6
    Likes Received:
    0
    I will so use this thanks!!!! Right after i learn to code
     
  10. Richard Thompson

    Joined:
    Dec 31, 2013
    Messages:
    4
    Likes Received:
    0
    Thank you for this, I will be messing with this to make a replacement for the Nether and End on my future server.
    Hopefully this will work as I dream it to.
     
  11. IsoMS

    IsoMS Member

    Joined:
    Jul 26, 2013
    Messages:
    970
    Likes Received:
    72
    Interesting,
     
  12. TheUnkownPlayer

    Joined:
    Jan 8, 2014
    Messages:
    1,060
    Likes Received:
    131
    Thanks for making this thread!
     
  13. morlanius

    morlanius Member

    Joined:
    Apr 15, 2014
    Messages:
    1
    Likes Received:
    0
    Great tutorial, but at what point are we able to change blocks and ores in the terrain gen, even change the terrain gen itself?
     
  14. TheUnkownPlayer

    Joined:
    Jan 8, 2014
    Messages:
    1,060
    Likes Received:
    131
    This whole thing :)
     
  15. IceClimber11

    IceClimber11 Member

    Joined:
    Aug 30, 2013
    Messages:
    195
    Likes Received:
    13
    This is allowing you to add your dimension you have already made to the galaticraft menu. You should already have the world built.
     
  16. Theoretikos

    Theoretikos Member

    Joined:
    May 6, 2014
    Messages:
    1
    Likes Received:
    0
    How is gravity handled? I want to do a planet with gravity a third of the standard (like Mars). Is there a tutorial that covers gravity?
     
  17. IceClimber11

    IceClimber11 Member

    Joined:
    Aug 30, 2013
    Messages:
    195
    Likes Received:
    13
    I think there is a Galaticraft setting... Unless MC handles gravity, I would recommend looking through the source
     
  18. ArtaxiasTheWise

    Joined:
    Apr 27, 2014
    Messages:
    7
    Likes Received:
    3
    So, if I wanted to make an addon that just adds more planets, I just code a new dimension, and then plug it into the API?
     
  19. IceClimber11

    IceClimber11 Member

    Joined:
    Aug 30, 2013
    Messages:
    195
    Likes Received:
    13
    Yeah, you build the dimension, then register it with the GC menu. If i wanted to I could put the nether, or the End on the GC map. Think of the rocket as a new type of enderportal, but you get a choice of where you want to go from the GC menu. Its just adding a few atributes.
     
  20. Giaphage

    Giaphage Member

    Joined:
    Nov 24, 2014
    Messages:
    1
    Likes Received:
    0
    When I try to run this with the Micdoodle Core in my eclipse/mods folder, minecraft says it's a duplicate mod, but if I take it out, it crashes like so:
    How do I fix this?
     
    #60 Giaphage, Nov 24, 2014
    Last edited: Nov 24, 2014

Share This Page