IeuanG / insidebot

Automatically exported from code.google.com/p/insidebot
0 stars 0 forks source link

No clue on how to get Server Hash / CLI should resolve Hash #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Checkout Code
2. Run setup
3. Become very confused on where to find the server Hash from the URL

What is the expected output? What do you see instead?

Offer to resolve ( if possible ) the hash from the IP / FQDN

I'm only using Minecraft from the client, so I connect by IP ( or domain name ).

I've tried running the client through the browser ( because it mentions a URL 
), and I can not find the hash.

I started tracking down how it's used in the code, and the URL it points to 
looks outdated? the play.jsp seems to be replaced by /game/. Is this method for 
Minecraft Alpha?

What version of the product are you using? On what operating system?

Path: .
URL: http://insidebot.googlecode.com/svn/trunk
Repository Root: http://insidebot.googlecode.com/svn
Repository UUID: 4d8d3f43-5ddd-848d-d1ff-3a0170820187
Revision: 22

Python 2.6.5 / Ubuntu 10.04

Please provide any additional information below.

I'm willing to patch ( if there are docs )

Original issue reported on code.google.com by Paul...@gmail.com on 10 Jan 2011 at 6:50

GoogleCodeExporter commented 8 years ago
I've been able to run a TCP dump to see if the client it's self uses a hash to 
connect. I tracked down this off the eth1 device:

GET 
/game/joinserver.jsp?user=paultag&sessionId=NNNNNNNNNNNNNNNNNNN&serverId=YYYYYYY
YYYYYYYYY HTTP/1.1

Where NNN--> is my sessionID, and YYY-> is my serverHash.

I've tried using this server hash ( 16 alphanumeric chars long, looks to be 
base 16 ), but it failed with a python error ( because Server is null )

> Stored values found: using them.  Delete info.txt to remove these.
> Please wait.  Loading
> Running bot
> Traceback (most recent call last):
>   File "bot2.py", line 1207, in <module>
>     if not server:
> NameError: name 'server' is not defined
> 

Original comment by Paul...@gmail.com on 10 Jan 2011 at 8:16

GoogleCodeExporter commented 8 years ago
Ah, and a second error as well. The failure swaps between the last error and 
this.

> Stored values found: using them.  Delete info.txt to remove these.
> Please wait.  Loading
> Traceback (most recent call last):
>   File "bot2.py", line 31, in <module>
>     login.open("http://minecraft.net/login.jsp")
>   File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 209, 
in open
>     return self._mech_open(url, data, timeout=timeout)
>   File "/usr/lib/python2.6/dist-packages/mechanize/_mechanize.py", line 261, 
in _mech_open
>     raise response
> mechanize._response.httperror_seek_wrapper: HTTP Error 504: Gateway Time-out

Original comment by Paul...@gmail.com on 10 Jan 2011 at 8:25

GoogleCodeExporter commented 8 years ago
This bot only works with the Minecraft Classic Multiplayer (available here: 
http://minecraft.net/servers.jsp )

Original comment by InsideTh...@gmail.com on 11 Jan 2011 at 4:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks for the response. I can't close the bugreport, but I'm fine with a 
WONTFIX on this.

Thanks for writing free software :)

Original comment by Paul...@gmail.com on 11 Jan 2011 at 3:00