Podshot / MCEdit-Unified

Combined MCEdit & Pymclevel repository.
http://podshot.github.io/MCEdit-Unified/
ISC License
484 stars 109 forks source link

KeyError: 20 when trying to open a Minecraft Pocket Edition v0.13.1 alpha world. #555

Closed mjduniverse closed 8 years ago

mjduniverse commented 8 years ago

Minecraft Version: Pocket Edition v0.13.1 alpha MCEdit Version: MCEdit Unified v1.5.0.0 Operating System: For MCEdit: Windows 8.1, and for MCPE: Kindle Fire HD 6 (4th generation) Mods: None

How to reproduce the error:

  1. Open Minecraft World. (See attachment.)
  2. Error happens.

Cmd Console: https://gist.github.com/mjduniverse/322f681b6f63a98c4927

Map: My World--old-old-old-old.zip

DomPrice commented 8 years ago

It appears the PE Entities have not been on MCEdit 1.5.0 yet. Should be a quick fix. All error codes I have seen correspond to PE 0.13.1 entities

44, Zombie Villager 18, Rabbit 20, Iron Golem

I believe editing the PocketEntities hash on line 638 here: https://github.com/Khroki/MCEdit-Unified/blob/master/pymclevel/entity.py#L638 will fix he issue.

Entity List Reference http://minecraft.gamepedia.com/Pocket_Edition_data_values#Entity_IDs

naor2013 commented 8 years ago

Thanks for the report, will be fixed for next release