You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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.
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.
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.
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.
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.
Activity
OrionSR commentedon Feb 10, 2020
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
OrionSR commentedon Feb 10, 2020
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.
OrionSR commentedon Feb 10, 2020
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.
OrionSR commentedon Feb 10, 2020
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.
x87 commentedon Feb 12, 2020
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.
OrionSR commentedon Feb 12, 2020
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.
x87 commentedon Jan 27, 2021
this is now available with v3.7.0 (beta).
interesting idea 👍
OrionSR commentedon Jul 19, 2022
UndefinifiedGrove has auto-generated AudioEvent.txt for PS2.