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 ➜ Script Prefix deleted everything

Script Prefix deleted everything

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


Posted by Cosine_Omerta   USA  (17 posts)  Bio
Date Fri 26 Dec 2014 02:55 AM (UTC)

Amended on Fri 26 Dec 2014 02:57 AM (UTC) by Cosine_Omerta

Message
I had been working with Mushclient 4.84, added a ton of aliases and such, then moved on to trying to figure out miniwindows. In the tutorial area of miniwindows, it says to just use the script prefix and put this in and it'll pop up a window. Well I did, a little white window popped up, and it completed wiped out all of my settings, aliases, triggers, variables, everything.

Why did this happen? Is there a way to recover from this? No I didn't have a backup. I didn't realize that using the script prefix would delete everything.

This is what I put in (**** is my script prefix) cut and pasted from the miniwindow tutorial/info page:
**** win = "test_" .. GetPluginID ()  -- get a unique name, ensure not empty if outside plugin
WindowCreate (win, 0, 0, 200, 200, miniwin.pos_center_all, 0, ColourNameToRGB("white"))  -- create window
WindowShow (win,  true)  -- show it
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 26 Dec 2014 04:32 AM (UTC)
Message
Nothing you did there would wipe out all your settings.

You must have a problem with your hard disk.

I suggest you run a CHKDSK on it.

Possibly your existing settings are still on disk in a file in a place you are not expecting. Try searching for files created recently.

Windows 7 and 8 do odd things with saving files.


If I may suggest, making backups frequently is a useful thing to guard against accidental deletion, hard disk crashes or other problems.

A useful trick is to use Git to track your world file changes.

http://gammon.com.au/forum/?id=12432

- Nick Gammon

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

Posted by Cosine_Omerta   USA  (17 posts)  Bio
Date Reply #2 on Fri 26 Dec 2014 08:27 AM (UTC)
Message
Yep, I can't duplicate it. I've tried it every which way. I guess it's good to know that it wasn't the window or script that deleted everything.

Thanks for the input. I should know better than to not have a few backups.
Top

Posted by Cosine_Omerta   USA  (17 posts)  Bio
Date Reply #3 on Thu 01 Jan 2015 09:07 PM (UTC)
Message
Apparently the Plugin Wizard deletes all the variables, aliases, and triggers that you have when you use it. I had used that, and it wiped everything. I didn't realize that it just added it to the xml file for the plugin I created.

I put everything back in by hand, then figured this out. Yay me :p
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Thu 01 Jan 2015 09:48 PM (UTC)
Message
Yes it does that, so that you don't have the triggers and aliases etc. in the plugin and in your world file.

If you made a plug-in you should be out of find your old triggers and what have you inside that.

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


18,866 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.