mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#74261 07/03/04 10:36 AM
Joined: Mar 2004
Posts: 23
S
shinjii Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2004
Posts: 23
Amongst a fleet of so many things itd take up a lot of space to report the multiple possible bugs .. the strangets yet most fundamental one is " if $me == $nick " no longer working .. why is this ?

Also a lot of various ial stuff seems to have changed to the point where the current script i use is presently unable to function in 6.14

#74262 07/03/04 10:47 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
I was actually working up a bug report for this one, once I've narrowed it down exactly.

There was a fundimental change to parsing of IF conditions that have broken many old scripts. You should try using ()'s around your if-checks now, at least whenever possible.

I haven't exactly figured out what still works and what nolonger works just yet. Could you please paste the exact code you're using that breaks it?

[color:990000]if ($me == $nick)[/color] does work however.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#74263 07/03/04 11:09 AM
Joined: Mar 2004
Posts: 23
S
shinjii Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2004
Posts: 23
Sadly i all ready use that in ma coding and sadly there is i fear a lot of issues in 6.14. The script was last updated when 6.0 was released, so all coding is current, so as yet im not sure what has been changed in 6.14 but it has broken a lot of things.

#74264 07/03/04 11:23 AM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
maybe i his starting to force us to use the () and lets say that i agree with him.
I realy don't like to see ifs without the ()

#74265 07/03/04 11:33 AM
Joined: Mar 2004
Posts: 23
S
shinjii Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2004
Posts: 23
problem im having in 6.14 is something in the scripting of the events is no longer working in 6.14 which is causing the rest of the script to fall apart. all my if statements are using the () and always have. ial being a huge thing an a big key in ma script.

#74266 07/03/04 11:37 AM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
interesting point, well if you need help i can help you fix that script, that way we can find from where the problem came...

#74267 07/03/04 12:28 PM
Joined: Mar 2004
Posts: 23
S
shinjii Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2004
Posts: 23
The guy who wrote this script is mr-rdk an can be found on the undernet IRC network .. i know a lil about this .. but he is the main one who does the scripting im erely trying to find out what fundamental things could be causing various issues.

#74268 07/03/04 12:33 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
i never use () and my scripts are fine


New username: hixxy
#74269 07/03/04 12:45 PM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
Ok, but i believe it is a bad programming attitude and it takes more time to run (i benchmarked it)

#74270 07/03/04 12:50 PM
Joined: Mar 2004
Posts: 23
S
shinjii Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2004
Posts: 23
I have to agree that using the () are essential.

#74271 07/03/04 12:58 PM
Joined: Mar 2004
Posts: 23
S
shinjii Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2004
Posts: 23
Can khaled or anyone else tell em what variables have changed in 6.14 that arent documented ? as this si what is causing my problems and unf untill i know what variables have been changed an not mentioned i cant get this fixed.

#74272 07/03/04 01:02 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
well whenever i actually NEED to use () i will (c++), but when i don't i find it makes it look a lot neater.


New username: hixxy
#74273 07/03/04 01:27 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
If you could give an actual example of code that you're using which has caused this bug it could help a lot. Knowing which OS you're using might also be useful.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#74274 07/03/04 01:34 PM
Joined: Mar 2004
Posts: 23
S
shinjii Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2004
Posts: 23
I wish i could .. but there is so much broken and not working i dont even know where to begin. A simple roll back to 6.12 and everything works perfectly .. so there is obviously quite a lot of significant changes to a lot of things that is causing a multitude of stuff ups in the script.

#74275 07/03/04 01:39 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
I don't use parentheses, and "if $me == $nick { stuff }" works just fine.
I haven't noticed anything similar not working either.

#74276 07/03/04 01:45 PM
Joined: Mar 2004
Posts: 23
S
shinjii Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2004
Posts: 23
Well im not sure where to begin. But im sure it'll figure it'self out in time

#74277 07/03/04 02:06 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Hmm, I should dig up the clone script that Julie2 said stopped working.

.. ah, here it is. Poolshark's CloneStopper2.5
She explained the error started on line 112, and after adding ()'s she was given 3 more errors and lines that she added ()'s too.

*lets others look too*

EDIT: Oh yea, it wasn't a status window error she was getting... but an infinite loop that she had to break out of. (Ctrl+Break or Ctrl+ScrlLock)

Last edited by Raccoon; 07/03/04 02:13 PM.

Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#74278 07/03/04 02:44 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Well I didn't run the script, but I took a look at it and really there's little wonder it's having problems. Apparently whoever wrote that hates syntax with a vengeance. There are dozens of lines which will cause 'ambiguous format' error messages (ie. if %clone1 !ison $chan || %clone2 !ison $chan goto noclones) - that's not a result of errors, it's a result of bad syntax. Unfortunately the spaghetti codeness of it makes it very difficult to tell if there's a logic bug in it aswell.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#74279 07/03/04 03:48 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
At this point I'd like to clarify something (not to you; in general). if condition { commands } is perfectly acceptable by mirc and

1) doesn't generate errors
2) is faster (NOT slower, as many people seem to believe) than if (condition) { commands }

In all the scripts I've written so far, I use this syntax and I've never seen it break. Of course, in multiple conditions, () pairs may be needed to control the order of evaluation (for example if 0 && (1 || 2) ), but that's all they are necessary for.

However, things are different when you omit the { } around the commands part: if condition command can break very easily, depending on the contents of "condition" or "command". I would strongly advise against this syntax, unless one really knows what they're doing.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#74280 07/03/04 05:15 PM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
Well when i say that using () is faster please trust me next time...

alias super {
var %fich = $false
var %ticks = $ticks
var %i = 0

while (%i < 35000) {
if %fich == $true echo teste
inc %i
}
echo 1º time is $calc($ticks - %ticks)

%ticks = $ticks
%i = 0

while (%i < 35000) {
if (%fich == $true) echo teste
inc %i
}
echo 2º time is $calc($ticks - %ticks) 4game over i win!
}

output:
1º time is 1562
2º time is 1516 game over i win!

you can run it the times you want... it is not much faster but it is faster!!
the code looks better, faster and more professional (start training if you want to be a good programmer)

btw using {} also makes the code look better but in this case makes it slower

thanks

p.s don't put %fich = $true wink

Page 1 of 2 1 2

Link Copied to Clipboard