mIRC Home    About    Download    Register    News    Help

Print Thread
#272969 19/11/24 11:03 AM
Joined: Sep 2005
Posts: 125
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2005
Posts: 125
When using the -i switch, mIRC 7.78 does not correctly read settings from the indicated mirc.ini file.
Checked [dirs]/getdir, [logging]/status=off.

Regarding [dirs]. When using the command $mididir, $mp3dir, $wavedir, the corresponding directory is called, while in the mIRC settings it shows a completely different one.

Don't know if there isn't more to it. In mIRC version 6.35 it reads correctly.

Regards.


when no one watching us
we are invisible
deVilbaT #272970 19/11/24 05:14 PM
Joined: Dec 2002
Posts: 5,486
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,486
Thanks for your bug report. I have not been able to reproduce this issue so far.

Can you describe how you have set up your folders and how you are calling -i and with what parameter?

Please note that I am no longer looking at v6.35 in any way as a base reference any more. There have been far too many changes over the last 16 years. For example, the way status window logging works was changed in v7.31 in 2013:

Quote
26.Added logging dialog option to enable/disable automatic logging of status windows.

which is an option that v6.35 does not have.

Last edited by Khaled; 19/11/24 05:36 PM.
deVilbaT #272971 19/11/24 05:37 PM
Joined: Sep 2005
Posts: 125
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2005
Posts: 125
I think I misspelled because it wasn't -i but -r.

Folders:
c:\mIRC (included mirc.exe and mirc.ini, all folders with [dirs] are here).
c:\mIRC\profiles\a (includes mirc.ini).

The file “mirc.ini” in folder “a” contains:
[dirs]
chans=..\..\channels\
getdir=..\..\downloads\
langs=..\..\languages\
midis=..\..\sounds\
mp3s=..\..\sounds\
oggs=..\..\sounds\
waves=..\..\sounds\
wmas=..\..\sounds\

[logging]
status=off

The mirc.exe command called while mirc.exe is running:
//run $qt($mircexe) $+(-r,"profiles\,a,\")

As we call the run command then in the mIRC Options window the values are wrong for directories (DCC/Folders).
In addition, a directory “downloads” is created in the directory “a” and it shouldn't be because [dirs] points to it.
Another problem is the indication that the “Windows Status” window is not to be logged to a file and this is misread.

In mIRC 6.35 everything is ok.
I understand that 6.35 is old but the very operation of the above to my eye is not correct.

Last edited by Khaled; Yesterday at 08:45 AM.

when no one watching us
we are invisible
deVilbaT #272973 Yesterday at 12:42 PM
Joined: Dec 2002
Posts: 5,486
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,486
Okay. The issues you are seeing are basically due to deprecated settings.

The [logging]/status setting was deprecated a long time ago after the Options/Logging/Options dialog setting was added to enable/disable automatic logging for status windows.

The [dirs]/getdir setting was also deprecated a long time ago. The download folder settings are in [extensions], although mIRC continues to update [dirs]/getdir for backwards compatibility with older scripts that might use it. If you use:

[extensions]
n0=defaultEXTDIR:..\..\downloads\

that will do what you are expecting for downloads.

That said, what you've found is that newer versions of mIRC do not work in the same way when converting [dirs]/getdir for backward compatibility with pre-2000 versions of mIRC, so we are now going back several decades for deprecated feature support :-) I will see if I can change this in the next version so that [dir]/getdir conversion works in the same way as in the before-before-before times.

On a serious note: mIRC is full of backward compatible code that has been added with each new release to handle old settings/features. It is quite possible that if mIRC continues to be developed for, say, another hundred years, the amount of backward compatible code will eventually exceed the functional code. I would just like to let every know that, if and when we reach that stage, I may be tempted to ask an AI to just rewrite the whole of mIRC from scratch without any consideration for backward compatibility. Please make backups and plan accordingly.

deVilbaT #272974 Yesterday at 01:59 PM
Joined: Sep 2005
Posts: 125
Vogon poet
OP Offline
Vogon poet
Joined: Sep 2005
Posts: 125
I'm so old that I didn't notice when [extensions] was added. I will admit that I do keep track of versions.txt. Well. At some point I just noticed that something was wrong with my script that creates separate profile folders and started creating new folders without taking into account the entry in mirc.ini.


As for the Status Window logging option, so I need to look for a reference in mirc.ini that will ensure that I start another session with automatic logging disabled on startup.


Anyway, good work and the AI idea maybe not so stupid. Make another new version and re-deploy as in the case of 6.35.


Ps. If it works out, also think about making mIRC Options entries to designated directories also point correctly from mirc.ini. Seemingly small things but for the unaware or newbies it is another matter. And I guess if I'm not mistaken the values of $mididir, etc are pointed correctly.


Thanks.
Regards.


when no one watching us
we are invisible

Link Copied to Clipboard