Skip to content

Conversation

AHilyard
Copy link

@AHilyard AHilyard commented Oct 3, 2022

Purpose

Forge for Minecraft 1.12.2 and earlier do not fully support relative paths, causing some instances to fail. Here are some easy steps to reproduce the problem:

  1. Create a Forge 1.12.2 instance.
  2. Add the mod "Equipment Compare" to the instance.
  3. Launch the instance.

It can be seen from the latest.log file that Forge has tried to search the same directory twice, once with the relative path and once with a non-normalized absolute path.
Other launchers appear use absolute paths to specify game directory and such, which bypasses this issue.

Approach

Add a check in launchInstance to bypass the relative path string replacement when the Minecraft version is 1.12.2 or lower.

@CLAassistant
Copy link

CLAassistant commented Oct 3, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Eskaan Eskaan added Status: Ready for Review Type: Bug Non fatal problems who can be ignored/worked around labels Oct 4, 2022
@Eskaan
Copy link
Collaborator

Eskaan commented Jan 20, 2023

May this bug be solved by selecting the symlink option in the settings? (I think that is part of the reason we have it)

@Eskaan Eskaan added Status: Awaiting Feedback This will be closed whitout feedback. and removed Status: Ready for Review labels Jan 20, 2023
@RainbowTabitha RainbowTabitha mentioned this pull request Jan 22, 2023
3 tasks
@MrEAlderson
Copy link

Can this be merged already?

@Eskaan
Copy link
Collaborator

Eskaan commented Feb 13, 2023

Awaiting Feedback

@AHilyard
Copy link
Author

May this bug be solved by selecting the symlink option in the settings? (I think that is part of the reason we have it)

I have just tested this and changing startup method to symlink mode does work. I guess this and the other identical issues point to another problem--why is symlink mode not the default if it fixes this problem, is there some downside?

@blarfoon
Copy link
Member

The relative path is used to avoid the "command line too long" issue. Doing this in general could cause it again even with the relative paths. A possible fix would be to only use the absolute path for the game/assets paths?

@AHilyard
Copy link
Author

AHilyard commented Feb 13, 2023

The relative path is used to avoid the "command line too long" issue. Doing this in general could cause it again even with the relative paths. A possible fix would be to only use the absolute path for the game/assets paths?

I thought that issue was fixed in #1384? The path that needs to be specified as an absolute path is the path to the instance folder. I'm guessing all the other paths can be specified relatively, but I don't know for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Awaiting Feedback This will be closed whitout feedback. Type: Bug Non fatal problems who can be ignored/worked around

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants