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

[Extra] Add a small tool to find orphan local scripts #35

Open
dwatteau opened this issue Jul 14, 2021 · 0 comments
Open

[Extra] Add a small tool to find orphan local scripts #35

dwatteau opened this issue Jul 14, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dwatteau
Copy link
Owner

dwatteau commented Jul 14, 2021

An idea for an extra tool…

  1. Extract the resources of the current game with scummrp -o
  2. In each room, descumm each script
  3. List every local script (LSCR) being called in this room
  4. Compare this to the list of available local scripts in that room
  5. If some local scripts are never called: print them, for further analysis.

For example, in MONKEY2, I discovered that LFLF_0075/ROOM/ENCD never starts the LFLF_0075/ROOM/LSCR_0201 script, which contains extra sentences from Wally (was it an oversight or a leftover, that's another question).

This small tool would help finding other potentially "forgotten" scripts in the games.

@dwatteau dwatteau self-assigned this Jul 14, 2021
@dwatteau dwatteau added the enhancement New feature or request label Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant