Author |
Message |
Cerium Server Help Squatter

Age:43 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Thu Apr 14, 2005 10:17 pm Post subject: AS3 Bug, or bot core bug? YOU DECIDE! |
 |
|
|
|
d1st0rt brought an interesting bug to my attention... Im not entirely sure which side the problems on (probably mine), so I decided to throw this in trash talk and let MGB move it if he feels the need to do so.
Anyway...
I cant seem to get hybrid to connect to an AS3 server. As far as Ive been able to determine, the server seems to not be responding to the client key (0x00, 0x01). I dont know if its just not getting the packet, if the packet is being constructed incorrectly and ignored or whats going on.
Ive mentioned this to grel both in game (in team and ?message) and email, and he seems to be perma AFK. If anyone else wants to help me figure this out let me know either here, in game, or email (Cerium@gmail.com)
-C
----------
Update:
Packet 'trace'... if you can call it that:
$> AS.Update Attempting to connect to ss://216.34.65.183:5000
Key: -637195156
SEND: 0x00 0x01 0x6C 0x2C 0x05 0xDA 0x01 0x00
$> Hybrid.Warning Connection timed out. [Spawn: TestBot, ID: 0]
SEND: 0x00 0x07
$> AS.Update Disconnected. Waiting 5000ms...
hybrid.core.events.Disconnected@1f4689e
$> AS.Update Attempting to connect to ss://216.34.65.183:5000
Key: -792992747
SEND: 0x00 0x01 0x15 0xE4 0xBB 0xD0 0x01 0x00
$> Hybrid.Warning Connection timed out. [Spawn: TestBot, ID: 0]
$> AS.Update Disconnected. Waiting 5000ms...
hybrid.core.events.Disconnected@f7f540
$> AS.Update Attempting to connect to ss://216.34.65.183:5000
Key: -1971167499
SEND: 0x00 0x01 0xF5 0x5E 0x82 0x8A 0x01 0x00
$> Hybrid.Warning Connection timed out. [Spawn: TestBot, ID: 0]
|
Last edited by Cerium on Thu Apr 14, 2005 10:51 pm, edited 1 time in total |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Apr 14, 2005 10:19 pm Post subject: |
 |
|
|
|
Probably its own issue because AFAIK asss is able to be connected to with both VIE enc and Continuum enc w/o issues... :/ _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:43 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Thu Apr 14, 2005 10:20 pm Post subject: |
 |
|
|
|
Jesus christ that was fast.
Yeah, I had no problems connecting to asss previously so I assumed everything worked. I didnt even know it was broken until dist mentioned it to me. Thing is, it connects to subgame servers no problem... |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Apr 14, 2005 10:52 pm Post subject: |
 |
|
|
|
Do other bots (esp MERV) connect? I ask not in the general case, but in your specific case.
There are numerous settings issues that could stop a bot from connecting, and I'd like to have it stated early on in the thread that you've tested a MERVBot in your asss zone with the same username and password. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:43 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Thu Apr 14, 2005 11:01 pm Post subject: |
 |
|
|
|
Well MERV connects fine... so its safe to assume its something I screwed up... but im not seeing it. |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:43 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Fri Apr 15, 2005 2:23 pm Post subject: |
 |
|
|
|
Ok, so weve determined without a doubt that its the core. Theres something im overlooking thats causing this issue.
What I dont understand, is what kind of bug could cause this behavior? When connecting to a subgame server, theres no problems. However, when attempting to connect to an ASSS server, either the server isnt getting the intial packet, or its ignoring it.
Someone clue me in... im busting my head against a wall... |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:43 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Sat Apr 16, 2005 3:01 pm Post subject: |
 |
|
|
|
Ok, so anyone whos curious... Ive figured out the problem. I feel like a dumbass for missing this, so feel free to flame.
1) The core was attempting to encrypt packets prior to receiving the server key. This didnt really encrypt anything, it was just changing the last two bytes in the client key to something OTHER than 0x01 0x00.
2) ASSS seems to ignore connections if the client protocol version isnt 'subspace' or 'continuum'.
3) Subgame on the other hand, seems to only check for 'continuum' and assumes anything else is 'subspace'. This explains why the bug was still allowing the core to function on subgame servers, while ASSS servers were silently giving my bots the finger.
The only thing Id like to see change, is perhaps have ASSS print a warning to the console when such a packet is ignored, or maybe even have it send the disconnect packet as a response, rather than simply ignoring it.
I know its my own fault, but this would have taken me all of 30 seconds to find/fix had there been some kind of notification.
-C |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sun Apr 17, 2005 10:52 am Post subject: |
 |
|
|
|
Hybrid connects with a different protocol than 'subspace'?
Edit: Fixed, thanks Brain. I get these new fangled Java things mixed up.  _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Last edited by Cyan~Fire on Sun Apr 17, 2005 10:47 pm, edited 1 time in total |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Apr 17, 2005 11:11 am Post subject: |
 |
|
|
|
Uh? No one has been talking about TWCore in this thread. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Sun Apr 17, 2005 9:33 pm Post subject: |
 |
|
|
|
When TWCore tries to log in, it says the login packet is the wrong size (117) _________________
 |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:43 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Sun Apr 17, 2005 11:09 pm Post subject: |
 |
|
|
|
Cyan~Fire wrote: | Hybrid connects with a different protocol than 'subspace'?
Edit: Fixed, thanks Brain. I get these new fangled Java things mixed up.  |
When the encryption is broken, yes =) |
|
Back to top |
|
 |
|