Game Development Community

Chr_game error with dedicated server

by Kirk Longendyke · in Torque Game Engine Advanced · 09/02/2007 (10:25 am) · 2 replies

Ok, I just know this is going to be one of those moments when I'm going to need to look back and smack myself for being an idiot here, but heres the deal:

Just recently got to the stage of testing out the last bits of functionality for this first lil game were working on. To date, have had no problems connecting to myself via clientserver, to a dedicated server run on the same system, or another system for lan gaming. However, got comfortable enough to start doing over-the-net testing via looking it up on a master server prior to finishing up rolling our own, and ran across a verry, verry screwball error that I just cannot figure out where to start looking for the end of the thread to pull, as it were, and thats:

img381.imageshack.us/my.php?image=bug1bh0.jpg

traced that to the readConnectRequest, wich seems to me to be a simple straigthforward check to ensure youre running the same TORQUE_GAME_NAME exe for both client and server.

so ok, changed the error readout to *errorString = dStrcat(gameString, GameString);
and tacked on a Con::errorf("%s != %s",gameString, GameString); to the assert, figuring ok, lets see what it's sending.

pseudotranscript for your amusement:
Quote:
tester: "so, um, yeah, I'm still getting that same error"
me: "funny. stop joking arround"
tester: "heres a picture"
me: "well, lets see what our logs say arround the !="
tester: "there is no != in the log anyplace. what about you?"
me: "...nope..."

cool. fine. so since thats always the same, or should be, just went ahead and remmed it and the send on out. after all, if it never tries to compare the things, it can't possibl...

Quote:
tester: uh, chief? guess what.
me: youre sh&^(ing me, right?

doublechecked tdn.garagegames.com/wiki/Torque/Networking/ConnectionSequence and it does in fact state that the function should be running on the server... at wich point, dear friends, I'm afraid I turn to you to hopefully point and laugh and shove the ever so simple oversight right in my face, because at this point, I'm just out of notions...

#1
09/02/2007 (12:50 pm)
If I had to guess, I'd say maybe that your client isn't connecting to the server you think it is? Since it works locally on the LAN. Maybe try hardcoding the ip it connects to for testing. Maybe you're connecting to someone elses dedicated server?
#2
09/02/2007 (1:06 pm)
Rgr... well, that worked, as expected. so it's got to be in the list someplace... :/ time to go hunting through example files again for a working lookup...