Currently in Plugin State file:
Currently in Plugin file:
Suggestion, put in Plugin State File:
and in main plugin file, put:
Then, as you may have guessed by now, when the plugin is loaded, if the state file was created by a previous version of the plugin, and that version does not exceed the value of state_requires, then the state file is automatically deleted. If save_state does not equal "y", then the state_requires line is ignored if it exists.
In summary, this would allow a new version of a plugin to initialize as though it were a brand new plugin, in cases where it would be undesirable to work with a state file from a previous version.
<variables
muclient_version="3.42"
world_file_version="15"
date_saved="2003-11-05 07:14:06"
>
Currently in Plugin file:
<plugin
name=""
date_written = "2003-01-16"
date_modified = "2003-01-16"
version="1.0"
requires="3.25"
author="Magnum"
id="" <!-- /world.note world.getuniqueid -->
purpose=""
language="VBscript"
save_state="y"
>
Suggestion, put in Plugin State File:
<variables
muclient_version="3.42"
plugin_version-"1.0"
world_file_version="15"
date_saved="2003-11-05 07:14:06"
>
and in main plugin file, put:
...
version="2.0"
save_state="y"
state_requires="1.5"
Then, as you may have guessed by now, when the plugin is loaded, if the state file was created by a previous version of the plugin, and that version does not exceed the value of state_requires, then the state file is automatically deleted. If save_state does not equal "y", then the state_requires line is ignored if it exists.
In summary, this would allow a new version of a plugin to initialize as though it were a brand new plugin, in cases where it would be undesirable to work with a state file from a previous version.