This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
696 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
#NoEnv | ||
SendMode Input | ||
SetWorkingDir %A_ScriptDir% | ||
|
||
AutoClose := 1 | ||
SelectedVersion := "1.8.9" | ||
|
||
Gui, Color, FFFFFF | ||
Gui, Font, s10, Verdana | ||
|
||
Gui, Add, Picture, x0 y0 w400 h600 BackgroundImage, %A_ScriptDir%\files\background.png | ||
Gui, Add, Text, x0 y10 w400 center c000000, Welcome! | ||
Gui, Add, Text, x0 y35 w400 center c000000, Please make sure you have typed your username and RAM allocation in settings. | ||
Gui, Add, DropDownList, x50 y70 w300 h200 vLaunchVersion, 1.8.9|1.12.2|1.19.2|1.20.1 | ||
GuiControl, Choose, LaunchVersion, %SelectedVersion% | ||
Gui, Add, Button, x100 y425 w200 h50 gLaunchButton, Launch | ||
Gui, Add, Button, x300 y500 w80 h30 gShowSettingsTab, Settings | ||
|
||
Gui, Show, w400 h600, Moonrise | ||
Return | ||
|
||
ShowSettingsTab: | ||
Gui, Destroy | ||
Gui, Color, FFFFFF | ||
Gui, Font, s10, Verdana | ||
|
||
Gui, Add, Picture, x0 y0 w400 h600 BackgroundImage, %A_ScriptDir%\files\background.png | ||
Gui, Add, Text, x0 y10 w400 center c000000, Settings | ||
Gui, Add, Text, x100 y50 w200 h30 center c000000, Username | ||
Gui, Add, Edit, x100 y80 w200 h30 vUsername | ||
|
||
|
||
ConfigFile := "C:\Users\" . A_UserName . "\.lunarclient\config.txt" | ||
FileReadLine, UsernameValue, %ConfigFile%, 1 | ||
GuiControl,, Username, %UsernameValue% | ||
|
||
Gui, Add, Text, x100 y120 w200 h30 center c000000, RAM Allocation (MB) numbers only! | ||
Gui, Add, Edit, x100 y150 w200 h30 vRAMAllocation | ||
|
||
|
||
RAMConfigFile := "C:\Users\" . A_UserName . "\.lunarclient\ramallocation.txt" | ||
FileReadLine, RAMAllocationValue, %RAMConfigFile%, 1 | ||
GuiControl,, RAMAllocation, %RAMAllocationValue% | ||
|
||
Gui, Add, Button, x140 y190 w120 h40 gSaveSettings, Save | ||
Gui, Add, Button, x15 y30 w80 h35 gShowCreditsPopup, Credits | ||
|
||
if (AutoClose) | ||
Gui, Add, Button, x100 y240 w200 h40 gToggleAutoClose, After Launch: Close | ||
else | ||
Gui, Add, Button, x100 y240 w200 h40 gToggleAutoClose, After Launch: Keep Launcher Open | ||
|
||
Gui, Add, Button, x300 y500 w80 h30 gShowMainTab, Back | ||
Gui, Add, Button, x310 y30 w80 h35 gOpenMyChannel, My Channel | ||
Gui, Show, w400 h600, Moonrise | ||
Return | ||
|
||
LaunchButton: | ||
GuiControlGet, LaunchVersion | ||
GuiControl,, Text,, Launching %LaunchVersion%... | ||
GuiControl,, LaunchVersion | ||
|
||
SelectedVersion := LaunchVersion | ||
|
||
if (AutoClose) | ||
SetTimer, CloseGUI, 3000 | ||
|
||
Run, %A_ScriptDir%\files\launch%LaunchVersion%.vbs | ||
Return | ||
|
||
SaveSettings: | ||
GuiControlGet, UsernameValue,, Username | ||
ConfigFile := "C:\Users\" . A_UserName . "\.lunarclient\config.txt" | ||
FileDelete, %ConfigFile% | ||
FileAppend, %UsernameValue%, %ConfigFile% | ||
|
||
GuiControlGet, RAMAllocationValue,, RAMAllocation | ||
RAMConfigFile := "C:\Users\" . A_UserName . "\.lunarclient\ramallocation.txt" | ||
FileDelete, %RAMConfigFile% | ||
FileAppend, %RAMAllocationValue%, %RAMConfigFile% | ||
|
||
MsgBox, Settings saved successfully! | ||
Return | ||
|
||
ShowMainTab: | ||
Gui, Destroy | ||
Gui, Color, FFFFFF | ||
Gui, Font, s10, Verdana | ||
|
||
Gui, Add, Picture, x0 y0 w400 h600 BackgroundImage, %A_ScriptDir%\files\background.png | ||
Gui, Add, Text, x0 y10 w400 center c000000, Moonrise | ||
Gui, Add, Text, x0 y35 w400 center c000000, Please make sure you have typed your username in settings. | ||
Gui, Add, DropDownList, x50 y70 w300 h200 vLaunchVersion, 1.8.9|1.12.2|1.19.2|1.20.1 | ||
GuiControl, Choose, LaunchVersion, %SelectedVersion% | ||
Gui, Add, Button, x100 y425 w200 h50 gLaunchButton, Launch | ||
Gui, Add, Button, x300 y500 w80 h30 gShowSettingsTab, Settings | ||
|
||
Gui, Show, w400 h600, Moonrise | ||
Return | ||
|
||
ToggleAutoClose: | ||
AutoClose := !AutoClose | ||
|
||
if (AutoClose) { | ||
GuiControl, Text, gToggleAutoClose, After Launch: Close | ||
MsgBox, Settings saved successfully! | ||
} | ||
else { | ||
GuiControl, Text, gToggleAutoClose, After Launch: Keep Launcher Open | ||
MsgBox, Settings saved successfully! | ||
} | ||
|
||
Return | ||
|
||
CloseGUI: | ||
GuiClose: | ||
ExitApp | ||
|
||
OpenMyChannel: | ||
Run, https://www.youtube.com/ | ||
Return | ||
|
||
ShowCreditsPopup: | ||
MsgBox, Launcher by Mrn1`nAgent by Nilsen84`nWeave Loader by Weave-MC | ||
Return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is the file I compiled into "Launcher.exe" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
$host.UI.RawUI.WindowTitle = "Lc Cracked+" | ||
|
||
$ConfigFilePath = "$env:userprofile\.lunarclient\config.txt" | ||
$RamAllocationFilePath = "$env:userprofile\.lunarclient\ramallocation.txt" | ||
|
||
Write-Host "" | ||
Write-Host ".____ _________ __ .___ " | ||
Write-Host "| | ____ \_ ___ \____________ ____ | | __ ____ __| _/ .__ " | ||
Write-Host "| | _/ ___\ / \ \/\_ __ \__ \ _/ ___\| |/ // __ \ / __ | __| |___ " | ||
Write-Host "| |__\ \___ \ \____| | \// __ \\ \___| <\ ___// /_/ | /__ __/ " | ||
Write-Host "|_______ \___ > \______ /|__| (____ /\___ >__|_ \\___ >____ | |__| " | ||
Write-Host " \/ \/ \/ \/ \/ \/ \/ \/ " | ||
|
||
Write-Host "" | ||
|
||
|
||
Write-Host -ForegroundColor Red "Lunar Client Cracked - Agent by Nilsen84" -NoNewline | ||
Write-Host -ForegroundColor Green " - 1.12.2" -NoNewline | ||
Write-Host -ForegroundColor Cyan " - Modified by Mrn1" | ||
|
||
|
||
$playerName = Get-Content $ConfigFilePath | ||
|
||
|
||
$weaveModsFolderPath = "$env:userprofile\.weave\mods" | ||
$jarFiles = Get-ChildItem -Path $weaveModsFolderPath -Filter "*.jar" | ||
$modCount = $jarFiles.Count | ||
|
||
if ($modCount -eq 1) { | ||
Write-Host "$modCount mod found - Version Supported Not by Weave" -ForegroundColor Green | ||
} | ||
else { | ||
Write-Host "$modCount mods found - Version Supported Not by Weave" -ForegroundColor Green | ||
} | ||
|
||
$weaveLoaderReleaseUrl = "https://api.github.com/repos/Weave-MC/Weave-Loader/releases/latest" | ||
$weaveLoaderReleaseInfo = Invoke-RestMethod -Uri $weaveLoaderReleaseUrl | ||
$weaveLoaderDownloadUrl = $weaveLoaderReleaseInfo.assets[0].browser_download_url | ||
|
||
$weaveLoaderPath = "C:\Users\$($env:UserName)\.lunarclient\" + $weaveLoaderReleaseInfo.tag_name + ".jar" | ||
|
||
$weaveModsFolderPath = "$env:userprofile\.weave\mods" | ||
$jarFiles = Get-ChildItem -Path $weaveModsFolderPath -Filter "*.jar" | ||
|
||
if (-Not (Test-Path "$env:userprofile\.lunarclient\CrackedAccount.jar")) { | ||
Write-Host "Downloading Agent" | ||
Invoke-WebRequest -Uri "https://github.com/Nilsen84/lunar-client-agents/releases/download/v1.2.0/CrackedAccount.jar" -OutFile "$env:userprofile\.lunarclient\CrackedAccount.jar" | ||
} | ||
|
||
if (-Not (Test-Path $weaveLoaderPath)) { | ||
Write-Host "Downloading Weave Loader Agent" | ||
Invoke-WebRequest -Uri $weaveLoaderDownloadUrl -OutFile $weaveLoaderPath | ||
} | ||
|
||
if (Test-Path $RamAllocationFilePath) { | ||
$ramAllocationValues = Get-Content $RamAllocationFilePath | ||
$Xms = "-Xms$ramAllocationValues`m" | ||
$Xmx = "-Xmx$ramAllocationValues`m" | ||
$Xmn = "-Xmn$ramAllocationValues`m" | ||
} else { | ||
$Xms = "-Xms1G" | ||
$Xmx = "-Xmx4000m" | ||
$Xmn = "-Xmn768m" | ||
} | ||
|
||
$javaJre = (Resolve-Path "$env:userprofile\.lunarclient\jre\*\zulu17*\bin")[0] | ||
cd "$env:userprofile\.lunarclient\offline\multiver" | ||
#TW9kaWZpZWQgYnkgTXJuMQ== | ||
$launchArgs = "--add-modules", | ||
"jdk.naming.dns", | ||
"--add-exports", | ||
"jdk.naming.dns/com.sun.jndi.dns=java.naming", | ||
"-Djna.boot.library.path=$env:userprofile\.lunarclient\offline\multiver\natives", | ||
"-Dlog4j2.formatMsgNoLookups=true", | ||
"--add-opens", | ||
"java.base/java.io=ALL-UNNAMED", | ||
"-javaagent:$env:userprofile\.lunarclient\CrackedAccount.jar=$playerName", "-javaagent:$weaveLoaderPath", | ||
$Xms, $Xmx, $Xmn, | ||
"-Djava.library.path=$env:userprofile\.lunarclient\offline\multiver\natives", | ||
"-Dsolar.launchType=launcher", | ||
"-cp", | ||
"v1_12-0.1.0-SNAPSHOT-all.jar;genesis-0.1.0-SNAPSHOT-all.jar;lunar-lang.jar;lunar-emote.jar;lunar.jar;optifine-0.1.0-SNAPSHOT-all.jar;common-0.1.0-SNAPSHOT-all.jar", | ||
"com.moonsworth.lunar.genesis.Genesis", | ||
"--version", | ||
"1.12.2", | ||
"--accessToken", | ||
"0", | ||
"--assetIndex", | ||
"1.12", | ||
"--userProperties", | ||
"{}", | ||
"--gameDir", | ||
"$env:userprofile\AppData\Roaming\.minecraft", | ||
"--assetsDir", | ||
"$env:userprofile\AppData\Roaming\.minecraft\assets", | ||
"--texturesDir", | ||
"$env:userprofile\.lunarclient\textures", | ||
"--width", | ||
"854", | ||
"--height", | ||
"480", | ||
"--ichorClassPath", | ||
"v1_12-0.1.0-SNAPSHOT-all.jar,genesis-0.1.0-SNAPSHOT-all.jar,lunar-lang.jar,lunar-emote.jar,lunar.jar,optifine-0.1.0-SNAPSHOT-all.jar,common-0.1.0-SNAPSHOT-all.jar", | ||
"--ichorExternalFiles", | ||
"OptiFine_v1_12.jar", | ||
"--workingDirectory", | ||
".", | ||
"--classpathDir", | ||
"$env:userprofile\.lunarclient\offline\multiver", | ||
"--installationId", | ||
"placeholder", | ||
"--hwid", | ||
"placeholder" | ||
|
||
& "$javaJre\java.exe" $launchArgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Set objShell = CreateObject("WScript.Shell") | ||
strScriptPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) | ||
strScriptFullPath = strScriptPath & "\launch1.12.2.ps1" | ||
objShell.Run "powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File """ & strScriptFullPath & """", 0, True | ||
Set objShell = Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
$host.UI.RawUI.WindowTitle = "Lc Cracked+" | ||
|
||
$ConfigFilePath = "$env:userprofile\.lunarclient\config.txt" | ||
$RamAllocationFilePath = "$env:userprofile\.lunarclient\ramallocation.txt" | ||
|
||
Write-Host "" | ||
Write-Host ".____ _________ __ .___ " | ||
Write-Host "| | ____ \_ ___ \____________ ____ | | __ ____ __| _/ .__ " | ||
Write-Host "| | _/ ___\ / \ \/\_ __ \__ \ _/ ___\| |/ // __ \ / __ | __| |___ " | ||
Write-Host "| |__\ \___ \ \____| | \// __ \\ \___| <\ ___// /_/ | /__ __/ " | ||
Write-Host "|_______ \___ > \______ /|__| (____ /\___ >__|_ \\___ >____ | |__| " | ||
Write-Host " \/ \/ \/ \/ \/ \/ \/ \/ " | ||
|
||
Write-Host "" | ||
|
||
|
||
Write-Host -ForegroundColor Red "Lunar Client Cracked - Agent by Nilsen84" -NoNewline | ||
Write-Host -ForegroundColor Green " - 1.16.5" -NoNewline | ||
Write-Host -ForegroundColor Cyan " - Modified by Mrn1" | ||
|
||
|
||
$playerName = Get-Content $ConfigFilePath | ||
|
||
|
||
$weaveModsFolderPath = "$env:userprofile\.weave\mods" | ||
$jarFiles = Get-ChildItem -Path $weaveModsFolderPath -Filter "*.jar" | ||
$modCount = $jarFiles.Count | ||
|
||
if ($modCount -eq 1) { | ||
Write-Host "$modCount mod found - Version Supported Not by Weave" -ForegroundColor Green | ||
} | ||
else { | ||
Write-Host "$modCount mods found - Version Supported Not by Weave" -ForegroundColor Green | ||
} | ||
|
||
$weaveLoaderReleaseUrl = "https://api.github.com/repos/Weave-MC/Weave-Loader/releases/latest" | ||
$weaveLoaderReleaseInfo = Invoke-RestMethod -Uri $weaveLoaderReleaseUrl | ||
$weaveLoaderDownloadUrl = $weaveLoaderReleaseInfo.assets[0].browser_download_url | ||
|
||
$weaveLoaderPath = "C:\Users\$($env:UserName)\.lunarclient\" + $weaveLoaderReleaseInfo.tag_name + ".jar" | ||
|
||
$weaveModsFolderPath = "$env:userprofile\.weave\mods" | ||
$jarFiles = Get-ChildItem -Path $weaveModsFolderPath -Filter "*.jar" | ||
|
||
if (-Not (Test-Path "$env:userprofile\.lunarclient\CrackedAccount.jar")) { | ||
Write-Host "Downloading Agent" | ||
Invoke-WebRequest -Uri "https://github.com/Nilsen84/lunar-client-agents/releases/download/v1.2.0/CrackedAccount.jar" -OutFile "$env:userprofile\.lunarclient\CrackedAccount.jar" | ||
} | ||
|
||
if (-Not (Test-Path $weaveLoaderPath)) { | ||
Write-Host "Downloading Weave Loader Agent" | ||
Invoke-WebRequest -Uri $weaveLoaderDownloadUrl -OutFile $weaveLoaderPath | ||
} | ||
|
||
if (Test-Path $RamAllocationFilePath) { | ||
$ramAllocationValues = Get-Content $RamAllocationFilePath | ||
$Xms = "-Xms$ramAllocationValues`m" | ||
$Xmx = "-Xmx$ramAllocationValues`m" | ||
$Xmn = "-Xmn$ramAllocationValues`m" | ||
} else { | ||
$Xms = "-Xms1G" | ||
$Xmx = "-Xmx4000m" | ||
$Xmn = "-Xmn768m" | ||
} | ||
|
||
$javaJre = (Resolve-Path "$env:userprofile\.lunarclient\jre\*\zulu17*\bin")[0] | ||
cd "$env:userprofile\.lunarclient\offline\multiver" | ||
#Arguments | ||
$launchArgs = "--add-modules", | ||
"jdk.naming.dns", | ||
"--add-exports", | ||
"jdk.naming.dns/com.sun.jndi.dns=java.naming", | ||
"-Djna.boot.library.path=$env:userprofile\.lunarclient\offline\multiver\natives", | ||
"-Dlog4j2.formatMsgNoLookups=true", | ||
"--add-opens", | ||
"java.base/java.io=ALL-UNNAMED", | ||
"-javaagent:$env:userprofile\.lunarclient\CrackedAccount.jar=$playerName", | ||
$Xms, $Xmx, $Xmn, | ||
"-Djava.library.path=$env:userprofile\.lunarclient\offline\multiver\natives", | ||
"-Dsolar.launchType=launcher", | ||
"-cp", | ||
"sodium-0.1.0-SNAPSHOT-all.jar;modern-0.1.0-SNAPSHOT-all.jar;genesis-0.1.0-SNAPSHOT-all.jar;lunar-lang.jar;lunar-emote.jar;lunar.jar;fabric-0.1.0-SNAPSHOT-all.jar;fabric-0.1.0-SNAPSHOT-v1_16_5.jar;common-0.1.0-SNAPSHOT-all.jar;argon-0.1.0-SNAPSHOT-all.jar", | ||
"com.moonsworth.lunar.genesis.Genesis", | ||
"--version", | ||
"1.16.5", | ||
"--accessToken", | ||
"0", | ||
"--assetIndex", | ||
"1.16", | ||
"--userProperties", | ||
"{}", | ||
"--gameDir", | ||
"$env:userprofile\AppData\Roaming\.minecraft", | ||
"--assetsDir", | ||
"$env:userprofile\AppData\Roaming\.minecraft\assets", | ||
"--texturesDir", | ||
"$env:userprofile\.lunarclient\textures", | ||
"--width", | ||
"854", | ||
"--height", | ||
"480", | ||
"--ichorClassPath", | ||
"sodium-0.1.0-SNAPSHOT-all.jar,modern-0.1.0-SNAPSHOT-all.jar,genesis-0.1.0-SNAPSHOT-all.jar,lunar-lang.jar,lunar-emote.jar,lunar.jar,fabric-0.1.0-SNAPSHOT-all.jar,fabric-0.1.0-SNAPSHOT-v1_16_5.jar,common-0.1.0-SNAPSHOT-all.jar,argon-0.1.0-SNAPSHOT-all.jar", | ||
"--ichorExternalFiles", | ||
"Sodium-v1_16_5-0.2.0+build.4.jar,Indium-v1_16_5-1.0.0.jar,Iris-v1_16_5-1.4.3.jar,Phosphor_v1_16_5.jar", | ||
"--workingDirectory", | ||
".", | ||
"--classpathDir", | ||
"$env:userprofile\.lunarclient\offline\multiver", | ||
"--installationId", | ||
"placeholder", | ||
"--hwid", | ||
"placeholder" | ||
|
||
& "$javaJre\java.exe" $launchArgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Set objShell = CreateObject("WScript.Shell") | ||
strScriptPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) | ||
strScriptFullPath = strScriptPath & "\launch1.16.5.ps1" | ||
objShell.Run "powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File """ & strScriptFullPath & """", 0, True | ||
Set objShell = Nothing |
Oops, something went wrong.