StealthBot.net: [BUG#003] - SSC.GetUserDatabase() error - StealthBot.net

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[BUG#003] - SSC.GetUserDatabase() error

#1 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 07, 2009 - 12:16 AM

Build: 441

Bug CAN be reproduced

Steps to reproduce: /exec Call GetUserDatabase()

Gives error
Execution runtime error #457: This key is already associated with an element of this collection

52: Fixed
http://www.stealthbot.net/wiki/B003

This post has been edited by FiftyToo: October 10, 2009 - 05:57 PM
Reason for edit:: Adding link to wiki


#2 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 07, 2009 - 01:19 AM

Meh, this is a bug. Editing my top post if someone can move it for me.



#3 User is offline   FiftyToo Icon

  • StealthBot Developer
  • Icon
  • Group: Administrators
  • Posts: 276
  • Joined: July-31 09

Posted October 07, 2009 - 03:07 AM

Cannot confirm on a fresh install of build 435. Can you peruse your Users.txt and ensure nothing is duplicated?

52

#4 User is online   Pyro Icon

  • Militant Asshole
  • Icon
  • Group: Administrators
  • Posts: 683
  • Joined: July-31 09

Posted October 07, 2009 - 03:23 AM

View PostFiftyToo, on 06 October 2009 - 11:07 PM, said:

Can you peruse your Users.txt and ensure nothing is duplicated?

The bot should expect problems like that to occur, and should either make the necessary corrections, or ignore the problem. It shouldn't lose functionality because of it.
Pyro, AKA Davnit
  • StealthBot Developer
  • Host of pyro.no-ip.biz

Website: https://davnit.net/
BNETDocs Discord: https://discord.gg/u87WVeu

#5 User is offline   FiftyToo Icon

  • StealthBot Developer
  • Icon
  • Group: Administrators
  • Posts: 276
  • Joined: July-31 09

Posted October 07, 2009 - 03:57 AM

View PostPyro, on 06 October 2009 - 11:23 PM, said:

The bot should expect problems like that to occur, and should either make the necessary corrections, or ignore the problem. It shouldn't lose functionality because of it.


I agree, but I am not going to spend any time on this unless I can reproduce it.

52

#6 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 07, 2009 - 05:01 AM

Still doing it on build 435, and my user list only has 2 users in it.

Cleared the list and error went away. Then I added a few and it came back.

awakening 200 % (console) 06-10-2009_23:02:31 (console) 06-10-2009_23:02:31 USER % %
test 200 % (console) 06-10-2009_23:02:35 (console) 06-10-2009_23:02:58 USER , %
test2 200 % (console) 06-10-2009_23:03:48 (console) 06-10-2009_23:03:58 USER , %

There's the userlist



#7 User is offline   FiftyToo Icon

  • StealthBot Developer
  • Icon
  • Group: Administrators
  • Posts: 276
  • Joined: July-31 09

Posted October 07, 2009 - 06:58 AM

Still not able to reproduce this. I am using your exact same build and your exact same user list.

/exec AddChat Color.Red, GetUserDatabase().Count

[02:56:29 AM] 3


52

#8 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 07, 2009 - 04:58 PM

I was able to reproduce it on 3 different computers. Different user lists on each one of them.

/exec AddChat Color.Red, GetUserDatabase().Count

[10:59:21 AM] Scripting runtime error '457' in exec: (line 0; column 0)
[10:59:21 AM] This key is already associated with an element of this collection
[10:59:21 AM] Offending line: >>
[10:59:21 AM] Scripting runtime error '457' in exec: (line 0; column 0)
[10:59:21 AM] This key is already associated with an element of this collection
[10:59:21 AM] Offending line: >>



#9 User is offline   FiftyToo Icon

  • StealthBot Developer
  • Icon
  • Group: Administrators
  • Posts: 276
  • Joined: July-31 09

Posted October 07, 2009 - 07:04 PM

What scripts do you have installed? Do you get the same error when using GetUserDatabase() directly inside a script?

52

#10 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 07, 2009 - 08:50 PM

View PostFiftyToo, on 07 October 2009 - 01:04 PM, said:

What scripts do you have installed? Do you get the same error when using GetUserDatabase() directly inside a script?

52


I was getting this error with a fresh install. Only script installed was demo and pluginsystem, and yes, i get the error if I put it in a script also.

#11 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 10, 2009 - 04:58 PM

The bug is still present in Build 441. Fresh install, and on my company laptop. I'm just adding users via the database manager in the console.

#12 User is offline   nate Icon

  • Full Member
  • PipPipPip
  • Group: Moderators
  • Posts: 147
  • Joined: August-09 09

Posted October 10, 2009 - 05:06 PM

View PostAwaKening, on 07 October 2009 - 01:01 AM, said:

Still doing it on build 435, and my user list only has 2 users in it.

Cleared the list and error went away. Then I added a few and it came back.

awakening 200 % (console) 06-10-2009_23:02:31 (console) 06-10-2009_23:02:31 USER % %
test 200 % (console) 06-10-2009_23:02:35 (console) 06-10-2009_23:02:58 USER , %
test2 200 % (console) 06-10-2009_23:03:48 (console) 06-10-2009_23:03:58 USER , %

There's the userlist

Confirmed. #435 with specified userlist.

#13 User is offline   FiftyToo Icon

  • StealthBot Developer
  • Icon
  • Group: Administrators
  • Posts: 276
  • Joined: July-31 09

Posted October 10, 2009 - 05:19 PM

How did you add the users? The User database or with /add ? If it was /add, what were the commands?

nevermind :)

I can reproduce it now, thanks

52

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users