Posted August 6, 201312 yr You don't really need the code, besides this.. but this is in the main part of my package, and I made a WorldGeneratorFisherman.java class and no errors in it, but I always get an error on GameRegistry.registerWorldGenerator(new WorldGeneratorFisherman()); This code works, but if you need it, my Generation. http://gw.minecraftforge.net/8UKL
August 6, 201312 yr You don't really need the code if you're asking the question, you should probably should print the code... anyway from the image it looks(maybe that not it) like the call isnt even made from inside a function and in any case this kind of error is usually related to syntax error how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 6, 201312 yr Author You don't really need the code if you're asking the question, you should probably should print the code... anyway from the image it looks(maybe that not it) like the call isnt even made from inside a function and in any case this kind of error is usually related to syntax error There isn't any other code for this, that's the only line I have for the World Generation, and my class file I linked to.. http://gw.minecraftforge.net/8UKL The rest of the code in my file is for the items, and textures. I'm just asking why isn't this command i'm using working.. and is there any other one I can use so it wouldn't give me a syntax error. It says to put in an = sign after the .registerWorldGeneration but then it says to add a comma, and then it doesn't work again. So I'm not quite sure what it's doing atm. I hope I made sense lol.. - Fayne37
August 6, 201312 yr syntax error mean you are making mistake while TYPING not code wise i wanna see the class that the image represent the one with an obvious method called getVersion and where you call GameRegistry.registerWorldGenerator the WHOLE class, not only the part you think is interresting how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 6, 201312 yr Author I linked it twice already.. learn to click on links. I'm not linking it again. Also; I stated before, it has nothing to do with the class.
August 6, 201312 yr neither of your links have what i asked for it has nothing to do with the class. well then if you know whats the problem why are you asking for help ? im willing to bet 20 bucks it HAS something to do with the class because its a "syntax error" not a filenotfound error, not a null pointer, not a illegal argument exception, cannot cast X to Y syntax how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 6, 201312 yr Author I'm asking for help to fix it.. is that such a problem? I'm not asking what is my problem, I asked for help to fix it.
August 6, 201312 yr I'm asking for help to fix it.. is that such a problem? I'm not asking what is my problem, I asked for help to fix it. yes because you cannot provide the problem which is obviously is the class with getVersion and the call to GameRegistry.registerWorldGenerator(IWorldGenerator) how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 6, 201312 yr if I'm useless please show me the code and tell ill let you say anything you want about me btw you're the one asking about a SYNTAX error how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 6, 201312 yr Author For one, I've linked the code twice, and you're failing to realize that that's the class that it compliments, and you keep asking for it over and over, and yes I'm asking about a Syntax Error, due to the fact there's no other reason than it not being the expected code for 1.5.2 Forge. I'm asking for other variations of the code, for a fix -- as I've said in recent posts. Now "please" gtfo my post or help me.
August 6, 201312 yr ok i click on the link and search for "getVersion" and/or "GameRegistry" its nowhere to be found ... so now can you please link us to the class that makes the call to GameRegistry.registerWorldGenerator(IWorldGenerator); its also a class that has a getVersion() method, which both of those link DONT have how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 6, 201312 yr Please give us your main mod file (the one with the @Mod annotation). The error is originating from in there, so we need that file.
August 6, 201312 yr it might be the main mod but it might be another one, what we need is the file with "GameRegistry.registerWorldGenerator()" its probably the main mod file but maybe not how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 6, 201312 yr Author Actually, I fixed the error myself by replacing it into the public void load() {}, you can delete this topic.
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.