mIRC Home    About    Download    Register    News    Help

Print Thread
#73439 03/03/04 05:07 PM
Joined: Dec 2002
Posts: 85
Z
Zmodem Offline OP
Babel fish
OP Offline
Babel fish
Z
Joined: Dec 2002
Posts: 85
Not really a MAJOR feature, but I'd like to see the default created script files (Aliases/Remotes) be defaulted with the extension .mrc instead of .ini, seeing as how .mrc has inevitably become the standard of mIRC script files. Anyhow, more like a personal preference, really; anyone else?

#73440 03/03/04 05:23 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
i agree, .ini files are annoying to edit in notepad -_-

#73441 03/03/04 05:24 PM
T
TonyTheTiger
TonyTheTiger
T
yeah .. it should have been changed
when .mrc was introduced really.

Edit: .. although I still would like the choice to use .ini

Last edited by TonyTheTiger; 03/03/04 05:25 PM.
#73442 03/03/04 08:39 PM
J
JordanR
JordanR
J
Is there any difference besides .mrc and .ini besides the way it shows up in a text editor?

#73443 03/03/04 08:44 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
file size wink

#73444 03/03/04 08:47 PM
Joined: Feb 2003
Posts: 2,737
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,737
.mrc is simply a flat file, an unformatted text file.
as a matter of fact, you may use -any- extension, except .ini, to acheive this effect. But I agree, the default filetype should be non-ini.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#73445 03/03/04 08:52 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
And in the load dialog (Alt+R -> File -> Load), it would be nice to have this selection as default: *.txt;*.ini;*.mrc
(right now it's *.txt;*.doc and I often find myself playing with this option before I can select the desired script file).

#73446 03/03/04 10:26 PM
B
bunar
bunar
B
agreed

#73447 03/03/04 10:35 PM
I
Iori
Iori
I
For me, *.ini;*.mrc is the default.

#73448 03/03/04 10:38 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
You probably opened the load dialog from the Aliases/Popups tabs laugh

#73449 03/03/04 10:42 PM
I
Iori
Iori
I
Nope, from any tab, and in a clean copy too. grin

You probably loaded a .txt or .doc file last time to get that

#73450 03/03/04 11:33 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Yes, you're right. I usually load .txt's to my remote, hence the pre-selected file type.

#73451 03/03/04 11:52 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
I agree. The .mrc file should be the default file type, but .ini should also be offered. The only benefit the .ini file has over mrc is its unique ability to store other information as well as just the script. i.e.

----- Script.ini -----
Code:
[Network]
KingTomato=MyPassword
[Remote]
n0=on *:CONNECT: {
n1=  if ($readini($script, $network, $me)) /nickserv identify $ifmatch
n2=}

----- /Script.ini -----

Where you can have settings stored in the same file. Otherwise, ini's are just larger in size, and harder to edit externallty.

#73452 05/03/04 08:28 PM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
It's not an unique ability, you can achieve the same results with any other file type...
Code:
#ini off
[Network]
KingTomato=MyPassword
#ini end

on *:CONNECT: {
  if ($readini($script, $network, $me)) /nickserv identify $ifmatch
}

...Provided that you'll always put the INI group before everything in the file, so $readini wouldn't completely mess up your script where it finds chars like '[', ']' and '=', searching for sections and items.
(Group usage is just a precaution, hopefully you wouldn't really need one)

#73453 05/03/04 08:34 PM
Joined: Feb 2003
Posts: 2,737
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,737
But it's not a great idea to use a loaded script file as an INI file too. You will have write conflicts when INI cache is flushed to file, especially if you edit your script or toggle (.enable/.disable) any other #groups in the script.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#73454 05/03/04 08:37 PM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
Hrm, what kind of problems? I know I've been using them like that for a long time and no problems have ever happened.

#73455 05/03/04 09:09 PM
T
TonyTheTiger
TonyTheTiger
T
Same here .. with no problems.


Link Copied to Clipboard