[T2] comment and question regarding console_start.cs

Mad Monk
11-21-2002, 06:58 PM
so first off, there seems to be a bug in the -mod tag in console_start.cs around line 234-ish.


else if ( $arg $= "-mod" && $hasNextArg )
{
setModPaths( $nextArg );
$i+=2;
$PureServer = false;
}


the problem is in the incrementing of $i. this tracks the arguments in the command line. it gets incremented incorrectly here and that throws off all other arguments for the rest of the line.

the question concerns -login. anyone know how to make it handle spaces in a login name? it seems to parse the command line for spaces to mark new arguments so it chops my name off after Mad.

UberGuy (FT)
11-21-2002, 08:05 PM
This is probably a dumb question, but did you try quoting your name?

-login "Mad Monk"

·liquid·
11-21-2002, 08:08 PM
-login Mad%Monk

Mad Monk
11-21-2002, 10:14 PM
i tried quoting my name, t2 recognizes the quotes as part of the name string.

just tried the % for a space and that did nothing. i gather that the % is recognized by t2 as something important because it doesn't display it, but it just removes that space from the name.

my workaround was to hack the console_start.cs to recognize a dummy character and replace it with a space in a name.

is there a \ code for a space?

·liquid·
11-21-2002, 11:26 PM
You could try SPC. :\

The % char should work. My brother uses it on his account because he has a space in his nick as well.

ZOD
11-24-2002, 12:05 AM
"Mad" @ " " @ "Monk"

Mad Monk
11-24-2002, 01:09 AM
if i start the name with " it shows up in the name field of the login screen.