Important fix: made the main function of earlyLauncher available for use as library. Removed some unnecessary files as well.

backup
LinuxMint4Ever 2019-08-05 01:24:16 +02:00
parent d47a076b77
commit 0feec3f35c
7 changed files with 8 additions and 100 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ run/*
res/*
lib/*
earlylauncher/offline.txt
earlylauncher/logs/

View File

@ -1,5 +1,5 @@
ram=4
#The multipiler for RAM amount (G, M, K or nothing)
ram=8
#The multipiler for RAM amount (nothing, k, M or G)
alignTo=G
#Files
assets=../res/

View File

@ -2,7 +2,7 @@
#why does the bang not work?
import urllib2, json, os, sys
print "LinuxMint4Ever's EarlyLauncher version BETA 2.0_002"
print "LinuxMint4Ever's EarlyLauncher version BETA 2.1"
#globally used variables
config = []
@ -107,6 +107,8 @@ def getToken(username, password):
return access_token, profile_id, username
def run(java_executable, ram, alignTo, libs, username, gameDir, assets, uuid, accessToken):
return(os.system(java_executable+" -Xmx"+ram+alignTo+" -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Djava.library.path="+os.path.join(libs, "natives")+" -cp "+os.path.join(libs,"jar")+os.sep+(":"+os.path.join(libs,"jar")+os.sep).join(os.listdir(os.path.join(libs,"jar")))+" net.minecraft.launchwrapper.Launch --username "+username+" --version 1.7.10-Forge10.13.4.1614-1.7.10 --gameDir "+gameDir+" --assetsDir "+assets+" --assetIndex 1.7.10 --uuid "+str(uuid)+" --accessToken "+accessToken+" --userProperties {} --userType mojang --tweakClass cpw.mods.fml.common.launcher.FMLTweaker"))
if main:
loadConfig()
@ -127,5 +129,5 @@ if main:
offlineDataFile.close()
except:
print "Error creating offline login data. Proceeding with launch anyways."
os.system(java_executable+" -Xmx"+ram+alignTo+" -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Djava.library.path="+os.path.join(libs, "natives")+" -cp "+os.path.join(libs,"jar")+os.sep+(":"+os.path.join(libs,"jar")+os.sep).join(os.listdir(os.path.join(libs,"jar")))+" net.minecraft.launchwrapper.Launch --username "+username+" --version 1.7.10-Forge10.13.4.1614-1.7.10 --gameDir "+gameDir+" --assetsDir "+assets+" --assetIndex 1.7.10 --uuid "+str(uuid)+" --accessToken "+accessToken+" --userProperties {} --userType mojang --tweakClass cpw.mods.fml.common.launcher.FMLTweaker")
sys.exit(run(java_executable, ram, alignTo, libs, username, gameDir, assets, uuid, accessToken))

View File

@ -1,95 +0,0 @@
[00:47:36] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[00:47:36] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[00:47:36] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[00:47:37] [main/INFO]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
[00:47:37] [main/INFO]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_222, running on Linux:amd64:4.15.0-55-generic, installed at /usr/lib/jvm/java-8-openjdk-amd64/jre
[00:47:37] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:47:37] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[00:47:37] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:47:37] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:47:37] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:47:37] [main/INFO]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[00:47:37] [main/INFO]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
[00:47:37] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:47:37] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[00:47:37] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[00:47:37] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[00:47:37] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[00:47:38] [main/INFO]: Setting user: LinuxMint4Ever
[00:47:38] [Client thread/INFO]: LWJGL Version: 2.9.1
[00:47:39] [Client thread/ERROR]: Couldn't initialize twitch stream
[00:47:39] [Client thread/INFO]: Could not load splash.properties, will create a default one
[00:47:39] [Client thread/INFO]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Sorry :(
Time: 05.08.19 00:47
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Linux (amd64) version 4.15.0-55-generic
Java Version: 1.8.0_222, Private Build
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Private Build
Memory: 409050352 bytes (390 MB) / 513015808 bytes (489 MB) up to 4281597952 bytes (4083 MB)
JVM Flags: 5 total; -Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 390.116' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
[00:47:39] [Client thread/INFO]: Attempting early MinecraftForge initialization
[00:47:39] [Client thread/INFO]: MinecraftForge v10.13.4.1614 Initialized
[00:47:39] [Client thread/INFO]: Replaced 183 ore recipies
[00:47:39] [Client thread/INFO]: Completed early MinecraftForge initialization
[00:47:39] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[00:47:39] [Client thread/INFO]: Searching /home/administrator/Schreibtisch/Entwicklung/Launcher/CustomMinecraftLauncher/run/mods for mods
[00:47:42] [Client thread/INFO]: Forge Mod Loader has identified 3 mods to load
[00:47:42] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge] at CLIENT
[00:47:42] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge] at SERVER
[00:47:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge
[00:47:42] [Client thread/INFO]: Processing ObjectHolder annotations
[00:47:42] [Client thread/INFO]: Found 341 ObjectHolder annotations
[00:47:42] [Client thread/INFO]: Identifying ItemStackHolder annotations
[00:47:42] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[00:47:42] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[00:47:42] [Client thread/INFO]: Applying holder lookups
[00:47:42] [Client thread/INFO]: Holder lookups applied
[00:47:42] [Client thread/INFO]: Injecting itemstacks
[00:47:42] [Client thread/INFO]: Itemstack injection complete
[00:47:42] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[00:47:42] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[00:47:42] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[00:47:42] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[00:47:42] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[00:47:42] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[00:47:42] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[00:47:42] [Client thread/INFO]: Injecting itemstacks
[00:47:42] [Client thread/INFO]: Itemstack injection complete
[00:47:42] [Client thread/INFO]: Forge Mod Loader has successfully loaded 3 mods
[00:47:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge
[00:47:43] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[00:47:43] [Sound Library Loader/INFO]: Sound engine started
[00:47:43] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[00:47:43] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[00:47:43] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[00:47:43] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[00:47:43] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com
[00:47:43] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[00:47:43] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[00:47:43] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[00:47:43] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[00:47:43] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[00:47:43] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[00:47:44] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[00:47:44] [Sound Library Loader/INFO]: Sound engine started
[00:48:02] [Client thread/INFO]: Stopping!
[00:48:02] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[00:48:02] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[00:48:03] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com
[00:48:03] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

View File

@ -1,3 +1,3 @@
username=LinuxMint4Ever
access_token=f0c5a10e59df4f5eb53cc8069cec94f6
access_token=e3b9a639c2bd420586b9d22ab4e7aadd
profile_id=f8b426e586c04abf8e4dc5048f8719ac