PDA

View Full Version : Connecting to GS



ThadJarvis
04-10-2010, 01:53 PM
Hi. I'm trying to work on a small pet programming project of mine and i'm having some difficulty connecting to the game. Once I follow the SGE protocol and attempt to connect to the game server, my application sends the key followed by the string that identifies the front end used as well as the version, etc.

I keep getting an error message saying that my key is invalid, even though I am positive that its being correctly passed to the game.

Any suggestions?

Celephais
04-12-2010, 11:46 AM
Something tells me that you being positive it's the correct key isn't enough...

You're not really giving enough info for us to be able to help you, my guess is it's likely your encoding but...


Once you've connected to the game server you will receive a mode tag, you need to respond to that with:
"<c>" + vGameState.Key + "\x0A<c>/FE:WIZARD /VERSION:1.0.1.22 /P:WIN_XP /XML\x0A"

\x0A is a linefeed.

ThadJarvis
04-14-2010, 11:30 PM
Something tells me that you being positive it's the correct key isn't enough...

You're not really giving enough info for us to be able to help you, my guess is it's likely your encoding but...


Once you've connected to the game server you will receive a mode tag, you need to respond to that with:
"<c>" + vGameState.Key + "\x0A<c>/FE:WIZARD /VERSION:1.0.1.22 /P:WIN_XP /XML\x0A"

\x0A is a linefeed.

You were exactly correct. It was my encoding. Thank you very much!