-
Notifications
You must be signed in to change notification settings - Fork 27
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
Dump Wwisestreams experiment is unable to dump audio files from LE2 #412
Comments
Seems like a good change. Good job finding this. To add language options, you'd probably need to add a dialog choice at the start of the dump operation. Can you post the language prefixes for LE2/LE3 languages - we can easily add them with our PromptDialog combobox system. Would not take us very long as long as we knew the values (en-us, fr-fr). |
Also, you should put in a pull request with this change. This way you will be credited for the work. |
Sure, I'll get on that. For the language prefixes, here is a list: For LE2: For LE3: |
The upcoming nightly will allow you to choose your language with this experiment, however it still won't work with LE2. LE2 doesn't use , to separate out items. We will have to figure out how to split the components up, because it's use of _ conflicts with other valid uses of _. |
Yeah, I just stumbled upon that issue after playing around with the code myself. However, it seems that all lines for the player start with either "en_us_player_m" or "en_us_player_f." I'm not sure how to implement a check on only that part of the string yet, but I'll take a look tomorrow and see if that fixes the issue. |
When attempting to Dump Wwisestreams via the experiments in PackageEditor, the tool is able to dump the files from LE3, however for LE2 no audio files are dumped.
I believe the issue is due to this line of code:
located in :
LegendaryExplorer/LegendaryExplorer/LegendaryExplorer/Tools/PackageEditor/Experiments/PackageEditorExperimentsS.cs
The issue is within the "en-us" portion of the line, this check is fine with LE3, however it prevents proper function in LE2
(Example of a dialogue file from LE3. All INT dialogue files from LE3 begin with en-us)
(Example of a dialogue file from LE2. All INT dialogue files from LE2 begin with en_us)
As the code checks for "en-us," LE2 dialogue files will never be extracted as none of the dialogue files begin with "en-us." This also prevents the dumping of dialogue files from other localizations, such as in the FRA localization of LE2 where all the dialogue files begin with 'fr_fr.'
I would suggest checking if parts[0] == 'en-us' or parts[0] == 'en_us,' and if possible change these comparison strings to correspond with a chosen language.
I'd like to modify the code myself to test this change, however I am unsure how to do so.
The version is 6.3 7/23/2023
The text was updated successfully, but these errors were encountered: