Shoutbox

[beta] Skin creator - 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: [beta] Skin creator (/showthread.php?tid=85026)

[beta] Skin creator by SmokingCookie on 07-26-2008 at 10:10 AM

Yes, it's correct..
I am working on a script called Skin creator, it'll do what the name says.

Currently it doesn't fulfil its purpose (creating and editing skins), but there are some powerful side features, like skin updating. See attachment for download.

About skin updating: currently I have 2 files you can specify (GTA IV Messenger and Apple Live Messenger) and the links are below. You must have these skins if you want the update system to work!

Of course you can use these 2 files as an example to make your own and host them anywhere as you'll have to specify their urls so there is no limitation in this system. The data specified in these files is an EXACT match (CAsE insENsITivE) of the information found on msgpluslive.net (apart from the "Version" attribute).

If you see this window poppin' up, you need to specify one of the update files.

Right now, the "New skin" window supports all children of the <Information> element, and the command syntax as well (Commands: Messenger compatibility and SkinTracing aren't supported; can be specified in the window).

Added: Now you can add one PlusSkin element.

The command syntax can be retrieved by opening a chat window and typing:

code:
/SkinCreator -FunctionNames -Anything (this parameter can be anything)


Update links:

http://tom.zegiklekkerniet.googlepages.com/AppleLiveMessenger.xml
http://tom.zegiklekkerniet.googlepages.com/GTAIVMessenger.xml

Additional note: the version numbers shown by the update warnings are fake and only for testing purposes

Update generator plug-in
More information (including plug-in help)
RE: [beta] Skin creator by Menthix on 07-26-2008 at 11:45 AM

The .plsc is broken.

What exactly does skin updating do?


RE: [beta] Skin creator by SmokingCookie on 07-26-2008 at 11:51 AM

Hi,

Thank you for reporting the broken plsc, I am going to fix it right away.

Skin updating sends a request to the specified file, checks the ersion number specified in it and displays an alert window (or toast) when the file loaded during the request has a larger version number than the skin itself. From then, you can choose whether to download the update, or ignore the warning (it'll be displayed again every time an update request is made).

EDIT::

plsc fixed.


RE: [beta] Skin creator by Menthix on 07-26-2008 at 12:42 PM

Ah, so you're not limited to those two XML URLs only, that kinda threw me off :).

You should know the next Plus! version will have built in auto-update for scripts and skins. Developers can still disable Plus' auto-update and use their own system if they wish, but by default Plus! will be able to preform auto-update on almost every skin and script in the download DB. Not that you shouldn't continue to create this, but i wanted to be sure you know about it.


RE: [beta] Skin creator by SmokingCookie on 07-26-2008 at 12:50 PM

I apparently wasn't aware of this feature, since I have never actually received an update alert of Plus!, nor do I have any skins that have been uploaded by it. Therefore I'll continue to develop the SkinUpdate feature, since one can specify their own skins (rather that Plus! checking them all) and skins that are not uploaded to the database still can be updated (since the XMLs specify a link to the plsk file).


RE: [beta] Skin creator by Menthix on 07-26-2008 at 12:54 PM

quote:
Originally posted by SmokingCookie
I have never actually received an update alert of Plus!, nor do I have any skins that have been uploaded by it.
It doesn't exist in the current version. We (Patchou and I) are working on it right now and it will be included in the next release (Plus! 4.70).

But you're right, your approach does have other features.
RE: [beta] Skin creator by SmokingCookie on 07-29-2008 at 09:45 AM

quote:
Originally posted by MenthiX
But you're right, your approach does have other features.

And I am thinking of giving it more features :P

EDIT::

"You should know the next Plus! version..." Reading.. Very difficult :P

EDIT2::

I have made a quick update system that'll redirect you here if I have uploaded a new version (you can then download it from here).

EDIT 3::

If you want to test the SkinUpdate system, you may want to use another skin you may already have. Therefore, I have created a plug-in for the script, which you can use to generate these update XMLs yourself. You must place the 2 files in the ZIP in MsgPlusDir\Scripts\Skin creator (default: C:\Program Files\Messenger Plus! Live\Scripts\Skin creator).

Please see attachment for download.

Skin creator has been updated, see first post
RE: [beta] Skin creator by warmth on 08-02-2008 at 04:44 AM

I can't import the script... pslc is invalid here...


RE: [beta] Skin creator by SmokingCookie on 08-02-2008 at 06:33 AM

fixed


RE: [beta] Skin creator by warmth on 08-02-2008 at 03:25 PM

quote:
Originally posted by SmokingCookie
fixed
Actually no... I still get the message of invalid file...
RE: [beta] Skin creator by SmokingCookie on 08-02-2008 at 03:58 PM

That's strange.. For me, it seems to work


RE: [beta] Skin creator by roflmao456 on 08-02-2008 at 04:07 PM

quote:
Originally posted by warmth
quote:
Originally posted by SmokingCookie
fixed
Actually no... I still get the message of invalid file...
clear your cache:P
the plsc works perfectly

if you can't import it at all, then you can at least change the extension to .zip and then correct the ScriptInfo.xml file yourself
RE: [beta] Skin creator by warmth on 08-02-2008 at 04:33 PM

done... yes... was my cache :P my bad...

what are the list of functions available right now???

Update: Look what debbuger says:

code:
El script está iniciándose
El script está cargado y listo
Función llamada: OnEvent_Initialize
> Looping through script's XMLs (ScriptInfo\Script.xml)
> Validating "C:\Program Files\Messenger Plus! Live\Scripts\Skin creator\ScriptInfo\Script.xml"
> "C:\Program Files\Messenger Plus! Live\Scripts\Skin creator\ScriptInfo\Script.xml" okay
> All 1 XML files are valid
> Trying to load "C:\Program Files\Messenger Plus! Live\Scripts\Skin creator\ScriptInfo\Script.xml"
> Successfully loaded "C:\Program Files\Messenger Plus! Live\Scripts\Skin creator\ScriptInfo\Script.xml"
> Retreving script information
> Successfully retreved script information
> Validating "C:\Program Files\Messenger Plus! Live\Scripts\Skin creator\Windows.xml"
> "C:\Program Files\Messenger Plus! Live\Scripts\Skin creator\Windows.xml" okay
> Checking "C:\Program Files\Messenger Plus! Live\Scripts\Skin creator\Plugins"
> false
> Trying to read "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Skin creator\Settings\blabla@hotmail.com\Alert_UseForeGroundWindow"
> Success
> "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Skin creator\Settings\blabla@hotmail.com\Alert_UseForeGroundWindow" doesn't exist
> Trying to read "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Skin creator\Settings\blabla@hotmail.com\IMSDeveloper"
> Success
> "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Skin creator\Settings\blabla@hotmail.com\IMSDeveloper" doesn't exist
> Loading ToolTips for "WndBrowseSkinFile"
> Weird error:
> 'WndInternet' no está definido
> -2146823279
> Please ignore these errors
> Weird error:
> 'WndSkinEditor_Info' no está definido
> -2146823279
> Please ignore these errors
> Loading ToolTips for "WndInternet"
> Weird error:
> 'WndSkinEditor_Info' no está definido
> -2146823279
> Please ignore these errors
Función llamada: OnWndSkinEditorEvent_CtrlClicked
> Loading ToolTips for "WndSkinUpd"
> Checking "C:\Program Files\Messenger Plus! Live\Scripts\Skin creator\SkinUpdates.xml"
> true
> Trying to write "http://tom.zegiklekkerniet.googlepages.com/GTAIVMessenger.xml" to "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Skin creator\Settings\\blabla@hotmail.com\UpdateXML"
> Data is stored as REG_SZ
> Success
> Trying to write "http://tom.zegiklekkerniet.googlepages.com/AppleLiveMessenger.xml" to "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Skin creator\Settings\\blabla@hotmail.com\UpdateXML"
> Data is stored as REG_SZ
> Success
> Trying to read "HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Skins\CurrentSkin"
> Success
> Checking for skin updates
> Retrieving update url
> Loaded XML file
> Begin loop
> GTA IV Messenger
> Trying to read "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Skin creator\Settings\blabla@hotmail.com\SkinIndex"
> Success
> "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Skin creator\Settings\blabla@hotmail.com\SkinIndex" doesn't exist
Error: No coinciden los tipos (código: -2146828275).
       Archivo: Skin creator.js. Línea: 204.
La función OnEvent_Initialize devolvió un error. Código: -2147352567
Función llamada: OnGetScriptMenu
Función llamada: OnGetScriptMenu
Función llamada: OnGetScriptCommands
Función llamada: OnEvent_ChatWndSendMessage
> Message sent (25)
Función llamada: OnEvent_ChatWndSendMessage
> Message sent (19)
Función llamada: OnEvent_ChatWndSendMessage
> Message sent (12)
Función llamada: OnGetScriptMenu
Función llamada: OnGetScriptMenu

RE: [beta] Skin creator by roflmao456 on 08-02-2008 at 08:30 PM

i get the same debug

i also get type mismatch errors


RE: [beta] Skin creator by SmokingCookie on 08-03-2008 at 06:42 AM

Hmm, that's strange, since I don't seem to have that bug.. Cannot recreate it either..

EDIT::

Could you please confirm that the file in MsgPlusPath\Skin creator\SkinUpdates.xml exists?


I think I have found the problem:

The RegRead function returns either the value stored in the key, and if it doesn't exist, it returns "__none". Therefore there's a type mismatch.. I'll handle it..

Fixed


RE: [beta] Skin creator by mynetx on 08-03-2008 at 08:49 AM

Hrm, and I can't get the script working at all. Import is fine, then my Debug window is flooded with pages full of rubbish important debug notes, but apparently the Init() is never exiting with success so "Initialised" is never getting true. Then I send commands resulting in > Message sent (25), > Message sent (22), etc. but the command always returns as not recognised. Also, when reading the source, I found an array like ['4.50', '4.60'] which might actually cause problems because I am running a newer version of MPL than specified in that array. Long text, short result: can't get this thing working and wasted some 20 mins on it. Btw, who did allow you to add updateability for Apple Live Messenger?


RE: [beta] Skin creator by SmokingCookie on 08-03-2008 at 04:39 PM

Updateability? I only gave the update XML file a different version number, nothing was changed to the skin itself.

The array thing: that's for the skin editor itself, it won't prevent you from running it..

Now the last part: Init() that keeps returning false..

I'll remove all registry keys and see what happens (that's probably what prevents initialisation not anymore)

Commands seem to work now