What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script Getting Mostly Deleted On Importation

Script Getting Mostly Deleted On Importation
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Script Getting Mostly Deleted On Importation
To set some things strait:

quote:
Originally posted by absorbation
Can you post the source code please :)
download the script pack he posted. No need for anything else ;)

quote:
Originally posted by John Anderton
You could have downloaded the plsc, renamed the extention to zip and extracted it since plsc's are basically .zips :P
That wouldn't have solved his issue as the error is in how the JS file is saved. Even if manually added Plus! will not be able to read the JS file properly.

If you meant he could have attached the JS file directly to his post without making a script pack: helpers could easly extract the files for themselfs (at least they should know how). Also if he did that, he would still have a problem with creating script packs since the XML file wasn't unicode either.

;)

quote:
Originally posted by mickael9
It's the encoding of the js file. It should be AINSI
(I've converted it and it works fine)
As Patchou said, the encoding can perfectly be unicode. In fact it would be a bit better actually. Though the encoding should not matter, but only if the file is encoded properly in ansi or unicode (read further for more)...

-------------------------------------------------------------------------------------

Now for the real deal:

quote:
Originally posted by DarthCrap
what was the original encoding of the js file? EDIT : it was unicode
Actually it wasn't!

quote:
Originally posted by DarthCrap
Any ideas why it was getting mostly deleted in unicode and not in ansi then? :p
Yes... What did you use to create those JScript files?

Because the file was NOT properly written as an unicode file. The characters themselfs were written as unicode but the file itself is missing the special 2 byte unicode header (known as the BOF header) which is mandatory for every proper unicode file.

Since that special header is not present in the file, Plus! does not reconize the file as an unicode file and will simply read it as an ansi text file (since text files do not have that special 2 byte BOF header).

And because Plus! reads it as a normal ansi file, it stops reading after the second byte because that byte (0x00) isn't a proper ascii character and thus only "/" is shown (which was the first character in the file).

In other words, use a proper editor to save your files with (eg: notepad) and you wont have chopped of scripts...


Secondly the error you got that the script couldn't be started is because the file ScriptInfo.xml must be saved in the same encoding as defined in the XML header and this should actually be unicode.

;)

This post was edited on 07-29-2006 at 05:35 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-29-2006 04:19 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script Getting Mostly Deleted On Importation - by DarthCrap on 07-28-2006 at 05:03 PM
RE: Script Getting Mostly Deleted On Importation - by absorbation on 07-28-2006 at 05:12 PM
RE: Script Getting Mostly Deleted On Importation - by DarthCrap on 07-28-2006 at 05:20 PM
RE: Script Getting Mostly Deleted On Importation - by DarthCrap on 07-28-2006 at 05:20 PM
RE: Script Getting Mostly Deleted On Importation - by mickael9 on 07-28-2006 at 05:24 PM
RE: Script Getting Mostly Deleted On Importation - by DarthCrap on 07-28-2006 at 05:30 PM
RE: Script Getting Mostly Deleted On Importation - by Patchou on 07-28-2006 at 10:17 PM
RE: Script Getting Mostly Deleted On Importation - by DarthCrap on 07-29-2006 at 10:53 AM
RE: Script Getting Mostly Deleted On Importation - by John Anderton on 07-29-2006 at 10:59 AM
RE: Script Getting Mostly Deleted On Importation - by DarthCrap on 07-29-2006 at 11:03 AM
RE: Script Getting Mostly Deleted On Importation - by CookieRevised on 07-29-2006 at 04:19 PM
RE: Script Getting Mostly Deleted On Importation - by DarthCrap on 07-29-2006 at 05:03 PM
RE: Script Getting Mostly Deleted On Importation - by CookieRevised on 07-29-2006 at 05:24 PM
RE: RE: Script Getting Mostly Deleted On Importation - by DarthCrap on 07-29-2006 at 05:26 PM


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