Hack Forums
[Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: General Topics (https://hackforums.net/forumdisplay.php?fid=7)
+--- Forum: Entertainment (https://hackforums.net/forumdisplay.php?fid=446)
+---- Forum: Gaming (https://hackforums.net/forumdisplay.php?fid=65)
+---- Thread: [Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher (/showthread.php?tid=5774169)



[Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher - noahs200010 - Dec 24, 2017

This is a brief tutorial on making a .bat file that launches minecraft.


Getting Launch Arguments

To start off we're gonna have to get the minecraft launchers launch arguments.

This can be done either by enabling Command Line in Task Manager by right clicking name and clicking on Command Line.

However Task Manager doesn't allow copy and pasting so its better to use Process Explorer. 

https:][docs.microsoft][com/en-us/sysinternals/downloads/process-explorer

This process is the same either way minus Task Manager having no 

copy feature.


For this tutorial i'm gonna be using Process Explorer.

Start off by opening The Minecraft Launcher and running any version of minecraft i'm gonna be running 1.12.2.

LEAVE IT OPEN!!!

In Process Explorer find MinecraftLauncher.exe ->javaw.exe right click Properties and copy the Command Line text field into Notepad.

In Task Manager find Java™ Platform SE binary and copy the Command Line field into  Notepad.


Get Java Libraries

WHILE Minecraft is still open press Windows Key + R and type %temp% and press okay.

Look for the files 

Code
jinput-dx8.dll, jinput-dx8_64.dll, jinput-raw.dll, jinput-raw_64.dll, jinput-wintab.dll, lwjgl.dll, lwjgl64.dll, OpenAL32.dll, OpenAL64.dll, SAPIWrapper_x64.dll, SAPIWrapper_x86.dll
in a Folder with a random name.

Copy the folder containing those files to where ever you want and rename the Folder to javaLibraries.


Editing Launch Arguments

Now open the Notepad we opened earlier.

Use Find Ctrl + F to find 

Code
-Djava.library.path=


Use Replace Ctrl + H to replace 

Code
C:\Users\<User>\AppData\Local\Temp\<random folder name>
with your javaLibraries path.


Use Find Ctrl + F to find 


Code
C:\Users\<User>\AppData\Roaming\.minecraft


Use Replace Ctrl + H to replace 


Code
%appdata%\.minecraft

Use Find Ctrl + F to find 



Code
C:\Users\<User>\AppData\Roaming\.minecraft\libraries





Use Replace Ctrl + H to replace 



Code
%appdata%\.minecraft\libraries


Before the Launch Arguments begin on the same line add

Code
start ""



After the Launch Arguments on the next line add 

Code
exit

Save the file as a .bat and run.


This can be use to make a custom launcher using the json.org  libraries on java to load the launcher_profiles.json and get the users AccessToken,Username,Ect. and creating a custom bat with different [b]AccessToken,Username,Ect.[/b]



RE: [Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher - foddermc - Dec 25, 2017

Quality tutorial on Christmas, I can port this to linux if needed for anyone. In other regards, thanks for the tutorial.


RE: [Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher - noahs200010 - Dec 25, 2017

(Dec 25, 2017 06:52 AM)foddermc Wrote:  Quality tutorial on Christmas, I can port this to linux if needed for anyone. In other regards, thanks for the tutorial.

You're welcome Merry Christmas


RE: [Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher - GoodVibes - Dec 25, 2017

(Dec 25, 2017 01:26 PM)noahs200010 Wrote:  You're welcome Merry Christmas

Merry Christmas


RE: [Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher - SIM-1576816 - Dec 26, 2017

(Dec 25, 2017 06:36 PM)GoodVibes Wrote:  Merry Christmas

Happy Hanukkah


RE: [Tutorial]Launching Minecraft from Batch File after Minecraft 2.0 Launcher - noahs200010 - Dec 26, 2017

(Dec 26, 2017 10:46 AM)inferiormartin Wrote:  Happy Hanukkah

Happy Hanukkah