mcpelauncher-manifest icon indicating copy to clipboard operation
mcpelauncher-manifest copied to clipboard

Corrupted my friends Realm

Open jurassicjordan opened this issue 3 years ago • 9 comments

Died in my friends realm and caused it to completely corrupt. upon joining the realm the game turns into an empty sky and I am teleported to 0,5,0. Happened when drowning underground in 1.17. My game froze and went grey. My friends are VERY upset with me, thanks a lot.

jurassicjordan avatar Jun 21 '21 04:06 jurassicjordan

I've seen similar corruption with my own servers. Tell your friend to use a world editor, and look at the Players. For each Player, look at the Rotation value, it should look like "Rotation: 2 entries (Facing NE, Looking Up)". If it says "...Facing ,...", (e.g. no direction) then expand that entry and change the first value from NaN to some number (e.g. 0)

mqualizz avatar Jun 22 '21 16:06 mqualizz

Fixed this bug in a realm and survival world by logging in on my phone, opening the settings and changing the view to third person

GenericHeroGuy avatar Jun 24 '21 13:06 GenericHeroGuy

The third person thing worked. I think a note about it should be added to the launcher.

GameParrot avatar Jun 24 '21 14:06 GameParrot

My question is... how is this the launcher's fault? I can see that possibly being an issue on a personal world, but in my case it's happening on a remote world (run on a linux server). I think that this should be an issue raised against Minecraft (it doesn't handle a NaN facing direction correctly)

mqualizz avatar Jun 25 '21 14:06 mqualizz

Has this happened to anyone using the official Android version on a real phone or tablet (not an emulator)?

GameParrot avatar Jun 26 '21 15:06 GameParrot

@mqualizz That threw me off too. All the more reason to use languages that incorporate Option/Result, they make error handling mostly painless and required. Wouldn't necessarily help with NaN on its own, but I feel like the prevalence of Option/Result in the standard library keeps one a bit more wary of potential errors.

chinoto avatar Jun 26 '21 23:06 chinoto

@mqualizz That threw me off too. All the more reason to use languages that incorporate Option/Result, they make error handling mostly painless and required. Wouldn't necessarily help with NaN on its own, but I feel like the prevalence of Option/Result in the standard library keeps one a bit more wary of potential errors.

I haven't done any Rust, but from my quick glance at Option/Result (and thus my probably flawed understanding), I'd have to agree. It seems similar what Kotlin/FlowJS/Typescript do w.r.t. variables that can contain null(-ish, for the latter two) values.

mqualizz avatar Jun 28 '21 14:06 mqualizz

I'll have to try that 3rd person view fix, but realms auto backs up anyway so for me I was always able to fix this by restoring a realm backup, as far as I can tell this bug seems to happen when working in water, although that could just be me

Joemackley avatar Jul 14 '21 08:07 Joemackley

Seems like this is the bug which happened to me. I was connected to a dedicated server running on Ubuntu, from another computer running Ubuntu. Fixed it by writing a Python script to roll back my player data without rolling back the entire world. I'll have to test the 3rd-person-camera fix next time it happens to me.

(For the record, I'm super grateful for the work that goes into this free unofficial launcher! Thank you to the creator)

tassaron avatar Jul 14 '21 13:07 tassaron