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

Fix find_character_info #278

Conversation

YetAnotherModder
Copy link
Contributor

Background:
I've been tinkering to solve this issue that some users are having where the getdisplayname() function fails to run in Fallout 4 leading to the game not loading NPC profiles correctly. That prompted me to look into why the ID search in the Mantella Software lookup functions weren't picking up the slack when the name is missing.

Changes:
Modified the hex conversion of character_id to trim the first two characters instead of replacing X with '' Modified the find_character_info to make it so partial matches are checked for 5, 4 and 3 characters sequentially and leading zeroes are ignored in both the converted hex value from the game and the hex value in the baseID in the character.csv. There's also a few check in there to account for float & NaN values

Modified the hex conversion of character_id to trim the first two characters instead of replacing X with ''
Modified the find_character_info to make it so partial matches are checked for 5, 4 and 3 characters sequentially and leading zeroes are ignored in both the converted hex value from the game and the hex value in the baseID in the character.csv. There's also a few check in there to account for float & NaN values
@art-from-the-machine art-from-the-machine merged commit 17c7269 into art-from-the-machine:main May 15, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants