mIRC Homepage
Posted By: Jigsy Connection id resetting - 08/01/06 11:49 PM
I'd like to see the ability to reset the cids to a numerical order or something:

Example:

You're connected to servers 1, 2 and 4, you type either /scid -h or /scon -h which changes the order so 4 becomes 3. e.g. 1, 2 and 3.

(-h being re'H'ash, I would have said -r but thats already an 'option')
Posted By: starbucks_mafia Re: Connection id resetting - 09/01/06 12:03 AM
That seems to defeat the point of having connection IDs in the first place - that they're unique for every connection made while mIRC is open. If you want a list of consecutive numbers to refer to your connections by use $scon(N). The only issue you could have to require this that I can think of is if you're doing some calculation with the connection IDs and you've gone over the limit that mIRC's numeric identifiers can handle (that'd take somewhere around 9 quadrillion connections I believe).
Posted By: Collective Re: Connection id resetting - 09/01/06 12:04 AM
What would be the point of this?

If you want to access the CIDs in order then you can use $scon(n).

Infact, the entire point of CIDs is that they represent a specific connection for as long as that connection exists and that they do not change. As such, this change would break many multi-server scripts.
Posted By: mIRCManiac Re: Connection id resetting - 10/01/06 02:37 PM
Quote:
As such, this change would break many multi-server scripts.


It gets so tiring to read those statements about features
being added/changed/removed breaking scripts .. so what?
Scripts are supposed to conform with mIRC, not the other
way around. Also scripting is supposed to be fun, so
updating a script to conform with a new version shouldn't
be looked at as a job but a hobby, something to do for fun,
or like in my case, relaxing. Otherwise maybe the script
author should consider not doing it anymore.

I too would like the ability to reorder connection ID's.
Posted By: Sat Re: Connection id resetting - 10/01/06 02:55 PM
mIRC has a history of being very backwards compatible with respect to scripts. Many identifiers that have long been deprecated, still exist only for this reason. I would say that this is one of the factors that have contributed to mIRC being such a success: being forced to rewrite all your scripts everytime a new mIRC version is released, would quickly piss off lots of people.

Back on topic, I'm afraid that you and the OP have no clue what you're asking for. The Connection ID is an opaque, session-time persistent, unique identifier. The ability to change CIDs, completely breaks their very concept. There is absolutely no reason to want a "feature" like this, besides ignorance and/or laziness.
Posted By: mIRCManiac Re: Connection id resetting - 10/01/06 03:04 PM
If it can't be done, it can't be done, although I don't believe
that for a second. I can live without it, notice I said " I too
would like the ability to reorder connections IDs"
, not
"I insist on the ability to reorder connection IDs". I
also do not believe that a feature should, or ever will
be left out just for sake of backward compatibility.

~ Edit ~
As far as being forced to rewrite all your scripts
everytime a new mIRC version is released
, the ones
to get pissed are exactly the ones that should consider
not doing it anymore. I can't think of many (if any) new
versions that forced scripters to totally rewrite any script.
Posted By: starbucks_mafia Re: Connection id resetting - 10/01/06 03:18 PM
Who cares about whether this feature is backwards compatible or not? It wouldn't simply be backwards incompatible anyway, it'd be currently incompatible, ie. it would completely nullify the point of having connection IDs. I've yet to see anyone give an explanation as to why they want to be able to reorder connection IDs.
Posted By: mIRCManiac Re: Connection id resetting - 10/01/06 03:29 PM
#1
I didn't bring up the backward compatibilty issue,
I only responded to it so step off.

#2
It wouldn't completely nullify anything, a (an?) unique
connection id to me means, no two connections ever
having identical connection id's, I can't see any problem
with reordering/re-assigning all connection id's. It
seems to me like you guys think he/we would like the
ability to change the id of an individual connection, that is
not the case, just to be able to reorder all current
connection id's. I really don't see how this would create
compatibily problems, and if it did, the true laziness would
be to complain about it rather than remedy it.
Posted By: starbucks_mafia Re: Connection id resetting - 10/01/06 03:46 PM
Connection IDs aren't simply a matter of no two connections having the same ID at the same time, if this is all you need then you can use $scon(n) as previously suggested. No, the point of a connection ID is that for as long as mIRC is open each connection's ID always remains the same. Connection IDs are used in multi-server-spanning scripts to uniquely identify what parameters/options/variables/whatever are attached to which connection. If the connection IDs are then all reset/reordered then those stored parameters/options/variables/whatever are all referring to the wrong connections. Seeing as this is the point of having connection IDs I simply can't understand why people are suggesting this 'feature', and from the looks of it, neither can you.
Posted By: mIRCManiac Re: Connection id resetting - 10/01/06 03:51 PM
Quote:
I simply can't understand why people are suggesting this 'feature', and from the looks of it, neither can you.


lol no I don't have a specific reason for wanting this feature
and no it's not absolutely necessary for it to be added, but
then is it necessary for any feature to be added? Of course
not. Like I stated in my reply to Sat, if it can't be done it can't
be done, no sweat off my back. I think my main reason for
even contributing to this thread was more to respond to the
this shouldn't be done because it will break a lot of scripts bs
than actually wanting this.
Posted By: FiberOPtics Re: Connection id resetting - 10/01/06 03:58 PM
Personally, I think the people who want this feature are those who don't know entirely how the whole multi-server system works. I mean the cid's are there for a good reason, they're supposed to be unique and fixed, being able to change them defeats its entire purpose, and would mess up other scripts as they couldn't rely anymore on the fixedness of them. There's nothing that can't be done for multi-server scripting with the current implementation, all it takes is to learn how, being able to change the cid's isn't going to help with that.

(PS not directed at you)
Posted By: Ecronika Re: Connection id resetting - 10/01/06 03:59 PM
It seems there a people who do not understand the reason for this feature and that it is just perfect for the reason it exists. I dont think this discussion would ever end.

Bringing it to the Final point: It will not change because it was added to mIRC doing what it does and absolutely NOT what was suggested here as this would break the reason to have a Connection ID at all and we couldnt do things as we can do now in scripts.

This Suggestion to Reorder the IDs could also be known as "Do scripting harder or better impossible please i dont like scripts at all kill any usefull features!"
Posted By: starbucks_mafia Re: Connection id resetting - 10/01/06 04:04 PM
I don't want an example of why this feature is necessary, simply a practical example/description of where it would useful, because I honestly can't think of a single one.

If you want to talk about whether "but it'll break old scripts" is a valid reason for saying something shouldn't be added then I'd suggest making a new thread in the relevant forum. As far as I'm concerned this thread is about the positives/negatives of the feature suggested, nothing else.
Posted By: Collective Re: Connection id resetting - 10/01/06 04:04 PM
Yes, of course it's "bs" for me to not want to rewrite a large amount of my scripts because of the complete and unwarranted destruction of a very useful mIRC feature!

Spot the sarcasm.

This idea would completely destory the entire concept of Connection IDs, as previously stated. I want features added to mIRC that make it better, not features that make it worse.
Posted By: mIRCManiac Re: Connection id resetting - 10/01/06 04:13 PM
Quote:
If you want to talk about whether "but it'll break old scripts" is a valid reason for saying
something shouldn't be added then I'd suggest making a new thread blah blah blah


There you go again acting like I'm the one that brought it
up, I did not, I only responded to it, had it not already been
brought up, it wouldn't have been there for me to respond.
I just think it's a stupid reason for not wanting something
added/changed.

~ Edit ~
This was a response to qwerty (below, 2nd to last post).

Quote:
Thank you qwerty, that was a great example of how
this change could break many scripting methods, I use this a
lot and similarly in custom windows, hash tables, variables,
timers, lots of different things. Too bad this example wasn't
given much earlier in the thread before the so called "flame war"
broke out. Well done, I stand corrected.
Posted By: mIRCManiac Re: Connection id resetting - 10/01/06 04:16 PM
Quote:
I want features added to mIRC that make it better, not features that make it worse.


""
.

/
Posted By: starbucks_mafia Re: Connection id resetting - 10/01/06 04:49 PM
Gah. It's like talking to a brick wall. My point is that you just said you only started posting in this thread to talk about that, not the actual feature suggestion. If that's the case you should make a new thread about it in a different forum, because this is the feature suggestions forum, and this thread is about a specific feature suggestion. It's not here so we can all have a neverending debate about mIRC's backwards compatability policy.
Posted By: mIRCManiac Re: Connection id resetting - 10/01/06 05:18 PM
Quote:
you should make a new thread about it in a different forum


ahhh but see, that wasn't necessary because it was
already introduced to the conversation in this thread.
Posted By: Mentality Re: Connection id resetting - 10/01/06 05:21 PM
That's enough.

Could everyone please read this thread.

mIRCManiac, it seems that wherever flame wars pop up, you're involved a lot of the time. If you insist on provoking others you shant be allowed to post, and this is not the first time such a point has been made perfectly clear to you - but it will be the last.

Thanks.

Regards,
Posted By: mIRCManiac Re: Connection id resetting - 10/01/06 05:29 PM
Wow, it seems like you people change your personal
definition of the term 'flame war' to fit your needs in
whichever conversation you're currently involved.
I was not calling anyone any names, I was not
ridiculing anyone, I was not using any profanity aside
from my dictionary reference, and I was fine with the
removal of that reference. I was simply making my point(s)
just like every other post in this thread, yet somehow you
manage to single me out. Tell me, how exactly was I
flaming anyone?

~ Edit ~
btw, would you please look through my previous posts
and tell me the last time I was involved in any heated
debate .. it's been so long that I can't recall, yet
you talk as though it were yesterday.
Posted By: qwerty Re: Connection id resetting - 10/01/06 05:39 PM
The topic has been covered, I just thought I'd give an example on how this feature could mess up scripts.

A very common practice among multiserver-enabled scripts is storing variables (or hash table items) whose names contain $cid, for example:
Code:
on *:join:#: set $+(%,justjoined,$nick,:,$cid) 1

This way you can distinguish between "qwerty" on network1 and "qwerty" on network2. $cid is used because CID numbers are unique, that is, each "connection" (the quotes are due to the fact that you can have more Status'es than actual connections) has its own number, which cannot be the same with that of another connection. Nothing else can play this role. Network names, for example, aren't unique (you can have a clone connected to the same network as your regular nick for example, so $network returns the same thing).

Now say you have 2 scripts loaded, yours and a 3rd-party flood protection script. If your script issues the proposed /scid -h and happens to use such variables, the variable %justjoinedqwerty4 (which was set on CID 4) now points to an inexistent session. The CID that was 4 is now 3, so any script that tries to evaluate the aforementioned variable on that connection will try to evaluate %justjoinedqwerty3, which of course doesn't exist. But even if you don't care about that because you don't use such variables, that 3rd-party script you're using does. And the fix is not a matter of "rewriting the script": there simply is no fix for this, because there's no way of storing connection-specific information without the uniqueness and constancy of CIDs.

On the other hand, nobody has provided any example that shows the usefulness of such a feature...
Posted By: Mentality Re: Connection id resetting - 10/01/06 05:42 PM
I did not say you insulted anyone, I said you provoked people. You provoke people with your arrogant tone, condescending rhetorical questions, links to swear words, etc.

As for altering the definition of "flame war" for my needs:

"In an Internet newsgroup, an ongoing tirade of contrasting opinions about a topic." (source)

I see a flame war, albeit of low severity.

Do not be surprised when you're singled out when you have been the main reason for a couple of other threads being locked in the past. Through no fault of anyone else you have drawn attention to yourself. *shrugs*

That said, I do expect others to keep control of themselves and not make matters worse by posting equally rude posts, hence why I asked everyone to please read d00d's polite forum guideline sticky.

The suggestion has been made and I think enough pros/cons have been covered. Khaled can decide the rest :-)

P.S. Another good example of how to behave on this forum from qwerty. If anyone is confused as to how their posts could be construed as rude, arrogant or provocative, then please compare your posts to his and hopefully it will become clear.

Regards,
© mIRC Discussion Forums