Shoutbox

Packing script error - 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: Packing script error (/showthread.php?tid=94909)

Packing script error by x5x_tim on 07-01-2010 at 11:31 AM

Hi
I'm trying to pack a script. It's just one .js file that is functional (tested it before packing it).
My ScriptInfo.xml looks like this:

code:
<ScriptInfo>
<Information>
  <Name>The list</Name>
  <Description>Prints your points from the list to your psm every five minutes.</Description>
  <Version>1.00</Version>
  </Information>
  </ScriptInfo>

I've already tried backing the code up and deleting it from the script manager and then running the .plsc but it keeps telling me that it's corrupt or something.
I've tried creating the ZIP archive with WinRar and 7zip.

Any pointers?
RE: Packing script error by djdannyp on 07-01-2010 at 11:35 AM

Are you saving the ScriptInfo.xml as Unicode?


RE: Packing script error by x5x_tim on 07-01-2010 at 11:37 AM

I though that was optional?
Anyway, I saved it as UTF-8 now, same error.


RE: Packing script error by djdannyp on 07-01-2010 at 11:39 AM

Try using the "Unicode" selection from the dropdown in Notepad.

If it doesn't work, please attach your Zip file here for us to look at


RE: Packing script error by x5x_tim on 07-01-2010 at 11:48 AM

Nope, that didn't work.
(I never even knew notepad could do different codesets :') I just used n++)


Lol, nevermind. I think I understand why it's failing. Haven't really bothered to look inside the zip
RE: Packing script error by Matti on 07-01-2010 at 11:56 AM

In Notepad++, you should select UCS-2 Little Endian as encoding. Also, it's a good idea to place an XML header in your ScriptInfo.xml:

XML code:
<?xml version="1.0" encoding="UTF-16"?>
<ScriptInfo>
    <Information>
        <Name>The list</Name>
        <Description>Prints your points from the list to your psm every five minutes.</Description>
        <Version>1.00</Version>
    </Information>
</ScriptInfo>