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

User-friendly error messages #417

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ranhai613
Copy link
Collaborator

@ranhai613 ranhai613 commented Jan 9, 2025

Move HS version check from InitializeResources to PreInitializeResources

Currently, HS version parsing and lua parsing are done in the same function InitializeResources. Depending on the order of rapidxml node, sometimes lua parsing is done before HS version parsing. Here is one problem. When you use outdated HS, a bunch of lua errors would occur as well as HS worng version error. If a lot of lua errors occur first, user can easily miss the HS version error that appears at the end of errors they get. Then user would be confused being unaware what is the cause.

This pr moves HS version parsing from InitializeResources to PreInitializeResources so that it can make sure version parsing is always done before lua parsing. Therefore user will see HS version error first and will be able to come up with the idea that a bunch of lua errors they got later are due to outdated HS version.

Add direction about downgrading FTL to function-address-not-found error

People often get error that says "Failed to find address for function AchievementTracker::GetShipAchievements" because they forgot to downgrade FTL.

This pr adds a direction about downgrading FTL when getting address-not-found error for AchievementTracker.
image

@ranhai613 ranhai613 changed the title Move HS version check from InitializeResources to PreInitializeResources User-friendly error messages Jan 10, 2025
@ChronoVortex ChronoVortex added this to the 1.17.0 milestone Jan 10, 2025
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.

2 participants