What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » Unhandled Exception Error

Unhandled Exception Error
Author: Message:
Malzzel
New Member
*


Posts: 3
Joined: Apr 2011
O.P. Unhandled Exception Error
Hey, whenever I try uploading a script, I repeated get an unhandled exception error EVERY TIME. Just wondering if that's going to be stabilized soon. 
04-19-2011 12:54 AM
Profile E-Mail PM Find Quote Report
Nagamasa
Skinning Contest Winner
*****

Avatar

Posts: 1842
Reputation: 30
30 / Male / Flag
Joined: May 2006
RE: Unhandled Exception Error
See Online submission system FAQ (uploading skins,scripts,etc)
[Image: unled1uo.png]
Joined this forum 6742 days, 2 hours, 8 minutes, 1 second ago.



04-19-2011 01:32 AM
Profile PM Web Find Quote Report
robert_dll
Full Member
***

Avatar

Posts: 393
Reputation: 8
– / Male / Flag
Joined: Aug 2008
RE: Unhandled Exception Error
Sure you aren't the same poster at: http://shoutbox.menthix.net/showthread.php?tid=97386 ??
04-19-2011 01:43 AM
Profile PM Web Find Quote Report
Alexandre.Lefebvre
Junior Member
**

Avatar

Posts: 61
– / Male / Flag
Joined: Nov 2010
RE: Unhandled Exception Error
quote:
Originally posted by Malzzel
Hey, whenever I try uploading a script, I repeated get an unhandled exception error EVERY TIME. Just wondering if that's going to be stabilized soon. 

Could you provide the script that you try to upload? When was the last time you try to upload it? Also if you could details the steps that you took on the upload screen so that we may replicate the case in the test environment. Thanks.
Code is beautiful.
04-19-2011 12:36 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unhandled Exception Error
How about uploading the script here ;)
04-19-2011 01:02 PM
Profile E-Mail PM Find Quote Report
Malzzel
New Member
*


Posts: 3
Joined: Apr 2011
O.P. RE: Unhandled Exception Error
All I did was click "Add contribution" and put in the script to upload. Once it failed, took me to the error page.

This is my first time experiencing this error.

Maybe I did something wrong, since it is my first time trying this out. Anyway, I appreciate the replies so far. :)

.plsc File Attachment: Imperium Thought for the Day v1.0.plsc (1.12 KB)
This file has been downloaded 167 time(s).
04-19-2011 08:00 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unhandled Exception Error
Your zip file has a folder in the root followed by the files. This shouldn't be the case.
The script info file has to be called ScriptInfo.xml

The above two causes the script pack to be invalid.

And your code won't always produce a result. Array's are 0 based indexes. And you are getting a number between 0 and 15 but your array is actually 1 to 10.

This post was edited on 04-19-2011 at 08:05 PM by matty.
04-19-2011 08:03 PM
Profile E-Mail PM Find Quote Report
Malzzel
New Member
*


Posts: 3
Joined: Apr 2011
O.P. RE: Unhandled Exception Error
Okay, thanks matty!
04-19-2011 08:59 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unhandled Exception Error
quote:
Originally posted by Malzzel
Okay, thanks matty!
Also you're code is horrible and I have no idea how it actually ran...
Javascript code:
function OnEvent_Initialize(MessengerStart)
// This was made by Mal-Zzel - Version 1.0
{function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{var rn_txt = new Array();
{
rn_txt[1]="Death be thy compass.";
rn_txt[2]="Carry the Emperorīs will as your torch, with it destroy the shadows.";
rn_txt[3]="Blessed is the mind too small for doubt.";
rn_txt[4]="To admit defeat is to blaspheme against the Emperor. ";
rn_txt[5]="Prayer cleanses the soul, but pain cleanses the body.";
rn_txt[6]="There is only the Emperor, and he is our shield and protector.";
rn_txt[7]="A small mind is easily filled with faith.";
rn_txt[8]="Praise be, Emperor, Lord.";
rn_txt[9]="For those who seek perfection there can be no rest on this side of the grave.";
rn_txt[10]="The difference between heresy and treachery is ignorance."
 
{var i = Math.round(15*Math.random());
{var RANDOMISM = Message.replace(/\/itftd/,rn_txt[i]);
{return RANDOMISM;
}


This is how it could look...

Javascript code:
var rn_txt = [
    "Death be thy compass."
    , "Carry the Emperorīs will as your torch, with it destroy the shadows."
    , "Blessed is the mind too small for doubt."
    , "To admit defeat is to blaspheme against the Emperor."
    , "Prayer cleanses the soul, but pain cleanses the body."
    , "There is only the Emperor, and he is our shield and protector."
    , "A small mind is easily filled with faith."
    , "Praise be, Emperor, Lord."
    , "For those who seek perfection there can be no rest on this side of the grave."
    , "The difference between heresy and treachery is ignorance."
];
 
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    if (Message.match(/\/itftd/)
        return rn_txt[Math.floor(Math.random()*rn_txt.length)];
}

04-20-2011 03:17 PM
Profile E-Mail PM 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