|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2004
Posts: 842 |
It's alright, at least I know now that my script doesn't effect just me. ![frown frown](/images/graemlins/mirc/frown.gif)
What do you do at the end of the world? Are you busy? Will you save us?
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
I'm around now, if you need.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Jun 2006
Posts: 508
Fjord artisan
|
Fjord artisan
Joined: Jun 2006
Posts: 508 |
Out of curiosity, what is the name of the file? I notice it's blanked out, maybe it's to do with the name?
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
Dump that pointless version check stuff and just add these alas's (i not you said your _noqt is ment to be different, so you obviously need to keep that, but this gets you $qt and $noqt)
alias qt { if ($isid) { return $+($iif($left($1,1) != ","),$1,$iif($right($1,1) != ",")) } } alias noqt { if ($isid) { return $+($iif($left($1,1) != ",$v1),$left($right($1,-1),-1),$iif($right($1,1) != ",$v1)) } }
Now if you happen to be running a version or mirc with out these well here hey are! And if your running a version of mirc with these identifiers well who cares, internal identifiers override custom ones so these never get called.
* These do have one small drawback, in that multiple consecutive and leading/trailing spaces passed in a string well be lost, but this is a generic drawback with all custom identifiers.
As to why there not working in your code, i notic the scroll bar on the code is a long way dwn the page, it might be a bracket miss match, which under some conditions can seem to slip through the [{}] button, but I would hazzard a guess it might also be a #group command and the group is switched off.
There is an interesting odity in that if you have a group off in the script editor and the script is running and switches the group on (in a remote event say), and then you save the mrc file its off again, becuase in the script editor it doesnt update when the script turned it on, now if you are using some variable to tell your scrpt if script parts that are in groups are enabled or not and thus can or cant be called, rather than checking if the groups enabled then that var can be set to group enabled, while the group isnt, causing just such errors, i myself have fallen to this problem several times, i now use a custom identifier to return group states as true or false by testing them (im sure it puts heaps more tasking on but well to bad!)
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
The group idea is a good one that I didn't think of... but that shouldn't prevent the aliases from working when they are put at the top of the script file. Same for bracket mismatches, which had been suggested before.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Jan 2003
Posts: 2,523
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,523 |
* These do have one small drawback, in that multiple consecutive and leading/trailing spaces passed in a string well be lost, but this is a generic drawback with all custom identifiers. Not as of v6.2, where you can use /returnex instead of /return. It's undocumented, so all standard disclaimers apply.
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
heheheh
alias qt { if ($isid) { returnex $+($iif($left($1,1) != ","),$1,$iif($right($1,1) != ",")) } } alias noqt { if ($isid) { returnex $+($iif($left($1,1) != ",$v1),$left($right($1,-1),-1),$iif($right($1,1) != ",$v1)) } }
Would seem a little pointless in 6.2! since $qt and $noqt are also in 6.2
However thanks I didnt know about a /returnex at all. Where did you find that jem?
|
|
|
|
Joined: Jan 2003
Posts: 2,523
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,523 |
Not just pointless but impossible, since you can't override built-in identifiers ![smile smile](/images/graemlins/mirc/smile.gif) I just thought you'd want to know about /returnex in general. Certain $regsubex bugs (that have been reported here) caused errors like "RETURNEX<something> unknown command", which gives a strong hint that mirc tried to call such command. "/!returnex" is also a string in mirc.exe.
Last edited by qwerty; 09/11/06 06:35 PM.
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2004
Posts: 842 |
I'm just thinking ... is there a certain limit to the number of aliases you can define in a script?
What do you do at the end of the world? Are you busy? Will you save us?
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
If there is, it's a high number, since I have a script that contains nothing but small workarounds in alias format, and there's about 200 of them in the script, and they all work fine.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
"/!returnex" is also a string in mirc.exe. oh dear, you woudnt be disassembling / backward enginering the exe would you, call a moderator quick! ....... oh wait well errrr nm then eh! :-)
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2004
Posts: 842 |
Semi-doubtful, but what about a limit on /* comments */ ?
What do you do at the end of the world? Are you busy? Will you save us?
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2004
Posts: 842 |
I've managed to fix the problem.
I copied over about 50+ aliases into notepad and then deleted them from the script. Now everything seems to be working fine.
So either the aliases were causing the problem or the comment lines were. However when I grouped or /* commented */ the aliases it still refused to work.
So there might be some kind of limit. *shrugs*
Thanks for all the help though.
What do you do at the end of the world? Are you busy? Will you save us?
|
|
|
|
|