Jump to content

How do i set java parameters for launcher?


Block_Blazer

Recommended Posts

Edit the "version.json" file in your modpack.jar.

ok. I tried to do that, but it deleted the parameters.

{
    "minecraftArguments": "--username ${auth_player_name} --session ${auth_session} --version ${version_name} --gameDir ${game_directory} --assetsDir ${game_assets} --tweakClass cpw.mods.fml.common.launcher.FMLTweaker",
    "libraries": [


Do I change "minecraftArguments"?
Link to comment
Share on other sites

  • Discord Moderator

Make sure you aren't editing the version.json file in your bin folder. You need to be changing the one INSIDE the modpack.jar file. As for where to add, it depends on what you are adding. If you are increasing PermSize then yes, it would go in minecraftArguments. If you are adding a library dependency (for LiteLoader in 1.6) then it would go in the libraries section.

Link to comment
Share on other sites

Make sure you aren't editing the version.json file in your bin folder. You need to be changing the one INSIDE the modpack.jar file. As for where to add, it depends on what you are adding. If you are increasing PermSize then yes, it would go in minecraftArguments. If you are adding a library dependency (for LiteLoader in 1.6) then it would go in the libraries section.

ok. I get where I put the arguments now. but im not quite getting exactly where in the version.json I put the arguments. Do I replace minecraftArguments, do I put the arguments within ": after minecraftArguments, or do I add to "--username ${auth_player_name} --session ${auth_session} --version ${version_name} --gameDir ${game_directory} --assetsDir ${game_assets} --tweakClass cpw.mods.fml.common.launcher.FMLTweaker"?

Link to comment
Share on other sites

  • Discord Moderator

For example, if you wanted to increase the PermSize allocation for the client you would make a change like this:

    "minecraftArguments": "--username ${auth_player_name} --session ${auth_session} --version ${version_name} --gameDir ${game_directory} --assetsDir ${game_assets} --tweakClass cpw.mods.fml.common.launcher.FMLTweaker",

becomes

    "minecraftArguments": "--username ${auth_player_name} --session ${auth_session} --version ${version_name} --gameDir ${game_directory} --assetsDir ${game_assets} -XX:MaxPermSize=256m --tweakClass cpw.mods.fml.common.launcher.FMLTweaker",
Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...