Shoutbox

How Do I Make A Valid Script?? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: How Do I Make A Valid Script?? (/showthread.php?tid=64835)

How Do I Make A Valid Script?? by mitz on 08-12-2006 at 05:24 PM

hiya please can someone tell me how to make a valid Messenger Plus! Script Pack ... i have put the .vs file into a zip folder and also have put a xml file....

this is what my js. file has in it:

code:
/*
* ----------------------------------------------------------------------------
* "Space Replacer - New"
* This script is provided 'as is', without warranty of any kind. Dont forget
* that. This file is written by Mitul and you can do
* whatever you want with this code as long as you retain this notice.
* Have fun using it !
*
* version 1.0 - New
* Mitul <mit_18@hotmail.co.uk>
*                                        /Freely inspired
* ----------------------------------------------------------------------------
*/

function OnEvent_ChatWndSendMessage(ChatWnd,Message){
while(Message.indexOf(" ")!=-1)Message=Message.replace(" ", "(L)");
return Message;
}


and my ScriptInfo.xml file has this in it:


code:
<ScriptInfo>   
    <Information>
        <Name>Experiment</Name>
        <Description>Space Replacer</Description>
        <AboutUrl>http://www.msgpluslive.net</AboutUrl>
    </Information>
</ScriptInfo>

then i changed the extension to plsc and when i double clicked on it it said

"The file you tried to load does not appear to be a alid Messenger Plus! script pack."

how do i ressole this problem ... can someone give me a helping hand in this matter as i want this to so badly work - if possible can one of you actually give me a nother example which i can copy and paste and see if that works... please someone help me :(
RE: How Do I Make A Valid Script?? by matty on 08-12-2006 at 05:26 PM

Make sure your ScriptInfo.xml is saved as Unicode.

(Upload the file here and let us take a look).


RE: How Do I Make A Valid Script?? by Ezra on 08-12-2006 at 07:03 PM

quote:
Originally posted by Matty
Make sure your ScriptInfo.xml is saved as Unicode.

(Upload the file here and let us take a look).

Make sure the file is Little Endian UTF-16 Unicode
RE: How Do I Make A Valid Script?? by mitz on 08-12-2006 at 08:54 PM

hiya sorry about that - i went out for a bit ... yea the attachment its attached so could you look at it for me and see of there is anything wrong wioth it - thank you very much ... you people are so good and kind... erm how do i put it in a unicde format if you dont mind me asking - please do tell me and dont be annoyed please... thank you


RE: How Do I Make A Valid Script?? by matty on 08-12-2006 at 08:59 PM

quote:
Originally posted by mitz
hiya sorry about that - i went out for a bit ... yea the attachment its attached so could you look at it for me and see of there is anything wrong wioth it - thank you very much ... you people are so good and kind... erm how do i put it in a unicde format if you dont mind me asking - please do tell me and dont be annoyed please... thank you
Open the file in notepad and goto File > Save As > At the bottom where it says Encoding change that to Unicode

Your ScriptInfo.xml file should read like this
code:
<ScriptInfo xmlns="urn:msgplus:scripts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:msgplus:scripts PlusScripts.xsd" Version="4.09">
    <Information>
        <Name>Space Replacer</Name>
        <Description>This is my first script</Description>
        <AboutUrl>http://www.msgpluslive.net</AboutUrl>
    </Information>
</ScriptInfo>


RE: How Do I Make A Valid Script?? by mitz on 08-12-2006 at 09:04 PM

hi matty - thank you for the last post ... i did what you said press save as and put it on uni-code...i then put it back to a xml file extension and put it in another zip file and changed it to plsc .... when i clicked on it it came up with the same message that it is not a valid script... i would be grateful of you could look into it in more detail ... i no you are a busy person but please i would really like to do this please :)

hi i also read your other one - i copied the coded bit to notepad saved it as unicode and then changed the extension to xml and added it to the zip file and changed it to plsc... and the same thing accured... could you have a look at the pack i just attached please and resolve this problem please


RE: How Do I Make A Valid Script?? by Silentdragon on 08-12-2006 at 09:16 PM

mitz - Your plsc files are saved as rars. Make sure you do a zip.


RE: How Do I Make A Valid Script?? by mitz on 08-12-2006 at 09:17 PM

oh sorry SilentDragon - i was so stupid ... i hope you are not mad with me or think i am a loser of some sort .. i will put it into a zip file and then try again ... very soory again ... i will tell you if it works in a min ... sorry :(


RE: How Do I Make A Valid Script?? by mitz on 08-12-2006 at 09:23 PM

hey matty i can say you are the bestest person in the whole world - thanx to you it has now worked... any other people reading this this guy is amazing .. he has helped me. ..hey matty could i have you email then we can talk more on msn if you dont mind ... you are truely a friend now .... thank you ever sooo much :D


RE: How Do I Make A Valid Script?? by Silentdragon on 08-12-2006 at 09:33 PM

Hmm, that's a bit strange you thank him for my solution. Would make more sense to thank us both as we both put together solved the issue.


RE: How Do I Make A Valid Script?? by mitz on 08-12-2006 at 09:37 PM

omg i am so sorry .. i didnt even reliase that you were a differnet person ... i am sorry Silentdragon ... you did have the solution to my problems and i am sorry ... this person is also the bestest person in the world  for he told me the one thing that was the problem problems ... as simple as it sounds that help resolved my problems and allowed me to create the script... so i thank you very much and people ... just because i used a rar file instead of a zip it made all the difference so people this guy rocks ... if you ever need help go to Silentdragon and Matty ... again i aplogiza and also request you email address friend ... please forgive me :(