Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
Why aren't all of the URLs being downloaded?

Currently working on NuovoLauncher and have been charged with working on the core workings of the project. For those unaware, NuovoLauncher is in essence a Minecraft Launcher, although the vision is to take it much further.

However, I am struggling on the following: Getting all the Minecraft natives to download, which are needed to launch the game.

Here's the code I have so far

async function getNatives(version) {
asset_json = require(descriptorFolder + `/${version}.json`);
libraries = asset_json.libraries;
lib_url = [];
urls = []

for(lib of libraries) {
    try {
        lib_url = Object.values(lib.downloads.classifiers);
        for(jobj of lib_url) {
            partial_path = new URL(jobj.url).pathname;
            full_path = path.join(nativesFolder, partial_path);
            createFolderRecursive(partial_path);
            await utils.file.httpsGet(jobj.url, full_path);
        }
    } catch(error) {
        ;
    }
    
}}

Where the descriptor file is: https://launchermeta.mojang.com/v1/packages/ed5d8789ed29872ea2ef1c348302b0c55e3f3468/1.7.10.json

I know the code grabs all of the urls, its just not downloading all of the files.

Any ideas much appreciated -Connor

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda