You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
DustyBIGJosh
  • New Member
Status: Offline
Joined: Jan 14, 201014Year Member
Posts: 37
Reputation Power: 1
Status: Offline
Joined: Jan 14, 201014Year Member
Posts: 37
Reputation Power: 1
-Zachman61- wrote
Experiment5X wrote
-eLeVaTiiONz- wrote I had this problem too..
I asked 'expericed' coders.. they said 'get the hex, 'Its in a GPD File' etc..

Here is the code.
Note: You need xPackage Refence

Code:

Dim xPackage As New STFSPackage(FilePath, Nothing)
If Not xPackage.ParseSuccess Then
Return
End If
Dim Read As New ProfilePackage(xPackage)
TextBoxX1.Text = Read.UserFile.GetGamertag()
Read.CloseIO()

Hope this helps.

That's not getting it from the Profile ID, that's reading it from the Account file.

So that doesn't get the gamertag?


Yes it gets the Gamertag, but does not show you how to get the ProfileID.

As for getting the ProfileID from the Gamertag that can be done as CLK showed, but in Horizon I think they store everyones ProfileID => Gamertag so when you open a Profile up it knows whos who.
#12. Posted:
CLK
  • Wise One
Status: Offline
Joined: Jun 12, 201014Year Member
Posts: 531
Reputation Power: 33
Status: Offline
Joined: Jun 12, 201014Year Member
Posts: 531
Reputation Power: 33
-Zachman61- wrote
Experiment5X wrote
-eLeVaTiiONz- wrote I had this problem too..
I asked 'expericed' coders.. they said 'get the hex, 'Its in a GPD File' etc..

Here is the code.
Note: You need xPackage Refence

Code:

Dim xPackage As New STFSPackage(FilePath, Nothing)
If Not xPackage.ParseSuccess Then
Return
End If
Dim Read As New ProfilePackage(xPackage)
TextBoxX1.Text = Read.UserFile.GetGamertag()
Read.CloseIO()

Hope this helps.

That's not getting it from the Profile ID, that's reading it from the Account file.

So that doesn't get the gamertag?


It gets the gamertag by opening the Account file from the package in a memory stream, decrypting it, then reading the gamertag.
#13. Posted:
Z61
  • V5 Launch
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
-CLK- wrote
-Zachman61- wrote
Experiment5X wrote
-eLeVaTiiONz- wrote I had this problem too..
I asked 'expericed' coders.. they said 'get the hex, 'Its in a GPD File' etc..

Here is the code.
Note: You need xPackage Refence

Code:

Dim xPackage As New STFSPackage(FilePath, Nothing)
If Not xPackage.ParseSuccess Then
Return
End If
Dim Read As New ProfilePackage(xPackage)
TextBoxX1.Text = Read.UserFile.GetGamertag()
Read.CloseIO()

Hope this helps.

That's not getting it from the Profile ID, that's reading it from the Account file.

So that doesn't get the gamertag?


It gets the gamertag by opening the Account file from the package in a memory stream, decrypting it, then reading the gamertag.
Ok thats what i wanted it to do
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.