Jump to content

Recommended Posts

Posted

Hi all,

 

I am working on my mod which adds a new dimension that generates just like the nether but with all custom blocks and such. Now that i had that all working i wanted to go with my custom WorldChunkManager called WorldChunkManagerMarona and start making it so that i can get more biomes to generate in my dimension. What i did:

- Made the following classes : (all classes from genlayer), WorldChunkManagerMarona, TheBiomeDeco (BiomeDecorator), BiomeGenBaseMarona, BiomeCacheBlock, BiomeCache, WorldTypeMarona, WorldTypeEventMarona.

Changed my chunkprovider and all my biomes so that tey use BiomeGenBaseMarona instead of BiomeGenBase.

 

I also have this custom Entity + model + renderer and i am not sure if that has anything to do with the Exception Ticking World cause when i look at the error where it points me to i see :

public void tick()
{       
//There is a lot more in this but i left it out
this.updateTimeLightAndEntities();
}

This is that method:

public void updateTimeLightAndEntities()
    {
        this.theProfiler.startSection("levels");
        int i;

        Integer[] ids = DimensionManager.getIDs(this.tickCounter % 200 == 0);
        for (int x = 0; x < ids.length; x++)
        {
            int id = ids[x];
            long j = System.nanoTime();

            if (id == 0 || this.getAllowNether())
            {
                WorldServer worldserver = DimensionManager.getWorld(id);
                this.theProfiler.startSection(worldserver.getWorldInfo().getWorldName());
                this.theProfiler.startSection("pools");
                worldserver.getWorldVec3Pool().clear();
                this.theProfiler.endSection();

                if (this.tickCounter % 20 == 0)
                {
                    this.theProfiler.startSection("timeSync");
                    this.serverConfigManager.sendPacketToAllPlayersInDimension(new Packet4UpdateTime(worldserver.getTotalWorldTime(), worldserver.getWorldTime()), worldserver.provider.dimensionId);
                    this.theProfiler.endSection();
                }

                this.theProfiler.startSection("tick");
                FMLCommonHandler.instance().onPreWorldTick(worldserver);
                CrashReport crashreport;

                try
                {
                    worldserver.tick(); 
                }
                catch (Throwable throwable) // This is where it throws the "Exception"
                {
                    crashreport = CrashReport.makeCrashReport(throwable, "Exception ticking world");
                    worldserver.addWorldInfoToCrashReport(crashreport);
                    throw new ReportedException(crashreport);
                }
//There is more below but as it doesn't even reach that far i didn't paste it in
           }
     }
}

Crash report:

 

  Reveal hidden contents

 

 

If you want any looks inside any of these many classes please tell me which ones you need. I'll include my WorldChunkManager as it is mostly the "base class" of the dimension/biome thing.

 

  Reveal hidden contents

 

 

I hope someone reads this who knows how to get the mutliple biomes in my dimension working.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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