Jump to content

Recommended Posts

Posted

I'm attempting to combine all my launchers under the new vanilla launcher.  I want to have an archived copy of my old FTB/Tekkit/TerraFirmaCraft worlds without keeping old launchers around, and I think this is possible with the new profile system.

 

The thing is, older Forge versions don't have an installer that works with the new launcher.  I've worked out that you can install them manually following instructions in this thread.  (Copy "versions" folder, install Forge, update json).  The only trouble is that Forge still wants to install to .minecraft in AppData, even if you've set a profile up in another directory.  I was wondering if there's a parameter I can pass Forge to look in a different folder for mods/configs instead, otherwise I can only have one old Forge install.

 

The closest solution I've come up with is running the launcher via a batch file that temporarily sets AppData elsewhere.  It's not very elegant though.  I've read that it may be possible to set a different path through Java reflection but that's beyond my abilities.  I was really hoping there'd be a parameter I could use instead.

 

Do you folks have any suggestions on how to accomplish this?  It's much appreciated, and I'll gladly create a guide if I get it figured out.  Thanks.

Posted

-Dminecraft.applet.TargetDirectory=C:\Users\Lex\AppData\Roaming\.minecraft\151

Try that in the JVM args.

Or you may need to find some wrapper. The older versions were created before the new launcher so there was no way we could predict how they would work. Combine that with the fat that we officially don't support them, we havent written a wrapper around them for the new launcher.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
  On 1/18/2014 at 8:17 PM, LexManos said:

Try that in the JVM args.

Just tried it, but it appears to fail if I include it in the Profile JVM settings.  It is ignored if I add it to the .json file arguments.  Here's the crash log:

 

[spoiler=Log]

[14:10:16 INFO]: Minecraft Launcher 1.3.8 (through bootstrap 5) started on windows...

[14:10:16 INFO]: Refreshing local version list...

[14:10:16 INFO]: Current time is Jan 18, 2014 2:10:16 PM

[14:10:16 INFO]: System.getProperty('os.name') == 'Windows 8'

[14:10:16 INFO]: System.getProperty('os.version') == '6.2'

[14:10:16 INFO]: System.getProperty('os.arch') == 'amd64'

[14:10:16 INFO]: System.getProperty('java.version') == '1.7.0_25'

[14:10:16 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation'

[14:10:16 INFO]: System.getProperty('sun.arch.data.model') == '64'

[14:10:16 INFO]: Refreshing remote version list...

[14:10:16 INFO]: Refresh complete.

[14:10:16 INFO]: Loaded 6 profile(s); selected 'Test'

[14:10:16 INFO]: Refreshing auth...

[14:10:16 INFO]: Logging in with access token

[14:10:24 INFO]: Getting syncinfo for selected version

[14:10:24 INFO]: Queueing library & version downloads

[14:10:24 INFO]: Download job 'Version & Libraries' started (16 threads, 11 files)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.0\lwjgl-2.9.0.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.0\lwjgl_util-2.9.0.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-all\4.1\asm-all-4.1.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.5\jopt-simple-4.5.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl-platform\2.9.0\lwjgl-platform-2.9.0-natives-windows.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.5\launchwrapper-1.5.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar for job 'Version & Libraries'... (try 0)

[14:10:24 INFO]: Attempting to download C:\Users\Wes\AppData\Roaming\.minecraft\versions\1.4.7-Forge6.6.2.534\1.4.7-Forge6.6.2.534.jar for job 'Version & Libraries'... (try 0)

[14:10:25 INFO]: Download job 'Resources' skipped as there are no files to download

[14:10:25 INFO]: Job 'Resources' finished successfully (took 0:00:00.000)

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\versions\1.4.7-Forge6.6.2.534\1.4.7-Forge6.6.2.534.jar for job 'Version & Libraries': Couldn't connect to server (responded with 403) but have local file, assuming it's good

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl-platform\2.9.0\lwjgl-platform-2.9.0-natives-windows.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.5\launchwrapper-1.5.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.0\lwjgl-2.9.0.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-all\4.1\asm-all-4.1.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.0\lwjgl_util-2.9.0.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.5\jopt-simple-4.5.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Finished downloading C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar for job 'Version & Libraries': Local file matches local checksum, using that

[14:10:25 INFO]: Job 'Version & Libraries' finished successfully (took 0:00:00.489)

[14:10:25 INFO]: Launching game

[14:10:25 INFO]: Looking for old natives & assets to clean up...

[14:10:25 INFO]: Unpacking natives to C:\Users\Wes\AppData\Roaming\.minecraft\versions\1.4.7-Forge6.6.2.534\1.4.7-Forge6.6.2.534-natives-27535127278243

[14:10:25 INFO]: Reconstructing virtual assets folder at C:\Users\Wes\AppData\Roaming\.minecraft\assets\virtual\legacy

[14:10:25 INFO]: Launching in D:\Dropbox\Games\Minecraft\My Profiles\Test

[14:10:25 INFO]: Half command: D:\Programs\Java x64\bin\javaw.exe -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -Dminecraft.applet.TargetDirectory=D:\Dropbox\Games\Minecraft\My Profiles\Test -Djava.library.path=C:\Users\Wes\AppData\Roaming\.minecraft\versions\1.4.7-Forge6.6.2.534\1.4.7-Forge6.6.2.534-natives-27535127278243 -cp C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.5\launchwrapper-1.5.jar;C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.5\jopt-simple-4.5.jar;C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-all\4.1\asm-all-4.1.jar;C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\Wes\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.0\lwjgl-2.9.0.jar;C:\Users\Wes\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.0\lwjgl_util-2.9.0.jar;C:\Users\Wes\AppData\Roaming\.minecraft\versions\1.4.7-Forge6.6.2.534\1.4.7-Forge6.6.2.534.jar net.minecraft.launchwrapper.Launch

[14:10:25 INFO]: Client> Error: Could not find or load main class Profiles\Test

[14:10:25 ERROR]: Game ended with bad state (exit code 1)

[14:10:25 INFO]: Deleting C:\Users\Wes\AppData\Roaming\.minecraft\versions\1.4.7-Forge6.6.2.534\1.4.7-Forge6.6.2.534-natives-27535127278243

[14:10:25 INFO]: Ignoring visibility rule and showing launcher due to a game crash

 

 

 

So "Could not find or load main class Profiles\Test".  This profile is loading Forge 1.4.7.  No-go, then?

 

If it's relevant, .minecraft is actually pointing to my Dropbox so I can sync between PCs.  Symbolic links are the best.

  Quote
The older versions were created before the new launcher so there was no way we could predict how they would work.

Entirely understandable.  I know I'm playing with unsupported stuff.  Thanks for your help.

Posted

If you have paths with spaces, they need to be wrapped in quotes.

Also I said JVM args, not program args.

6pNDz.png

I can load 1.5.2 that way just fine.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

That did the trick.  Can't believe I missed the space in the path.  Haha, just spent two hours converting it all to MultiMC format.  Oh well, learning experience.  I'm going to create a proper guide if that's okay.  I figure others may also want to set everything up through the vanilla launcher.

 

Thanks man.

 

---

 

edit: The "Tutorials" redirect goes to a Wiki and looks to be aimed at devs, not users.  Which subforum would be ideal for a user-focused tutorial?  I think I'll post to Forge General Discussion and you guys can move it if there's a better spot.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello All,  Relatively new to this and after playing for a few hours whenever someone enters the nether the entire server will crash and my friend and I are at a bit of a loss. Deleting player data solves the issues but it still persists whenever someone enters even after deleting the DIM-1 folder. Paste: https://pastebin.com/REbpJVqe Thanks!   -Mitchell
    • Add the crash-report or latest.log (logs-folder) with sites like https://mclo.gs/ and paste the link to it here  
    • Cracked Launchers are not supported
    • Hi, I have a problem in minecraft java (only in forge 1.20.1), When I start the game after a moment the game crashed with code 1 this only in forge 1.20.1 , I tried to reinstall java, Upgrade java to 17, update the drivers to the latest version, downgrade the drivers to the pervious version, deleting .minecraft and reinstall it , but none of these ways working.   here is the log:   [Launcher] Launching Minecraft... I'm hiding! mods after C:\Users\Windows\AppData\Roaming\.minecraft\mods\tl_skin_cape_forge_1.20_1.20.1-1.32.jar [InnerMinecraftServersImpl]  search changers of the servers read servers from servers.dat [] [InnerMinecraftServersImpl]  prepare inner servers save servers to servers.dat [Launcher] Game skin type: TLAUNCHER [Launcher] Starting Minecraft Forge 1.20.1... [Launcher] Launching in: C:\Users\Windows\AppData\Roaming\.minecraft Starting garbage collector: 96 / 227 MB Garbage collector completed: 60 / 214 MB [Launcher] Processing post-launch actions. Assist launch: true =============================================================================================== [05:29:03] [main/INFO]: ModLauncher running: args [--username, *********, --version, Forge 1.20.1, --gameDir, C:\Users\Windows\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Windows\AppData\Roaming\.minecraft\assets, --assetIndex, 5, --uuid, *************************************, --accessToken, вќ„вќ„вќ„вќ„вќ„вќ„вќ„вќ„, --clientId, null, --xuid, null, --userType, mojang, --versionType, modified, --width, 925, --height, 530, --launchTarget, forgeclient, --fml.forgeVersion, 47.3.22, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] [05:29:04] [main/INFO]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.12 by Oracle Corporation; OS Windows 10 arch amd64 version 10.0 [05:29:15] [main/INFO]: Loading ImmediateWindowProvider fmlearlywindow [05:29:24] [main/INFO]: Trying GL version 4.6 [05:29:60] [main/INFO]: Requested GL version 4.6 got version 4.6 [05:29:67] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/Windows/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%23100!/ Service=ModLauncher Env=CLIENT FATAL ERROR in native method: Thread[pool-2-thread-1,5,main]: No context is current or a function that is not available in the current context was called. The JVM will abort execution.     at org.lwjgl.opengl.GL11C.nglGetString(org.lwjgl.opengl@3.3.1+7/Native Method)     at org.lwjgl.opengl.GL11C.glGetString(org.lwjgl.opengl@3.3.1+7/GL11C.java:978)     at net.minecraftforge.fml.earlydisplay.DisplayWindow.initRender(fmlearlydisplay@1.20.1-47.3.22/DisplayWindow.java:209)     at net.minecraftforge.fml.earlydisplay.DisplayWindow.lambda$start$5(fmlearlydisplay@1.20.1-47.3.22/DisplayWindow.java:292)     at net.minecraftforge.fml.earlydisplay.DisplayWindow$$Lambda$437/0x000001fab120a618.run(fmlearlydisplay@1.20.1-47.3.22/Unknown Source)     at java.util.concurrent.Executors$RunnableAdapter.call(java.base@17.0.12/Executors.java:539)     at java.util.concurrent.FutureTask.run(java.base@17.0.12/FutureTask.java:264)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(java.base@17.0.12/ScheduledThreadPoolExecutor.java:304)     at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@17.0.12/ThreadPoolExecutor.java:1136)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@17.0.12/ThreadPoolExecutor.java:635)     at java.lang.Thread.run(java.base@17.0.12/Thread.java:842) Here I am! [VersionManager] Refreshing versions locally... [VersionManager] Versions has been refreshed (6 ms) [Launcher] Launcher exited. [Launcher] Minecraft closed with exit code: 1 flush now [Launcher] [Crash] Signature "Bad video drivers" matches! [Crash] Signature "Bad video drivers" matches! [Launcher] [Crash] Crash has been recognized! [Crash] Crash has been recognized! flush now
  • Topics

×
×
  • Create New...

Important Information

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