Jun 06, 2008, 07:54 PM // 19:54
|
#1
|
Academy Page
Join Date: Dec 2005
Location: Belgium
Guild: GWOnline [GWO]
|
Guild Wars Newsreader
Guild Wars Newsreader
http://code.google.com/p/gwnewsreader/
All Guild Wars news collected in one place (as discussed by Regina). This program reads the developer notes and in-game announcement from the wiki. It also reads the news and game-updates from the RSS feed. You can dynamicly choose which items you want to see and if theres a link in the article you can click on it to open that link in your browser.
Update notes:
Version 0.1
* First draft, includes the RSS feeds
Version 0.2
* Small bug fixes
* Adds link usability
Version 0.3
* Small bug fixes
* Adds developer notes
* Adds Ingame announcement screen
Version 0.4
* Adds GotW's
* Adds Community News
* Several small bugfixes
This program is very beta, I'm not responsible for any damage to your computer system.
Last edited by Qanar; Jun 12, 2008 at 02:28 PM // 14:28..
|
|
|
Jun 09, 2008, 06:24 AM // 06:24
|
#2
|
Krytan Explorer
Join Date: Feb 2008
Guild: No1 K O R E A [No1]
Profession: Mo/
|
Thank you, this can be very useful
-Vic
|
|
|
Jun 09, 2008, 08:17 AM // 08:17
|
#3
|
Krytan Explorer
Join Date: Sep 2007
Location: Guild Hall
Guild: Super Kaon Action Team [Ban]
Profession: R/E
|
Wow really cool, now I haven't got to look at the updates every time ^^.
Really thanks..
~Shiro
|
|
|
Jun 10, 2008, 07:19 PM // 19:19
|
#4
|
Academy Page
Join Date: Dec 2005
Location: Belgium
Guild: GWOnline [GWO]
|
I added in the GotW's and new community feed in the development version but I got a problem.
Loading the GotW's with as content (the stuff you see in the left area) the full article takes about 60 seconds to load (other readers take less then 1 second). The GotW's with as content a link to the specific page takes less then 1 second to load, but isn't nearly as pretty.
What are your thoughts on this?
ps: Adriaanz... You gonna love that screen
|
|
|
Jun 10, 2008, 07:54 PM // 19:54
|
#5
|
rattus rattus
Join Date: Jan 2006
Location: London, UK GMT±0 ±1hr DST
Guild: [GURU]GW [wiki]GW2
Profession: R/
|
Very nice.
Er...
How do you use it? The download is a .jar, which is an archive. Is something supposed to read it in situ, or is it to be extracted and then..?
__________________
Si non confectus, non reficiat
|
|
|
Jun 11, 2008, 04:22 AM // 04:22
|
#6
|
Furnace Stoker
Join Date: Apr 2006
Guild: Amazon Basin [AB]
Profession: Mo/Me
|
JAR = java runtime. If you have Java installed, double-clicking should run it. Or you may need to say "Open With..." to fix that.
|
|
|
Jun 11, 2008, 07:17 AM // 07:17
|
#7
|
Academy Page
Join Date: Dec 2005
Location: Belgium
Guild: GWOnline [GWO]
|
Double clicking it -should- work. If it opens winrar make sure that winrar is no longer associated with Jar. Or do right click and open with Java TM Platform SE Binary.
What also can work is open up your cmd.exe, cd to Desktop and then type "java -jar gwnewsreader.jar".
Be sure you got the latest Java Runtime (https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer)
Last edited by Qanar; Jun 11, 2008 at 08:30 AM // 08:30..
|
|
|
Jun 11, 2008, 12:49 PM // 12:49
|
#8
|
Pre-Searing Cadet
Join Date: Sep 2005
Guild: GoT
Profession: E/Me
|
Hi, just curios, do you also have an ANT file to easy compiling the source.
Because I extracted it, in order to hunt some bugs, but I'm having a bit of trouble running it.
Or maybe a eclipse project file or something (I have no idea in what kind of ide you are writing it)
Or maybe just the command you use to compile and test it.
|
|
|
Jun 11, 2008, 01:18 PM // 13:18
|
#9
|
Academy Page
Join Date: Dec 2005
Location: Belgium
Guild: GWOnline [GWO]
|
I'm using eclipse.
- Download the eclipse project
- Make a new project from existing location, the folder GWNewsFeed.
- Point to the new location of the jdom.jar in project - properties - java build path
|
|
|
Jun 11, 2008, 01:41 PM // 13:41
|
#10
|
Pre-Searing Cadet
Join Date: Sep 2005
Guild: GoT
Profession: E/Me
|
If I comment out the line that contains:
Collections.sort(items);
It works, why do you want to sort and on what?
Maybe ArrayLists can be used, I use them a lot, since they are pretty handy.
I have removed one usage of a deprecated method (Date(String))
And replaced it in a way that it is supposed to.
My guess that it get's slower with the GotW is just that it needs to ask for a lot more websites to parse.
(Although I don't really like the getContent method with a while nested in a while...)
But maybe you could get the GotW content in another thread so that one can start reading quickly and that if they click it in the menu, it will get fetched straight away and that another thread is collecting the content in the background.
Last edited by Balachmar; Jun 11, 2008 at 02:12 PM // 14:12..
|
|
|
Jun 11, 2008, 02:21 PM // 14:21
|
#11
|
Academy Page
Join Date: Dec 2005
Location: Belgium
Guild: GWOnline [GWO]
|
I sort the items on date, so you got the latest one on top. Collections.sort() does this using the compareTo() method. I thought I needed my items to be a Vector since the JList (swing component) needs it, but I create a new vector on that location with just the titles.
So probaly I can change my items to a Arraylist and alter StandardGui to work with one.
Edit1: I know I'm using the deprecated constructor of Date(), can you show me your adaption on it?
Edit2: Yes, more websites is exactly the reason that the GotW reader takes so long. I do fear the program isn't clean enough to add background threads to it now :-).
Last edited by Qanar; Jun 11, 2008 at 02:23 PM // 14:23..
|
|
|
Jun 11, 2008, 07:15 PM // 19:15
|
#12
|
rattus rattus
Join Date: Jan 2006
Location: London, UK GMT±0 ±1hr DST
Guild: [GURU]GW [wiki]GW2
Profession: R/
|
For some reason, my installation doesn't recognise java on its own. the only way I could run it was as follows:
"C:\Program Files\Java\jre1.6.0_06\bin\java.exe" -jar d:\downloads\gwnewsreader.jar
If I do the obvious and associate it with the java binary, I just get a pop-up with the following:
"Could not find the main class. Program will exit."
Odd. But that's a problem with my system and Java, not this application.
(Good app, by the way )
__________________
Si non confectus, non reficiat
Last edited by Snograt; Jun 11, 2008 at 07:21 PM // 19:21..
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 03:20 PM // 15:20.
|