PDA

View Full Version : Chrome Pso2 Extention Version 1.50 w/ Firefox Alpha



Kion
Jul 14, 2013, 08:43 AM
Version 1.50 is now available in the webstore, the notification system should be working again.
Webstore Link (https://chrome.google.com/webstore/detail/febdkhimnahpmjpbidcofjdpjjggojhj)

Sorry for the downtime. I haven't been playing Pso2 at all, uninstalled the extension on my own computer, and found out that right after I upgraded to 1.47 that twitter had decided to update their API to version 1.1 making my url calls on the extension invalid. For version 1.50, the user interface, aside from the options menu, shouldn't be any different from before. The back end on the other hand, now calls an application server that I wrote for the extension instead of twitter.

New Options Menu:
The old options page looked terrible and wasn't very clear is you actually saved anything or not. The current options page uses jQuery with the Mobile Style library for a pretty sweet looking options page. The current options are reflected when you open it, so you can see if your browser is set or not. Other than that, hit a ship, select if you want notifications or not and hit save.
[spoiler-box]
http://arks-layer.com/twitter/screenshot.png
[/spoiler-box]

Backend Mumbo Jumbo:
The previous extensions used url calls from twitter to get information from twitter and parse the type and time on the client side. That had several downsides of not getting responses from twitter, not converting to the local time zone correctly, and having to update the client directly every time a new EQ was put into circulation.

For version 1.50 I wrote my own application server with Nodejs and MongoDB to listen on twitter and parse the time and type server side. Everything is managed including the messages and the types on the server, so I can dynamically add and edit EQ information directly on the server and have it take effect with out having to update the client directly. Also, since there's not that much data being exchanged, it shouldn't backup like twitter that get's overloaded pretty often.

In addition, the server can be expanded. Because I'm using Nodejs with the twitter module instead of url calls to twitter directly, I can get everything tweeted by an account, tweets at that account, and tweets that the account follows. In otherwords, I've pretty much made the exact equivalent of the pso2_emg_bot just in Node.js (instead of python?). So it maybe possible to improve an expand on that system.

The only problem is that parsing twitter, and trying to get information from that in terms of time and date is pretty much a haphazard process. I might make a webform, for an addition to the chrome extension that would allow players to report EQ's from the drop down menu instead of having to write in some consistent format and look up what the current time in Japan is.

Notifications:
Notifications were really annoying when I tried implementing them before, I was using timeouts to call the server every two minutes, which generally caused an annoying pop up each time. Now when an EQ is detected, the extension uses the time object for when it starts and uses that as a timeout to get it right on the hour when the next pop up appears. So basically you should only see two pop ups. The script runs once when you open the browser, so if you're constantly opening and closing chrome when an EQ is announced or in effect, then you'll get a pop up when the browser comes up. Haven't really tested it enough to see if I should add some code to prevent that, but for now, if it's annoying just go to the options page and turn it off.

Firefox Extension Alpha:
(Work in progress!): Download Link (http://arks-layer.com/twitter/pso2addon.xpi)

[spoiler-box]
Working:
- Icon
- Popup menu displayed on click (sort of)
- Links in popup open in new tab on click
- Context scripts for translation working
- Ajax call for checking server
- How to set icon image
- Setting image and message in popup
- Setting options in local storage
- display and set options in firefox
Bugs:
- Hiragana keyboard causes screen to display "[Object object]" when opened
Development Checklist
- Desktop notifications
[/spoiler-box]

Only my third day working on it, but for the most part it seems to be working. I realized on the previews i posted before this, I had the request to the server set as static to Ship01. Changing the ship changed the message to reflect the ship number, but the addon displayed the same EQ for everything. That has been fixed, also, selecting a ship is saved when closed and should still be set when the window is opened again. Aside from that, the color change seems to work, the context scripts for translating the player page seem to work. There's still several details, fixes and improvements that need to take place, but the functionality seems to be there, so I'm upgrading the status to alpha.

3,455 users on the chrome extension. Just wanted to say thanks for everyone who downloaded the extension, and sorry for the inconvenience.

Rosaluna
Jul 14, 2013, 11:22 AM
Great to see it working again! Thank you very much! :)

Eman2417
Jul 14, 2013, 11:59 AM
I'm glad this is back, now I don't have to log on.
Great job :-)

Shinamori
Jul 14, 2013, 12:01 PM
It's asking me to publish an app..

Manta Oyamada
Jul 14, 2013, 01:17 PM
THX Kion

Kion
Jul 14, 2013, 05:47 PM
It's asking me to publish an app..

Sorry, I copy and pasted the link right when I published it. Link in the first post should be working now.

Tyreek
Jul 14, 2013, 06:05 PM
Ah, so the firefox version is ready(sort of) lol. I'll be happy to test it out for you since firefox is my main browser.

... I still need to get off my butt and work on more icons. lol But let me know if you need some new stuff for it.

Kion
Jul 14, 2013, 09:37 PM
Firefox version is no where close to ready (even for testing >.<). I added my development checklist to a spoiler-box in the first post.

Kion
Jul 15, 2013, 11:25 AM
Firefox development has been coming along faster than expected. Second day working on it, and for the most part it's pretty close to its chrome counter part.

To set the ship to follow:
Goto the tools menu, addon, click on the extensions tab, and click on preferences. There is a drop on tab to select the ship. Changes will be reflected immediately. Desktop notifications are not supported yet.
Ship follow not permanent:
Need to get to sleep, so I'll have to address this later. It seems that the ship isn't saved on close and resets to Ship01 each time firefox is closed and opened, meaning you have to set the addon preferences each time. Keep in mind this is a preview.
Icon Position:
Looking at Mozilla's bug report, it seems they intent on making addons in the navbar a possibility in the future, but for now, it seems they are restricted to the addon bar. I did try a tweak to put the icon in the navbar, but clicking on it causes the popup to display in the middle of the window, so unless I can find a work around for that, that's where it's going to stay.

genjen
Aug 8, 2013, 10:11 AM
is it me or has the firefox addon not shown an eq since the 6th?

Tyreek
Aug 8, 2013, 03:37 PM
I noticed as well. Not surprised though. It still uses that twitter notification, and that's not always reliable. Also, I've been checking the twitterbot for the new Coast EQ, and it hasn't displayed it at all. I talked with Kion about that last update. Chances are the format might have been changed.

deahamlet
Aug 10, 2013, 02:49 PM
is it me or has the firefox addon not shown an eq since the 6th?

My Chrome extension hasn't updated since the 6th either.

ANIMEniac
Dec 8, 2014, 09:45 AM
Is there a way to get this working with JST?

Tonkatsu
Jan 3, 2015, 12:39 AM
My Chrome extension hasn't updated since the 6th either.

Mine is saying 12/13/2014 :[ Either way - not recently.

Ashes Darkmare
Jan 3, 2015, 11:38 AM
Not been working for me either

Etherwolf
Jul 22, 2015, 04:08 PM
Sorry to beat a dead thread, but...can't seem to download the extension...

Youkai-Sama
Jul 22, 2015, 06:36 PM
That's cause this shyte ain't worked in months.