Enfin une dernier petite modif qui pourrait etre apporté au sujet du :
J'ai fait une modification ndans le launcher et a chaquelancement du jeu mon launcher est re-telecharger !
Verifier votre fichier MD5.TXT
Voici une modif du launcher permetant de voir le MD5 de votre launcher Actuel afin de mettre a jour votre MD5.txt:
Rendez-vous dans la class : Launcher (net.minecraft.launcher.Launcher)
au dessus de la methode (constructor) : public Launcher(final JFrame frame, final File workingDirectory, final Proxy proxy, final PasswordAuthentication proxyAuth, final String[] args, final Integer bootstrapVersion)
definir la methode :
public String getMd5(final File file) {
DigestInputStream stream = null;
try {
stream = new DigestInputStream(new FileInputStream(file), MessageDigest.getInstance("MD5"));
final byte[] buffer = new byte[65536];
int read = stream.read(buffer);
while(read >= 1)
read = stream.read(buffer);
}
catch(final Exception ignored) {
return "";
}
finally {
if( stream != null)
{
try {
stream.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
return String.format("%1$032x", new Object[] { new BigInteger(1, stream.getMessageDigest().digest()) });
}
Puis modifier :
refreshVersionsAndProfiles();
println("Launcher " + LauncherConstants.VERSION_NAME + " (through bootstrap " + bootstrapVersion + ") started on " + OperatingSystem.getCurrentPlatform().getName() + "...");
println("Current time is " + DateFormat.getDateTimeInstance(2, 2, Locale.US).format(new Date()));
if(!OperatingSystem.getCurrentPlatform().isSupported())
println("This operating system is unknown or unsupported, we cannot guarantee that the game will launch.");
println("System.getProperty('os.name') == '" + System.getProperty("os.name") + "'");
println("System.getProperty('os.version') == '" + System.getProperty("os.version") + "'");
println("System.getProperty('os.arch') == '" + System.getProperty("os.arch") + "'");
println("System.getProperty('java.version') == '" + System.getProperty("java.version") + "'");
println("System.getProperty('java.vendor') == '" + System.getProperty("java.vendor") + "'");
println("System.getProperty('sun.arch.data.model') == '" + System.getProperty("sun.arch.data.model") + "'");
par
refreshVersionsAndProfiles();
// MODIF CEDRIC 2
final File launcherJar = new File( workingDirectory, "launcher.jar" );
final String launcherMD5 = getMd5(launcherJar);
// FIN MODIF CEDRIC 2
println("Launcher " + LauncherConstants.VERSION_NAME + " (through bootstrap " + bootstrapVersion + ") started on " + OperatingSystem.getCurrentPlatform().getName() + "...");
println("Current time is " + DateFormat.getDateTimeInstance(2, 2, Locale.US).format(new Date()));
if(!OperatingSystem.getCurrentPlatform().isSupported())
println("This operating system is unknown or unsupported, we cannot guarantee that the game will launch.");
println("System.getProperty('os.name') == '" + System.getProperty("os.name") + "'");
println("System.getProperty('os.version') == '" + System.getProperty("os.version") + "'");
println("System.getProperty('os.arch') == '" + System.getProperty("os.arch") + "'");
println("System.getProperty('java.version') == '" + System.getProperty("java.version") + "'");
println("System.getProperty('java.vendor') == '" + System.getProperty("java.vendor") + "'");
println("System.getProperty('sun.arch.data.model') == '" + System.getProperty("sun.arch.data.model") + "'");
println("Launcher MD5 == '" + launcherMD5 + "'"); // MODIF CEDRIC 2
ainsi lors le lancement du jeu vous devriez voir apparaitre :
Refreshing local version list...
Launcher 1.0 (through bootstrap 5) started on windows...
Current time is May 30, 2014 2:00:57 PM
System.getProperty('os.name') == 'Windows 7'
System.getProperty('os.version') == '6.1'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.7.0_15'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '64'
Launcher MD5 == 'dd44b8e8e51c7f7ff4a1a3496f333c1d'
J'ai fait une modification ndans le launcher et a chaquelancement du jeu mon launcher est re-telecharger !
Verifier votre fichier MD5.TXT
Voici une modif du launcher permetant de voir le MD5 de votre launcher Actuel afin de mettre a jour votre MD5.txt:
Rendez-vous dans la class : Launcher (net.minecraft.launcher.Launcher)
au dessus de la methode (constructor) : public Launcher(final JFrame frame, final File workingDirectory, final Proxy proxy, final PasswordAuthentication proxyAuth, final String[] args, final Integer bootstrapVersion)
definir la methode :
public String getMd5(final File file) {
DigestInputStream stream = null;
try {
stream = new DigestInputStream(new FileInputStream(file), MessageDigest.getInstance("MD5"));
final byte[] buffer = new byte[65536];
int read = stream.read(buffer);
while(read >= 1)
read = stream.read(buffer);
}
catch(final Exception ignored) {
return "";
}
finally {
if( stream != null)
{
try {
stream.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
return String.format("%1$032x", new Object[] { new BigInteger(1, stream.getMessageDigest().digest()) });
}
Puis modifier :
refreshVersionsAndProfiles();
println("Launcher " + LauncherConstants.VERSION_NAME + " (through bootstrap " + bootstrapVersion + ") started on " + OperatingSystem.getCurrentPlatform().getName() + "...");
println("Current time is " + DateFormat.getDateTimeInstance(2, 2, Locale.US).format(new Date()));
if(!OperatingSystem.getCurrentPlatform().isSupported())
println("This operating system is unknown or unsupported, we cannot guarantee that the game will launch.");
println("System.getProperty('os.name') == '" + System.getProperty("os.name") + "'");
println("System.getProperty('os.version') == '" + System.getProperty("os.version") + "'");
println("System.getProperty('os.arch') == '" + System.getProperty("os.arch") + "'");
println("System.getProperty('java.version') == '" + System.getProperty("java.version") + "'");
println("System.getProperty('java.vendor') == '" + System.getProperty("java.vendor") + "'");
println("System.getProperty('sun.arch.data.model') == '" + System.getProperty("sun.arch.data.model") + "'");
par
refreshVersionsAndProfiles();
// MODIF CEDRIC 2
final File launcherJar = new File( workingDirectory, "launcher.jar" );
final String launcherMD5 = getMd5(launcherJar);
// FIN MODIF CEDRIC 2
println("Launcher " + LauncherConstants.VERSION_NAME + " (through bootstrap " + bootstrapVersion + ") started on " + OperatingSystem.getCurrentPlatform().getName() + "...");
println("Current time is " + DateFormat.getDateTimeInstance(2, 2, Locale.US).format(new Date()));
if(!OperatingSystem.getCurrentPlatform().isSupported())
println("This operating system is unknown or unsupported, we cannot guarantee that the game will launch.");
println("System.getProperty('os.name') == '" + System.getProperty("os.name") + "'");
println("System.getProperty('os.version') == '" + System.getProperty("os.version") + "'");
println("System.getProperty('os.arch') == '" + System.getProperty("os.arch") + "'");
println("System.getProperty('java.version') == '" + System.getProperty("java.version") + "'");
println("System.getProperty('java.vendor') == '" + System.getProperty("java.vendor") + "'");
println("System.getProperty('sun.arch.data.model') == '" + System.getProperty("sun.arch.data.model") + "'");
println("Launcher MD5 == '" + launcherMD5 + "'"); // MODIF CEDRIC 2
ainsi lors le lancement du jeu vous devriez voir apparaitre :
Refreshing local version list...
Launcher 1.0 (through bootstrap 5) started on windows...
Current time is May 30, 2014 2:00:57 PM
System.getProperty('os.name') == 'Windows 7'
System.getProperty('os.version') == '6.1'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.7.0_15'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '64'
Launcher MD5 == 'dd44b8e8e51c7f7ff4a1a3496f333c1d'