[HELP] ERROR: unable to get auth data

Joined
Aug 15, 2015
Messages
25
Reaction score
5
I'm having this problem have tried everything to correct the most is not working problem someone who is a great person could help me please !!
I'm trying to make my game more'm having this problem ..​



--- Project Z game log started at Wed Mar 23 16:01:25 2016


000000.536 > Available memory: 4078 MB
000000.633 > r3dFS: version:March 23, 2016 16:01, 35611 files
000000.922 > r3dFile: can't open local.ini
000000.922 > Can't open file "local.ini"
000000.931 > readGameOptionsFile: couldn't open both gameSettings.ini and C:\Users\CDN\AppData\Local\Project Z Settings\Project Z\gameSettings.ini! Using defaults.
000000.932 > Selected resolution from desktop dimensions: 1280x1024
000000.975 > readInputMap: couldn't open both inputMap.xml and C:\Users\CDN\AppData\Local\Project Z Settings\Project Z\inputMap.xml! Using defaults.
000000.975 > writeInputMap: Saving settings to C:\Users\CDN\Documents\Project Z Settings\Project Z\inputMap.xml
000000.999 > userSettings: couldn't open both userSettings.xml and C:\Users\CDN\AppData\Local\Project Z Settings\Project Z\userSettings.xml! Using defaults.
000000.999 > userSettings: Saving settings to C:\Users\CDN\Documents\Project Z Settings\Project Z\userSettings.xml
000001.004 > SOUND: initializing sound system
000001.040 > SOUND: '1' sound drivers found
000001.041 > SOUND: sound caps = 0xF8, speakermode= 2
000001.041 > SOUND: sound driver 'Alto-falantes (Realtek High Definition Audio)'
000001.066 > SOUND: sound system ready
000001.067 > FMOD: LoadSoundEffects: Loading from Data\Sounds\Sounds.fev
000003.949 > Starting voice
000004.003 > Playback device: Alto-falantes (Realtek High Definition Audio) (default)
000004.003 > Capture device: Microfone (Realtek High Definition Audio) (default)
000004.008 > Input Devices enabled: Mouse, Keyboard
000004.299 > VMEM As seen through DDRaw: 1974
000004.299 > VMEM As seen through WMI: 0
000004.299 > Setting mode: 1280x1024x32 Flags=0
000004.810 > NVApi successfuly initialized.
000004.810 > NVApi: stereo is not available. Stereo driver not installed?
000004.816 > Adapter: NVIDIA GeForce GTX 970 Ti
000004.816 > nvd3dum.dll 9.18.13.3217
000004.816 > Monitor: \\.\DISPLAY1 (1280x1024)
000004.852 > r3dRenderLayer::SetMode(x=1280,y=1024,bpp=32,windowed=0,hz=60)
000004.859 > Creating d3d device
000006.431 > NVApi: failed to create stereo handle!
000006.432 > GPU supports D3DQUERYTYPE_TIMESTAMP
000006.432 > GPU supports D3DQUERYTYPE_TIMESTAMPFREQ
000006.432 > D3D hack support = NullRT: 1, hwPCF: 1, IntZ: 1, ResZ: 0
000006.434 > We have 3747 MB texture memory
000006.500 > r3dFont: Creating Verdana 10pt
000006.500 > r3dFont: Finished creating Verdana 10pt
000006.502 > Loading shaders...
000007.011 > Finished loading shaders (0.508615 sec)!
000007.014 > Started background thread: 5680
000007.044 > Creating dynamic buffer of size 1.00 MB
000007.044 > Creating dynamic buffer of size 0.09 MB
000007.050 > Creating dynamic buffer of size 0.15 MB
000007.050 > r3dFont: Creating Tahoma 12pt
000007.052 > r3dFont: Finished creating Tahoma 12pt
000007.052 > r3dFont: Creating Tahoma 9pt
000007.053 > r3dFont: Finished creating Tahoma 9pt
000007.053 > r3dFont: Creating Verdana 10pt
000007.053 > r3dFont: Finished creating Verdana 10pt
000007.128 > Creating render targets
000007.128 > CreateDynamicEnvMap: creating of size 512x512x6
000007.134 > r3dFont: Creating Verdana 8pt
000007.135 > r3dFile: can't open data/fonts/verdana_8_0.tga
000007.138 > r3dFont: Finished creating Verdana 8pt
000007.202 > Loaded 12 of 12 grass settings locations from the glist file
000007.203 > Loaded 12 grass settings files
000008.786 > !!! ERROR: unable to get auth data
000008.786 > ... exiting


 
if you are using overz, bin name is OZ and not DZ , check your IP,PORT on WZBACKEND IP, 1433
password and database name, path, ...
 
Upvote 0
be sure to match this patch address... Client and Launcher have this and should be the same path address take a look searching for this, this is one of the many things that show this error
Code:
bool CreateConfigPath(char* dest)
{
	if( SUCCEEDED(SHGetFolderPath(NULL, CSIDL_MYDOCUMENTS | CSIDL_FLAG_CREATE, NULL, 0, dest)) ) 
	{
		[B][COLOR="#B22222"]strcat( dest, "\\AfterLife MMO\\" );[/COLOR][/B] // My Documents
		mkdir( dest );

		return true;
	}

	return false;
}
 
Last edited:
Upvote 0
It's the same in Client and Launcher.

Code:
bool CreateWorkPath(char* dest)
{
	if( SUCCEEDED(SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, dest)) ) 
	{
		strcat( dest, "\\WeKiNGZ\\" );
		mkdir( dest );
		strcat( dest, "WeKiNGz Settings\\" );
		mkdir( dest );

		return true;
	}

	return false;
}

Thank's for reply, if you have more ideeas don't stop xD maybe we will help others too.
 
Upvote 0
It's the same in Client and Launcher.

Code:
bool CreateWorkPath(char* dest)
{
	if( SUCCEEDED(SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, dest)) ) 
	{
		[COLOR="#FF0000"]strcat( dest, "\\WeKiNGZ\\" );[/COLOR]
		mkdir( dest );
		[B][COLOR="#FF0000"]strcat( dest, "WeKiNGz Settings\\" );[/COLOR][/B]
		mkdir( dest );

		return true;
	}

	return false;
}

Thank's for reply, if you have more ideeas don't stop xD maybe we will help others too.
the red words is not the same... and you can just use one patch directory for the file management, so make the same name and delete one of those, rebuild the client and launcher, test and replay if the fix works

change in - client side/launcher side
bool CreateConfigPath(char* dest)
bool CreateWorkPath(char* dest)
 
Upvote 0
Well basically it's making like C:\Documents\WeKiNGZ\WeKiNGZ Settings\usersettings.ini etc

I will try only with one directory :D if it's working i'm going to send you a beer! :)) but i don't really believe it will work xD
 
Upvote 0
Well basically it's making like C:\Documents\WeKiNGZ\WeKiNGZ Settings\usersettings.ini etc

I will try only with one directory :D if it's working i'm going to send you a beer! :)) but i don't really believe it will work xD

this is the correct way.
Code:
if( SUCCEEDED(SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, dest)) ) 
	{
		strcat( dest, "\\WeKiNGZ\\WeKiNGz Settings\\" );
		mkdir( dest );

		return true;
	}
 
Upvote 0
you still doing something wrong try to put all the directory as the same name
FrontEndWarZ.cpp Error Registry
Code:
bool FrontendWarZ::DecodeAuthParams()
{
	r3d_assert(Login_PassedAuth[0]);
	
	if(Login_PassedAuth[0] == '=' && Login_PassedAuth[1] == '=')
	{
		if(![COLOR="#0000CD"]getAuthFromRegistry[/COLOR](Login_PassedAuth, sizeof(Login_PassedAuth)))
		{
			[COLOR="#FF0000"][B]r3dError("unable to get auth data");[/B][/COLOR]
			return false;
		}
	}

	CkString s1;
	s1 = Login_PassedAuth;
	s1.base64Decode("utf-8");

	char* authToken = (char*)s1.getAnsi();
	for(size_t i=0; i<strlen(authToken); i++)
		authToken[i] = authToken[i] ^ 0x64;

	DWORD CustomerID = 0;
	DWORD SessionID = 0;
	DWORD AccountStatus = 0;
	int n = sscanf(authToken, "%d:%d:%d", &CustomerID, &SessionID, &AccountStatus);
	if(n != 3)
	{
		r3dError("unable to get session data");
		return false;
	}

	gUserProfile.CustomerID    = CustomerID;
	gUserProfile.SessionID     = SessionID;
	gUserProfile.AccountStatus = AccountStatus;
	return true;
}

search for this in the FrontEndWarZ.cpp too
Code:
static bool [COLOR="#0000CD"]getAuthFromRegistry[/COLOR](const char* token, int tokensize)
{
	// query for game registry node
	HKEY hKey;
	int hr;
	hr = RegOpenKeyEx(HKEY_CURRENT_USER, 
		[COLOR="#0000CD"]"AfterLife MMO\\", [/COLOR]
		0, 
		KEY_ALL_ACCESS, 
		&hKey);
	if(hr != ERROR_SUCCESS)
		return false;

	DWORD size = tokensize;
	hr = RegQueryValueEx(hKey, "LoginToken", NULL, NULL, (BYTE*)token, &size);
	if(hr != ERROR_SUCCESS)
		return false;
	
	// and clear it
	hr = RegDeleteValue(hKey, "LoginToken");
	RegCloseKey(hKey);
	return true;
}
 
Upvote 0
Back