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 ➜ Jscript ➜ world.savestate

world.savestate

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


Posted by Helpless   (48 posts)  Bio
Date Sat 08 Mar 2008 02:35 AM (UTC)
Message
i read the help on the SaveState function but i dont know what im suppose to be putting in the parenthesis of "world.savestate ();"...i tried the save state file name itself but it just got an error and i also tried the name of the plugin file, wish i knew what i was doing wrong :(

..unless im not suppose to put anything in the parenthesis?
Top

Posted by Nick Gammon   Australia  (23,169 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 08 Mar 2008 02:45 AM (UTC)
Message
It takes no arguments, so don't put anything there. See:

http://www.gammon.com.au/scripts/doc.php?function=SaveState

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Helpless   (48 posts)  Bio
Date Reply #2 on Sat 08 Mar 2008 04:39 AM (UTC)
Message
ok but which "current plugin" is it talking about? all of them that i have loaded? cause im using an alias to do world.savestate(); every time and i want it to save all of them not just whatever it thinks is the current
Top

Posted by Nick Gammon   Australia  (23,169 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 08 Mar 2008 05:55 AM (UTC)
Message
SaveState has to be executed from within a plugin (in which case that plugin's state is saved), otherwise it does nothing.

Your original question didn't make it clear that you wanted all plugins to save their state.

When the main MUSHclient world file is saved, all plugins are also forced to save their state (ie. File menu -> Save).

If you want to script that, you need the straight "Save" function:

http://www.gammon.com.au/scripts/doc.php?function=Save


- 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.


19,329 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.