Apparently python doesnt support decompiling pyc files. Sigh.
If you could provide the source code it would be very helpful. Your bot still has some bugs and a couple of things that I would like to change.
what .pyc files were you looking for as I didn't see your original post.
Also, maybe could you tell me what some of the bugs are, and maybe I can attempt to fix them. Not to mention, what would you want to change, I could possibly try to do that.
Hello i can get it to run the first time after that it connects then disconnects i have tried it with 3 referent players and all can connect the first time after that cant stay connected help thanks :dry.gif:
Hello i can get it to run the first time after that it connects then disconnects i have tried it with 3 referent players and all can connect the first time after that cant stay connected help thanks
Indeed it does d/c sometimes when connecting to some servers but i have tried it on my own it works trust me, but on other servers it does d/c it might be a bug
Edit: Bugs iv seen: Some cmds not working, d/cing when done connecting to server, when connected just 'lagging' or not doing anything and not seeing messages in the .exe. Things thatd be cool to add: saying stuff from the .exe, making it say more stuff like when doing a command give the person 'place two brown shrooms', adding the command 'talk' and 'silent'
talking being sent errors and ect silent being no error messages and ect. Well ill think of some more while i sleep!
testingthisgamer, can u please answer my question ?
As of now, I don't know whats going on with your bot. Make sure your bot's username is in info.txt and kartzz is in ops.txt.
Hello i can get it to run the first time after that it connects then disconnects i have tried it with 3 referent players and all can connect the first time after that cant stay connected help thanks :dry.gif:
So your bot logs onto the server then immediately disconnects? Is there an error message that comes with this, or any message at all? Do you use a command, and immediately after using the command, it disconnects?
So your bot logs onto the server then immediately disconnects? Is there an error message that comes with this, or any message at all? Do you use a command, and immediately after using the command, it disconnects?
For me it d/c's right as it logs in to the server and it closes it and i dont ever see the error cause it closes it right away :sad.gif:
same thing connects then disconnects no errors that i can see :sad.gif:
For me it d/c's right as it logs in to the server and it closes it and i dont ever see the error cause it closes it right away :sad.gif:
If you want to see the error message, you need to run the program in cmd itself.
To get cmd to where you are at the same file location, open notepad and put the following into it: start cmd.exe
Then save as... save it as cmd.bat and make sure it is set to all files and not to .txt and save it in the same location as where bot4CA.exe is. Then open cmd.bat and in it type: bot4CA.exe
You can now see the error message before the window closes.
file "twisted\python\context.pyc", line 37, in callwithcontext
--- <exception caught here> ---
File "twisted\internet\selectreactor.pyc", line 146, in _doreadorwrite
File "twisted\internet\tcp.pyc", line 460, in doread
File "bot4ca.py", line 5532, in datareceived
File "bot4ca.py", line 5542, in process_data
File "bot4ca.py", line 5632, in dispatch_events
File "bot4ca.py", line 5352, in onmessage
File "bot4ca.py", line 493, in onmessage
File "bot4ca.py", line 1154, in canusebot2
exception.keyerror:255
lost connection. reason: [failure instance: traceback (failure with no franes):
<type ' exceptions.keyerror'>: 255 :cool.gif:
Have you used this bot on only one server, or have you had the same problem on all the servers you have been on? The reason why is because I don't get this error, nor do many other people except for now two people who do get this error.
Have you used this bot on only one server, or have you had the same problem on all the servers you have been on? The reason why is because I don't get this error, nor do many other people except for now two people who do get this error.
Tried it on 3 referent servers same error
and that is only two that have said anything about it yet maybe
My info.txt has bot username-pass-hash and ops.txt has kartzz. And i tried this on other computer and the same problem.
I am so angry.
Is the hash the hash of the minecraft server that you want to log onto? Also, can you try and get the error that you are getting, look at some of my other posts to see how to get the error and post it here.
file "twisted\python\context.pyc", line 37, in callwithcontext
--- <exception caught here> ---
File "twisted\internet\selectreactor.pyc", line 146, in _doreadorwrite
File "twisted\internet\tcp.pyc", line 460, in doread
File "bot4ca.py", line 5532, in datareceived
File "bot4ca.py", line 5542, in process_data
File "bot4ca.py", line 5632, in dispatch_events
File "bot4ca.py", line 5352, in onmessage
File "bot4ca.py", line 493, in onmessage
File "bot4ca.py", line 1154, in canusebot2
exception.keyerror:255
lost connection. reason: [failure instance: traceback (failure with no franes):
<type ' exceptions.keyerror'>: 255 :sad.gif:
Rollback Post to RevisionRollBack
cows are nice , but if we kill a cow me must rember this lose when you fight REMBER THE COWS
ok. i got the bot working on my server and every server i go on but when i log in to my friends server it logs in then crashes. How do i fix that? i dont know if this would help answer the question but my friend's Main isn't a flat map it's mountains. maybe this is affecting the bot in some way?
file "twisted\python\context.pyc", line 37, in callwithcontext
--- <exception caught here> ---
File "twisted\internet\selectreactor.pyc", line 146, in _doreadorwrite
File "twisted\internet\tcp.pyc", line 460, in doread
File "bot4ca.py", line 5532, in datareceived
File "bot4ca.py", line 5542, in process_data
File "bot4ca.py", line 5632, in dispatch_events
File "bot4ca.py", line 5352, in onmessage
File "bot4ca.py", line 493, in onmessage
File "bot4ca.py", line 1154, in canusebot2
exception.keyerror:255
lost connection. reason: [failure instance: traceback (failure with no franes):
<type ' exceptions.keyerror'>: 255 :sad.gif:
Could you tell me which servers you have been on and ask them if it is ok for me to test the login of the bot on their servers. I want to replicate the error and possibly get it under a debugger. Actually, I think I have an idea, are you logging the bot onto servers with more than 254 people on it or 254 spaces?
No i am not testingthisgamer and you can test it on "[luxtech]" just search for that.
I think I found your error, the message that the server says when you log on is "Time spent on the server:". With the ":" there, the bot is thinking that is a user saying a message so it loops through the users on the server and crashes when python can't find a user named that.
what .pyc files were you looking for as I didn't see your original post.
Also, maybe could you tell me what some of the bugs are, and maybe I can attempt to fix them. Not to mention, what would you want to change, I could possibly try to do that.
Indeed it does d/c sometimes when connecting to some servers but i have tried it on my own it works trust me, but on other servers it does d/c it might be a bug
Edit: Bugs iv seen: Some cmds not working, d/cing when done connecting to server, when connected just 'lagging' or not doing anything and not seeing messages in the .exe. Things thatd be cool to add: saying stuff from the .exe, making it say more stuff like when doing a command give the person 'place two brown shrooms', adding the command 'talk' and 'silent'
talking being sent errors and ect silent being no error messages and ect. Well ill think of some more while i sleep!
As of now, I don't know whats going on with your bot. Make sure your bot's username is in info.txt and kartzz is in ops.txt.
So your bot logs onto the server then immediately disconnects? Is there an error message that comes with this, or any message at all? Do you use a command, and immediately after using the command, it disconnects?
For me it d/c's right as it logs in to the server and it closes it and i dont ever see the error cause it closes it right away :sad.gif:
same thing connects then disconnects no errors that i can see :sad.gif:
If you want to see the error message, you need to run the program in cmd itself.
To get cmd to where you are at the same file location, open notepad and put the following into it: start cmd.exe
Then save as... save it as cmd.bat and make sure it is set to all files and not to .txt and save it in the same location as where bot4CA.exe is. Then open cmd.bat and in it type: bot4CA.exe
You can now see the error message before the window closes.
update found error.
File "twisted\python\log.pyc", line 84, in callWithLogger
File "twisted\python\log.pyc", line 69, in callWithContext
File "twisted\python\context.pyc", line 59, in callWithContext
File "twisted\python\context.pyc", line 37, in callWithContext
--- <exception caught here> ---
File "twisted\internet\selectreactor.pyc", line 146, in _doReadOrWrite
File "twisted\internet\tcp.pyc", line 460, in doRead
File "bot4CA.py", line 5532, in dataReceived
File "bot4CA.py", line 5542, in process_data
File "bot4CA.py", line 5630, in dispatch_events
File "bot4CA.py", line 5352, in onMessage
File "bot4CA.py", line 493, in onMessage
File "bot4CA.py", line 1154, in canUseBot2
exceptions.KeyError: 255
Lost connection. Reason: [Failure instance: Traceback (failure with no frames):
<type 'exceptions.KeyError'>: 255 :cool.gif:
Have you used this bot on only one server, or have you had the same problem on all the servers you have been on? The reason why is because I don't get this error, nor do many other people except for now two people who do get this error.
Tried it on 3 referent servers same error
and that is only two that have said anything about it yet maybe
Is the hash the hash of the minecraft server that you want to log onto? Also, can you try and get the error that you are getting, look at some of my other posts to see how to get the error and post it here.
--- <exception caught here> ---
File "twisted\internet\selectreactor.pyc", line 146, in _doreadorwrite
File "twisted\internet\tcp.pyc", line 460, in doread
File "bot4ca.py", line 5532, in datareceived
File "bot4ca.py", line 5542, in process_data
File "bot4ca.py", line 5632, in dispatch_events
File "bot4ca.py", line 5352, in onmessage
File "bot4ca.py", line 493, in onmessage
File "bot4ca.py", line 1154, in canusebot2
exception.keyerror:255
lost connection. reason: [failure instance: traceback (failure with no franes):
<type ' exceptions.keyerror'>: 255 :sad.gif:
File "twisted\python\log.pyc", line 84, in callWithLogger
File "twisted\python\log.pyc", line 69, in callWithContext
File "twisted\python\context.pyc", line 59, in callWithContext
File "twisted\python\context.pyc", line 37, in callWithContext
--- <exception caught here> ---
File "twisted\internet\selectreactor.pyc", line 146, in _doReadOrWrite
File "twisted\internet\tcp.pyc", line 460, in doRead
File "bot4CA.py", line 5532, in dataReceived
File "bot4CA.py", line 5542, in process_data
File "bot4CA.py", line 5630, in dispatch_events
File "bot4CA.py", line 5352, in onMessage
File "bot4CA.py", line 493, in onMessage
File "bot4CA.py", line 1154, in canUseBot2
exceptions.KeyError: 255
Lost connection. Reason: [Failure instance: Traceback (failure with no frames):
<type 'exceptions.KeyError'>: 255 :cool.gif:
Traceback (most recent call last):
File "twisted\python\log.pyc", line 84, in callWithLogger
File "twisted\python\log.pyc", line 69, in callWithContext
File "twisted\python\context.pyc", line 59, in callWithContext
File "twisted\python\context.pyc", line 37, in callWithContext
--- <exception caught here> ---
File "twisted\internet\selectreactor.pyc", line 146, in _doReadOrWrite
File "twisted\internet\tcp.pyc", line 460, in doRead
File "bot4CA.py", line 5532, in dataReceived
File "bot4CA.py", line 5542, in process_data
File "bot4CA.py", line 5630, in dispatch_events
File "bot4CA.py", line 5352, in onMessage
File "bot4CA.py", line 493, in onMessage
File "bot4CA.py", line 1154, in canUseBot2
exceptions.KeyError: 255
Lost connection. Reason: [Failure instance: Traceback (failure with no frames)
<type 'exceptions.KeyError'>: 255
]
Does the window suddenly close? Because if it does, there is an error and you need to follow the directions on how to see the error in the other post.
Could you tell me which servers you have been on and ask them if it is ok for me to test the login of the bot on their servers. I want to replicate the error and possibly get it under a debugger. Actually, I think I have an idea, are you logging the bot onto servers with more than 254 people on it or 254 spaces?
I think I found your error, the message that the server says when you log on is "Time spent on the server:". With the ":" there, the bot is thinking that is a user saying a message so it loops through the users on the server and crashes when python can't find a user named that.