LittleBigRefresh / Refresher

A utility for patching LittleBigPlanet games to custom servers
GNU General Public License v3.0
9 stars 3 forks source link

Advanced options #15

Open jvyden opened 10 months ago

jvyden commented 10 months ago

Ability to manually set if digest key should be patched, and other options if we implement any.

Low priority unless there is demand.

Arcadius2006 commented 5 months ago

note: there is demand

Beyley commented 5 months ago

im curious what the sudden need for this is?

speedyman08 commented 5 months ago

Multiple people have tried to patch LBP1 to lighthouse with Refresher, that wouldn't work though as beacon uses the original digest key, but refresher will set the key to "LbpPrivateServer" or something (i dont remember what the default was)

Arcadius2006 commented 5 months ago

the default is "CustomDigestKey" (imaginative, i know)

Arcadius2006 commented 5 months ago

another usecase is making some prototypes work with server aswell, since they dont always share the same digest key as the final game

Beyley commented 5 months ago

Multiple people have tried to patch LBP1 to lighthouse with Refresher, that wouldn't work though as beacon uses the original digest key, but refresher will set the key to "LbpPrivateServer" or something (i dont remember what the default was)

refresher will not patch the digest key unless autodiscover is used.

another usecase is making some prototypes work with server aswell, since they dont always share the same digest key as the final game

we dont really support prototypes anyway, so thats not a concern

jvyden commented 5 months ago

another usecase is making some prototypes work with server aswell, since they dont always share the same digest key as the final game

Patching the digest key to CustomServerDigest is meant to resolve this by unifying everything patched to one digest key. If you mean getting prototypes working on Lighthouse, then that's their issue, not ours, because we've already solved that problem.

jvyden commented 5 months ago

Multiple people have tried to patch LBP1 to lighthouse with Refresher, that wouldn't work though as beacon uses the original digest key

As Beyley says, this will only happen after a successful AutoDiscover negotiation where the server specifies usesCustomDigestKey as true (as LBR does here)

What's likely happening is you're attempting to use Refresher after already having patched your game to Refresh. In this scenario, the digest key has already been modified to CustomServerDigest from the original and since Refresher doesn't know the original key it can't change it back.

This can be solved by reverting to the original backup of the EBOOT taken when you first patch LBP by simply clicking the button to do so in the patcher's UI. I recognize that this is bad UX so I'll open an issue about using the backup for patches by default.

jvyden commented 5 months ago

Just as a note, another solution would technically be for Lighthouse to start accepting the CustomServerDigest key which would also fix prototypes, but I don't really see this happening and it ignores the root cause anyways.

jvyden commented 5 months ago

Created #49 to track that issue.