Development Add new solar system[Code]

RonFall

Member
Content developer
Vacuum Horizon
May 5, 2016
81
15
8
24
Good night. Ask to help to understand with the addition of its solar system.
I enter the following code:
Code:
       public static SolarSystem Kepler62;

       @EventHandler
       public void Init(FMLInitializationEvent FinchEvent) {
       Kepler62 = new SolarSystem("Kepler62", "milkyWay").setMapPosition(new Vector3(120.0F, 50.0F));
       Star Kepler62SS = (Star) new Star("Kepler62").setParentSolarSystem(Kepler62).setTierRequired(-1);
       Kepler62SS.setBodyIcon(new ResourceLocation("horizon:textures/stars/Kepler62.png"));
       Kepler62.setMainStar(Kepler62SS);
       GalaxyRegistry.registerSolarSystem(Kepler62);
}
After entering the game I use the galaxy map. Press the "M" and the game crash.
---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 02.11.16 22:32
Description: Rendering screen

java.lang.NullPointerException: Rendering screen
at micdoodle8.mods.galacticraft.core.client.gui.screen.GuiCelestialSelection.getCelestialBodyPosition(GuiCelestialSelection.java:1165)
at micdoodle8.mods.galacticraft.core.client.gui.screen.GuiCelestialSelection.drawCelestialBodies(GuiCelestialSelection.java:1283)
at micdoodle8.mods.galacticraft.core.client.gui.screen.GuiCelestialSelection.drawScreen(GuiCelestialSelection.java:1048)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
at net.minecraft.client.Minecraft.run(Minecraft.java:962)
at net.minecraft.client.main.Main.main(Main.java:164)
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:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at micdoodle8.mods.galacticraft.core.client.gui.screen.GuiCelestialSelection.getCelestialBodyPosition(GuiCelestialSelection.java:1165)
at micdoodle8.mods.galacticraft.core.client.gui.screen.GuiCelestialSelection.drawCelestialBodies(GuiCelestialSelection.java:1283)
at micdoodle8.mods.galacticraft.core.client.gui.screen.GuiCelestialSelection.drawScreen(GuiCelestialSelection.java:1048)

-- Screen render details --
Details:
Screen name: micdoodle8.mods.galacticraft.core.client.gui.screen.GuiCelestialSelection
Mouse location: Scaled: (213, 167). Absolute: (640, 500)
Screen size: Scaled: (427, 334). Absolute: (1280, 1001). Scale factor of 3

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player501'/68, l='MpServer', x=-692,50, y=5,62, z=326,50]]
Chunk stats: MultiplayerChunkCache: 169, 169
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (-686,4,320), Chunk: (at 2,0,0 in -43,20; contains blocks -688,0,320 to -673,255,335), Region: (-2,0; contains chunks -64,0 to -33,31, blocks -1024,0,0 to -513,255,511)
Level time: 204 game time, 204 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 14 total; [EntityClientPlayerMP['Player501'/68, l='MpServer', x=-692,50, y=5,62, z=326,50], EntitySlime['Slime'/5486, l='MpServer', x=-760,68, y=4,00, z=398,10], EntityVillager['Villager'/55, l='MpServer', x=-758,28, y=4,00, z=249,50], EntityVillager['Villager'/65, l='MpServer', x=-739,16, y=5,00, z=263,56], EntityVillager['Villager'/66, l='MpServer', x=-735,78, y=4,00, z=255,82], EntitySlime['Slime'/16118, l='MpServer', x=-764,91, y=4,00, z=321,25], EntitySlime['Slime'/13278, l='MpServer', x=-721,03, y=4,00, z=368,25], EntityVillager['Villager'/67, l='MpServer', x=-735,51, y=4,00, z=251,25], EntityVillager['Villager'/59, l='MpServer', x=-765,37, y=4,00, z=258,47], EntitySlime['Slime'/4925, l='MpServer', x=-754,00, y=4,47, z=316,36], EntitySlime['Slime'/60936, l='MpServer', x=-633,50, y=4,00, z=403,50], EntitySlime['Slime'/11584, l='MpServer', x=-759,42, y=4,88, z=280,68], EntitySlime['Slime'/37294, l='MpServer', x=-723,16, y=4,00, z=364,53], EntityVillager['Villager'/60, l='MpServer', x=-750,47, y=4,00, z=264,71]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
at net.minecraft.client.Minecraft.run(Minecraft.java:984)
at net.minecraft.client.main.Main.main(Main.java:164)
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:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.7.10
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: 737980168 bytes (703 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 14
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 9 mods loaded, 9 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA Micdoodlecore{} [Micdoodle8 Core] (minecraft.jar)
UCHIJAAAA IC2{2.2.826-experimental} [IndustrialCraft 2] (industrialcraft-2-2.2.826-experimental-dev.jar)
UCHIJAAAA GalacticraftCore{3.0.12} [Galacticraft Core] (GalacticraftCore-Dev-1.7-3.0.12.463 (1).jar)
UCHIJAAAA DimensionTutorial{1.0} [DimensionTutorial] (bin)
UCHIJAAAA GalacticraftMars{3.0.12} [Galacticraft Planets] (Galacticraft-Planets-Dev-1.7-3.0.12.463 (1).jar)
UCHIJAAAA VacuumHorizon{AV-0.3} [Vacuum Horizon] (bin)
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 372.70' Renderer: 'GeForce GT 740/PCIe/SSE2'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce GT 740/PCIe/SSE2 GL version 4.5.0 NVIDIA 372.70, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
Please help to solve the problem.
 

RonFall

Member
Content developer
Vacuum Horizon
May 5, 2016
81
15
8
24
Ok. Problem resolved.
GalaxyRegistry need write in another method.
 

Share this page