cmllib / minecraftlauncherlibrary Goto Github PK
View Code? Open in Web Editor NEWC# Minecraft Launcher - EXACTLY WORKING, CLEAN CODE, SUPPORT ALL VERSION
License: MIT License
C# Minecraft Launcher - EXACTLY WORKING, CLEAN CODE, SUPPORT ALL VERSION
License: MIT License
Very good! Thanks for it! I really enjoy your library
But how i can add server to serverlist automatically?
According to the readme, it's better to archive now that you are not using it anymore.
I can't find in wiki how I can change the icon of Minecraft. I know that it is possible.
how to change port number
i want join port 25566
포트25566으로 접속하고 싶어요
How do i launch optifine ?
이 주소에 따르면 영리 목적으로 이용된다고 하는데, 혹시 상업 목적으로도 가능한건가요? (아직 준비는 안했다만 다른 프로젝트에 사용할 생각이 있습니다)
I try in different ways to launch minecraft with OptiFine version 1.15.2 without the support of forge, but all this was unsuccessful.Please explain how to do this.
Hello. My minecraft opens with the forge, all right. But you can not play. It's very slow. Issó occurs in my project, in the sample provided by you (sometimes works) in the other launchers my client works perfectly. What can it be?
THANKFUL
I love this libray.
Hi,
Excelent sources!!
I trying to use to run for my pixelmon server and my 1.14.4 servers, but on try to run for 1.14.4 it crashes!
On 1.13.2 and lowers runs fine, its only with 1.14.4!
Maybe some jvm args have changed?
Crash as soon as I use Forge. Console closes immediately, so there is no way to see a bug report. In Vanilla the startup process worked fine.
I took my profile from 1.12.2-forge.json.
I've been despairing here for 2 days already
private void DownloadGame(MProfile profile, bool downloadResource = true)
{
MDownloader downloader = new MDownloader(profile);
btnDownload.Visible = false;
pgbDownload.Visible = true;
downloader.ChangeFile += change_file;
downloader.ChangeProgress += change_progress;
downloader.DownloadAll(downloadResource);
}
private string GetJavaInstallationPath()
{
string environmentPath = Environment.GetEnvironmentVariable("JAVA_HOME");
if (!string.IsNullOrEmpty(environmentPath))
{
return environmentPath;
}
string javaKey = "SOFTWARE\\JavaSoft\\Java Runtime Environment\\";
using (Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(javaKey))
{
string currentVersion = rk.GetValue("CurrentVersion").ToString();
using (Microsoft.Win32.RegistryKey key = rk.OpenSubKey(currentVersion))
{
return key.GetValue("JavaHome").ToString();
}
}
}
private void btnDownload_Click(object sender, EventArgs e)
{
var local = MProfileInfo.GetProfilesFromLocal();
var web = MProfileInfo.GetProfilesFromWeb();
MProfile profile = null;
MProfile forgeProfile = null;
foreach (var item in local)
{
Console.WriteLine(item.Name);
if (item.Name == "1.12.2-forge")
{
profile = MProfile.Parse(item);
break;
}
}
if (profile.IsForge)
{
Console.WriteLine("Inner: " + profile.InnerJarId);
foreach (var item in web)
{
if (item.Name == profile.InnerJarId)
{
forgeProfile = MProfile.Parse(item);
break;
}
}
DownloadGame(forgeProfile, true);
}
DownloadGame(profile, !profile.IsForge);
Console.WriteLine(profile.IsForge);
Console.WriteLine("END");
string installPath = GetJavaInstallationPath();
string filePath = System.IO.Path.Combine(installPath, "bin\\Java.exe");
var option = new MLaunchOption()
{
BaseProfile = forgeProfile,
StartProfile = profile,
JavaPath = filePath,
LauncherName = "DarkAges",
MaximumRamMb = int.Parse("4096"),
Session = session
};
var launch = new MLaunch(option);
var process = launch.GetProcess();
process.Start();
}
If the folder, named 1.15.2 with files 1.15.2.jar and 1.15.2.json (it's renamed optifine 1.15.2), exists
MProfile profile = MProfile.FindProfile(infos, "1.15.2"); returns System.StackOverflowException and i can't catch it.
I tried to use 1.15.2 minecraft version and had nothing. Console starts and after a moment closes.
How do I start minecraft with forge? the wiki is offline.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.