mIRC Home    About    Download    Register    News    Help

Print Thread
script error popup on start #266705 16/01/20 07:23 AM
Joined: Jul 2015
Posts: 14
T
tweek Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jul 2015
Posts: 14
I have the latest mirc with a semi modded pnp script(old, I know). When I start mirc I get a popup saying there was an error. Is there a way to turn that off somewhere? It is annoying and I know there was an issue. It has done this for a few years now through several upgrades of mirc and computers. If not can there be something added to mirc to ignore a message after its been seen once or turn them off entirely? If not, oh well I have lived with it this long. Thanks!

Re: script error popup on start [Re: tweek] #266706 16/01/20 09:41 AM
Joined: Jan 2004
Posts: 1,342
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,342
I don't see how anyone can answer this. It sounds like the error is reporting something harmless, since you've been able to use the script, but we really don't know. Sometimes older scripts are just warning that it may not work in a future unknown version, other times the error means that one of the features either doesn't work, or won't work correctly. Sometimes an error is halting the script from doing something else later on in the thread.

PnP still has people dealing with it, so it may be possible to find help there. Some related links are at https://mircscripts.net/1Vxgh

Re: script error popup on start [Re: tweek] #266707 16/01/20 11:40 AM
Joined: Feb 2015
Posts: 94
kap Offline
Babel fish
Offline
Babel fish
Joined: Feb 2015
Posts: 94
Do you have a screenshot of that pop-up/error?


GNU Terry Pratchett
Re: script error popup on start [Re: tweek] #266760 28/01/20 06:39 AM
Joined: Jul 2015
Posts: 14
T
tweek Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jul 2015
Posts: 14
Sorry, I have not gotten a screen shot. I dont really care about fixing it I just was wondering if there was just a way to ignore the popup every restart. I have not found one anywhere so I will post something in feature suggestions. Thanks.

Re: script error popup on start [Re: tweek] #266763 28/01/20 07:38 AM
Joined: Feb 2015
Posts: 94
kap Offline
Babel fish
Offline
Babel fish
Joined: Feb 2015
Posts: 94
It would be very helpful to know what the error message is. A screenshot is easily made and uploaded to for example imgur and posted here. Without additional information it's just next to impossible to help out!

Last edited by kap; 28/01/20 07:39 AM.

GNU Terry Pratchett
Re: script error popup on start [Re: kap] #266776 01/02/20 09:55 AM
Joined: Jul 2015
Posts: 14
T
tweek Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jul 2015
Posts: 14
https://imgur.com/a/DSuWTgw is the error message. its just a generic message

then my status window posts this:

[Feb/01/2020 Sat:02:06:05am] *** Performing PnP startup... (profile - default)
[Feb/01/2020 Sat:02:06:06am] *** Addons loaded- Extras Spam Blocker iRCop Command Addon NickAlert IRCrypt (P&P version) Weather
-
* /reload: no such file 'E:\mIRC 7.58\32' (line 566, first.mrc)
-
[Feb/01/2020 Sat:02:06:06am] *** Error during 'Verifying loaded addons'
[Feb/01/2020 Sat:02:06:07am] *** Startup completed in 2.235 seconds
[Feb/01/2020 Sat:02:06:07am] *** ········································
[Feb/01/2020 Sat:02:06:07am] *** Welcome to PnP 4.22.8
[Feb/01/2020 Sat:02:06:07am] *** Press Alt+E for mIRC Setup
[Feb/01/2020 Sat:02:06:07am] *** Right-click in this window for server-related options
[Feb/01/2020 Sat:02:06:07am] *** Use the 'PnP' menu for configuration and other PnP options
[Feb/01/2020 Sat:02:06:07am] *** ········································
-

Like I said, I dont really need to fix it as it still works fine for what I need and quite frankly it is above my pay grade to dig much deeper into it. I just wish there was a way to click to ignore the message after its been seen. Maybe even reset so you have to check it again after a upgrade to new version if you didnt want to have it gone forever. Or even a way to click ignore for nor or ignore perm. But there it is. Thanks!

Re: script error popup on start [Re: tweek] #266778 01/02/20 12:38 PM
Joined: Feb 2015
Posts: 94
kap Offline
Babel fish
Offline
Babel fish
Joined: Feb 2015
Posts: 94
Thanks for finding that bug in PnP.

PnP is aware you've loaded PnP addons prior to PnP version 4. Because of that, the script requires script\addon320.mrc be loaded. If it cannot find it loaded it reloads it during startup. It errors because it's missing a '$+'

You will need to make a small change to L566 in script\first.mrc:
from:
Code
if ($script(addon320.mrc) == $null) .reload -rs $calc($script(0) - 2) script\addon320.mrc

to:
Code
if ($script(addon320.mrc) == $null) .reload -rs $+ $calc($script(0) - 2) script\addon320.mrc


I raised the issue on GitHub: (and closed it)
https://github.com/solbu/Peace-and-Protection/issues/41

P.S.: Out of interest (being a maintainer for PnP on GitHub) would you be willing to share the code for the addons: iRCop Command Addon and NickAlert?

Last edited by kap; 01/02/20 12:46 PM. Reason: Ask for source PnP addons

GNU Terry Pratchett
Re: script error popup on start [Re: kap] #266780 02/02/20 08:51 AM
Joined: Jul 2015
Posts: 14
T
tweek Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jul 2015
Posts: 14
Thank you Kap, this has fixed it. I have several diff folders in it from over the years and had to keep replacing that line, but it did eventually fix it. I dont know how to send you code for those files. It has been years since I started with this script and added them and dont remember what I did back then. If you are a regular in the irc chan in your signature I can try to join there sometime and see if I can help you get these. Warning I am a late nighter here in central timezone USA.

Re: script error popup on start [Re: tweek] #266781 02/02/20 09:19 AM
Joined: Feb 2015
Posts: 94
kap Offline
Babel fish
Offline
Babel fish
Joined: Feb 2015
Posts: 94
Awesome!

As for the addons code, you can perhaps pastebin them (https://pastebin.com) and post the links.

See you around!


GNU Terry Pratchett
Re: script error popup on start [Re: kap] #266787 04/02/20 07:06 AM
Joined: Jul 2015
Posts: 14
T
tweek Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jul 2015
Posts: 14
Are you present in the irc channel in your signature? I am in there and will try and help you get the scripts. I do not see your current nick so let me know who you are. I run late nights so we might have to leave messages back and forth.

Re: script error popup on start [Re: tweek] #266788 04/02/20 09:52 AM
Joined: Feb 2015
Posts: 94
kap Offline
Babel fish
Offline
Babel fish
Joined: Feb 2015
Posts: 94
I go by another nick on that channel. But I see that you've joined and sent you a message. smile


GNU Terry Pratchett