Replay Mod Forums

Same replay - different skins?
    • User
    • 7 forum posts

    Mar 21 19, 09:30 AM


    I was wondering, if it's possible to render the same replay with different skins?
    It seems like the replays caches the current skin of the profiles, so even if I've changed my skin afterwards, the replay still shows the old skin.

    Is it possible to edit the mcpr-file, so I can replace the skin-file with another? Or can I tell replay mod to always use the current skin of the players?

    Cheers - Mikkel Tiedt - Denmark

    • Developer
    • 1883 forum posts

    Mar 24 19, 10:13 AM

    While theoretically possible, this would be far from trivial to implement.

    The replay doesn't quite cache your skin, MC skins are a bit more complex: When you connect to a server, that server queries Mojang to check if your account is legit and also gets a URL to your skin with a digital signature for that information in return. It then sends those two things to all connected clients with the tab list packet. The clients can then check if the skin URL is actually from Mojang using the signature (to prevent servers from faking it) and only then will the client go and fetch the skin from the given URL.
    What happens when you change your skin is that Mojang simply assignes a new URL to the new skin and the old URL keeps pointing at the old skin, hence the player in the replay keeping their old skin.

    So, to change your skin in a replay, you'd have to go through the whole fetch-url-from-Mojang dance, then parse the replay and replace the old url+signature with the new one.

    To sum it up, it's probably easier if you can find some third party mod which allows you to set custom skins for players (I'd imagine it somewhat similar to how can set custom, local names for people on certain chat platforms) if such a mod exists.

    • User
    • 7 forum posts

    Mar 29 19, 09:43 PM

    Ah I see.
    Would it be possible for Replay to look in a local folder instead, and add a custom skin to a specific player or just the one in a singleplayer world?