toolbox4minecraft / amidst

Advanced Minecraft Interface and Data/Structure Tracking
GNU General Public License v3.0
2.13k stars 240 forks source link

Cannot proceed using dummy directories/launcher_profiles.json with MultiMC through command line #1115

Open sedrosken opened 1 year ago

sedrosken commented 1 year ago

Per issue 761 I've created the requisite dummy directories and launcher_profiles.json under D:\Games\MultiMC so Amidst will recognize it as a valid .minecraft folder. Upon realizing I needed to specify the jar and json from their normal directories under the MultiMC folder, I can get Amidst to launch, but it fails to retrieve a profile list presumably due to the empty launcher_profiles.json. I'm unable to proceed any further. What would I need to put in that json to get a "default" profile that I could use to proceed?

Command line is thus:

java -jar .\amidst-v4-7.jar -mcjar D:\MultiMC\libraries\com\mojang\minecraft\1.1\minecraft-1.1-client.jar -mcjson D:\MultiMC\meta\net.minecraft\1.1.json -mcpath D:\Games\MultiMC

lightchao0 commented 1 year ago

Having the same issue, running from .bat since I am command line illiterate. .bat is as follows java -jar E:/Minecraft/Amidst/amidst-v4-7.jar -mcpath E:\Minecraft\MultiMC the following error is given as well [error] Error reading launcher_profiles.json [error] amidst.parsing.FormatException: result was null at amidst.parsing.json.JsonReader.read(JsonReader.java:46) at amidst.parsing.json.JsonReader.readLocation(JsonReader.java:26) at amidst.mojangapi.file.service.DotMinecraftDirectoryService.readLauncherProfilesFrom(DotMinecraftDirectoryService.java:95) at amidst.mojangapi.file.MinecraftInstallation.readLauncherProfiles(MinecraftInstallation.java:65) at amidst.gui.profileselect.ProfileSelectWindow.scanAndLoadProfiles(ProfileSelectWindow.java:129) at amidst.threading.WorkerExecutor.lambda$run$15(WorkerExecutor.java:90) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)