Events settings for channels lost after system freeze
Every now and then my computer freezes and I have to do a forced reboot (and yes, the day that I finally track down what is causing it I will be very happy, but in meantime...).
Anyway, when this happens, sometimes, but not always, AdiIRC loses the settings that I have for events for individual channels and puts them all back to default.
My default is to show events like joins and quits, because that is useful for most of the channels that I use, but for some (enough to make it annoying if it goes back to default) I hide events like joins and quits, because in those particular channels those event announces make up the majority of the activity.
So my question is, assuming that I can't as yet stop my computer from freezing and then sometimes (but not always) this causes this issue with AdiIRC when I reboot, is there any way to save the event settings that I have so I can restore them, or some start-up script that I can run to set those individual channels the way I like them each time I open AdiIRC, so I don't have to manually change them off the default settings each time?
In my experience, upping the CPU voltage a little and/or adjusting the Load Line Calibration helps. Also I would try scanning the ram https://www.memtest.org/, 4 sticks of ram instead of 2 have been a big problem for me on certain motherboards.
Usually on windows crashes, the entire config file is trashed because windows lies about file writes being completed. I added 3 layers of defense against that, so the fact that your entire config file is not trashed, is good to hear.
I can't think of a reason why it would reset the per window events, maybe some timing issue where it thinks the windows is not in the window history and writes a default, I'll have to think about that.
The options for per window events are stored in config.ini, since you have such a unstable system, I'll assume you have regular backups and can either restore [SavedWindows] from/to config.ini manually, or use $readini() to read the [SavedWindows] sections from the backup and /writeini to write the options to the current config.ini. Let me know if you need help with such a script.
If you don't have your adiirc config folder in your backup, you can find it by going to Menubar -> Tools -> Config Files.
As always, thanks for your prompt reply.
I probably should have said 'occasionally' freezes - can go days/weeks without an issue (I leave it on all the time) and then boom...
But no, have not previously added config.ini to my automated back up, but will do so now. And will then use it manually as and when the crashes that impact AdiIRC happen. Probably does not happen often enough to need a script to do so but if that changes, I'll let you know.
Yeah if it's rare, doing it manually should works.
I'll let you know if I figure out why it resets the options.
Can I just confirm when config.ini is saved/changed?
I have tried to set up an automagic backup that triggers when config.ini is changed. But it does not seem to trigger when I make any channel-specific event changes and save those, only when I exit or open AdiIRC.
yeah saved windows are only written to the config file when AdiIRC is exiting, you can however force it to update by using the /saveini command.
Again many thanks - will use that whenever I have made changes.