Idiot question

Posted by AquaBrother on Sat 26 Oct 2013 04:01 PM — 4 posts, 20,875 views.

Brazil #0
One dumb question... everytime i use the plugin wizard to turn the triggers/aliases/variables i made using mushclient tool into a plugin, my variables are not saved when i quit mush...

I heard that i have to serialize them or something... but i really have no idea on how to do that... also i'd like to ask if is there a way to make mush save variables when closing just like it does when my variables are not turned into plugins...

It's kinda weird for me that it actually saves when i do not turn them into a plugin and dont when it's in a plugin... but hey, i'm a total noob about this thing in general, so any hint/idea you might throw at me would be very appreciated =)

Thx in advance for your time and kindness

AB
#1
http://www.gammon.com.au/scripts/doc.php?function=SaveState
USA #2
On the plugin wizard, under the variables tab there is a check-box for "Retain State (Remember Variables)" that is a place to start.

That will save your mushclient variables.
If you have variables in scripting, those you would have to serialize/whatever. But from your description i think you mean just the mushclient variables.
Australia Forum Administrator #3
http://www.gammon.com.au/forum/?id=4960

If you haven't turned on "save state" you can edit the plugin to do it:


<muclient>
<plugin
   name="Plugin_Name"
   author="Nick Gammon"
   id="e9b0f2733c9e1bbc5733daaf"
   language="Lua"
   purpose="Plugin purpose"
   save_state="y"
   date_written="2013-06-10 07:13:27"
   requires="4.80"
   version="1.0"
   >


Add the line in bold above.