You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your suggested enhancement related to a problem? Please describe.
It's not directly related to a specific issue or bug, yet it makes it hard to share instances as we have to hardcode things like instance directory path or the Java binary executable path.
The simplest solution is to simply replace the supported variables like $INST_MC_DIR with something like C:\Users\%USERPROFILE%\AppData\Roaming\com.modrinth.theseus\profiles\Test1on Windows for example, the instance directory path is already available in the current code, we just have to replace it or pass it to for example, allow using it in the commands to run a JAR file that exists in the instance directory.
I suggest to support the following for compatibility:
$INST_NAME: The name of the instance
$INST_ID: The name of the instance's root directory
$INST_DIR: The absolute path to the instance directory
$INST_MC_DIR: Alias for $INST_DIR
$INST_JAVA: The absolute path to the java executable used for launch
$INST_JAVA_ARGS: The JVM parameters used for launch
As they are widely supported in launchers like MultiMC, Prism Launcher, and even other launchers that are not based on MultiMC.
Describe alternatives you've considered
For now, we will have to hardcode the full path to the Java installed on the launcher and the instance path, making it hard to share with other users.
Is your suggested enhancement related to a problem? Please describe.
It's not directly related to a specific issue or bug, yet it makes it hard to share instances as we have to hardcode things like instance directory path or the Java binary executable path.
See MultiMC Custom Commands for details.
Describe the solution you'd like
The simplest solution is to simply replace the supported variables like
$INST_MC_DIR
with something likeC:\Users\%USERPROFILE%\AppData\Roaming\com.modrinth.theseus\profiles\Test1
on Windows for example, the instance directory path is already available in the current code, we just have to replace it or pass it to for example, allow using it in the commands to run a JAR file that exists in the instance directory.I suggest to support the following for compatibility:
$INST_NAME
: The name of the instance$INST_ID
: The name of the instance's root directory$INST_DIR
: The absolute path to the instance directory$INST_MC_DIR
: Alias for $INST_DIR$INST_JAVA
: The absolute path to the java executable used for launch$INST_JAVA_ARGS
: The JVM parameters used for launchAs they are widely supported in launchers like MultiMC, Prism Launcher, and even other launchers that are not based on MultiMC.
Describe alternatives you've considered
For now, we will have to hardcode the full path to the Java installed on the launcher and the instance path, making it hard to share with other users.
Additional context
Examples of launchers that support this feature:
Related issues:
The text was updated successfully, but these errors were encountered: