mIRC Home    About    Download    Register    News    Help

Print Thread
#46145 01/09/03 04:35 PM
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
hello, i found a bug with binary vars
in an alias, if you call directly or by another alias a load of another files that exists, the binary var (&test) gets reseted

in mirc 6.03 it worked just fine...

alias testing {
bset &test 1 120 156 11 201 72
call_alias
echo binvar value is $bvar(&test,1,6) <- you get an error here
}

alias -l call_alias { load -rs bot.mrc }

#46146 01/09/03 04:56 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Confirmed under XP Home with 6.1. If I do:

#46147 01/09/03 04:58 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
If you do...?

#46148 01/09/03 04:59 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Actually, now that I play with it a bit, it seems kinda random whether that works or not. Sometimes it just executes the /load and stops, sometimes it does the /echo but doesn't display the value of the binvar, and sometimes it does everything perfectly.

#46149 01/09/03 05:11 PM
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
i alwais get a binvar error
* Invalid parameters: $bvar (line 7, script1.mrc)

if i coment the call_alias it works fine

#46150 01/09/03 05:12 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Does it happen if you change bot.mrc to some.empty.txt.file?

#46151 01/09/03 05:15 PM
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
nop, this mrc file is just an example, i get that problem with another script i made, here i make a similar call.

the &var simply gets reseted, i think...

#46152 01/09/03 08:36 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Try sticking to the example you posted above, and play with it until you can narrow it down and reproduce the error consistantly.

To post an example and then base subsequent findings off another script only confuses matters.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#46153 02/09/03 10:20 AM
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
has i told you the mrc file i used is just an example.
i have been making more tests and i noticed that i only get this bug if the mrc file that is going to be loaded has a on load or on start event doing something.


Link Copied to Clipboard