mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#164086 08/11/06 01:11 AM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
It's alright, at least I know now that my script doesn't effect just me. frown


What do you do at the end of the world? Are you busy? Will you save us?
#164087 08/11/06 01:33 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I'm around now, if you need.


Invision Support
#Invision on irc.irchighway.net
#164088 08/11/06 02:30 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
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?

#164089 08/11/06 04:45 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
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!)

#164090 08/11/06 02:24 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
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
#164091 08/11/06 02:58 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Quote:
* 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
#164092 09/11/06 09:47 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
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?

#164093 09/11/06 10:40 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Not just pointless but impossible, since you can't override built-in identifiers smile 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
#164094 09/11/06 02:28 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
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?
#164095 09/11/06 11:28 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
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.

#164096 10/11/06 06:14 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
"/!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! :-)

#164097 12/11/06 08:14 AM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
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?
#164098 14/11/06 09:42 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
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?
Page 2 of 2 1 2

Link Copied to Clipboard