WhichOnesPink Posted November 22, 2015 Share Posted November 22, 2015 When two mods try to take control of the chunk manager, shouldn't the mod whose world type was chosen on startup take priority? http://pastebin.com/raw.php?i=EcHFJ2hZ According to that log, when RTG tries to get the world's chunk manager, it's returning Wildycraft's chunk manager instead and crashing, even though RTG's world type was selected on startup. At first, I thought it might be a biome ID or dimension ID conflict, but there aren't any conflicts that I can see. Am I missing something totally obvious here? Quote [1.7.10] [1.8.9] RTG — Realistic Terrain Generation — http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2524489 Link to comment Share on other sites More sharing options...
thebest108 Posted November 22, 2015 Share Posted November 22, 2015 No idea m8, but that's a sick mod you got there please update to 1.8/1.9 Quote "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ Link to comment Share on other sites More sharing options...
jabelar Posted November 22, 2015 Share Posted November 22, 2015 Well, if they both extend a common class then maybe you can rely on that so then you wont get the cast error. The only time you should need to differentiate between the two chunk managers in code is if you're calling a method that doesn't @override the superclass. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/ Link to comment Share on other sites More sharing options...
WhichOnesPink Posted November 24, 2015 Author Share Posted November 24, 2015 Well, if they both extend a common class then maybe you can rely on that so then you wont get the cast error. The only time you should need to differentiate between the two chunk managers in code is if you're calling a method that doesn't @override the superclass. That's why it's being cast - because there are methods in RTG's chunk manager that don't @override WorldChunkManager. I guess I'm still struggling to understand why Wildycraft's chunk manager is being referenced at all if RTG's world type was selected on startup. Isn't that one of the main benefits of using a custom world type? To ensure that your own chunk managers and chunk providers are used? I suppose I could do a check to see if Wildycraft is loaded, and not cast it if it is, but that feels super hacky. Quote [1.7.10] [1.8.9] RTG — Realistic Terrain Generation — http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2524489 Link to comment Share on other sites More sharing options...
Elix_x Posted November 24, 2015 Share Posted November 24, 2015 World Types also have ids. I may be happenning because willdycraft loads before and takes id that your world type has before. So now all old worlds with your world type will have wildycraft world type. This may also happen with other mods and other types though. Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones Link to comment Share on other sites More sharing options...
WhichOnesPink Posted November 25, 2015 Author Share Posted November 25, 2015 World Types also have ids. I may be happenning because willdycraft loads before and takes id that your world type has before. So now all old worlds with your world type will have wildycraft world type. This may also happen with other mods and other types though. In 1.7.10, world type IDs are created dynamically via getNextId(), and the crash happens when launching a new world, so... I don't think it's got anything to do with world type IDs conflicting. I still haven't figured out what's causing this, but I've discovered that this same crash occurs when Wildycraft is installed alongside ATG, which is another mod that uses a custom world type, so... either Wildycraft is doing something wrong, or both RTG and ATG are doing something wrong. I don't really care who's to blame here, I just wish I knew what was happening behind the scenes. Thanks to everyone who tried to help - I'll post an update if I ever get to the bottom of it. Quote [1.7.10] [1.8.9] RTG — Realistic Terrain Generation — http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2524489 Link to comment Share on other sites More sharing options...
Recommended Posts
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.