Closed Adloya closed 11 months ago
window: { width: launcher_settings.minecraft.res.width, // config file (int) height: launcher_settings.minecraft.res.width, // config file (int) fullscreen: launcher_settings.minecraft.fullscreen, // config file (bool) },
Are these three entries being set/read correctly?
Yes they are, I even checked without specifying custom window properties, it still does it I also checked my java installation, that wasn't it either
If you need a screenshot of the values, here is it :
Hey there, Adloya.
I'm thinking this issue is being caused by either two things:
1) The mojang launcher using another java version that it downloaded itself. I'd recommend using javaPath
to point to that bin folder and see what happens.
2) Files are not being downloaded properly, which is usually caused by a malformed version json. Would you be able to post that json file?
Also, I see you have custom arguments. You should be using options.customLaunchArgs
for custom args. options.version.arguments
is not a valid option and is getting ignored.
Hey, I checked with multiple java versions (Oracle, Adoptium, OpenJDK/JRE), even with the ones used by the launcher, it didn't change anything.
Thanks for letting me know about the customArgs setting in MCLC
I checked some things in the json file :
Here is the JSON file :
{
"id": "Multistar_Client",
"time": "2014-09-02T01:24:35-07:00",
"releaseTime": "2014-09-02T01:24:35-07:00",
"minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userProperties ${user_properties} --userType ${user_type}",
"type": "release",
"libraries": [
{
"name": "com.mojang:netty:1.6"
},
{
"name": "java3d:vecmath:1.5.2"
},
{
"name": "net.sf.trove4j:trove4j:3.0.3"
},
{
"name": "com.ibm.icu:icu4j-core-mojang:51.2"
},
{
"name": "net.sf.jopt-simple:jopt-simple:4.6"
},
{
"name": "com.paulscode:codecjorbis:20101023"
},
{
"name": "com.paulscode:codecwav:20101023"
},
{
"name": "com.paulscode:libraryjavasound:20101123"
},
{
"name": "com.paulscode:librarylwjglopenal:20100824"
},
{
"name": "com.paulscode:soundsystem:20120107"
},
{
"name": "io.netty:netty-all:4.0.15.Final"
},
{
"name": "com.google.guava:guava:17.0"
},
{
"name": "org.apache.commons:commons-lang3:3.3.2"
},
{
"name": "commons-io:commons-io:2.4"
},
{
"name": "commons-codec:commons-codec:1.9"
},
{
"name": "net.java.jinput:jinput:2.0.5"
},
{
"name": "net.java.jutils:jutils:1.0.0"
},
{
"name": "com.google.code.gson:gson:2.2.4"
},
{
"name": "com.mojang:authlib:1.5.21"
},
{
"name": "com.mojang:realms:1.6.1"
},
{
"name": "com.mojang:netty:1.6"
},
{
"name": "org.apache.commons:commons-compress:1.8.1"
},
{
"name": "org.apache.httpcomponents:httpclient:4.3.3"
},
{
"name": "commons-logging:commons-logging:1.1.3"
},
{
"name": "org.apache.httpcomponents:httpcore:4.3.2"
},
{
"name": "org.apache.logging.log4j:log4j-api:2.0-beta9"
},
{
"name": "org.apache.logging.log4j:log4j-core:2.0-beta9"
},
{
"name": "org.lwjgl.lwjgl:lwjgl:2.9.1",
"rules": [
{
"action": "allow"
},
{
"action": "disallow",
"os": {
"name": "osx"
}
}
]
},
{
"name": "org.lwjgl.lwjgl:lwjgl_util:2.9.1",
"rules": [
{
"action": "allow"
},
{
"action": "disallow",
"os": {
"name": "osx"
}
}
]
},
{
"name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.1",
"rules": [
{
"action": "allow"
},
{
"action": "disallow",
"os": {
"name": "osx"
}
}
],
"natives": {
"linux": "natives-linux",
"windows": "natives-windows",
"osx": "natives-osx"
},
"extract": {
"exclude": [
"META-INF/"
]
}
},
{
"name": "org.lwjgl.lwjgl:lwjgl:2.9.2-nightly-20140822",
"rules": [
{
"action": "allow",
"os": {
"name": "osx"
}
}
]
},
{
"name": "org.lwjgl.lwjgl:lwjgl_util:2.9.2-nightly-20140822",
"rules": [
{
"action": "allow",
"os": {
"name": "osx"
}
}
]
},
{
"name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.2-nightly-20140822",
"rules": [
{
"action": "allow",
"os": {
"name": "osx"
}
}
],
"natives": {
"linux": "natives-linux",
"windows": "natives-windows",
"osx": "natives-osx"
},
"extract": {
"exclude": [
"META-INF/"
]
}
},
{
"name": "net.java.jinput:jinput-platform:2.0.5",
"natives": {
"linux": "natives-linux",
"windows": "natives-windows",
"osx": "natives-osx"
},
"extract": {
"exclude": [
"META-INF/"
]
}
},
{
"name": "tv.twitch:twitch:6.5"
},
{
"name": "tv.twitch:twitch-platform:6.5",
"rules": [
{
"action": "allow"
},
{
"action": "disallow",
"os": {
"name": "linux"
}
}
],
"natives": {
"linux": "natives-linux",
"windows": "natives-windows-${arch}",
"osx": "natives-osx"
},
"extract": {
"exclude": [
"META-INF/"
]
}
},
{
"name": "tv.twitch:twitch-external-platform:4.5",
"rules": [
{
"action": "allow",
"os": {
"name": "windows"
}
}
],
"natives": {
"windows": "natives-windows-${arch}"
},
"extract": {
"exclude": [
"META-INF/"
]
}
}
],
"mainClass": "net.minecraft.client.main.Main",
"minimumLauncherVersion": 14,
"assets": "1.8"
}
change version from 1.8.8 to 1.8
change version from 1.8.8 to 1.8
I won't lie, I've forgotten about all of this ! This solution works for me, tysm ! I'll try to continue my things !
Hi,
I am creating a client and I started to code a launcher for it in ElectronJS with MLC to start the custom jar. When I start my custom jar with the Minecraft Launcher, it works and the window is displaying fine. But when I start it with MLC, it creates the smallest possible window, and when I resize it, it's just a black window
I can hear the music and when I resize it I see the main menu for a millisecond
I'm not very talented, so it could be an error on my side but I checked everything and It certainly not a error in the jar Also I'm french, sorry for my english and the excessive length of this issue x)
When it's in fullscreen it's just a transparent window that lets me click through it
Here are a couple screenshots :
(First one : What it is supposed to do (Minecraft Launcher)) (Second one : What it does with MLC) (Third : When I resize it)
Here is the code responsible for starting the game :
And here are the logs :