Script Prefix deleted everything

Posted by Cosine_Omerta on Fri 26 Dec 2014 02:55 AM — 5 posts, 19,940 views.

USA #0
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
Amended on Fri 26 Dec 2014 02:57 AM by Cosine_Omerta
Australia Forum Administrator #1
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
USA #2
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.
USA #3
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
Australia Forum Administrator #4
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.