mIRC Home    About    Download    Register    News    Help

Page 2 of 2 < 1 2
Topic Options
#164086 - 08/11/06 01:11 AM Re: $identifier problem.
Jigsy Offline
Hoopy frood

Registered: 18/11/04
Posts: 798
Loc: I live inside your computer. S...
It's alright, at least I know now that my script doesn't effect just me. frown
_________________________
This signature is currently out of order. We apologize for the inconvenience.

Top
#164087 - 08/11/06 01:33 AM Re: $identifier problem.
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
I'm around now, if you need.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#164088 - 08/11/06 02:30 AM Re: $identifier problem.
deegee Offline
Fjord artisan

Registered: 16/06/06
Posts: 508
Loc: Storage
Out of curiosity, what is the name of the file? I notice it's blanked out, maybe it's to do with the name?

Top
#164089 - 08/11/06 04:45 AM Re: $identifier problem.
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
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!)

Top
#164090 - 08/11/06 02:24 PM Re: $identifier problem.
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
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

Top
#164091 - 08/11/06 02:58 PM Re: $identifier problem.
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
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

Top
#164092 - 09/11/06 09:47 AM Re: $identifier problem.
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
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?

Top
#164093 - 09/11/06 10:40 AM Re: $identifier problem.
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
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.


Edited by qwerty (09/11/06 06:35 PM)
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#164094 - 09/11/06 02:28 PM Re: $identifier problem.
Jigsy Offline
Hoopy frood

Registered: 18/11/04
Posts: 798
Loc: I live inside your computer. S...
I'm just thinking ... is there a certain limit to the number of aliases you can define in a script?
_________________________
This signature is currently out of order. We apologize for the inconvenience.

Top
#164095 - 09/11/06 11:28 PM Re: $identifier problem.
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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.

Top
#164096 - 10/11/06 06:14 AM Re: $identifier problem.
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
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! :-)

Top
#164097 - 12/11/06 08:14 AM Re: $identifier problem.
Jigsy Offline
Hoopy frood

Registered: 18/11/04
Posts: 798
Loc: I live inside your computer. S...
Semi-doubtful, but what about a limit on /* comments */ ?
_________________________
This signature is currently out of order. We apologize for the inconvenience.

Top
#164098 - 14/11/06 09:42 PM Re: $identifier problem.
Jigsy Offline
Hoopy frood

Registered: 18/11/04
Posts: 798
Loc: I live inside your computer. S...
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.
_________________________
This signature is currently out of order. We apologize for the inconvenience.

Top
Page 2 of 2 < 1 2