mIRC Home    About    Download    Register    News    Help

Print Thread
#73439 03/03/04 05:07 PM
Joined: Dec 2002
Posts: 87
Zmodem Offline OP
Babel fish
OP Offline
Babel fish
Joined: Dec 2002
Posts: 87
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?


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


New username: hixxy
#73441 03/03/04 05:24 PM
Joined: Feb 2004
Posts: 124
T
Vogon poet
Offline
Vogon poet
T
Joined: Feb 2004
Posts: 124
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
Joined: Mar 2004
Posts: 5
J
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
J
Joined: Mar 2004
Posts: 5
Is there any difference besides .mrc and .ini besides the way it shows up in a text editor?


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


New username: hixxy
#73444 03/03/04 08:47 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
.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,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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
Joined: Sep 2003
Posts: 584
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
agreed

#73447 03/03/04 10:35 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
For me, *.ini;*.mrc is the default.

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

#73449 03/03/04 10:42 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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.


-KingTomato
#73452 05/03/04 08:28 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
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)


* cold edits his posts 24/7
#73453 05/03/04 08:34 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Hrm, what kind of problems? I know I've been using them like that for a long time and no problems have ever happened.


* cold edits his posts 24/7
#73455 05/03/04 09:09 PM
Joined: Feb 2004
Posts: 124
T
Vogon poet
Offline
Vogon poet
T
Joined: Feb 2004
Posts: 124
Same here .. with no problems.


Link Copied to Clipboard