Jump to content

Bug with game directory forge 1.7.10


nac

Recommended Posts

Hi everyone,

 

I have some issue since many weeks ago. I developed my custom launcher on java which must be work with forge. I get this error:

Quote

2020-06-06 16:20:12,922 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException
2020-06-06 16:20:12,931 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at com.google.common.collect.ObjectArrays.concat(ObjectArrays.java:73)
2020-06-06 16:20:12,932 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:297)
2020-06-06 16:20:12,932 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:221)
2020-06-06 16:20:12,933 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:90)
2020-06-06 16:20:12,933 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:67)
2020-06-06 16:20:12,934 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34)
2020-06-06 16:20:12,935 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:126)
2020-06-06 16:20:12,936 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.launchwrapper.Launch.launch(Launch.java:115)
2020-06-06 16:20:12,937 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
2020-06-06 16:20:12,969 [INFO ] (nlcU.java:run:50285) [16:20:12] [main/ERROR] [FML]: An error occurred trying to configure the minecraft home at /Users/paul/Library/Application for Forge Mod Loader
2020-06-06 16:20:12,969 [INFO ] (nlcU.java:run:50285) java.lang.NullPointerException
2020-06-06 16:20:12,970 [INFO ] (nlcU.java:run:50285)     at com.google.common.collect.ObjectArrays.concat(ObjectArrays.java:73) ~[guava-17.0.jar:?]
2020-06-06 16:20:12,970 [INFO ] (nlcU.java:run:50285)     at cpw.mods.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:297) ~[forge-1.7.10-10.13.4.1614-1.7.10.jar:?]

 

The text on bold is the main issue that I try to solve. 

I have do that in my java code:

 

	public String getUserPath() {
		String home = System.getProperty("user.home");
		if(getOSType() == OS.WINDOWS) {
			return System.getenv("APPDATA");
		}else if(getOSType() == OS.LINUX){
			return System.getProperty("user.home", ".");
		}else {
			return home+"/Library/Application Support";
		}
	}
	
	public String getWorkingDirectory(String name) {
		return getUserPath()+"/"+name;
	}

 

 

 

Edited by nac
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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