Modifying GameProfile issue

Discussion in 'Plugin Development' started by ThiemeH, Jun 23, 2019.

Thread Status:
Not open for further replies.
  1. Hey there,
    I am trying to modify the GameProfile JSON data but for some reason it doesn't work anymore when I modified it.
    So I started off with making a simple skin changer that can be seen by the player itself as well. And then I tried modifying the JSON but even though the modified and unmodified are exactly the same (besides the timestamp is like 2ms off), it still stops working after I modified it. This might sound a bit confusing but it might make more sense if you take a look at the code:

    Original unmodified JSON:
    Code:
    {"id":"66ace672c228452c96e607146020c700","name":"DaydreamWarrior","properties":[{"name":"textures","value":"eyJ0aW1lc3RhbXAiOjE1NjEzMzQwNjQyNjMsInByb2ZpbGVJZCI6IjY2YWNlNjcyYzIyODQ1MmM5NmU2MDcxNDYwMjBjNzAwIiwicHJvZmlsZU5hbWUiOiJEYXlkcmVhbVdhcnJpb3IiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiQ0FQRSI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzU3ODZmZTk5YmUzNzdkZmI2ODU4ODU5ZjkyNmM0ZGJjOTk1NzUxZTkxY2VlMzczNDY4YzVmYmY0ODY1ZTcxNTEifX19","signature":"YXPVj4Oyi1xqPlZJQCGgyEZ0n12ScI+W1XnRYNFBLosItyVn/rrWqAStr0XxY6rRnEBYvg7DucSWGVy7w/Mh/uIukH+RhDoCZzx4duBtzXXVUfDDy2pFBLfKA2O1sAondk7C1A1GYonmxc0cY97PhlSg4AYDHPKZcVwQioJoqFdr8RDRoTHl87GcZCNqQOxeVxoCqI1YHVS4IOtvBTJ2iYFKcnFTjMAnwCfEwKQI3LJORYvsdF22L8gw8ARBewnXQfe3argHEGm9EUXCG+1jhDmKoLpDfwQ5ylKj5mS+OFsHQi3gFNpg29+Sh7C/6v0mospnbR2dnjiYXNq2Ehlnio1mjdxG3mwD+85IDj0BSqNEidXvvy5AMSDWxol2ok3unuLY68uWm8AEZx1mIJDa5/SwvoUAYVMzNI375VZZY3SbaDubVcWvxJHCpq6AHbSYs1pLyp4aYRTjChRZJLVPJ/wiJuTqE+MgnyWY01Gd6B7gpuiCHQ0qAcULzkxQC80oqtNqcRba4BvKVyf8GRHDwbt4cDeHbv9Wt3bAbnlPeQz36baeQcwwU43oWWSCKD77Wxw+6sLiqZ7JOx2wQOUzR+HALHHd2+98IBO8dYNanW5+bjBTWmDaypiAy3qasIWNx/JD07QpPgaGzmVhblGY6HhzEMAm4iID6wtlMKbHnec="}]}
    
    Modified, but yet the same JSON (basically I recoded everything with base64 decode and all jsonobjects)
    Code:
    {"id":"66ace672c228452c96e607146020c700","name":"DaydreamWarrior","properties":[{"name":"textures","value":"eyJ0aW1lc3RhbXAiOjE1NjEzMzQwNjQyNjQsInByb2ZpbGVJZCI6IjY2YWNlNjcyYzIyODQ1MmM5NmU2MDcxNDYwMjBjNzAwIiwicHJvZmlsZU5hbWUiOiJEYXlkcmVhbVdhcnJpb3IiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiQ0FQRSI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzU3ODZmZTk5YmUzNzdkZmI2ODU4ODU5ZjkyNmM0ZGJjOTk1NzUxZTkxY2VlMzczNDY4YzVmYmY0ODY1ZTcxNTEifX19","signature":"YXPVj4Oyi1xqPlZJQCGgyEZ0n12ScI+W1XnRYNFBLosItyVn/rrWqAStr0XxY6rRnEBYvg7DucSWGVy7w/Mh/uIukH+RhDoCZzx4duBtzXXVUfDDy2pFBLfKA2O1sAondk7C1A1GYonmxc0cY97PhlSg4AYDHPKZcVwQioJoqFdr8RDRoTHl87GcZCNqQOxeVxoCqI1YHVS4IOtvBTJ2iYFKcnFTjMAnwCfEwKQI3LJORYvsdF22L8gw8ARBewnXQfe3argHEGm9EUXCG+1jhDmKoLpDfwQ5ylKj5mS+OFsHQi3gFNpg29+Sh7C/6v0mospnbR2dnjiYXNq2Ehlnio1mjdxG3mwD+85IDj0BSqNEidXvvy5AMSDWxol2ok3unuLY68uWm8AEZx1mIJDa5/SwvoUAYVMzNI375VZZY3SbaDubVcWvxJHCpq6AHbSYs1pLyp4aYRTjChRZJLVPJ/wiJuTqE+MgnyWY01Gd6B7gpuiCHQ0qAcULzkxQC80oqtNqcRba4BvKVyf8GRHDwbt4cDeHbv9Wt3bAbnlPeQz36baeQcwwU43oWWSCKD77Wxw+6sLiqZ7JOx2wQOUzR+HALHHd2+98IBO8dYNanW5+bjBTWmDaypiAy3qasIWNx/JD07QpPgaGzmVhblGY6HhzEMAm4iID6wtlMKbHnec="}]}
    
    So basically my question is, why does a modified version of the GameProfile not work even though it's exactly the same as the unmodified?
     
  2. Offline

    KarimAKL

  3. 'besides the timestamp is like 2ms off'

    If you decode in base64 you'll find out the timestamp is a few ms off but I doubt that stops it from working
     
  4. Offline

    KarimAKL

    @ThiemeH Why not just set the texture of profile1 to the texture of profile2?
     
Thread Status:
Not open for further replies.

Share This Page