If I'm not mistaken, a plugin saves its state when the world file is saved. Am I right there? I have the following in my plugin:
When I save the world file (either by clicking on the disk icon, or by going to file->save world details, I'm expecting to see the note "OnSaveState", but I can never get that to show, so I'm assuming this block of code never runs. Am I just missing something here?
function OnPluginSaveState()
Note("OnSaveState")
require "serialize"
SetVariable ("captures", "captures = " .. serialize.save_simple (captures))
SetVariable ("capturesecho", "capturesecho = " .. serialize.save_simple (capturesecho))
SetVariable ("capturesordernums", "capturesordernums = " .. serialize.save_simple (capturesordernums))
SetVariable ("capturesordernames", "capturesordernames = " .. serialize.save_simple (capturesordernames))
end
When I save the world file (either by clicking on the disk icon, or by going to file->save world details, I'm expecting to see the note "OnSaveState", but I can never get that to show, so I'm assuming this block of code never runs. Am I just missing something here?