Coder Social home page Coder Social logo

Modded Jars Won't Launch about msa4legacy HOT 10 CLOSED

nepnep21 avatar nepnep21 commented on September 17, 2024
Modded Jars Won't Launch

from msa4legacy.

Comments (10)

NepNep21 avatar NepNep21 commented on September 17, 2024

The authentication method is irrelevant for a bug like that one, as the content repository doesn't require a token at all, and above all else that is a launcher behavior bug since it shouldn't even be downloading anything. I will look into it.

from msa4legacy.

mledvd avatar mledvd commented on September 17, 2024

Ah, thank you. And I should also apologize for my somewhat frantic tone. I've been a 1.6 launcher holdout for years now, and I finally folded and migrated my account when I found out about this project, and I was scared because I was frantically trying to figure out how to get my favorite versions working again.

I really appreciate the work that you've done with this project.

from msa4legacy.

NepNep21 avatar NepNep21 commented on September 17, 2024

The bug seems to be 2-fold:

  • The version manifest is updated even when it doesn't need to.
  • The version jar is updated even if the hash from the manifest is empty/missing.
    I feel I am very close to fixing it but I will continue working on it tomorrow (or when I have time after that).

from msa4legacy.

NepNep21 avatar NepNep21 commented on September 17, 2024

I think https://github.com/NepNep21/MSA4Legacy/actions/runs/4974341988 should fix it, though specifically I recommend setting the hash of the client jar (screenshot attached) to an empty string rather than indiscriminately deleting fields, deleting things may also work though. Please report whether my fix works, and if it does I will merge it into the main branch.
image

from msa4legacy.

NepNep21 avatar NepNep21 commented on September 17, 2024

@Schnyarf Please test that build so I can merge it.

from msa4legacy.

mledvd avatar mledvd commented on September 17, 2024

I'm not sure how to download the updated binaries, but I have found that your initial suggestion appears to work.

from msa4legacy.

NepNep21 avatar NepNep21 commented on September 17, 2024

The binaries are in the "artifacts" section of the link.

from msa4legacy.

mledvd avatar mledvd commented on September 17, 2024

I have since discovered that the issue appears to be linked to the fetching of assets. The original 1.6 launcher could handle it when "assetIndex" was absent, but this modified one cannot.

Deleting everything after the "minimumLauncherVersion 4 comma" is the tried and true trick that has always worked for me with jar mods. I don't know what the URL field of assetIndex does, but its absence shouldn't prevent the game from launching when it didn't in the vanilla launcher.

Upon testing the build you linked, it does not appear to fix the issue :(.

from msa4legacy.

NepNep21 avatar NepNep21 commented on September 17, 2024

Deleting key-value pairs that "come after <another pair>" in JSON is inherently unreliable, JSON does not require implementations to make any guarantees about what's before or after something else within an object, for all we know there are just different things after it than what you're used to. Regardless, setting a value to another value (in this case an empty string) is not undefined behavior of course, so setting the hash to an empty one is what will be worked on if it doesn't work, not deleting random pairs.

Also I don't recommend editing comments to notify someone on github about results, as it does not cause github to email us :p

from msa4legacy.

mledvd avatar mledvd commented on September 17, 2024

While I don't know what is causing this launcher to behave differently from the vanilla one, I have figured out how to get the launcher to respect both my custom .jars as well as my custom assets directories, so this issue no longer bothers me.

from msa4legacy.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.