Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ Plugins ➜ Plugin Error

Plugin Error

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Hoss   USA  (48 posts)  Bio
Date Sat 30 Oct 2004 12:38 AM (UTC)
Message
I rencently created my own plugin using the plugin wizzard, so it basicly only has a bunch of triggers and a few variables but when I tried to add it to another computer of mine with mush it keep giving me this error line:

Line 17: Plugin "id" field must be unique for this world (problem in this file)

Any ideas?
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Sat 30 Oct 2004 07:29 AM (UTC)

Amended on Sat 30 Oct 2004 07:37 AM (UTC) by Flannel

Message
Open the plugin in a text editor.
generate a new unique ID (using /World.Note World.getuniqueid) or, add your script prefix to this
World.Note World.getuniqueid

and paste that in the ID slot of the plugin (youll see something that looks similar to the thing you just made).

Your problem is you have two with the same ID, maybe you copy/pasted the plugin, or whatever else. Just make a new Id and youll be alright.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #2 on Sat 30 Oct 2004 07:33 AM (UTC)
Message
If you edit the plugin in a text editor, like Notepad, you will see something like this:


<plugin
   name="PluginName"
   author="Your Name"
   id="7eaa81cf0b60c200a52ba2a9"
   language="VBscript"
   purpose="Plugin description"
   date_written="2003-04-13 14:32:22"
   date_modified="2003-05-01 09:55"
   requires="3.37"
   version="1.3"
   >


The "id" line is supposed to have a unique hexadecimal ID that identifies this plugin. Sounds like you have omitted it, or have a clash with another one, for some reason.

Using the MUSHclient command window, (or immediate window) you can get another one like this:


/world.note getuniqueid


Then copy and paste the resulting ID to replace the one in the plugin.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 30 Oct 2004 07:34 AM (UTC)
Message
Here is a batch I generated, however you really should use one of your own. If everyone borrows these they won't be unique any more ...

14b3606a366a66baee3fd570
0c3a8e45e2e3b0c6830304f7
8fccabc03490933d835c1633
6dd72afe47169027957ffb5e
84993e3bdc4bfb40d4c73f87
37466ff41eabe3bbb7dc3144
bb2c42034035adb0c078d6e0
d7871d135375612dbf6a08e6
8619b0d9be166fa85b4f9261
4b93f6d2a80e0487fac66367
8936f5bc9a2f85fb721fd2ac
f0c5457890259d93d46b994e
74b2337d6ff615d65b013f3f
7c2736d9814575ac2908b56d
ee8b773cfeb2966ea3888935
5dad76880cc942f3c5e520bf
57cd99b5dfa4480773907110
a29c6128f0a0b79150e0578f
32d4ed9ac07dfc8937adea84
225211be9d787327ea9d0bae
96b9aa190262132b17fb8e58
789f777666e2bea88323075d
69e1703bfee31f084393a02d


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Hoss   USA  (48 posts)  Bio
Date Reply #4 on Tue 02 Nov 2004 09:33 PM (UTC)
Message
Alright that works! Thank you, but now I'm getting a new error which is:

Line 47: C:\Documents and Settings\All Users\Documents\My Pictures\MUSHclient\worlds\plugins\constants.vbs contains an invalid path. (include file not loaded)

I Just barely upgraded to the newest verison of mush, and I installed mush into another directory, also I removed it from the old directory.. so is this what is causing it to go wack? and what do I need to fix it?

Thanks
Hoss

Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #5 on Tue 02 Nov 2004 09:35 PM (UTC)

Amended on Tue 02 Nov 2004 09:36 PM (UTC) by Flannel

Message
Do you use the constants file?

Either change the path in the plugin, or copy the file to that location.

Depending on where MC is installed. Assuming thats your old path, you need to update it.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Hoss   USA  (48 posts)  Bio
Date Reply #6 on Tue 02 Nov 2004 09:44 PM (UTC)
Message
Thank you again
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #7 on Tue 02 Nov 2004 10:09 PM (UTC)

Amended on Tue 02 Nov 2004 10:10 PM (UTC) by Flannel

Message
I believe you can use relative paths now too. To stop that from happening in the future.

Although I dont know where you would start it from.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Hoss   USA  (48 posts)  Bio
Date Reply #8 on Tue 02 Nov 2004 10:28 PM (UTC)
Message
Bah, Actully now the script doesn't work anymore and I still receive the same error hmm.. What does constants.vbs do anyways?
Top

Posted by Hoss   USA  (48 posts)  Bio
Date Reply #9 on Tue 02 Nov 2004 10:40 PM (UTC)
Message
Alright I've found the file grr, now is there anychance anyone tell me how to reconfigure mush so mush will look at a different directory for the file?

Hoss
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #10 on Tue 02 Nov 2004 10:46 PM (UTC)
Message
Its a file that has all the constants in it.
Its only really used if you set flags with names instead of numbers.

Open the plugin (a text editor, which includes MCs notepad if you prefer) and change the path (on line 47) to reflect it. You shouldnt have to change it past /Mushclient/ since that 'should' be the same. Unless you modified it. You should only have to get rid of the first bit (since MC is no longer in My Pictures I fathom).

This probably should still be valid:
\MUSHclient\worlds\plugins\constants.vbs
You just need to point it to your MC directory.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #11 on Wed 03 Nov 2004 11:30 AM (UTC)
Message
Just remove it, you probably don't need it.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


28,190 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.