Plugin IDs...

Posted by Flannel on Mon 05 Aug 2002 02:05 AM — 3 posts, 9,713 views.

USA #0
I know plugins are supposed to have unique ID's.. (at least, thats what I understand from what Ive heard) but, How does one Generate the ID?

Im still really shaky on the whole ID thing, World ID's are... Different each time the world starts? or...

Help! Im confusing myself I think.
Australia Forum Administrator #1
Quote:

I know plugins are supposed to have unique ID's.


Yes they are, so you can save their state in a reliable way (different developers might use the same plugin name). To generate one, with scripting active, type:


/World.Note World.GetUniqueID


Each world should get a unique ID when next saved, that ID should then persist for that world. The combination of world ID and plugin ID are used to generate a "state" file name, for saving the state of the plugin (ie. its variables).
Australia Forum Administrator #2
Wait a couple of hours for version 3.25 which will generate plugin files for you, adding a unique ID in the process.