Available playersTop players Chat Forum External sites: Wiki

«

previous 1 2 next

psetterl

Trooper

Offline

I know there's a working stats script out there, but for some reason I can't seem to find the right one. Spadequack's from 2009 no longer works, but a friend on here posted a link to a new one in a game, but I don't have that game open anymore! ARGH.

Maybe it was darkbee and maybe he'll come to my rescue

psetterl

Trooper

Offline

I found it! this one works: http://cybernautix.de/weewar/weewar_stats.user.js not the old one on userscrips.org

Fiete

Trooper

Offline

I confirm that the link above is working and the first stats-page is displayed in FireFox 11.0 and Crome 18.0.

The expanding (click on STATS) only works with FireFox just now.

Regards

Garry

Raider

Offline

Well thats a dead link now....

anyone have a working link to a working stats?

Eisbaer

Heavy Trooper

Offline

That Link works again... Is someone able to take that script to userscript webpage?

Garry

Raider

Offline

Thats got it!

THANKS!

Fex

Heavy Trooper

Offline

Hi,

I recently updated from Iceweasel (Firefox) 10 to 17 and the Weewar stats script has stopped working. The only thing I modified of the script is that I commented out that header variable and removed the version/CheckforNewVersion line.

It has always worked, now I get some "NS_ERROR_ILLEGAL_VALUE" message for line 284.
After some trying around I found out that responseDetails.responseText is undefined, as well as many (maybe all) other properties of the responseDetails object

Did anyone experience the same issues?

EDIT:
I replaced the GM_xmlhttpRequest call with a usual XMLHttpRequest, now the error is gone. However, the response seems to be the single line
"<error>Error on line 1: Premature end of file.</error>"
(just as when you open http://weewar.com/client/gamestate/)

Is it possible that the page which supplies the stats is broken?

another edit:
wunder windows with the newest firefox, everything works fine. still having the "premture end of file" error when calling the gamestate page directly though

This message was edited 2 times. Last update was at 15/08/2013 16:21:47

Daithi

Raider

Offline

you need to send xml to the clientstate page to get a response

Tygerdave

Heavy Tank

Offline

http://userscripts.org/scripts/show/47008

Got this one?

Fex

Heavy Trooper

Offline

thanks for your replies. The GM_xmlhttpRequest function from the script does not seem to work properly with my browser. I have replaced it with a usual XMLHttpRequest, and finally it works again.

IdahoBlaster

Heavy Trooper

Offline

Me, being very dense on this kind of thing, can you explain what replacing the GM with an XML script entails? I still can't get this thing to work.

Fex

Heavy Trooper

Offline

Sure.

Possibility one is that you simply have a bad script installed. The script from http://userscripts.org/scripts/show/47008 seems to cause some troubles. Try that one:
http://cybernautix.de/weewar/weewar_stats.user.js (it is the same but has the update check disabled).

Otherwise, you probably have the same issue I did. Here is how I got rid of the problem: In the script you install for Greasemonkey, you will find the following code:



For some reason I do not understand it didn't work as intended for me, and I replaced it with the following one:
(I do not have my computer here, so hopefully what I post is right. If it is not, I can correct it when I get home (next week))



If this doesn't help you, please post (a link to) your script and I will have a look.

Cheers,
Fex

IdahoBlaster

Heavy Trooper

Offline

Voila, that worked. Yay! Thanks Fex.

Fex

Heavy Trooper

Offline

I just encountered another problem with the same-origin policy, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Same_origin_policy_for_JavaScript?redirectlocale=en-US&redirectslug=JavaScript%2FSame_origin_policy_for_JavaScript

The GM_xmlhttprequest function has the feature to cross this restriction, but the ordinary xmlhttprequest doesn't: In the script you will find the line

If you choose to access your games with the "www" prefix like "http://www.weewar.com/game/xxxxxx", then javascript might block the request. Either use urls like "http://weewar.com/game/xxxxxx" or change the above line in the code to


It should also be easy to modify the script to dynamically adapt which way you are using, but currently I'm too lazy to do it

Eisbaer

Heavy Trooper

Offline

Greasmonkey - scripts do not work anymore on my computer.

First i had some trouble with stats. I was not able to expand to see all details. I tried to do some troubleshooting, but now there no Stats and no teamchat anymore.

Can someone help me? Or do you have no scripts too?

EDIT:
At the end of all i understud that help and changed the function too. Stats is back now and does work very well. teamchat does have same problem (does not get the right ID). I hope i am able to fix it too.

Statssript will bee updated on my webspace for everybody too now.

This message was edited 1 time. Last update was at 11/08/2014 15:58:24

previous 1 2 next