Posted May 9, 201411 yr So ive pretty much tried everything to register my biome, GameRegistry.addBiome('biome') doesnt work, biome dictionary doesnt work, and i dont know what does, any help?
May 9, 201411 yr PreInit: BiomeDictionary.registerBiomeType(biome, Type.#); BiomeManager.addSpawnBiome(biome);
May 9, 201411 yr Author Thanks! But now in the ''' bits its giving me an error, am i using the wrong name for my biome? BiomeDictionary.registerBiomeType('''firstbiome''', Type.MOUNTAIN, Type.WASTELAND); BiomeManager.addSpawnBiome('''firstbiome''');
May 9, 201411 yr Author hold on a second, i did this and it gave me no error BiomeManager.addSpawnBiome(biome.firstbiome);
May 9, 201411 yr Yeah, it's not a String, it's an BiomeGenBase instance of your own. It should spawn naturally, give it a try, though the spawn-rate is low, I don't know if you can adjust that - (never made a biome b4)
May 9, 201411 yr Author Crash and i cant upload it, ill put a link to paste bin :-) http://pastebin.com/VHi3tUh9 Thanks:)
May 10, 201411 yr Your "biome.firstbiome" is most likely null. Let me see your "biome" class. If you don't mind, show me your "MainRegistry" class as well, who knows, there could be an error there instead. Thanks. c:
May 10, 201411 yr Author Sure Main Registry: http://pastebin.com/5YfC5MiX Biome Class: http://pastebin.com/PmBvxDzK
May 10, 201411 yr This is really how it should look like, if you have any other registration of biomes remove them, because this class is enough. My thoughts is that the crash is because (firstbiome) is null (no data) and when you register it, it still doesn't have any data until you init it (which you didn't do properly). http://pastebin.com/JEV57CX3
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.