Unhandled Exception Error - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: Unhandled Exception Error (/showthread.php?tid=97410)
Unhandled Exception Error by Malzzel on 04-19-2011 at 12:54 AM
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.
RE: Unhandled Exception Error by Nagamasa on 04-19-2011 at 01:32 AM
See Online submission system FAQ (uploading skins,scripts,etc)
RE: Unhandled Exception Error by robert_dll on 04-19-2011 at 01:43 AM
Sure you aren't the same poster at: http://shoutbox.menthix.net/showthread.php?tid=97386 ??
RE: Unhandled Exception Error by Alexandre.Lefebvre on 04-19-2011 at 12:36 PM
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.
RE: Unhandled Exception Error by matty on 04-19-2011 at 01:02 PM
How about uploading the script here
RE: Unhandled Exception Error by Malzzel on 04-19-2011 at 08:00 PM
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.
RE: Unhandled Exception Error by matty on 04-19-2011 at 08:03 PM
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.
RE: Unhandled Exception Error by Malzzel on 04-19-2011 at 08:59 PM
Okay, thanks matty!
RE: Unhandled Exception Error by matty on 04-20-2011 at 03:17 PM
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)];
}
|