You are viewing our Forum Archives. To view or take place in current topics click here.
Get gamertag from Profile ID?
Posted:

Get gamertag from Profile ID?Posted:

Z61
  • TTG Fanatic
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
I know Horizon does this but how do they do it?
#2. Posted:
Experiment5X
  • TTG Senior
Status: Offline
Joined: Aug 14, 200914Year Member
Posts: 1,291
Reputation Power: 65
Status: Offline
Joined: Aug 14, 200914Year Member
Posts: 1,291
Reputation Power: 65
They don't they probably just store the information in a settings file.
#3. Posted:
CLK
  • Wise One
Status: Offline
Joined: Jun 12, 201013Year Member
Posts: 531
Reputation Power: 33
Status: Offline
Joined: Jun 12, 201013Year Member
Posts: 531
Reputation Power: 33
I think you meant to say profile ID from gamertag? Go to... [ Register or Signin to view external links. ] , look at the page source, and you'll find the "ProfileAvatarViewer" div id. In the "initParams" param tag, you'll find a reeeaaallllyyy long string of data, and at offset 0x700 in the string is where the profile ID begins. Here's some example data with the profile ID bolded:

<div id="ProfileAvatarViewerDiv">

<object id="profileAvatarViewerCtrl" data="data:application/x-silverlight-2," type="application/x-silverlight-2" class="ProfileAvatarViewer">

<param name="source" value="/Content/Silverlight/Microsoft.XboxLive.Avatars.AvatarViewer.xap" />

<param name="onError" value="onSilverlightError" />

<param name="background" value="transparent" />

<param name="minRuntimeVersion" value="4.0.50401.0" />

<param name="autoUpgrade" value="true" />

<param name="EnableGPUAcceleration" value="true" />

<param name="windowless" value="true" />

<param name="culture" value="en-US" />

<param name="uiculture" value="en-US" />

<param name="initParams" value="env=,viewerManifest=00000000BF0000003F80000000100000031F0003C1C8F109A19CB2E000080000032B0003C1C8F109A19CB2E000200000033B0003C1C8F109A19CB2E00000800002E50003C1C8F109A19CB2E0000000000000000000000000000000000000200002D00003C1C8F109A19CB2E00000000000000000000000000000000000004000026D0003C1C8F109A19CB2E000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE3946BFF0D0D0DFFC65265FFAB0207FF682618FF6A3919FF682618FF81271FFF81271F0000000200000001C1C8F109A19CB2E0000200000000000000000000000000000000000100020003C1C8F109A19CB2E00001000000000000000000000000000000000FFC78BAB2E1CFF7784E58410A690FFC000000000000000000000000000000001000F9A5D213C2553C1C4C4107F210000000FF000000FF000000FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020002D0001C1C8F109A19CB2E0002000000000000000000000000000000000001000A90001C1C8F109A19CB2E0001000000000000000000000000000000000000800600001C1C8F109A19CB2E0000800000000000000000000000000000000000402530003C1C8F109A19CB2E000040000000000000000000000000000E00005C84851A9A6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" />

<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration: none"></a>

</object>

</div>
#4. Posted:
Z61
  • TTG Fanatic
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 I think you meant to say profile ID from gamertag? Go to... [ Register or Signin to view external links. ] , look at the page source, and you'll find the "ProfileAvatarViewer" div id. In the "initParams" param tag, you'll find a reeeaaallllyyy long string of data, and at offset 0x700 in the string is where the profile ID begins. Here's some example data with the profile ID bolded:

<div id="ProfileAvatarViewerDiv">

<object id="profileAvatarViewerCtrl" data="data:application/x-silverlight-2," type="application/x-silverlight-2" class="ProfileAvatarViewer">

<param name="source" value="/Content/Silverlight/Microsoft.XboxLive.Avatars.AvatarViewer.xap" />

<param name="onError" value="onSilverlightError" />

<param name="background" value="transparent" />

<param name="minRuntimeVersion" value="4.0.50401.0" />

<param name="autoUpgrade" value="true" />

<param name="EnableGPUAcceleration" value="true" />

<param name="windowless" value="true" />

<param name="culture" value="en-US" />

<param name="uiculture" value="en-US" />

<param name="initParams" value="env=,viewerManifest=00000000BF0000003F80000000100000031F0003C1C8F109A19CB2E000080000032B0003C1C8F109A19CB2E000200000033B0003C1C8F109A19CB2E00000800002E50003C1C8F109A19CB2E0000000000000000000000000000000000000200002D00003C1C8F109A19CB2E00000000000000000000000000000000000004000026D0003C1C8F109A19CB2E000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFE3946BFF0D0D0DFFC65265FFAB0207FF682618FF6A3919FF682618FF81271FFF81271F0000000200000001C1C8F109A19CB2E0000200000000000000000000000000000000000100020003C1C8F109A19CB2E00001000000000000000000000000000000000FFC78BAB2E1CFF7784E58410A690FFC000000000000000000000000000000001000F9A5D213C2553C1C4C4107F210000000FF000000FF000000FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020002D0001C1C8F109A19CB2E0002000000000000000000000000000000000001000A90001C1C8F109A19CB2E0001000000000000000000000000000000000000800600001C1C8F109A19CB2E0000800000000000000000000000000000000000402530003C1C8F109A19CB2E000040000000000000000000000000000E00005C84851A9A6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" />

<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration: none"></a>

</object>

</div>

Hmmm,
That is quite large.

How would i go about getting it to read the profile and associate that with the gamertag?
#5. Posted:
CLK
  • Wise One
Status: Offline
Joined: Jun 12, 201013Year Member
Posts: 531
Reputation Power: 33
Status: Offline
Joined: Jun 12, 201013Year Member
Posts: 531
Reputation Power: 33
You can't go profile ID->gamertag.
#6. Posted:
Z61
  • TTG Fanatic
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
I figured that.
Hmm i guess the best solution would be to ask them myself?
#7. Posted:
-Influence
  • TTG Senior
Status: Offline
Joined: Jan 27, 201113Year Member
Posts: 1,614
Reputation Power: 69
Status: Offline
Joined: Jan 27, 201113Year Member
Posts: 1,614
Reputation Power: 69
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.
#8. Posted:
Z61
  • TTG Fanatic
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
-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.

hmm
I'll try to find xPackage and then tell you if it works
#9. Posted:
Experiment5X
  • TTG Senior
Status: Offline
Joined: Aug 14, 200914Year Member
Posts: 1,291
Reputation Power: 65
Status: Offline
Joined: Aug 14, 200914Year Member
Posts: 1,291
Reputation Power: 65
-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.
#10. 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
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?
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.