Page 1 of 1

Estimations

PostPosted: Sat Jul 21, 2007 1:15 pm
by SigmaJargon
There are a few things I've been folding into my Extended Stats script that I use on Gaia that would be really great to see on the portal.

(1) A junk estimate for everybody on the Overall list, and 1-9 on each lake. Channels allows calculations of an exact junk score for everybody 1-9 on Overall and an exact junk score 1-9 on each lake assuming that it is the only lake they fish in (if they're within the top 50 on the other lakes they've fished in, the the exact score can be calculated). An approximate junk score can be found for everybody on the Overall list. The math from Channels should be pretty self evident, and I can provide the math to calculate junk from overall if you're interested.
(2) An approximation for PI, or at the very least don't display the 10%. The Gaia stats page hasn't calculated that since before I started competitively fishing. Image
(3) On Overall, an estimate of the amount of fishing each person can do in Durem before they fall off the rankings.

These things, at least, would give a better view of what's happening on Overall and highlight a few of the high powered junkers. Thoughts?

Re: Estimations

PostPosted: Sat Jul 21, 2007 8:50 pm
by Acorns
All very good suggestions!

(1) I'm not familiar with "Channels", unless you mean the places where you talk in multiplayer fishing? (I've not really been on gaia in forever, hehe). I'll go look for them shortly, however, if they are something my site can access (aka, without a gaia account) I can grab data from them and figure it in.

(2) Yea... that kind of screwed a lot of calcs on the old site up when they took out PI. I should be able to calculate it with some accuracy though.

(3) Slightly harder, but I think doable (my biggest problem is where to stuff all this data on the page :P)

Re: Estimations

PostPosted: Sat Jul 21, 2007 9:29 pm
by Acorns
(Note: This is me rambling)

Channels are very interesting!!

It would be nice if they had simply added the "true" fishcounts/scores to the fishing stats page, but having them there is better than nothing.

Although they don't require me to log in to view the needed channels it looks like they use a session to carry over data :( Although it should be possible to allow it to set a session for the grabber (I use curl) and send that session back later, the user curl ends up running under has no write permissions. I suppose I could save the cookie to the database, and grab it back out lol.

Let see... it calls ch_toggle to add the channel I want. That is just a wrapper, eventually ch_add is called, which calls GChannels.setkey(ch, 1)... GChannels is a Abstract.GCookie(opts), and setkey... aha, maybe not a session, just a cookie with the information in it.

Setkey gathers together random bits of data and compiles them into a cookie, eventually..
document.cookie = name + '=' + cval + this.makecopts(options), where cval holds most of the interesting options

A cookie might be...
ch_sub=ch_news~~1||ch_spot_donation~~2||ch_spot_storeitem~~3||ch_spot_game~~4||ch_spot_avatar~~5; s_cc=true; s_vsn_gaiainteractiveprod_1=2074133907329; s_sq=%5B%5BB%5D%5D; __qca=1185080915-32578739-51081721; __qcb=2046784077; gaia4_sid=4deea5bc087acb5d5bbdf455e0810af2

or, more to the point, the cookie we want is:

ch_sub=ch_fishing_bassken~~1||ch_fishing_durem~~2||ch_fishing_gambino~~3||ch_fishing_top~~4; s_cc=true; s_vsn_gaiainteractiveprod_1=2074133907329; s_sq=gaiainteractiveprod%3D%2526pid%253Dchannels%2526pidt%253D1%2526oid%253Dhttp%25253A//www.gaiaonline.com/mygaia/c.txt%2526ot%253DA; __qca=1185080915-32578739-51081721; __qcb=2046784077; gaia4_sid=4deea5bc087acb5d5bbdf455e0810af2

Lets see what gaia does if I take off the session id, and all the useless info...

Annnd.... its happy!

With just the cookie ch_sub:

ch_sub=ch_fishing_bassken~~1||ch_fishing_durem~~2||ch_fishing_gambino~~3||ch_fishing_top~~4;

I get exactly the page I want. Alrighty. Now to set up cURL to send that cookie to the page and see what happens.

Woot! It returns the data! Making use of this data will probably require a few extra DB fields, but from now on its on my side and easy.

I have serveral mini portal projects I'm working on before I will get to this, but it will be done.

Re: Estimations

PostPosted: Sun Jul 22, 2007 9:56 am
by SigmaJargon
What an interesting stream of consciousness. Glad to see inspiration blossoming, for sure.

As to (3), it's the least important of the suggestions. It's a useful calculation to compare the relative progress through the month (assuming, of course, that a fisher is going Bass'ken->Gambino->Durem or Gambino->Bass'ken->Durem) or how much longer they can stay in Durem before they have to decrease pace and head back to Bass'ken and Gambino to recharge, but I can see it's not that great as a recorded number. It won't stop me from continuing to add it to the Gaia Fishing Stats page, though. :)

Re: Estimations

PostPosted: Fri Aug 10, 2007 9:36 am
by Acorns
We announced this long ago, but it has finally come to pass: the Channels page is no more. As we continue to refine the interface, we plan to add enough customizable elements to effectively replace Channels.

/sigh, scratch one of those ideas.