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

Trim Excess Whitespace results in empty dialogue options #5

Closed
reissue1426 opened this issue Nov 16, 2024 · 11 comments · Fixed by #6
Closed

Trim Excess Whitespace results in empty dialogue options #5

reissue1426 opened this issue Nov 16, 2024 · 11 comments · Fixed by #6
Labels
bug Something isn't working

Comments

@reissue1426
Copy link
Contributor

With whitespace trim
Screenshot 2024-11-16 234505
Without whitespace trim
Skyrim Special Edition GOG 16_11_2024 11_57_47 pm

This dialogue is from Maids II but I also saw it on other dialogue.

Found it in xedit but nothing looks off to me.
image

Might be related to the fact that the mod is using .STRINGS files?
image

@studioph
Copy link
Owner

Thanks for reporting this! To clarify - this is the correct mod from the above screenshot: Maids II - Deception?

@reissue1426
Copy link
Contributor Author

Yep thats the one

@studioph
Copy link
Owner

studioph commented Nov 18, 2024

So the interesting thing here is the Topic doesn't get touched at all by the patcher, which is shown in your screenshot - it's the 2nd response that is getting trimmed due to an extra space at the end.

What could be happening is the responses (which are being modified) now have the strings embedded in the plugin itself as opposed to being pulled from the strings file, but the topic is still trying to reference the strings file and there's a kind of mismatch there maybe. I'll have to keep investigating to see if my theory is correct. Nevermind they're all embedded so it's not that.

Are there any other FormID examples you can give me that also exhibit this behavior in-game? Having multiple data points will help.

@studioph studioph added bug Something isn't working needs info Further information is requested labels Nov 18, 2024
@studioph
Copy link
Owner

@reissue1426 Any chance of getting additional examples so I can continue investigating this? If you have any that aren't locked behind lots of quests or require lots of playtime to get to that would be preferable so that I can investigate in-game.

@studioph
Copy link
Owner

Closing for now due to lack of response and additional information to reproduce. Will open again if things change.

@studioph studioph closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2024
@reissue1426
Copy link
Contributor Author

reissue1426 commented Dec 1, 2024

Sorry for taking a while to get back to you. Here is an example that should be easy to test:
Skyrim Special Edition GOG 1_12_2024 8_04_05 pm
This is from a new save using Immersive Speechcraft, More To Say, Conversations Raise Speechcraft, and Alternate Perspective. I just started in the Bannered Mare and walked around Whiterun until I found someone with broken dialogue.

@studioph studioph removed the needs info Further information is requested label Dec 1, 2024
@studioph
Copy link
Owner

studioph commented Dec 1, 2024

No worries, thanks for getting back to me. I'll reopen and try to reproduce in my own game.

@studioph studioph reopened this Dec 1, 2024
@studioph
Copy link
Owner

studioph commented Dec 1, 2024

Ok I was able to quickly narrow down what I'm 99% certain is the cause - the Prompt field on the dialogue response records is getting accidentally set to an empty string instead of simply being left out in some cases. However, it only manifests if the response record is modified by the patcher, hence why turning off the trim whitespace setting "fixes" it.

If you're curious what I'm talking about - in the screenshots below, notice the (very subtle) coloring difference when it's an empty string vs not set.
Screenshot_20241201_105911
Screenshot_20241201_110031

I'll publish an update shortly after I add some new test cases.

@studioph
Copy link
Owner

studioph commented Dec 1, 2024

@reissue1426 I've pushed a new branch with some fixes. Would you mind running the patcher on the Branch setting with the value 5-trim-excess-whitespace-results-in-empty-dialogue-options and confirm that it also fixes it for you? If so I'll go ahead and merge this and publish a new release for everyone downstream.

@reissue1426
Copy link
Contributor Author

reissue1426 commented Dec 2, 2024

Yep that fixed it!

@studioph
Copy link
Owner

studioph commented Dec 2, 2024

All merged - you can switch back to LatestTag (preferred) which should now be v1.0.1 or main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants