Pierce01 / MinecraftLauncher-core

Lightweight module that downloads and runs Minecraft using javascript / NodeJS
MIT License
359 stars 82 forks source link

Program stops directly after downloading assets. #45

Closed Hallzmine closed 4 years ago

Hallzmine commented 4 years ago

I am trying to use this npm package inside of an electron app to start minecraft but instead it refuses to launch. Here is my terminal log https://pastebin.com/pMjGEbaz My code is simply https://pastebin.com/sJKs8rt8

NoXeDev commented 4 years ago

The program stopping when the Auth parameter is invalid, change your auth parameter, you can delete your password for disable online, or if you have buy minecraft, enter your good auth.

Bricklou commented 4 years ago

image Please separate the auth process from the launch process. You need to created an error handle otherwise your program won't be able to work fine.

You can also come on the discord server for more support there: https://discord.gg/8uYVbXP

Pierce01 commented 4 years ago

Hey there, going off of what Bricklou said, in PRODUCTION settings it's best you handle authentication outside the launch object, however, if you're just testing you should be fine. Your error is caused by an incorrect password, so simply remove ,"password" in getAuth to fix your issue. Thanks for using my project :)