diff --git a/Launcher.exe b/Launcher.exe new file mode 100644 index 0000000..9425ea5 Binary files /dev/null and b/Launcher.exe differ diff --git a/files/ahk/Launcher.ahk b/files/ahk/Launcher.ahk new file mode 100644 index 0000000..e73c8cd --- /dev/null +++ b/files/ahk/Launcher.ahk @@ -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 diff --git a/files/ahk/readme.txt b/files/ahk/readme.txt new file mode 100644 index 0000000..cc11bfc --- /dev/null +++ b/files/ahk/readme.txt @@ -0,0 +1 @@ +This is the file I compiled into "Launcher.exe" \ No newline at end of file diff --git a/files/background.png b/files/background.png new file mode 100644 index 0000000..6ca3279 Binary files /dev/null and b/files/background.png differ diff --git a/files/launch1.12.2.ps1 b/files/launch1.12.2.ps1 new file mode 100644 index 0000000..0b4622f --- /dev/null +++ b/files/launch1.12.2.ps1 @@ -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 diff --git a/files/launch1.12.2.vbs b/files/launch1.12.2.vbs new file mode 100644 index 0000000..bcb9fd3 --- /dev/null +++ b/files/launch1.12.2.vbs @@ -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 diff --git a/files/launch1.16.5.ps1 b/files/launch1.16.5.ps1 new file mode 100644 index 0000000..3aa46a4 --- /dev/null +++ b/files/launch1.16.5.ps1 @@ -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 diff --git a/files/launch1.16.5.vbs b/files/launch1.16.5.vbs new file mode 100644 index 0000000..6f212aa --- /dev/null +++ b/files/launch1.16.5.vbs @@ -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 diff --git a/files/launch1.19.2.ps1 b/files/launch1.19.2.ps1 new file mode 100644 index 0000000..4445078 --- /dev/null +++ b/files/launch1.19.2.ps1 @@ -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.19.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" +#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_19_2.jar;common-0.1.0-SNAPSHOT-all.jar;argon-0.1.0-SNAPSHOT-all.jar", + "com.moonsworth.lunar.genesis.Genesis", + "--version", + "1.19.2", + "--accessToken", + "0", + "--assetIndex", + "1.19", + "--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_19_2.jar,common-0.1.0-SNAPSHOT-all.jar,argon-0.1.0-SNAPSHOT-all.jar", + "--ichorExternalFiles", + "Sodium-v1_19_2-0.4.4+build.18.jar,Indium-v1_19_2-1.0.7.jar,Iris-v1_19_2-1.5.0.jar,Phosphor_v1_19_2.jar", + "--workingDirectory", + ".", + "--classpathDir", + "$env:userprofile\.lunarclient\offline\multiver", + "--installationId", + "placeholder", + "--hwid", + "placeholder" + +& "$javaJre\java.exe" $launchArgs diff --git a/files/launch1.19.2.vbs b/files/launch1.19.2.vbs new file mode 100644 index 0000000..b35dd29 --- /dev/null +++ b/files/launch1.19.2.vbs @@ -0,0 +1,5 @@ +Set objShell = CreateObject("WScript.Shell") +strScriptPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) +strScriptFullPath = strScriptPath & "\launch1.19.2.ps1" +objShell.Run "powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File """ & strScriptFullPath & """", 0, True +Set objShell = Nothing diff --git a/files/launch1.20.1.ps1 b/files/launch1.20.1.ps1 new file mode 100644 index 0000000..de9772b --- /dev/null +++ b/files/launch1.20.1.ps1 @@ -0,0 +1,116 @@ +$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.20.1" -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_20_1.jar;common-0.1.0-SNAPSHOT-all.jar", + "com.moonsworth.lunar.genesis.Genesis", + "--version", + "1.20.1", + "--accessToken", + "0", + "--assetIndex", + "5", + "--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_20_1.jar,common-0.1.0-SNAPSHOT-all.jar", + "--ichorExternalFiles", + "Sodium-v1_20_1-0.4.10+build.27.jar,Indium-v1_20_1-1.0.15-notactuallyupdated.jar,Iris-v1_20_1-1.6.4.jar", + "--workingDirectory", + ".", + "--classpathDir", + "$env:userprofile\.lunarclient\offline\multiver", + "--installationId", + "542250c2-e7d6-4803-9390-084e707a82fd", + "--hwid", + "f8a91817f0ef6fcd9c4c48607ce9235bdae521654d8234b83d8156e839795499" + +& "$javaJre\java.exe" $launchArgs diff --git a/files/launch1.20.1.vbs b/files/launch1.20.1.vbs new file mode 100644 index 0000000..7eb9892 --- /dev/null +++ b/files/launch1.20.1.vbs @@ -0,0 +1,5 @@ +Set objShell = CreateObject("WScript.Shell") +strScriptPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) +strScriptFullPath = strScriptPath & "\launch1.20.1.ps1" +objShell.Run "powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File """ & strScriptFullPath & """", 0, True +Set objShell = Nothing diff --git a/files/launch1.8.9.ps1 b/files/launch1.8.9.ps1 new file mode 100644 index 0000000..71c6589 --- /dev/null +++ b/files/launch1.8.9.ps1 @@ -0,0 +1,84 @@ +$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.8.9" -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 by Weave" -ForegroundColor Green +} else { + Write-Host "$modCount mods found - Version Supported 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 +} + +# Read memory allocation values from the ramallocation.txt file +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", + "-javaagent:$weaveLoaderPath", $Xms, $Xmx, $Xmn, + "-XX:+DisableAttachMechanism", "-Djava.library.path=$env:userprofile\.lunarclient\offline\multiver\natives", + "-cp", "lunar-lang.jar;lunar-emote.jar;lunar.jar;optifine-0.1.0-SNAPSHOT-all.jar;v1_8-0.1.0-SNAPSHOT-all.jar;common-0.1.0-SNAPSHOT-all.jar;genesis-0.1.0-SNAPSHOT-all.jar;$weaveLoaderPath", + "com.moonsworth.lunar.genesis.Genesis", "--version", "1.8.9", "--accessToken", "0", "--assetIndex", "1.8" + +if ($args[1]) { + $launchArgs += '--gameDir', $args[1] +} + +$launchArgs += "--userProperties", "{}", "--texturesDir", "$env:userprofile\.lunarclient\textures", "--width", "854", "--height", "480", + "--ichorClassPath", "lunar-lang.jar,lunar-emote.jar;lunar.jar;optifine-0.1.0-SNAPSHOT-all.jar;v1_8-0.1.0-SNAPSHOT-all.jar;common-0.1.0-SNAPSHOT-all.jar;genesis-0.1.0-SNAPSHOT-all.jar", + "--ichorExternalFiles", "OptiFine_v1_8.jar", "--workingDirectory", ".", "--classpathDir", + "$env:userprofile\.lunarclient\offline\multiver" + +& "$javaJre\java.exe" $launchArgs diff --git a/files/launch1.8.9.vbs b/files/launch1.8.9.vbs new file mode 100644 index 0000000..527cd13 --- /dev/null +++ b/files/launch1.8.9.vbs @@ -0,0 +1,5 @@ +Set objShell = CreateObject("WScript.Shell") +strScriptPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) +strScriptFullPath = strScriptPath & "\launch1.8.9.ps1" +objShell.Run "powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File """ & strScriptFullPath & """", 0, True +Set objShell = Nothing