What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [wtf?!?] Existing file not found

[wtf?!?] Existing file not found
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. [wtf?!?] Existing file not found
Hi,

I have a problem with the XML DOM object:

code:
                    Print("  Retrieving windows from \"" + strXmlPath + "\"",PRIOR_SPACE);
                    var xml = new ActiveXObject("Microsoft.XMLDOM");
                    if(FileExists(strXmlPath)) {
                        if(xml.load(MsgPlus.ScriptFilesPath + "\\" + strXmlPath)) {
[some code]                        } else {
                            Print(xml.parseError.reason,PRIOR_ERROR);
                        }
                    } else {
                        Print("Could not find \"" + strXmlPath + "\"",PRIOR_IMPORTANT);
                    }
                    xml = null;
                    Print("  Retrieved windows",PRIOR_SPACE);
    },


parseError.reason says "The system cannot locate the resource specified.", yet FileExists() returns true..

Is there anyone who has (had) this problem too (or better yet: anyone who has the solution)?

EDIT::

Don't mention the Print() function, it's the same as Debug.Trace();

This post was edited on 08-24-2008 at 03:55 PM by SmokingCookie.
08-24-2008 03:53 PM
Profile PM Find Quote Report
NiteMare
Veteran Member
*****

Avatar
Giga-Byte me

Posts: 2497
Reputation: 37
36 / Male / Flag
Joined: Aug 2003
RE: [wtf?!?] Existing file not found
have you tried just

if(xml.load(strXmlPath))

since it found it there, shouldn't THAT be where it is?
[Image: sig/]
I'll never forget what she said 6642 days, 8 hours, 50 minutes, 11 seconds ago
Need hosting? Check
out my website. we can help you out :)
08-24-2008 03:57 PM
Profile PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [wtf?!?] Existing file not found
No, I only send the file name to the function

EDIT::

In the meantime, I've figured some other method to load the file.

It now works fine (at least, it seems to..).

This post was edited on 08-24-2008 at 04:07 PM by SmokingCookie.
08-24-2008 04:04 PM
Profile PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: [wtf?!?] Existing file not found
what's the code behind FileExists?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-24-2008 07:12 PM
Profile PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [wtf?!?] Existing file not found
uhh.. Well, I've changed it a bit, so I can not remember anymore (trust me, it was a LOT of code).

Now, I make sure the path is not specified, and then I move on.
08-24-2008 07:26 PM
Profile PM Find Quote Report
tribbium
Junior Member
**


Posts: 34
Reputation: 3
– / Male / Flag
Joined: Jul 2008
RE: [wtf?!?] Existing file not found
Have you tried using the full path in FileExists like you do when you load? So just if (FileExists (MsgPlus.ScriptFilesPath + "\\" + strXmlPath))
{
[etc.]
}
Are you and your friends trivia enthusiasts? Download Tribbium! http://www.msgpluslive.net/scripts/view/427-Tribb...ia-Gaming-System)/

Download questions for Tribbium here:
http://www.tribbium.tk
08-25-2008 09:23 AM
Profile E-Mail PM Web Find Quote Report
« 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