ProjectLighthouse
ProjectLighthouse copied to clipboard
LBP will show levels that aren’t compatible for the game
Describe the bug In LBP1 it will show all levels published on the servers instead of levels compatible for the game. This issue persists in LBP1, LBP2, LBP3, and LBP Vita
To Reproduce Steps to reproduce the behavior:
- Open any LBP
- Click on the community tab
- Look at the published levels.
- It will show every published level instead of ones that are compatible
Expected behavior The game will show every level that is compatible for the game and will show the compatible levels for the “published levels” count for the game.
Screenshots
Game(s) affected
- Platform Every platform
- Game Every game
Additional context Add any other context about the problem here.
iirc it was like this on the official servers too
i have no clue if it actually was like that though
iirc it was like this on the official servers too
i have no clue if it actually was like that though
It was.
Luckily, LBP includes the game version in User-Agent:
-
LBP1:
MM CHTTPClient $Id: HTTPClient.cpp 37276 2010-01-15 19:51:36Z amy $
-
LBP2/LBP Vita/LBP HUB/LBP3(0–1.26) include the app version:
MM CHTTPClient LBP2 1.26
-
LBP3 1.27+:
MM CHTTPClient LBP3 1.28
You could potentially have some kind of hash table User-Agent->enum mapping in the database for levels/resources, and decide to filter levels/resources that way. I wouldn't try this for LBP1 though since revision checks branch off when it's a disc/digital copy (don't attempt with LBP1.)