Page 1 of 1

error # 13

Posted: Sun Jun 01, 2008 5:37 pm
by pokkern
Hi

I love Mediamonkey and especially the last.fm script, earlier scrobblerdj. I had to reinstall my pc and downloaded the beta of the new mediamonkey(3.03.1179), and installed the new autodj script, instead of scrobblerdj. But I get this error which makes the scrobbler non-functioning.

I get this error message:

error # 13 - Microsoft "kjøretidsfeil". "ikke samsvar mellom typer": 'CInt'
File: "C:\programfiler\mediamonkey\scripts\auto\lastfm_dj.vbs", line 540, column 8.

-when pressing ok

new error: Error executing script event

What can this be, it's quite annoying that it doesnt work :-(

Does anybody know?

some of the error message is i local language(Norwegian), Im sorry about that....

Re: error # 13

Posted: Mon Jun 02, 2008 4:05 pm
by Guest
pokkern wrote:Hi

I love Mediamonkey and especially the last.fm script, earlier scrobblerdj. I had to reinstall my pc and downloaded the beta of the new mediamonkey(3.03.1179), and installed the new autodj script, instead of scrobblerdj. But I get this error which makes the scrobbler non-functioning.

I get this error message:

error # 13 - Microsoft "kjøretidsfeil". "ikke samsvar mellom typer": 'CInt'
File: "C:\programfiler\mediamonkey\scripts\auto\lastfm_dj.vbs", line 540, column 8.

-when pressing ok

new error: Error executing script event

What can this be, it's quite annoying that it doesnt work :-(

Does anybody know?

some of the error message is i local language(Norwegian), Im sorry about that....
more info:
When the artist's name starts with the Norwegian characters Æ,ø or å. Auto-dj can't find any, and it loads something from the default list(doesnt autodj last.fm support unicode?). As soon as the name of the artist consists only English letters, I get tne error #13, CIint, in file C:\programfiler\mediamonkey\scripts\auto\lastfm_dj.vbs", line 540, column 8.

help me anyone, if not where can I get the Scrobblerdj again, it works on my other pc' but I cant find the script anymore...

thx in advance, pokkern

Posted: Mon Jun 02, 2008 6:47 pm
by nohitter151

Re: error # 13

Posted: Fri Jun 06, 2008 8:13 pm
by GornoG
pokkern wrote:Hi

I love Mediamonkey and especially the last.fm script, earlier scrobblerdj. I had to reinstall my pc and downloaded the beta of the new mediamonkey(3.03.1179), and installed the new autodj script, instead of scrobblerdj. But I get this error which makes the scrobbler non-functioning.

I get this error message:

error # 13 - Microsoft "kjøretidsfeil". "ikke samsvar mellom typer": 'CInt'
File: "C:\programfiler\mediamonkey\scripts\auto\lastfm_dj.vbs", line 540, column 8.

-when pressing ok

new error: Error executing script event

What can this be, it's quite annoying that it doesnt work :-(

Does anybody know?

some of the error message is i local language(Norwegian), Im sorry about that....
I'd the same problem with this script (i'm french, and we use the comma, instead of the dot, to separate decimals.. it's maybe the problem).
I've simply deleted from the line 537 of the {app}\Scripts\Auto\LastFM_DJ.vbs

Code: Select all

    Case 1

      For Each XElmnt In xmlDoc.getElementsByTagName("artist")
        If CInt(XElmnt.ChildNodes.Item(2).Text) > MinMatch Then
          XDict.Add i, XElmnt.ChildNodes.Item(0).Text
        End If
        i = i + 1
        TimerLoop = 0
      Next
And it's now working!!

Edit :
By "now working", I mean there is no bug alert. I was too euphoric i think.
The program is not working well for me anyway : "lastFM DJ could not locate artist on LastFM. Adding a track from the backup playlist" each time.

Re: error # 13

Posted: Sun Oct 19, 2008 12:51 pm
by Smo
pokkern wrote:Hi
I get this error message:

error # 13 - Microsoft "kjøretidsfeil". "ikke samsvar mellom typer": 'CInt'
File: "C:\programfiler\mediamonkey\scripts\auto\lastfm_dj.vbs", line 540, column 8.

-when pressing ok

new error: Error executing script event

What can this be, it's quite annoying that it doesnt work :-(

Does anybody know?
Hi,
The problem seems to be with using a decimal separator instead of a comma, as GornoC said already. This problem should concern at least most of the Europe? So I hope this would be fix for the future versions. However, for now this can be solved by replacing lines 540 and 745 in \Scripts\Auto\LastFM_DJ.vbs with following:

old 540: If CInt(XElmnt.ChildNodes.Item(2).Text) > MinMatch Then
new 540: If CInt(Replace(XElmnt.ChildNodes.Item(2).Text,".",",")) > MinMatch Then

old 745: songdate = CDbl(iter.ValueByIndex(1))
new 745: songdate = CDbl(Replace(iter.ValueByIndex(1),".",","))

It seems to be working for me.