Skip to content

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

@vaneseltine

Description

@vaneseltine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions