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

progressBar indicators (mana/health/stamina/spirit) fail to update if player customizes labels in Simu FE #17

Open
vaneseltine opened this issue Apr 16, 2021 · 0 comments

Comments

@vaneseltine
Copy link

To parse vitals from the game feed, Profanity requires a value for the text field with a space prior the actual value of the vital. Specifically, the line parsing progress bar updates is:

xml =~ /^<progressBar id='(.*?)' value='[0-9]+' text='.*?\s+(\-?[0-9]+)\/([0-9]+)'/

This is a typical example of a line that Profanity works fine with, where text='mana 158/159':

controls='mana' left='25%' top='0%' width='25%' height='100%'/><progressBar     
id='mana' value='99' text='mana 158/159' left='25%' customText='t' top='0%'     
width='25%' height='100%'/></dialogData>You release 1 mana into the surrounding 
area.

But if the name of the progress bar has been customized in SF FE it may look different, such as text='221/223' if the "mana" name was removed:

controls='mana' left='25%' top='0%' width='25%' height='100%'/><progressBar     
id='mana' value='99' text='221/223' left='25%' customText='t' top='0%'          
width='25%' height='100%'/></dialogData>You release 1 mana into the surrounding 
area.

In the latter case, Profanity will silently fail to ever update the mana bar.


A workaround is to issue the following game commands to delete the customizations completely:

_progba health 0
_progba stamina 0
_progba spirit 0
_progba mana 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant