Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong camera layout for Station Square in SALVL #272

Open
kellsnc opened this issue Oct 15, 2024 · 2 comments
Open

Wrong camera layout for Station Square in SALVL #272

kellsnc opened this issue Oct 15, 2024 · 2 comments

Comments

@kellsnc
Copy link
Contributor

kellsnc commented Oct 15, 2024

Opening any of the Station Square acts in SALVL (except the first and last) will open the wrong camera layout.

This is because the game has lookup tables to match an act ID to a SET/CAM ID. For most of the levels it's a direct match, except for Station Square cameras where each act ID maps to the following layout ID: < 0, 3, 1, 4, 2, 5 >.

FYI, the SET lookup table is at 0x7E5E98 and the CAM one is at 0x7E5F48. It's a series of eight 4-bit values per level. The input is the act ID, the output is the layout ID.

We could:

  • Hardcode an exception for Station Square
  • Provide some attribute in some ini file to define the layouts to load for each act
@MainMemory
Copy link
Contributor

So wait, it uses a different CAM file than the SET file? I suppose we could add a CAMName field to the INI alongside the existing SETName field.

@kellsnc
Copy link
Contributor Author

kellsnc commented Oct 15, 2024

Yes, for some reason only the Station Square cameras don't match the act numbers, the set files match.

Act 0 = CAMSS00S
Act 1 = CAMSS03S
Act 2 = CAMSS01S
Act 3 = CAMSS04S
Act 4 = CAMSS02S
Act 5 = CAMSS05S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants