This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

invalid idx error in Netbots

Old posts that have not been replied to for several years.
Locked
p
piranha

invalid idx error in Netbots

Post by piranha »

I have following botnet
[||||]-[2]
  |-+FriendsTrivia
  `-+[||||]

The hub only ([||||]-[2]) has all the time problems with Invalid idx:
[13:05] Tcl error [nb_svconnect]: invalid idx
[13:04] Tcl error [nb_gotcmd]: invalid idx

I noticed it happens when [||||]-[2] tries to send any response to other bots. Whenever I do .netinfo on the other bots this error occurs and [||||]-[2] is not showing in the other bots as a result.
Here is config:
Tcl version: 8.3.4 (header version 8.3.4)
Linux 2.4.18-5
[||||]-[2] v4.09    extras, mass, netbots
(btw while I .netinfo on [||||]-[2] I get the info only from it and following msg: [13:25] Tcl error [nb_dccnetinfo]: no value given for parameter "idx" to "list")

Hope you can help me.
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

What version of eggdrop are you running?

Something odd is happening with idxs on that particular bot. Disabling a few things on [||||]-[2] might help to find the problem. First, set nb_cmdcast to 0 if it's not already, and see if the problems still occur. If they do, go a step further and set nb_broadcast to "". Let me know what happens. If the errors still occur, keep the settings disabled and we can work from there.
p
piranha

Post by piranha »

Both settings were as you mentioned,

[|||]-[2] was 1.6.10 (and I upgraded it now to 1.6.12 - this error still exists)
the other bots are running eggdrop v1.6.12.

Thanks for such prompt answer.
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

We'll start by looking at .netinfo. You'll need to edit a section in netbots.tcl. In the proc "nb_dccnetinfo", find the code below, which is near the bottom of the proc:

Code: Select all

  if {[info exists info]} {
    nb_sendcmd $nb_control netinfo [list $idx info]
  } else {
    nb_sendcmd $nb_control netinfo [list $idx]
  }
Directly above that, you need to add the following two lines:

Code: Select all

  putlog "nb_dccnetinfo dcclist chat: [dcclist chat]"
  putlog "nb_dccnetinfo idx: $idx"
Then load the modified netbots.tcl on [||||]-[2]. Do a .netinfo on [||||]-[2] and paste here what appears.
Locked