What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » World Cup Live 2006

Pages: (11): « First « 6 7 8 9 [ 10 ] 11 » Last »
World Cup Live 2006
Author: Message:
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Error for World Cup Script
You could have typed this entire thing in the world cup script thread you know :dodgy:
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
06-27-2006 08:13 PM
Profile E-Mail PM Web Find Quote Report
hanlin
Junior Member
**

Avatar

Posts: 16
43 / Male / –
Joined: Jun 2006
RE: World Cup Live 2006
I did some modifications for personal use, and perhaps some suggestions for the script:

1) I read from 2 websites: BBC for score and NYtimes for live play-to-play action.

I have not found a way to automatically read in the info from the NYtimes, so for now I have to manually enter the starting point to read in the text about 5 times every match :( Does anyone knows a better live text feed site/rss, perhaps something short and sweet like the worldcup site's matchcast or espn gamecast?

2) The format of the string is {BBC-score}{NYtimes-action}. This can be quite long, so i display it as my nick and it overflows to the psm.

3) I also modified the toasts to differenciate goals from other events like start/HT/FT. (something like the worldcup site matchcast)


I also have an idea to "rip" some live picture off the internet and merge it with the score and display it as my "live" dp... but I have no idea where to get the photo and how to process it during runtime... :S:S
06-27-2006 11:44 PM
Profile E-Mail PM Find Quote Report
omega_
New Member
*


Posts: 6
Joined: Jun 2006
RE: World Cup Live 2006
The newssource only shows AET, no PSO score and etc. :)

maybe the offical fifa yahoo website would be a better source, not sure how is the data going to be captured though.
06-30-2006 05:52 PM
Profile E-Mail PM Find Quote Report
hanlin
Junior Member
**

Avatar

Posts: 16
43 / Male / –
Joined: Jun 2006
RE: World Cup Live 2006
I managed to get live text feed from http://footymadwc.sportbox.tv. page format is standardised so it was quite easy to extract the data. I display the last 3 plays and their minutes on my nick and psm.

However, I found that the refreshing is a bit weird. Think its because IE and Messenger share the same cache, so I have to keep the page open in IE to let the data update correctly. Wonder if there is anything  I can do about it...
06-30-2006 07:36 PM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
O.P. RE: RE: World Cup Live 2006
quote:
Originally posted by hanlin
I managed to get live text feed from http://footymadwc.sportbox.tv. page format is standardised so it was quite easy to extract the data. I display the last 3 plays and their minutes on my nick and psm.

However, I found that the refreshing is a bit weird. Think its because IE and Messenger share the same cache, so I have to keep the page open in IE to let the data update correctly. Wonder if there is anything  I can do about it...

You should have kept a bit of my code in.  I took the URL and changed it thus:

"http://...../page.asp?refresh="+Math.random();

That adds a random number to the url so that the page will never be cached. :)
06-30-2006 07:39 PM
Profile E-Mail PM Find Quote Report
hanlin
Junior Member
**

Avatar

Posts: 16
43 / Male / –
Joined: Jun 2006
RE: World Cup Live 2006
I tried that, but it doesn't seem to work for the website I am using...

mid = "3034908";
var url = "http://footymadwc.sportbox.tv/football/matchcentre/matchcentre.php?id=" + mid;

I changed it to:

var url = "http://footymadwc.sportbox.tv/football/matchcentre/matchcentre.php?id=" + mid + "?refresh="+Math.random();

couldn't get anything out of it. Did I do anything wrong?
06-30-2006 07:52 PM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
O.P. RE: World Cup Live 2006
Yes, if there's already a variable in the url it'll need to be &refresh

Though I suppose that shouldn't really matter... but try anyway.
06-30-2006 08:27 PM
Profile E-Mail PM Find Quote Report
hanlin
Junior Member
**

Avatar

Posts: 16
43 / Male / –
Joined: Jun 2006
RE: World Cup Live 2006
Wow! It works! thanks :D
06-30-2006 08:41 PM
Profile E-Mail PM Find Quote Report
omega_
New Member
*


Posts: 6
Joined: Jun 2006
RE: World Cup Live 2006
hanlin, could you post your working script here thanks!
07-01-2006 12:55 AM
Profile E-Mail PM Find Quote Report
hanlin
Junior Member
**

Avatar

Posts: 16
43 / Male / –
Joined: Jun 2006
RE: RE: World Cup Live 2006
quote:
Originally posted by omega_
hanlin, could you post your working script here thanks!

Here it is... But don't expect it to be bug free... I think there's a little problem with the nickname/psm change upon fulltime... and a bit of other stuff here and there.. It was modified to work.. but barely... :S:S

You will need to modify the script before every match to match the ID from the website. Before the match, visit the website and edit the script (line1).

Here's how to:
   Go to http://wc.footymad.net/live-scores
   obtain the url for match centre for the desired match.
   Example:
   http://footymadwc.sportbox.tv/football/matchcentr...tre.php?id=3034908
      --> The id is 3034908
   Go to line 1 and replace the value of mid --> var mid="3034908"

After editing line 1, You may also want to edit the option on line 6.

The data for the live text and scores are obtained from different websites, so depending on the speed of their updating, there might be a slight difference between the displayed score and the action. (but its about there)

Also, the code is very messy and inefficient, cos i decided that it was not really worth the effort optimising it as the world cup gonna end in 6 matches...

Finally, it was modified to my personal use and liking... so most of u might not like the extravagant and lengthy nicks and psms, etc...

If you don't mind the above trouble, of just curious, you may try it ;)

I just hope it works on your system.

.plsc File Attachment: WorldCup2.plsc (224.09 KB)
This file has been downloaded 192 time(s).

This post was edited on 07-01-2006 at 04:09 AM by hanlin.
07-01-2006 04:03 AM
Profile E-Mail PM Find Quote Report
Pages: (11): « First « 6 7 8 9 [ 10 ] 11 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On