Jump to content

hbh7

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by hbh7

  1. I thought that as well, and i started that last night, just need to finish it today. Plus it was a bit outdated. I will post results when i am done dealing with an unfortunate surprise on my PC... :L
  2. No, i have never heard of that class before, it means nothing to me, except its keeping my mod from working correctly. I have no idea what code causes it, as stated above Most existing code has been commented out in search for the cause.
  3. Hello, i have a weird error after testing some code. I commented out anything that i thought would matter, and all my changes i made since i discovered this error... While trying to fix it i commented out nearly half my mod... But nothing seems to work. All changes I made were undone as far as I can see. Any idea what it could mean? I am not sure what classes you may need to help me, so just ask for any that may be needed, and I will upload them and post a link. The error occurs every time I either load a world, or create a new one. Here is where the error happens in the log. http://paste.minecraftforge.net/view/ef9bde8a Any ideas? Thanks in advance.... I can't do anything until i get this fixed....
  4. Yeah, i am hoping i can do that with the many blocks and items classes i will do in the future, it would be awesome to have them in 1 class. Not sure where you may have saw a weirdly named variable/method.... Unless you are referring to the Block1, etc thing, which was a test : P I am currently working with 3 other people, sorta. They help out test and sometimes make some textures for me, but none of them know how to program so that's all up to me
  5. I think one of the "quick fixes" i clicked opened it and did something to it. Even with a brand new block.java, the error is still there.... i am going to ignore it for now, i don't think it means anything if its the same on a brand new one. A while back when I was getting into Lua in the computercraft mod, once i discovered functions, i was like "OMG THIS IS AMAZING!" So im betting i will have similar encounters. I would never have known I had a PM unless you pointed it out I never look there.
  6. Well i will keep playing with it, I may mess things up, (all the time ), but i don't give up, and if i do, i fix what i messed up first. Not the point, I will continue trying to get it to work. Currently, it has no errors, but minecraft's block.java does :L gotta fix that (no idea how the heck that got messed up... i didn't touch it...) Edit: forgot i had a copy of a fresh MCP and Forge setup, yay!
  7. Yeahhhhh in what i was trying, i missed like, well, all of it... Edit: Like usual with me, when i try to do something, I end up causing more damage than good.... well, time to decompile minecraft again and get a new Block.java.... No idea what i clicked that made it have an error now.... it wasn't even open.... Anyway, the code you gave, had many errors that i am trying to fix... I may have got it....
  8. OHHHH, it all makes sense now... As you may have noticed, i tend to read things wrong... i can't help it either... its been a problem my whole life... even if reading slow Anyways, that one class, would it look like mojang's block.class? Or just like any old block class that i would have now?
  9. If i do this, "Block Block1 = new MyBlock1(1165, "Blank1");" it still asks me to create a class for it, (as usual) am i missing something? Side question, can you use .SetName("Block name thats an example") instead of LanguageRegistry.addName(block1, "Block 1")?
  10. I meant principal as the same process. Principal may not have been the right word... Same idea may have been better wording. Anyways, So what you are saying, is outside the "public class hbhbtm {}", i would write, "public class blocknewblock1 {" and then put the code that i would have put in the actual class, inside the brackets? (btw, some family came over, so that's why i had a late response) Anyways, yeah i have a tendency to just "wing it" with a lot of things, but usually i can figure it out, and if i cant, even after searching google, well, here i am.... The large portion isn't that much, its just a lot of repetitive things, adding like 50 items. I just chose to do it all at once, since i was going to do it all anyways. Also, i started this a few days after i made this topic, I had no idea it would effect this... (time wise) Also, i am about half way done with that large portion. I just saved the most boring and time consuming for last(creating all the classes) Edit: I actually did have some programming background, not a ton, but some.(python, lua, and a little java) So I guess I wasn't really "winging" it with this.
  11. Ah that makes more sense, haha. At the top, i will probably point out what i did wrong, so anyone else who may be looking at this knows how to fix it. Erm, I do not believe I have... I said i saw a post on how, but I didn't read it... Now I cant find it and i regret not bookmarking it.... Anyways, does the same principal apply for items by any chance?
  12. wait a second, if there was 50 classes, shouldn't that mean 50 blocks, not 23-30.... i'm confused... Where did ya get those numbers?
  13. Oh by the way, it works! *so glad for the /** and */ commenting, way better than // every line for new items...* Thanks so much!
  14. HECK YES I WOULD LOVE THAT SO MUCH!!!!!!!! But they are items.... Besides that, yeah everything you just said. I only saw that you can do that for blocks.... Please say you can prove me wrong...
  15. Nope, i need to get all the importing and class writing done before i will know if this works. But since all the errors in the block registering code is gone, i think this problem is finally solved hmm, wonder if i can comment the code out that needs finishing..... Ok, i will do that so i can see if it works sooner.
  16. Thank you for the link, once i finish the large part of my mod that i'm determined to finish before I focus on something else, I will certainly focus my time on the info you sent. I have a lot planned for my mod and being able to solve things like this myself would be awesome. Also, I figured about as much with that random class I found. But for the heck of it, I figured i'd mention it. I have been so busy changing things and responding, that i haven't even got a chance to try it out. Sad part of this all is, if its not in eclipse, there probably isn't a fix for this....... Not one that I can see anyways, if the class isn't even there... Also again, (you keep posting replies, so i am just responding to them all in parts, so this is one big reply) I was kinda thinking the same too, but Bishamonten had it in his example code, so I added it in. I am about to remove it now, and i will see what happens. Unfortunately, due to the timing of the responses i have gotten on this, I must finish the code i am writing right now (that will take a while, a lot of typing, class creation, and other things, basically about 50 classes to create and make functional... yeah a lot to do) before minecraft will even start i believe... I will see now, if it works, i will be very thrilled, and will thank every reply you gave, because you didn't just leave one response and leave, you provided more help than that, and stayed along until it worked. So thank you tons for that, it means a lot.
  17. Ahhhh it feels nice knowing i'm not crazy, and that its not just me it wont work for. The tutorial i got it from never mentioned anything about any of this, as well as any tutorial i ever saw, none said anything about preInit, or Init. Unless I just have bad luck with tutorials... Anyways, a quick google search finds me this https://svn.forgerock.org/openam/tags/10.0.1/opensso/products/amserver/source/com/iplanet/am/sdk/ldap/EventManager.java Now i'm just wondering if i put it in my project files if i can import it and if this will all go away... With the more and more blocks i am adding as time goes on, the errors are just piling up in the log... D: I will post results in a few minutes. Also, the tutorial i got the inits and such from was a few replies to this topic ago...
  18. My original thought was to import it, but it does not give a quickfix to.... Which led me to believe that was not it. I will google where the class is located to manually import it. Yeah that sounds awesome. What/where/when is that? All the teaching i have had is tutorials, youtube, a website dedicated to teaching java, and some examples. The rest I learned/taught myself. So something like that would be awesome. Can you send me a link?
  19. I probably do... its been a while since I have had any sort of java tutorial, so I guess i forgot some things. Your explanation clears things up perfectly, that all makes sense (probably because I learned this at one point in time), I see what I have done wrong. But what I still ( ) don't understand is what to do with the EventManager underlining I described a few reply's ago.
  20. I edited my last message, if you didn't see. That may change your answer, i made a typo
  21. "Did my explanations confuse you?" yes... a bit... " if you need clarifications, don't be afraid to ask me to do so!" ok, would you mind clarifying a bit? I do not really know what you mean by that. They aren't in any brackets({}) that i can see, unless you are referring to the 2 }'s at the end, which have been there as long as i can remember... I don't really know what the 1st one goes to, but I know the last one closes the "public class hbhbtm {" at the beginning... I am moving things around now, I will post results in about 5-10 mins in an edit. Edit: Moving PreInit and Init in between the last 2 brackets seemed to clear up most of the errors, except 1. In the line, "public static EventManager eventManager = new EventManager();".(Underlined words are underlined in eclipse) There are 2 errors. If moused over, they both have the message "EventManager cannot be resolved to a type". It doesn't give any options that i think are helpful... Updated code: http://paste.minecraftforge.net/view/8e72d532
  22. Ok, i fixed the typing like larsgerrits pointed out, it got rid of one of the errors. But the other ones remain. I would show the whole class, except for 2 things. 1. Its about 550 lines, a lot to go through... 2. Its only when i have that code in that it gives errors, if i comment out the preinit and init stuff, public static EventManager eventManager = new EventManager(); @EventHandler public void preInit(FMLPreInitializationEvent event) { *code* } and @EventHandler public void load(FMLInitializationEvent event) { *code* } Then it works fine, which leads me to believe its not misplaced {}'s, and i have tried putting ;'s where eclipse tells me to, but it doesn't help. But if you/anyone really wants to look through all of it, here it is, http://paste.minecraftforge.net/view/0d008a02.
×
×
  • Create New...

Important Information

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