Skip to content

Commit

Permalink
rs: add error dialog for js5io and crash errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Feb 9, 2024
1 parent cfd2e7c commit f5a1da0
Showing 1 changed file with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,31 @@ public void showDocument(URL url)
.addButton("Game Status", () -> LinkBrowser.browse("https://secure.runescape.com/m=news/game-status-information-centre?oldschool=1"))
.open());
}
else if (code.equals("error_game_js5io"))
{
SwingUtilities.invokeLater(() ->
new FatalErrorDialog("OldSchool RuneScape is unable to retrieve updates from its update server. " +
"This is likely due to a firewall blocking the RuneScape server. Try disabling your firewall, or use " +
"a different network.")
.setTitle("RuneLite", "Unable to connect to update server")
.addHelpButtons()
.open());
}
else if (code.equals("error_game_crash"))
{
SwingUtilities.invokeLater(() ->
new FatalErrorDialog("OldSchool RuneScape has crashed. Crashes are most commonly caused by plugin hub plugins, " +
"but can also be caused by RuneLite or Jagex client bugs. If you receive this message commonly, try playing in " +
"safe mode to eliminate the potential of plugins causing the crash. The client log file will contain additional " +
"information about the crash.")
.setTitle("RuneLite", "OldSchool RuneScape has crashed")
.addHelpButtons()
.open());
}
else
{
SwingUtilities.invokeLater(() ->
new FatalErrorDialog("OldSchool RuneScape has crashed with the message: " + code + "")
new FatalErrorDialog("OldSchool RuneScape has crashed with the message: " + code)
.setTitle("RuneLite", "OldSchool RuneScape has crashed")
.addHelpButtons()
.open());
Expand Down

0 comments on commit f5a1da0

Please sign in to comment.