Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Sparrow

Sparrow

Members
 View Profile  See their activity
  • Content Count

    4
  • Joined

    September 14, 2013
  • Last visited

    September 23, 2013

Community Reputation

0 Neutral

About Sparrow

  • Rank
    Tree Puncher

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!
  1. Sparrow

    Getting forge to recognize a class

    Sparrow replied to Sparrow's topic in Modder Support

    Yes I'm aware, I'm developing a coremod which modifies base mc files I know, that's what I thought. My mod basically looks for all the .class files in a certain package in the jar. So you just open up the package and iterate through the files, instantiating a new copy of each of them as you go. The problem is that the classloader has not been made aware of the package, and thus refuses to load it. Ok, fair enough, just force the classloader to load a .class file from the package itself (like Module.class) and then it'll load up the package into memory. In the development environment, this works just fine. But as soon as it's simply inserted into a clear .jar file, Forge's classloader fails to pick up the package. I wonder if that's a fault of Forge's or something else.
    • September 23, 2013
    • 4 replies
  2. Sparrow

    Getting forge to recognize a class

    Sparrow posted a topic in Modder Support

    I'm developing a coremod. One of the things this mod does is load all the classes implementing a certain type from a certain package. By default the classloader doesn't recognize a package until it has to load a class from that package. So I force the classloader to be aware of it. In development/eclipse, this works just fine. But once the mod is added into a clean forge jar, the classloader is not finding the package no matter what I do. Some of the things I've tried: Class<Module> someModule = Module.class; //should make the classloader aware try { ClassLoader.getSystemResources("net.*"); //should load the net.sparrow package } catch (IOException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } try { Module.class.getClassLoader().loadClass("net.sparrow.module.Module"); //should FORCE the class to load } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } Package[] knownPacks = Package.getPackages(); //prints all known packages from the classloader //note that it does NOT print aynthing from the packages described above (net.sparrow) for(int i = 0; i < knownPacks.length; i++) { FMLLog.info("Package:" + knownPacks[i], 0); } ArrayList<Class<?>> moduleList = UtilFile.getClassesForPackage(Module.class.getPackage()); //getPackage() is always returning null.
    • September 15, 2013
    • 4 replies
  3. Sparrow

    ModLoader mods + Forge in a Dev Envrionment Not Loading

    Sparrow replied to Sparrow's topic in Support & Bug Reports

    Sure enough that is the case, thanks.
    • September 14, 2013
    • 2 replies
  4. Sparrow

    ModLoader mods + Forge in a Dev Envrionment Not Loading

    Sparrow posted a topic in Support & Bug Reports

    Steps to reproduce: Download the Forge 867 source Install Open up in eclipse Run MC once Add Rei's Minimap Game crashes. The source of this problem seems to be something with FML. I can get this setup to work when I install 867 as a seperate profile to minecraft, add Rei's Minimap, and launch from the launcher so that's why I post here. It seems to be a dev environment problem only. Log: http://pastebin.com/5CPPDm1h
    • September 14, 2013
    • 2 replies
  • All Activity
  • Home
  • Sparrow
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community