Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

There are a few things I'm having trouble with: First, something is causing a crash when you try to create a new world, it crashes with:

 

[17:12:29] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@6149c883)
[17:12:29] [server thread/ERROR]: Encountered an unexpected exception
java.lang.NullPointerException
at izzyaxel.arcaneartificing.main.dimension.AAWorldProvider.createChunkGenerator(AAWorldProvider.java:56) ~[AAWorldProvider.class:?]
at net.minecraft.world.WorldServer.createChunkProvider(WorldServer.java:693) ~[WorldServer.class:?]
at net.minecraft.world.World.<init>(World.java:281) ~[World.class:?]
at net.minecraft.world.WorldServer.<init>(WorldServer.java:102) ~[WorldServer.class:?]
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14) ~[WorldServerMulti.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]

 

Which is the return in this function:

@Override
public IChunkProvider createChunkGenerator()
{
   return new AAChunkProvider(worldObj, worldObj.getSeed(), false);
}

 

Main

WorldProvider

ChunkProvider

 

There are other issues but I want to see how fixing this affects them first.

You never assign anything to worldObj.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

I tried this before and got a crash on loading too:

 

 

Description: Exception initializing level


java.lang.NullPointerException: Exception initializing level
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:774)
at net.minecraft.world.WorldServer.initialize(WorldServer.java:757)
at net.minecraft.world.World.<init>(World.java:296)
at net.minecraft.world.WorldServer.<init>(WorldServer.java:102)
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)




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


-- Head --
Stacktrace:
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:774)
at net.minecraft.world.WorldServer.initialize(WorldServer.java:757)


-- Affected level --
Details:
Level name: New World
All players: 0 total; []
Chunk stats: ServerChunkCache: 0 Drop: 0
Level seed: -3547335517618857771
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options: 
Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 0 game time, 0 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.world.World.<init>(World.java:296)
at net.minecraft.world.WorldServer.<init>(WorldServer.java:102)
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

 

I did:

public AAWorldProvider()
{
this.dimensionId = Reference.DIMID;
this.hasNoSky = false;
this.isHellWorld = false;
this.worldObj = MinecraftServer.getServer().getEntityWorld();
}

  • Author

Ok...that was caused by setting canRespawnHere to true, but that still doesn't allow the world to load:

 

[18:21:01] [server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:698) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
Caused by: java.lang.NullPointerException
at net.minecraft.world.WorldServer.tick(WorldServer.java:152) ~[WorldServer.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692) ~[MinecraftServer.class:?]
... 4 more
[18:21:01] [server thread/ERROR]: This crash report has been saved to: D:\Modding\ArcaneArtificing\eclipse\.\crash-reports\crash-2015-04-26_18.21.01-server.txt
[18:21:01] [server thread/INFO]: Stopping server
[18:21:01] [server thread/INFO]: Saving players
[18:21:01] [server thread/INFO]: Saving worlds
[18:21:01] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[18:21:01] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// You're mean.

Time: 4/26/15 6:21 PM
Description: Exception ticking world

java.lang.NullPointerException: Exception ticking world
at net.minecraft.world.WorldServer.tick(WorldServer.java:152)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)


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

-- Head --
Stacktrace:
at net.minecraft.world.WorldServer.tick(WorldServer.java:152)

-- Affected level --
Details:
Level name: New World
All players: 0 total; []
Chunk stats: ServerChunkCache: 0 Drop: 0
Level seed: 8396146677921698012
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 0 game time, 0 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: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

  • Author

I rewrote everything but the biomes, now it loads and I can get into the dimension, but I'm still having a few issues.  Most importantly, only one biome is generating, when I added 2 to my WorldChunkManager.  I still have to add other things back in one at a time, so that's the only question for now.

 

 

WorldChunkManager

  • Author

This is odd, it IS spawning both, but the biome indicator on F3 never says anything but plains.

 

 

Nevermind, fixed it.  Now, the other issue I've been having is removing the vanilla generation.  I overrode  ChunkProviderGenerate#populate in my class that extends ChunkProviderGenerate and implements IChunkProvider, and changed it to:

 

 

@Override
public void populate(IChunkProvider chunkProvider, int x, int z)
{
BlockFalling.fallInstantly = true;
int k = x * 16;
int l = z * 16;
BiomeGenBase biomegenbase = this.worldObj.getBiomeGenForCoords(k + 16, l + 16);
this.rand.setSeed(this.worldObj.getSeed());
long i1 = this.rand.nextLong() / 2L * 2L + 1L;
long j1 = this.rand.nextLong() / 2L * 2L + 1L;
this.rand.setSeed((long)x * i1 + (long)z * j1 ^ this.worldObj.getSeed());
MinecraftForge.EVENT_BUS.post(new PopulateChunkEvent.Pre(chunkProvider, worldObj, rand, x, z, false));
biomegenbase.decorate(this.worldObj, this.rand, k, l);
MinecraftForge.EVENT_BUS.post(new PopulateChunkEvent.Post(chunkProvider, worldObj, rand, x, z, false));
BlockFalling.fallInstantly = false;
}

 

 

And of course specified it in my custom WorldType, but all the features omitted still generate. :/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.