Jump to content

Recommended Posts

Posted

Hi all,

 

I was looking to ignore invalid Minecraft certificates (param: Dfml.ignoreInvalidMinecraftCertificates=true) in order for a few mods to work in a modpack I'm in the process of making. However, I can not find a place to put launch parameters in. Am I missing something here, or is it not possible?

 

Thanks in advance.

Posted (edited)

To do this you need to open up the modpack.jar and insert that param into the versions.json. In the version.json file close to the top there will be a line that looks like this:
 

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

Simply add that param  into that line. If you wanted to add any arguments to be passed to java, you would also want to include the second line with whatever arguments you wanted added. You would put the arguments you wanted passed to java on a separate line.
So, it would look something like this:

"minecraftArguments": "--username ${auth_player_name} --session ${auth_session} --version ${version_name} --gameDir ${game_directory} --assetsDir ${game_assets} -Dfml.ignoreInvalidMinecraftCertificates=true --tweakClass com.mumfrey.liteloader.launch.LiteLoaderTweaker --tweakClass cpw.mods.fml.common.launcher.FMLTweaker"
"javaArguments": "<java args here>"
Edited by PBlock96
Posted

Thanks! It worked for me.

Just a note for anyone else, there is a comma at the end of the line in the code tags.

Posted

To do this you need to open up the modpack.jar and insert the launch params that you want into the versions.json. In the version.json file close to the top there will be a line that looks like this:

 

"minecraftArguments": "--username ${auth_player_name} --session ${auth_session} --version ${version_name} --gameDir ${game_directory} --assetsDir ${game_assets} --tweakClass com.mumfrey.liteloader.launch.LiteLoaderTweaker --tweakClass cpw.mods.fml.common.launcher.FMLTweaker"
Simply add the param you want passed into that line.

So, it would look something like this:

"minecraftArguments": "--username ${auth_player_name} --session ${auth_session} --version ${version_name} --gameDir ${game_directory} --assetsDir ${game_assets} -Dfml.ignoreInvalidMinecraftCertificates=true --tweakClass com.mumfrey.liteloader.launch.LiteLoaderTweaker --tweakClass cpw.mods.fml.common.launcher.FMLTweaker"
"javaArguments": "<java args here>"

 

While passing arguments works for -Dfml tag you need to append a new key:value pair for javaArguments

Posted

 

While passing arguments works for -Dfml tag you need to append a new key:value pair for javaArguments

Edited the original post to include that so that if someone reads this they wont think thats how you pass arguments to java.

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...