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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Idiot question

Idiot question

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


Posted by AquaBrother   Brazil  (19 posts)  Bio
Date Sat 26 Oct 2013 04:01 PM (UTC)
Message
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
Top

Posted by Mm1mark   (24 posts)  Bio
Date Reply #1 on Sat 26 Oct 2013 06:35 PM (UTC)
Message
http://www.gammon.com.au/scripts/doc.php?function=SaveState
Top

Posted by Chyort   USA  (58 posts)  Bio
Date Reply #2 on Sat 26 Oct 2013 06:38 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 26 Oct 2013 10:59 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


15,923 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.