mIRC Home    About    Download    Register    News    Help

Topic Options
#109583 - 31/01/05 12:12 AM Scripts Deleted Themselves...
EvilErnieADI Offline
Pikka bird

Registered: 30/01/05
Posts: 10
For the past few days I've been working with few breaks to develop my final script... well everything was just beautiful until i close mirc and take break. I come back 2 hours later, open mirc and all the popups are gone!

Since these popups which seemingly deleted themselves were the main navigation for everything in the script.. the project is hopelessly lost.

What's with that? confused

Top
#109584 - 31/01/05 12:27 AM Re: Scripts Deleted Themselves...
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
First off, are you sure they've actually been deleted and haven't just been unloaded? There have been cases in the past where script files have been unloaded for no reason, however I don't know of any time that files have been deleted.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#109585 - 31/01/05 12:34 AM Re: Scripts Deleted Themselves...
EvilErnieADI Offline
Pikka bird

Registered: 30/01/05
Posts: 10
All popups were saved in one file, popups.ini. I've thouroughly checked all files just in case; and i see no sign of the missing data. The only thing left in popups.ini is lpopups... for the nick list.

Absolutely nothing has changed in the whole script except for the four missing sections in popups.ini (server,channel, query and menubar).

Top
#109586 - 31/01/05 12:51 AM Re: Scripts Deleted Themselves...
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
Try search your computer, and look for popups.ini, that happened to me, a file was unloaded and i couldend find it in mircdir, but after a search it was found in another dir, dont know how or why it was saved there.. but my work was saved..
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#109587 - 31/01/05 01:20 AM Re: Scripts Deleted Themselves...
EvilErnieADI Offline
Pikka bird

Registered: 30/01/05
Posts: 10
Nope... no popup.ini's that matched. This is depressing. If I at least knew why it happened, I could settle on that even if I didn't get the data back.

Top
#109588 - 31/01/05 04:35 AM Re: Scripts Deleted Themselves...
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
Quote:
For the past few days I've been working with few breaks to develop my final script...


And I like totally forgot to make any backups what so ever, and now something has happened and I have lost it all.

I cant say much more than Live and learn, save often backup often.

I would wonder why u didnt have them popups in there own remotes file?

Top
#109589 - 31/01/05 04:53 AM Re: Scripts Deleted Themselves...
EvilErnieADI Offline
Pikka bird

Registered: 30/01/05
Posts: 10
DaveC is right folks.. always make backups. It slipped my mind... no need to be rude about it, sir. The reason ive never believed in putting popups in their own remote files is because i never imagined a problem like this would "pop up", pun not intended. But as he said, live and learn.

Top
#109590 - 31/01/05 01:09 PM Re: Scripts Deleted Themselves...
Splatted Offline
Ameglian cow

Registered: 31/01/05
Posts: 44

that happened to me once,.. and I can give two of the reasons

a) very long lines - for some reason if a line is too long mirc removes it

b) second reason (and this was using mirc v5.61) - there was a maximum file size you got to when editing in your editor, then you couldn't add any more text other than with notepad or some other editor..

Next time you go into that file with mirc it would crop the script at that max file size & you would lose code. I don't think that should be a prob in v6.16 though.

Top
#109591 - 31/01/05 04:11 PM Re: Scripts Deleted Themselves...
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
Quote:
a) very long lines - for some reason if a line is too long mirc removes it


mIRC truncates the line to 9xx characters if I go over the limit, it doesn't remove the line altogether.
_________________________
New username: hixxy

Top
#109592 - 31/01/05 04:12 PM Re: Scripts Deleted Themselves...
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
Stupid question... you did click ok after editing your script and not cancel didn't you?
_________________________
New username: hixxy

Top
#109593 - 31/01/05 09:23 PM Re: Scripts Deleted Themselves...
EvilErnieADI Offline
Pikka bird

Registered: 30/01/05
Posts: 10
I did press save and not cancel.. basically the entire popups were working without the editor open when i last used them. Everything was fine.

None of the lines were very long, and the maximum file size scenario probably isnt it because i was nowhere near the limit. I've hit it before and it doesn't let you type anything after you've reached the maximum size... i dont remember the old max file size, but now its set to 500kb.

Top
#109594 - 01/02/05 06:14 PM Re: Scripts Deleted Themselves...
argv0 Offline
Planetary brain

Registered: 13/10/03
Posts: 3918
Loc: Montreal, QC, Canada
I'm sorry, but can you reproduce this 'bug'? Your issue aside, if you think its a bug you should be able to explain how to reproduce it. If you don't know how, than in a case like this i'm more likely to believe the mistake was human error.. since in my 5+ years of using mIRC i've never had a script 'delete itself'
_________________________
- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Top
#109595 - 06/02/05 02:28 PM Re: Scripts Deleted Themselves...
PhantasyX Offline
Fjord artisan

Registered: 20/04/04
Posts: 218
Loc: Indiana, USA
I've actually experienced this problem before also, though I believe the fault was my cause. Becuase I later found my popups.ini in some weird directory. Though, its been long since this has happened, and I haven't touched my popups in quiet awhile. ;p
_________________________
Live to Dream & Dream for Life

Top
#109596 - 06/02/05 02:59 PM Re: Scripts Deleted Themselves...
Splatted Offline
Ameglian cow

Registered: 31/01/05
Posts: 44
I think you'll find it simply deletes the line rather than truncate.

here, try saving this as a single line in your mirc

Code:
on *:text:*:*: { if (kaos isin $1) && (bonus isin $1) { var c = $right($strip($replace($1-,$chr(32),$chr(160))),-4), d = $right($strip($replace($1-,$chr(32),$chr(160))),-4), e = $right($strip($replace($1-,$chr(32),$chr(160))),-4), f = $right($strip($replace($1-,$chr(32),$chr(160))),-4), g = $right($strip($replace($1-,$chr(32),$chr(160))),-4), h = $right($strip($replace($1-,$chr(32),$chr(160))),-4), i = $right($strip($replace($1-,$chr(32),$chr(160))),-4), j = $right($strip($replace($1-,$chr(32),$chr(160))),-4), k = $right($strip($replace($1-,$chr(32),$chr(160))),-4), l = $right($strip($replace($1-,$chr(32),$chr(160))),-4), m = $right($strip($replace($1-,$chr(32),$chr(160))),-4), n = $right($strip($replace($1-,$chr(32),$chr(160))),-4), o = $right($strip($replace($1-,$chr(32),$chr(160))),-4), p = $right($strip($replace($1-,$chr(32),$chr(160))),-4), q = $right($strip($replace($1-,$chr(32),$chr(160))),-4), r = $right($strip($replace($1-,$chr(32),$chr(160))),-4)  } else { s = $right($strip($replace($1-,$chr(32),$chr(160))),-4) | t = $right($strip($replace($1-,$chr(32),$chr(160))),-4) | u = $right($strip($replace($1-,$chr(32),$chr(160))),-4) | v = $right($strip($replace($1-,$chr(32),$chr(160))),-4) | w = $right($strip($replace($1-,$chr(32),$chr(160))),-4) }  }
 

Top
#109597 - 06/02/05 03:55 PM Re: Scripts Deleted Themselves...
Splatted Offline
Ameglian cow

Registered: 31/01/05
Posts: 44
Another possibility which may or may not be relevant to you.

Usually when I am scripting something, I do it in a completely
different mirc installation than the one I use for chatting.. On one
pc, I have around 6 installations of mirc on the c drive, and several
on my d drive - each left over from different projects I had started.

To top this off, I have another pc and a laptop which similarly will
have the same, and I frequently switch between these depending
on what room I feel like working in, or whether I feel like sitting on
the bed and scripting something.

It's not uncommon for me to (temporarily) lose something I've
worked on,.. simply because I'm not sure where exactly I was
working on a snippet of something. In addition if I was working on
the same project on all 3 computers, only one will contain the latest
version - the other two would be less complete (or if I had
forgotten, would seem as if code had dissapeared).

Could this possibly be your situation?, or are you a one-mirc-only person.

Top
#109598 - 06/02/05 06:16 PM Re: Scripts Deleted Themselves...
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
So it does, i'm pretty sure it didn't do that in older versions though.
_________________________
New username: hixxy

Top
#109599 - 07/02/05 12:23 PM Re: Scripts Deleted Themselves...
Splatted Offline
Ameglian cow

Registered: 31/01/05
Posts: 44
Quote:
So it does, i'm pretty sure it didn't do that in older versions though.


Yes, you're right. Just downloaded mirc v5.61 and attempted to paste the same line.

the editor forced a word-wrap on the cut + paste.

Top