mIRC Homepage
Posted By: vexed2 mIRC not saving - 08/01/08 05:44 PM
i'm absolutly furious, i've been making a theme (400+) lines, clicking ok on the script editor ect, not a problem with anything.
I just closed mIRC and reopened it, and that theme has been deleted down to like 10 lines, even the brackets are missing from an event where it's been cut off. Why?
I just can't believe it, in that short space of time i'm just totally put off mIRC, can't believe it.

mIRC 6.31/Vista
Posted By: Collective Re: mIRC not saving - 08/01/08 05:52 PM
If you close mIRC properly with the Script Editor open it will give you the option of saving changes.

What's the result of $mircdir?
Posted By: vexed2 Re: mIRC not saving - 08/01/08 06:00 PM
I've done everything correctly.
I've been writing bits of script here and their for weeks, click ok on the script editor to save what i've done, carry on chatting.. whatever, the script editor is never open when i close mIRC, the same as this time.
The file is saved while i'm using it, soon as i closed mIRC and reopened it *GONE* down to a few lines.

C:\vexed\
Posted By: Riamus2 Re: mIRC not saving - 09/01/08 12:49 AM
Any chance you're low on drive space? Not sure what else would do it since it wasn't a crash. Oh, and do you have write access to the file and folder? Double check.
Posted By: vexed2 Re: mIRC not saving - 09/01/08 01:42 PM
Certainly not low on drive space, i have a Terabyte of it lol
But it does have 'read only' checked but that's the same as every other folder on C:\ including windows and program files
Posted By: vexed2 Re: mIRC not saving - 18/01/08 06:26 PM
This is driving me mad, it's deleting it all again.
Open mIRC, half the file is missing, i put have a text file backing it up, i cut and pasted into the mIRC script editor, clicked save, closed the editor then closed mIRC, reopened mIRC and the file is deleted back to the same line again. I've repeated this over 50 times now, using mIRC 6.31, 6.3 and 6.21, it deletes all the lines back to a certain place every time. It sucks mad
Posted By: Riamus2 Re: mIRC not saving - 18/01/08 09:42 PM
That sounds like mIRC's saving the file to your Roaming folder, but loading it from your mIRC folder. I'd recommend verifying both locations to see if you do have 2 copies of the file.
Posted By: vexed2 Re: mIRC not saving - 19/01/08 04:49 PM
I did a system recovery as well.
I saved my mIRC in a rar file, when i got everything back to normal and put mIRC back and the text file with the theme, cut and pasted into the mIRC script editor etc, what happened? It deleted it all the way back to a certain line again..
I've never had such problems in all the years i've used mIRC, it's a joke..

Bizarre thing, if i paste the the script into the script editor with scripting already there, it deletes it to the same line, no matter where i paste it all.
Posted By: starbucks_mafia Re: mIRC not saving - 19/01/08 05:40 PM
Have you checked that your mirc.ini hasn't been made read-only?

If that isn't it, type //echo -a $md5($mircexe, 2) and post the value it echoes.
Posted By: vexed2 Re: mIRC not saving - 19/01/08 05:50 PM
faa932b50030d848385f9ac6a215e5ba

Just installed a fresh mIRC, and pasted the contents in, and it deletes it back to the same line yet again..

if i look in the roaming folder, the remote.ini is there, with ALL of the contents, so where is mIRC reading it from?
mIRC is installed to c:\mIRC
The script editor clearly says File: scripts\remote.ini
so i have no idea
Posted By: starbucks_mafia Re: mIRC not saving - 19/01/08 06:25 PM
OK I don't know where you got your mIRC installer from or if you've run any "patches" for the mirc.exe but that's not a valid MD5 digest for 6.21, 6.3, or 6.31.

The correct digests (values returned by $md5($mircexe, 2)) are:
6.31: e72425de3cb77a4ddff9289f728017b4
6.3: 283e22b5311637773c0263033334cfdd
6.21: 52f9f2101923e84dd146fd1058d97b60

This is almost certainly the source of your problem.
Posted By: vexed2 Re: mIRC not saving - 19/01/08 06:28 PM
I don't see what difference it makes, it's been fine since i used vista, in fact it was fine before xmas
No one else has this problem.

And yesterday i did a system recovery back to factory state, downloaded mIRC from here and pasted my theme scripting into it and it still does it.
Posted By: starbucks_mafia Re: mIRC not saving - 19/01/08 06:35 PM
You don't see what difference it makes?! An MD5 digest is a "fingerprint" of a file, basically it's a simple way to represent the contents of a file to know if two files are the same. The MD5 digest of your file is different from what it should be, meaning that your mirc.exe is not the same as everyone else's. The fact that nobody else is having this problem is just further proof that this is the cause of your problem.

As for why yours is different, I have no way of knowing. It's possible that the installer you downloaded from this site got corrupted. It's possible you've got a virus that is changing the exe file. Or any number of other things. The point is, this is the source of your problem.
Posted By: vexed2 Re: mIRC not saving - 19/01/08 06:42 PM
They aren't having the same problem as me, but their check sum is the same, they have patched mIRC's
and.. i just unzipped an old mIRC script, in the theme.mrc i type in 3 random lines of code, then closed mIRC and reopened it, they were there.
if i paste in my new theme code, yet again it deletes it, it's like it's reading the code then deleting it back to a point where it thinks the code is fine.
Don't say it's to do with the mIRC being patched, because it got patched the day 6.31 was released, and i was scripting on it fine, and everything was saving fine. The same as everyone elses mIRC that has been patched that i've just spoken to.
Posted By: starbucks_mafia Re: mIRC not saving - 19/01/08 06:48 PM
You've been given an answer that's 99% likely to be the root of the problem. If you're not going to help yourself that's your choice.
Posted By: vexed2 Re: mIRC not saving - 19/01/08 06:53 PM
You've given 'A' answer
But you obviously never read my last post
A: It worked fine on a patched mIRC before christmas
B: Users now with patched mIRC are not having this problem.
C: I have just put my PC back to factory settings, no virii, installed a new mIRC from here, pasting my theme code into it and it's getting deleted.
Don't tell me that i'm not helping myself, i've explained to you that this hasn't happened before so this is unlikely to be the root of the problem.

I've narrowed it down
I can't paste whatever else i like into the file and it seems to save it, if i paste my theme scripting into it, it gets deleted, explain that.
Posted By: hixxy Re: mIRC not saving - 19/01/08 07:02 PM
Try posting your theme here so we can see if it happens to us.

If you don't want to post the full theme see if you can narrow it down to a specific part. The easiest way to do this would be to cut half of the theme from the file and see if that half is effected, then try the other half, etc.
Posted By: starbucks_mafia Re: mIRC not saving - 19/01/08 07:02 PM
If by "factory settings" you mean an unhacked exe then you weren't very clear in your previous post.

If so then other things to try are disabling AV software to see if that allows it to work. Beyond that the only other possibility I can see is Vista's virtualisation routines being behind it. Have you tried installing 6.31 into another location without a pre-existing mirc.ini so that it saves it's settings to your usefolder?
Posted By: vexed2 Re: mIRC not saving - 19/01/08 07:07 PM
By factory settings, i mean i wiped my hard drive and reinstalled everything (this has nothing to do with mIRC, it needed to be done)

I've been playing around, trying to narrow this down as much as i can, and i know you might find this funny, but it's something to do with my theme code.
I pasted 500 random lines of stuff into the theme.mrc and it saved fine, but not my theme which i i cut and paste from a text file.
i'm trying something else as we speak, i can't really post all my code as it's 700 lines or there abouts.

Posted By: starbucks_mafia Re: mIRC not saving - 19/01/08 07:11 PM
Quote:
I pasted 500 random lines of stuff into the theme.mrc and it saved fine, but not my theme which i i cut and paste from a text file.

This is why I suspect Anti-Virus software might be the cause. I'm sure in the past AV software has actually determined specific mIRC scripts to be viruses and, with the crappy state of AV software, it's quite possible it's preventing mIRC writing/reading the ini file without even telling you what it's doing.
Posted By: vexed2 Re: mIRC not saving - 19/01/08 07:14 PM
I don't run any anti-virus
and i've found the problem
and it's a mIRC bug
i'll show you.

http://www.solid-ircd.com/marantz/mIRC/pics/theme_snippet4.png

see the + and arrows going up and right in the 'clones' bit?
The mIRC editor doesn't like them, i just replaced the + and arrows with other characters and mIRC saves all the code fine.
Posted By: hixxy Re: mIRC not saving - 19/01/08 07:15 PM
Norton does this with certain $decode() scripts.
Posted By: hixxy Re: mIRC not saving - 19/01/08 07:16 PM
If that's the case I would definitely call it a bug.

Can you tell us the ASCII numbers of those chars?
Posted By: starbucks_mafia Re: mIRC not saving - 19/01/08 07:19 PM
If you have a literal ASCII codepoint 26 (ie. the value returned by $chr(26)) in your text then mIRC will only read up to that point. It's because on Windows this the End-of-file character which shouldn't appear in plain text files.
Posted By: vexed2 Re: mIRC not saving - 19/01/08 07:19 PM
Font i use to chat with is: Consolas
The script editor font is: MS Sans Serif

The 3 chars i was using were

$chr(24)
$chr(26)
$chr(43)

My guess is that it's the first 2 and not the + char
Posted By: hixxy Re: mIRC not saving - 19/01/08 07:29 PM
Going by what Starbucks said above, try using $chr(26) in your script rather than the literal character.
Posted By: vexed2 Re: mIRC not saving - 19/01/08 07:30 PM
yeah i'll try that.
Bizarre one though, even in the script editor it shows up as an actual arrow pointing right, i'd of never of thought that in a million years.
Posted By: hixxy Re: mIRC not saving - 19/01/08 07:35 PM
If you're using the same font in the script editor as you are in your theme (and you should be, consolas is THE coding font!) then it would appear as the same.
© mIRC Discussion Forums