Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

175
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda