Skip to content

AudioEvents.txt as Constants #17

Open

Description

@OrionSR

Because it was easy. Over 7000 entries though. Not sure of the implications.

The attached file is for PC. I know PS2v1 is different. It's probably pretty stable in PC releases and later. I'll check if this seems like a good use of this new feature.
constants.txt

Activity

  1. OrionSR commented on Feb 10, 2020

    @OrionSR
    Author

    Sanny lags terribly when compiling the complete list of AudioEvents constants. I have trimmed the list to just the "Easy Audio Events" that can be used without first loading the wav since they're great for adding bells and whistles to cleo scripts.
    EasyAudioEvents.txt

  2. OrionSR commented on Feb 10, 2020

    @OrionSR
    Author

    AudioEvents.txt file has a similar format to constant,txt. A space is used for a separator rather than the equals char. And there;s a double-line format I figured wouldn't matter. So I renamed it to constants.txt but Sanny didn't process it correctly.

    Perhaps Sanny can read and optimize AudioEvents.txt as a standard data file as a supplement to constants.txt.

  3. OrionSR commented on Feb 10, 2020

    @OrionSR
    Author

    There are several constant specific opcodes that would seem to offer an opportunity to decompile unambiguous constants. There's a great deal of overlap in the lower values. Also, some icons are defined as constants, as are some vehicle model

    04BB: set_interior could be a constant too - noticed it near all the other constant opcodes in SA starting at 04A3:, I'm considering strategies to add more constants so examples in opcode.txt can show constants instead of values when appropriate. I'm not sure if this one fits.

  4. OrionSR commented on Feb 10, 2020

    @OrionSR
    Author

    Constants.txt has not been incorporated in the Constants help page.

    Constants could use support similar to Ctrl+Space lists and Ctrl+Alt+H conversions.
    In this case, conversion that lets the use resolve ambiguous constants.

  5. x87 commented on Feb 12, 2020

    @x87
    Collaborator

    Autocomplete list could benefit from virtual scrolling (a technique allowing to display infinite lists while only rendering a few visible lines). This can go as a separate feature/enhancement request.

  6. added
    discussion
    on Feb 12, 2020
  7. OrionSR commented on Feb 12, 2020

    @OrionSR
    Author

    I ran into another problem with using AudioEvents.txt to enumerate sound files; the file appears to only be present on the PC version. Maybe it's hidden in another folder I didn't check but I suspect I'm not going to find any other reference. The few easy sounds I've tried on Android worked as expected. I'm not expecting any changes. Several easy events that I compared to PS2 scripts appeared to match, but the dialog wav numbers all appear to be different.

  8. x87 commented on Jan 27, 2021

    @x87
    Collaborator

    Constants could use support similar to Ctrl+Space lists

    this is now available with v3.7.0 (beta).

    Ctrl+Alt+H conversions.

    interesting idea 👍

  9. OrionSR commented on Jul 19, 2022

    @OrionSR
    Author

    UndefinifiedGrove has auto-generated AudioEvent.txt for PS2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionscope:IDE

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions