Object not a collection

Posted by Natasi on Thu 13 Mar 2008 04:07 AM — 9 posts, 34,018 views.

#0
I've been using a few plugins for nearly half a year now, but when I create a new realm, and attempt to use the Plugins, I receive this error.

Script error
Plugin: RiftSortingPlugin (called from world: testmerealm)
Execution of line 2 column 5
Immediate execution
Object not a collection


Can anyone clue me into what is causing this error to pop up? Thanks for any help!
Australia Forum Administrator #1
I am not familiar with this plugin, but purely as a guess some variable (a collection?) has not been initialized when used on a new world. Does the plugin documentation suggest any command you type to initialize it?

This is not really a MUSHclient bug, it is a bug in this plugin, by whoever wrote it.
Amended on Thu 13 Mar 2008 05:04 AM by Nick Gammon
#2
I wrote the Plugin myself, and I have multiple people using it, but it seems when used on a newly created world, that whenever a command is entered from an internal alias, that is the error that is shown for some reason. It works fine from my normal realm, just seems to error on newly created ones.
USA #3
What exactly is on line one and two of this plugin? It is really hard to tell what is wrong with a plugin without actually seeing where the error is coming from.
Australia Forum Administrator #4
I assumed from the fact that you had not posted any details about the plugin that you were not the author. At least post the first few lines of the plugin, or a link to where we could obtain it.

It is incredibly hard to fix a bug where you say "I wrote a plugin, it gives an error", but don't post any details at all about the plugin, not even what language it is written for.

I am moving this thread to Plugins, as clearly this is not a MUSHclient bug as such.
#5
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Wednesday, December 05, 2007, 10:44 PM -->
<!-- MuClient version 4.14 -->

<!-- Plugin "RiftSortingPlugin" generated by Plugin Wizard -->

<muclient>
<plugin
name="RiftSortingPlugin"
author="JWild"
id="d711b476123a2cc44cf97cd4"
language="VBscript"
purpose="Creates Categories of your Rift and Lets you know Herb shortage."
save_state="y"
date_written="2007-12-05 22:41:11"
requires="3.62"
version="1.0"
>

</plugin>


<!-- Get our standard constants -->

<include name="constants.vbs"/>

...and it continues from there. If you need me to, I can set a link for DL from my site for the full plugin.
Australia Forum Administrator #6
The error is in line 2 of the script, line 2 of the plugin is:


<!DOCTYPE muclient>


From the fact that you have included the standard constants (which are quite a few lines) and it says "Immediate execution" - the error is probably actually in an alias that does "send to script".

What do you type that causes the error? Is it an alias? If so, can you post that please.
Australia Forum Administrator #7
Quote:

If you need me to, I can set a link for DL from my site for the full plugin.


If you can't work out which line is causing it, yes that would help, thanks.
#8
I actually just have the people using the script right now loading it in a set way in their older realms and it works now, seems so far it was just new realm creations causing the issue.