Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to course page

Forging a Minecraft mod

Basic Minecraft modding with Minecraft Forge

lesson 1, error declareing variable

  • 2014-10-26 09:52:32
    hello all. i recently decided to crack down and try to learn minecraft modding once more. and low and behold, i find these amazing tutorials on youtube.

    however i have a (couple) problems.

    the first is that, following vswe's example in 'Forging a Minecraft mod - Lecture #1, Getting started Part 1', i get an error at line 15 where he has you create a variable to contain the instance (name?)

    the exact error is 'fse cannot be resolved to a type', fse being the variable name (and the only place it's used...).

    it's caused by this line :

        public static fse instance;



    i gather that it cant figure out what type of variable to make this, but this is exactly how it is in the video, and Vswe has no errors....

    i'd /love/ some help here. :D
  • 2014-10-26 09:55:14
    oops. XP. forgot my other issue. that being that apperently @NetworkMod is no longer valid (according to youtube, i havnt gotten that far yet. >.>)

    if this is the case, then a good majority of the first video is no longer useful, and i dont know where that leaves me. all of the things that Vswe did with the @NetworkMod framework, is there another, more current way to do them? can they still be done the same way?
  • 2014-10-26 10:40:31
    erm.... ok, i solved my first issue.

    apperently when using @Instance, the name given in the variable has to bhe the Class name of the mod.

    reference for others:
    http://www.minecraftforge.net/wiki/Tutorials/Making_the_base_mod_file


    "@Instance("modid")
    public static ClassName instance;

    @Instance is the mod instance. It needs to be the same as the Mod ID, otherwise the mod will do funny stuff if the user installs another mod with an error in here. ClassName is the name of your class."
  • 2014-11-06 00:14:39
    ok, so i'm still having the same issues as before. in lesson two, part one, when making the configuration file, i need to reference my iteminfo class. i know i'm giving it a class name now, which was the majority of my problem before, but now it is telling me it cannot resolve iteminfo to a variable. i know i've spelled it properly, case and all. it exists. it's in the same place as in the video (at least i'm pretty sure on that one...)

    i havnt the faintest idea why it's doing this, nor what i can do to fix it. ><
  • Log in or sign up to reply to this thread