Emails are disabled - for account issues, post in #help on the NI Discord.

NI Server Browser
#17
(06-01-2015, 11:44 PM)Jalau link Wrote:So you want me to use methods to parse XML instead of just splitting the text?
You don't have to, but you treat the xml as text instead of xml, which Java has a built in API to handle. You can translate it to an object model and read the elements. If you ever need more elements from the future out of the xml, this makes it more extensible too. JAXP gives some interfaces for this.

(06-01-2015, 11:44 PM)Jalau link Wrote:For the updateServerData part, I don't know exactly what you mean. Could you maybe explain that part again?
Yeah that was unclear, sorry. I meant this block below. I think you can return the name of the selected frame and perform a string compare to the data.getName, rather than check every single combination for a mismatch.
Code:
+            if (data.getName().contains("EU") && !SettingsFrame.eu.isSelected())
+                return;
+
+            if (data.getName().contains("NA") && !SettingsFrame.na.isSelected())
+                return;
+
+            if (data.getName().contains("AU") && !SettingsFrame.au.isSelected())
+                return;
+
+            if (data.getName().contains("Normal") && !SettingsFrame.normal.isSelected())
+                return;
+
+            if (data.getName().contains("Hard") && !SettingsFrame.hard.isSelected())
+                return;
+
+            if (data.getName().contains("Ragnarok") && !SettingsFrame.ragnarok.isSelected())
+                return;
+
+            if (data.getName().contains("Event") && !SettingsFrame.other.isSelected())
+                return;
+
+            if (data.getName().contains("Cavalry") && !SettingsFrame.cavalry.isSelected())
+                return;
Quote Board is on Discord (last updated 2024.10.10)
"When I feel bad, I read your quote board." - Corndog

Tofu: People call Tricksters racist, yet we have the most Muslim members of any house.
PCK: If Islam is a religion of peace, and Tricksters have the most Muslims, then is House of Tricksters the house of peace?
Falankos: I always knew that we were the good guys.
Reply


Messages In This Thread
NI Server Browser - by Jalau - 06-01-2015, 08:54 PM
Re: NI Server Browser - by BlackSniper - 06-01-2015, 09:31 PM
Re: NI Server Browser - by Jalau - 06-01-2015, 09:36 PM
Re: NI Server Browser - by clickeverywhere - 06-01-2015, 09:52 PM
Re: NI Server Browser - by Jalau - 06-01-2015, 10:08 PM
Re: NI Server Browser - by Fireandblood - 06-01-2015, 10:25 PM
Re: NI Server Browser - by Jalau - 06-01-2015, 10:28 PM
Re: NI Server Browser - by Malong - 06-01-2015, 11:33 PM
Re: NI Server Browser - by Jalau - 06-01-2015, 11:44 PM
Re: NI Server Browser - by Spoop - 07-01-2015, 12:58 AM
Re: NI Server Browser - by Jalau - 07-01-2015, 01:06 AM
Re: NI Server Browser - by Moe! - 07-01-2015, 03:21 PM
Re: NI Server Browser - by Jalau - 07-01-2015, 03:41 PM
Re: NI Server Browser - by Deerpig - 07-01-2015, 04:36 PM
Re: NI Server Browser - by Jalau - 07-01-2015, 04:55 PM
Re: NI Server Browser - by Godric - 07-01-2015, 05:09 PM
Re: NI Server Browser - by Malong - 07-01-2015, 05:44 PM
Re: NI Server Browser - by Jalau - 07-01-2015, 06:16 PM
Re: NI Server Browser - by Malong - 07-01-2015, 06:51 PM
Re: NI Server Browser - by Lea - 07-01-2015, 07:31 PM
Re: NI Server Browser - by Jalau - 07-01-2015, 07:58 PM
Re: NI Server Browser - by Lea - 07-01-2015, 08:10 PM
Re: NI Server Browser - by Jalau - 07-01-2015, 08:35 PM
Re: NI Server Browser - by Nka19 - 07-01-2015, 08:50 PM
Re: NI Server Browser - by Marv - 07-01-2015, 10:10 PM
Re: NI Server Browser - by JerrePrawnfield - 12-01-2015, 10:21 AM
Re: NI Server Browser - by DR. - 12-01-2015, 11:54 AM
Re: NI Server Browser - by Jalau - 12-01-2015, 02:54 PM
Re: NI Server Browser - by Jalau - 17-01-2015, 09:15 PM
Re: NI Server Browser - by Maroon - 17-01-2015, 10:37 PM
Re: NI Server Browser - by Jalau - 17-01-2015, 10:47 PM
Re: NI Server Browser - by Bobo - 09-02-2015, 09:51 PM
Re: NI Server Browser - by GermanGamer - 10-02-2015, 06:31 AM
Re: NI Server Browser - by Deerpig - 10-02-2015, 06:43 AM
Re: NI Server Browser - by Lophorius - 10-02-2015, 09:08 AM
Re: NI Server Browser - by Sargent Q - 10-02-2015, 02:20 PM
Re: NI Server Browser - by Deerpig - 10-02-2015, 05:25 PM
Re: NI Server Browser - by Jalau - 10-02-2015, 05:39 PM
Re: NI Server Browser - by Deerpig - 10-02-2015, 06:21 PM
Re: NI Server Browser - by Jalau - 10-02-2015, 07:09 PM
Re: NI Server Browser - by WLincoln - 11-03-2015, 12:21 AM
Re: NI Server Browser - by Jalau - 12-03-2015, 09:01 PM
Re: NI Server Browser - by avirusc - 12-03-2015, 09:11 PM
Re: NI Server Browser - by Jalau - 13-03-2015, 05:37 AM
Re: NI Server Browser - by Jalau - 29-08-2015, 03:52 PM
Re: NI Server Browser - by Eternal - 30-08-2015, 08:54 AM
Re: NI Server Browser - by Jalau - 30-08-2015, 09:53 AM
Re: NI Server Browser - by Jalau - 25-12-2015, 11:02 PM
Re: NI Server Browser - by Nopanda - 04-01-2016, 03:44 PM
Re: NI Server Browser - by Salvador - 07-01-2016, 12:46 AM
Re: NI Server Browser - by Jalau - 13-02-2016, 06:03 PM
RE: NI Server Browser - by Jalau - 10-04-2016, 03:25 PM
RE: NI Server Browser - by Jalau - 04-04-2017, 02:48 PM
RE: NI Server Browser - by The_Drunken_One - 09-04-2017, 04:08 AM
RE: NI Server Browser - by Jalau - 17-04-2018, 02:59 PM
RE: NI Server Browser - by Nopanda - 17-04-2018, 03:11 PM
RE: NI Server Browser - by Jalau - 17-04-2018, 08:02 PM
RE: NI Server Browser - by Ken_Repeaterman - 03-09-2019, 02:41 PM
RE: NI Server Browser - by Acea - 24-03-2020, 10:44 PM
RE: NI Server Browser - by Malong - 25-03-2020, 02:24 AM
RE: NI Server Browser - by Flavius_Zeno - 01-04-2022, 07:47 PM
RE: NI Server Browser - by CzechNorris - 01-04-2022, 09:55 PM
RE: NI Server Browser - by Zoger - 02-04-2022, 10:51 AM
RE: NI Server Browser - by Flavius_Zeno - 02-04-2022, 11:21 AM
RE: NI Server Browser - by Kriegstofu - 03-04-2022, 08:31 AM
RE: NI Server Browser - by Akinaxis - 04-04-2022, 01:11 AM
RE: NI Server Browser - by Forward - 05-04-2022, 09:12 PM
RE: NI Server Browser - by Forward - 08-04-2022, 05:11 PM
RE: NI Server Browser - by Akinaxis - 08-04-2022, 05:30 PM
RE: NI Server Browser - by Acea - 08-04-2022, 05:42 PM
RE: NI Server Browser - by Forward - 08-04-2022, 08:12 PM
RE: NI Server Browser - by Flavius_Zeno - 08-04-2022, 08:16 PM
RE: NI Server Browser - by Akinaxis - 08-04-2022, 09:19 PM
RE: NI Server Browser - by Forward - 12-04-2022, 07:24 PM
Re: NI Server Browser - by Jalau - 07-01-2015, 09:16 PM
Re: NI Server Browser - by Jalau - 07-01-2015, 11:43 PM



Users browsing this thread: 1 Guest(s)