Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: aton on December 09, 2008, 01:09 PM

Title: read starcraft cdkey?
Post by: aton on December 09, 2008, 01:09 PM
hi!

does anyone know in what file/registry key the cdkey is saved and how to read it?
Title: Re: read starcraft cdkey?
Post by: brew on December 09, 2008, 02:11 PM
hi aton!
the cdkey isn't stored in the registry, but instead in an encrypted file in stardat.mpq.
Title: Re: read starcraft cdkey?
Post by: Barabajagal on December 09, 2008, 03:12 PM
The CDKey is encrypted into various files in the Font folder of StarDat.mpq. I haven't bothered to find out much more than that.
Title: Re: read starcraft cdkey?
Post by: brew on December 09, 2008, 03:22 PM
Do I hear an echo, or is that me? =/
Title: Re: read starcraft cdkey?
Post by: aton on December 09, 2008, 03:33 PM
couldnt i use a starcraft function? starcraft needs to read the cdkey before loggin into bnet, right?
Title: Re: read starcraft cdkey?
Post by: brew on December 09, 2008, 04:42 PM
On initalization of the SNP, the cdkey is read then decrypted, and passed to the battle.snp startup function in a struct as the first parameter. If you want to retrieve the CDKey, this is pretty straightfoward. Writing the cdkey however.. not so much.