Alternative API
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
-40%
Le deal à ne pas rater :
-40% sur le Pack Gaming Mario PDP Manette filaire + Casque filaire ...
29.99 € 49.99 €
Voir le deal

Aller en bas
avatar
Pavelad63
Messages : 1
Date d'inscription : 29/12/2020

Serveur [Résolu] Problème Bootstrap fichier json introuvable

Mar 29 Déc - 21:57
Tutoriel suivi: tutoriel suivi
Code d'erreur: X
Décrivez votre problème: Fichier Json introuvable après avoir mit les fichiers sur mon site via FTP



Je suis tout nouveau dans le développement et pour le moment je ne fais qu'apprendre, donc désolé si l'erreur peut paraitre évidente.  



Console
Code:
java.io.FileNotFoundException: https://technofight.fr/paradox-fight/public/1.12.2.json
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1896)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
        at fr.trxyy.alternative.alternative_api.updater.GameUpdater.downloadVersion(GameUpdater.java:267)
        at fr.trxyy.alternative.alternative_api.updater.GameUpdater.run(GameUpdater.java:144)
        at fr.pavelad.serveurcreeper.LauncherPanel$7.run(LauncherPanel.java:354)




Launcher Main
Code:
public class LauncherMain extends AlternativeBase {
 private GameFolder gameFolder = new GameFolder("ParadoxFight");
 private LauncherPreferences launcherPreferences = new LauncherPreferences("Launcher Template AlternativeAPI", 950, 800, true);
 private GameLinks gameLinks = new GameLinks("https://technofight.fr/paradox-fight/public/", "1.12.2.json");
 private GameEngine gameEngine = new GameEngine(this.gameFolder, this.gameLinks, this.launcherPreferences, GameStyle.FORGE_1_8_TO_1_12_2);
 private GameConnect gameConnect = new GameConnect("5.135.6.246", "25565");



BootstrapConstants
Code:
public class BootstrapConstants {
 /** ========== DOSSIER D'INSTALLATION ========== **/
 public static File WORKING_DIRECTORY = GameUtils.getWorkingDirectory("ParadoxFight");
 /** ========== RESOURCE LOCATION ========== **/
 public static ResourceLocation RESOURCE_LOCATION = new ResourceLocation();
 /** ========== OU SE SITUERA LE LAUNCHER ========== **/
 public static File LAUNCHER = new File(WORKING_DIRECTORY, "ParadoxFight.jar");
 /** ========== URL DU FICHIER launcher.cfg AVEC LE MD5 ========== **/
 public static String MD5_URL = "https://technofight.fr/paradox-fight/bootstrap/ParadoxFight.cfg";
 /** ========== URL DU LAUNCHER.JAR ========== **/
 public static String LAUNCHER_URL = "https://technofight.fr/paradox-fight/bootstrap/ParadoxFight.jar";


Dernière édition par Pavelad63 le Mer 30 Déc - 19:45, édité 1 fois (Raison : En m'aidant du Discord j'ai trouvé qu'il fallait enlevé le s dans l'URL https)
Revenir en haut
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum