TribesNext

Welcome, Guest. Please login or register.
Did you miss your activation email?


TribesNext >  TribesNext.com Forums >  Support >  Auto login parameters? « previous next »
Pages: [1] Print
Author Topic: Auto login parameters?
({STAR})earthinhabitant
Seņor Nugget

Posts: 210

View Profile
September 19, 2017, 12:18:52 PM »
Configuring a client side server monitor for Tribes IIn and it has auto login parameter input and have tried -login username and password and also -auto-login username and password to no avail.

What would be the proper parameter to use?

It goes to the login screen no problem with correct path to the tribes2.exe file, no problem, just hangs up there and after manual login, it auto joins the correct server...

http://www.serverquery.com





Krash
Administrator
Posts: 248

View Profile
1: September 20, 2017, 11:24:34 AM »
I didn't include support for these parameters when bypassing the original login system, both because the TN authentication flow functions significantly differently, and because at the time I didn't expect anyone would use them.  If you really wanted to, you could add it into the loginScreens.cs script included in the vl2 fairly easily (just check that the requisite variables are defined and attempt an offline login with t2csri_doLogin when the script loads).

({STAR})earthinhabitant
Seņor Nugget

Posts: 210

View Profile
2: September 20, 2017, 12:14:31 PM »
I didn't include support for these parameters when bypassing the original login system, both because the TN authentication flow functions significantly differently, and because at the time I didn't expect anyone would use them.  If you really wanted to, you could add it into the loginScreens.cs script included in the vl2 fairly easily (just check that the requisite variables are defined and attempt an offline login with t2csri_doLogin when the script loads).

okay, will do later on, it is not really a big deal, just have to manually hit enter and then it goes directly to the correct game server, as it beats, using the maxOG server query, then clicking short cut launcher and then enter to login and then query server and find in list and join it...thanks Krash for responding...hope all is well, with you and all!
({STAR})earthinhabitant
Seņor Nugget

Posts: 210

View Profile
3: September 20, 2017, 12:36:00 PM »
could you elaborate a little more?

 t2csri_doLogin found in loginscreen.cs and was just not sure what needs to be done next  Undecided
Krash
Administrator
Posts: 248

View Profile
4: September 20, 2017, 02:37:40 PM »
The function takes a key name and password as input; you should be able to gather these from the arguments passed to the game shortcut (refer to console_start.cs in the GameData directory).  As long as everything has loaded in, running that function with your details at the end of the script execution should allow you to login without manual input.

Alternatively, if you have the option for "Remember password" selected (which requires registry read/write access, so may need the game to be run as an administrator), you could simply run the newLoginProcess(); function to immediately login.  An example to check if the last argument passed is "-autologin" and initiate a login might be:

Code:
if ($Game::argv[$Game::argc-1] $= "-autologin")
{
schedule(128, 0, newLoginProcess);
}

({STAR})earthinhabitant
Seņor Nugget

Posts: 210

View Profile
5: September 20, 2017, 03:27:34 PM »
thanks, I tried to figure it out and could not get it to work, is there a simple way to just modify the console_start.cs to auto login, as that might be more players, if had like 3 second delay, so user could change player name or create an account, if they chose, though simple auto login option toggle on screen be best, to turn on or off... though if can modify the shortcut link or some simple way to autologin be nice, to last login account... as i may be only one use server query to auto join, with vast majority sure all manually having to login.
({STAR})earthinhabitant
Seņor Nugget

Posts: 210

View Profile
6: September 22, 2017, 12:53:42 PM »
where does this go:

Code:
if ($Game::argv[$Game::argc-1] $= "-autologin")
{
schedule(128, 0, newLoginProcess);
}

tried numerous locations and files and -autologin does not work

is there a simpler way to just modify the shortcut link, something like this?
"C:\Dynamix\Tribes2\GameDa ta\tribes2.exe" -online -login name password -mod Classic
« Last Edit: September 22, 2017, 01:17:01 PM by ({STAR})earthinhabitant »
Pages: [1] Print 
« previous next »
Jump to:  

irc.quakenet.org / #TribesNext Powered by SMF 1.1.21 | SMF © 2005, Simple Machines