Jump to content

Running old Forge versions under new launcher


SquareWheel

Recommended Posts

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.

Link to comment
Share on other sites

-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

Link to comment
Share on other sites

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.

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • The mobs are moving normally for a second, then freeze, then go back to normal, and this repeats. I describe this as mob lag, bc they stutter as if they were lagging. I don't have the best wifi, but that shouldn't matter since its 10mbps which is enough for a server. I have 8 gigs of ram for it, no optimizations have worked, if there is anything more you may need to help lmk, ill describe. The modlist is pretty hefty: VS_ClockworkSurvivalSupportV1.4 aether-1.20.1-1.2.0-neoforge.jar alexsdelight-1.5.jar alexsmobs-1.22.7.jar appleskin-forge-mc1.20.1-2.5.1.jar backpacked-forge-1.20.1-2.2.5.jar balm-forge-1.20.1-7.2.1.jar bettervillage-forge-1.20.1-3.2.0.jar BiomesOPlenty-1.20.1-18.0.0.598.jar botarium-forge-1.20.1-2.3.2.jar CGM-Unofficial-1.4.11+Forge+1.20.1.jar citadel-2.5.2-1.20.1.jar clockwork-1.20.1-0.1.2-forge-05f5d5fbbb.jar configured-forge-1.20.1-2.2.2.jar connectivity-1.20.1-4.9.jar create-1.20.1-0.5.1.f.jar create-new-age-forge-1.20.1-1.1.2.jar createarmoryv0.6.1n.jar createbigcannons-forge-1.20.1-0.5.3.b.jar createchunkloading-1.6.0-forge.jar createdeco-2.0.1-1.20.1-forge.jar createdieselgenerators-1.20.1-1.2h.jar createendertransmission-2.0.7-1.20.1.jar create_misc_and_things_ 1.20.1_4.0A.jar cristellib-1.1.5-forge.jar cupboard-1.20.1-2.3.jar curios-forge-5.7.0+1.20.1.jar destroy-1.20.1-0.8.jar Dungeon Crawl-1.20.1-2.3.14.jar FallingTree-1.20.1-4.3.4.jar FarmersDelight-1.20.1-1.2.4.jar framework-forge-1.20.1-0.6.26.jar geckolib-forge-1.20.1-4.4.2.jar InsaneLib-1.12.1-mc1.20.1.jar Jade-1.20.1-forge-11.8.0.jar jei-1.20.1-forge-15.3.0.4.jar journeymap-1.20.1-5.9.18-forge.jar JustEnoughResources-1.20.1-1.4.0.247.jar kotlinforforge-4.10.0-all.jar l2library-2.4.23.jar libraryferret-forge-1.20.1-4.0.0.jar macawsbridgesbop-1.20-1.1.jar mcw-bridges-2.1.0-mc1.20.4forge.jar moonlight-1.20-2.9.17-forge.jar morevillagers-forge-1.20.1-5.0.0.jar Mo_ZombiesWave-1.20.1-0.1.0-forge.jar NaturesCompass-1.20.1-1.11.2-forge.jar Placebo-1.20.1-8.6.1.jar refinedstorage-1.12.4.jar soundphysics-forge-1.20.1-1.1.2.jar spark-1.10.53-forge.jar stealing_villagers-forge-1.20.1-1.0.0.jar s_a_b-1.3.0_1.20.1.jar takesapillage-1.0.3-1.20.1.jar TerraBlender-forge-1.20.1-3.0.1.4.jar tombstone-1.20.1-8.6.2.jar Towns-and-Towers-1.12-Fabric+Forge.jar twilightforest-1.20.1-4.3.2145-universal.jar valkyrienskies-120-2.1.3-beta.1.jar veinmining-forge-1.3.0+1.20.1.jar waystones-forge-1.20-14.1.3.jar YungsApi-1.20-Forge-4.0.3.jar YungsBetterDesertTemples-1.20-Forge-3.0.3.jar YungsBetterDungeons-1.20-Forge-4.0.3.jar YungsBetterEndIsland-1.20-Forge-2.0.5.jar YungsBetterJungleTemples-1.20-Forge-2.0.4.jar YungsBetterMineshafts-1.20-Forge-4.0.4.jar YungsBetterNetherFortresses-1.20-Forge-2.0.5.jar YungsBetterOceanMonuments-1.20-Forge-3.0.4.jar YungsBetterStrongholds-1.20-Forge-4.0.3.jar YungsBetterWitchHuts-1.20-Forge-3.0.3.jar YungsBridges-1.20-Forge-4.0.3.jar zaynens_leather_from_rotten_flesh_mod_1.20.1.jar
    • Thank you so much! Unfortunately before reading this I reinstalled my java installer. Now when I try to open the forge installer I receive an error message stating 'Unable to install Java' even though I have definitely downloaded and installed the latest version. Any idea what this could be or how I could fix it?  
    • IT WORKED! THANK YOU!
    • sorry for the stuborn ness ss   test code logs and planks return nothing on minable but i can use the other tags  name minecraft:oak_log BlockTags.LOGS name minecraft:oak_planks BlockTags.PLANKS   it kinda works but its not like like perfect             
    • I'm making a custom modpack for 1.20.1 and everything else seems to work except this Passive skilltree mod. The world loads fine but when I press the keybind to open the mod's GUI, the world immediately saves and crashes with this report: https://pastebin.com/svEPsRty Any help or insight towards the right direction is greatly appreciated!
  • Topics

×
×
  • Create New...

Important Information

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