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

Detect more crash reports from NeoForge + detect version in crash reports from NeoForge #94

Merged
merged 4 commits into from
Nov 6, 2024

Conversation

pavog
Copy link
Member

@pavog pavog commented Oct 29, 2024

Usually, we extract the Minecraft version and the Java version in all crash reports, and also the version of the modloader. This does not always work with NeoForge, as there are different patterns in which NeoForge outputs the version.
In older versions, you could rely on the version always being at the end of in the crash report in this format:
NeoForge: net.neoforged:47.1.84
Example from neoforge-1-20-1-server-report-entity.log

In newer versions, this pattern does not exist in the crash report. Instead, NeoForge is listed in the list of loaded mods. We can parse this list and read “neoforge” and the version from it.

Therefore, this PR not only changes the pattern for the general detection of crash reports from NeoForge, but also the extraction of the version of NeoForge from crash reports.

… NeoForgeVersionInformation.php, add pattern to detect crash report as NeoForge crash report in NeoForgeCrashReportLog.php
@pavog pavog requested a review from JulianVennen October 29, 2024 14:42
@pavog pavog requested a review from JulianVennen November 6, 2024 13:44
@JulianVennen JulianVennen linked an issue Nov 6, 2024 that may be closed by this pull request
@pavog pavog merged commit f85d637 into master Nov 6, 2024
3 checks passed
@pavog pavog deleted the neoforge-crash-report-version branch November 6, 2024 15:00
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.

NeoForge server crash report is not detected as such
2 participants