Closed inxomnyaa closed 3 years ago
[Server thread/CRITICAL]: Could not load resource pack "nethergames.zip": manifest.json is missing required fields
format_version
header
modules
metadata
https://github.com/pmmp/PocketMine-MP/blob/master/src/resourcepacks/json/Manifest.php is missing optional metadata https://github.com/pmmp/PocketMine-MP/blob/70b0d832583c162484458e1ef4dbc70c174ea7b4/src/resourcepacks/ZippedResourcePack.php#L111-L116 Throws misleading error ("missing required fields" at any time) https://github.com/pmmp/PocketMine-MP/blob/70b0d832583c162484458e1ef4dbc70c174ea7b4/src/resourcepacks/ZippedResourcePack.php#L113 Can not map successfully and throws JsonMapper_Exception if additional fields are provided
Plugins (4): DEVirion v1.2.5-ALPHA13, DevTools v1.15.0+dev, FormImagesFix v0.0.1, xendevtools2 v0.0.0
Is the metadata field an officially accepted thing? There's no spec on this stuff so I'm never sure.
Yup
https://minecraft.gamepedia.com/Bedrock_Edition_add-on_documentation
Thanks, I didn't know that documentation existed.
Fixed by 07dc0f2dd56c07b3c52e6bec976e12ad8b071250.
Issue description
[Server thread/CRITICAL]: Could not load resource pack "nethergames.zip": manifest.json is missing required fields
Steps to reproduce the issue
format_version
,header
andmodules
to manifest.jsonmetadata
to manifest.jsonCode that causes the issue
https://github.com/pmmp/PocketMine-MP/blob/master/src/resourcepacks/json/Manifest.php is missing optional metadata https://github.com/pmmp/PocketMine-MP/blob/70b0d832583c162484458e1ef4dbc70c174ea7b4/src/resourcepacks/ZippedResourcePack.php#L111-L116 Throws misleading error ("missing required fields" at any time) https://github.com/pmmp/PocketMine-MP/blob/70b0d832583c162484458e1ef4dbc70c174ea7b4/src/resourcepacks/ZippedResourcePack.php#L113 Can not map successfully and throws JsonMapper_Exception if additional fields are provided
OS and versions
Plugins
Plugins (4): DEVirion v1.2.5-ALPHA13, DevTools v1.15.0+dev, FormImagesFix v0.0.1, xendevtools2 v0.0.0
Crashdump, backtrace or other files