Jump to content

Problem with custom launcher


lada125

Recommended Posts

I am creating my own multilauncher. I have completed the basics of the launcher and started adding features, running Minecraft with Minecraft Forge works fine with my launcher, but the problem is when I added Shortcut feature. So there wouldn't be a problem with that feature, but the problem is when i have MCP with my mod installed.

 

I have no idea why, but when Forge is launched throught the my launcher shortcut, it loads my mod from MCP causing Minecraft to crash even if the MCP is in another location then shortcut, launcher or forge. The error is: "java.lang.IllegalArgumentException: duplicate key: *mod name*"

Shotcut refers to my launcher with arguments, that my program accepts and uses them to launch the correct Minecraft.

 

No others mods then forge are installed.

 

And my question is: Why is forge loading my MCP mod?

Link to comment
Share on other sites

Because you're telling it that the mcp mods folder is the folder that you want to load mods from.

See the log, it prints out where it is loading from.

Your launcher is probably borked up.

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

I taked a look at the log and saw the problem. It was loading mods from where the shortcut was. That explains why when i run it directly from my launcher it tried to load mods from the folder where is the EXE located (no mods are there). But with the shortcut it was trying to load mods from where is the shortcut located (Desktop), where is also MCP located (but in two subfolders) and it loaded my mod from it.

 

So in the launcher I set the process working directory and that fixed it.

 

Thank you very much :)

(I gave you +1 Thanks)

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.

Announcements



×
×
  • Create New...

Important Information

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