AAO25.com

America's Army => General Chat => Topic started by: -{BOTs}-BOSS on Tuesday, January 31, 2012, 20:08:10 PM

Title: Unauthorized Server FIX?
Post by: -{BOTs}-BOSS on Tuesday, January 31, 2012, 20:08:10 PM
So i was just in our server and i was wondering is there some way we can edit that Message on top right to say Authorized Server? Dedicated Server? Awesome Server? LOL
Something other than  Unauthorized Server

Thanks Guys.
Title: Re: Unauthorized Server FIX?
Post by: Spanky on Tuesday, January 31, 2012, 20:09:38 PM
Of course there's a way to change it. I don't think it matters though, we have other things to spend our time on.
Title: Re: Unauthorized Server FIX?
Post by: -{BOTs}-BOSS on Tuesday, January 31, 2012, 20:13:41 PM
Cool i will see what i find out.
Title: Re: Unauthorized Server FIX?
Post by: Spanky on Tuesday, January 31, 2012, 20:42:40 PM
I think Jonny can do this but again, there's other, more important things to do.
Title: Re: Unauthorized Server FIX?
Post by: Jonnym on Wednesday, February 01, 2012, 05:21:13 AM
Maybe, but i don't know how.
Title: Re: Unauthorized Server FIX?
Post by: Spanky on Wednesday, February 01, 2012, 14:40:59 PM
Oh come on, you rebuilt authorization! Surely you can spoof a little text string :P

I'm looking for it in the files, I was thinking perhaps of just being able to hex edit the string and call it done but I can't find "Unauthorized" :(
Title: Re: Unauthorized Server FIX?
Post by: -{BOTs}-BOSS on Wednesday, February 01, 2012, 16:04:46 PM
i looked around my self and did not see anything.. but after thinking about it a while... when Hosting company's used to register servers via MBS or what ever it used too be called...
i think they would get a packet sent to server that would change that status.

but i don't kno.

Title: Re: Unauthorized Server FIX?
Post by: BlueBlaster on Wednesday, February 01, 2012, 19:01:28 PM
Yo wouldn't those text strings be located in Andromeda.u?
Title: Re: Unauthorized Server FIX?
Post by: Spanky on Wednesday, February 01, 2012, 19:19:43 PM
I think I found it in a old mod from Crusade:

//================================================================================
// U.
//================================================================================
class U extends Mutator
  Localized
  HideCategories(Movement,Collision,Lighting,LightColor,Karma,Force);

event PreBeginPlay() { //defined
  Level.Game.BaseMutator.AddMutator(self);
  Disable('Tick');
  SetTimer(10.00,True);
}

function AuthAuthenticateServerCallback() { //defined
  Level.Game.SetRequireAuthorization(True);
  AGP_GameInfo(Level.Game).fAuthNotAvailableLastAuthAttempt=False;
  AGP_GameInfo(Level.Game).ServerAuthFailures=0;
  AGP_GameInfo(Level.Game).SetServerMode(4,"Leased-Official");
  AGP_GameInfo(Level.Game).NextAuthTime=Level.TimeSeconds * 60;
}

function Timer() { //defined
  AuthAuthenticateServerCallback();
}

This is easy enough that I could compile it without a problem. I'm sure Jonny can add this to the current auth mod.
Title: Re: Unauthorized Server FIX?
Post by: BlueBlaster on Wednesday, February 01, 2012, 19:38:37 PM
I found something fun. I forgot there were DEV servers.
Code: [Select]
//agp [cmb] Only servers that start as LAN servers, DEV servers, and Official are allowed to choose their auth state [4/22/2004]
function bool IsRequireAuthorization()
{
if(Level.IsLANOnlyServer() || Level.IsDevMode() || Level.IsOfficialServer())
{
return bRequireAuthorization;
}
else
{
bRequireAuthorization = true; //agp [cmb] Make sure that the server can only choose it's Auth state if it STARTED as DEV or Official [7/30/2004]
return true;
}
}

function DisableQualification()
{
bDisableQualification=true;
}
Title: Re: Unauthorized Server FIX?
Post by: Spanky on Wednesday, February 01, 2012, 19:52:35 PM
Looks like we just gave Jonny some work :P
Title: Re: Unauthorized Server FIX?
Post by: -{BOTs}-BOSS on Wednesday, February 01, 2012, 20:01:22 PM
wow this is awesome!  8)
Title: Re: Unauthorized Server FIX?
Post by: -{BOTs}-BOSS on Wednesday, February 01, 2012, 21:50:52 PM
Spanky how would i add this to our servers? or it has to be sent to the servers? like a packet? or string.
Title: Re: Unauthorized Server FIX?
Post by: Spanky on Wednesday, February 01, 2012, 21:58:54 PM
Spanky how would i add this to our servers? or it has to be sent to the servers? like a packet? or string.


You would add it by setting up a 2.5 compiling environment, compiling the mod, and add it to your server. Or just wait for Jonny to integrate it into his existing Auth mod.
Title: Re: Unauthorized Server FIX?
Post by: -{BOTs}-BOSS on Wednesday, February 01, 2012, 22:02:24 PM
Ver Nise!
Title: Re: Unauthorized Server FIX?
Post by: Jonnym on Thursday, February 02, 2012, 05:58:44 AM
I thought it was not that simple, does not work. Sorry Guys, Live with it.
i just writes that text to the log file, not the screen. and that locks up trying to get auth from pragmatic cos it turned old auth system back on.
Title: Re: Unauthorized Server FIX?
Post by: Jonnym on Thursday, February 02, 2012, 06:01:22 AM
Ok i can set mode1 so it just says authorized, thats as good as it gets.
Title: Re: Unauthorized Server FIX?
Post by: -{BOTs}-BOSS on Thursday, February 02, 2012, 10:15:08 AM
that's all we need Jonny =)
Title: Re: Unauthorized Server FIX?
Post by: Spanky on Thursday, February 02, 2012, 13:48:12 PM
Ok i can set mode1 so it just says authorized, thats as good as it gets.

Perfect! No need for leased since your Auth and Honor doesn't require it :P
Title: Re: Unauthorized Server FIX?
Post by: Go_Cat75 on Friday, February 03, 2012, 05:30:15 AM
Ok i can set mode1 so it just says authorized, thats as good as it gets.

I think mode4 is the official auth that we used to have?