create3000 / x_ite

X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.
https://create3000.github.io/x_ite/
Other
67 stars 15 forks source link

MetadataSet proto causing failure to load on previously (recently) working world #138

Closed splace closed 1 year ago

splace commented 1 year ago
x_ite.min.js:1 Error: Unknown node type or proto 'MetadataSet', you probably have insufficient component/profile statements, and/or an inappropriate specification version.
    at hs.node (x_ite.min.js:1:392145)
    at hs.nodeStatement (x_ite.min.js:1:384466)
    at hs.sfnodeValue (x_ite.min.js:1:403939)
    at hs.fieldValue (x_ite.min.js:1:396409)
    at hs.nodeBodyElement (x_ite.min.js:1:395518)
    at hs.nodeBody (x_ite.min.js:1:394487)
    at hs.node (x_ite.min.js:1:392613)
    at hs.nodeStatement (x_ite.min.js:1:384730)
    at hs.statement (x_ite.min.js:1:384323)
    at hs.statements (x_ite.min.js:1:384135)
(anonymous) @ x_ite.min.js:1
x_ite.min.js:1 Couldn't load URL 'https://splace.github.io/3d/2005/mountain/world/mountain world.wrl': 
********************************************************************************
Parser error at line 47:35
in 'https://splace.github.io/3d/2005/mountain/world/mountain%20world.wrl'

WorldInfo {
  metadata DEF Titania MetadataSet {
                                  ^
Unknown node type or proto 'MetadataSet', you probably have insufficient component/profile statements, and/or an inappropriate specification version.
********************************************************************************

error @ x_ite.min.js:1
x_ite.min.js:1 Uncaught (in promise) Error: Couldn't load X3D file.
    at o.createX3DFromURL.o.ready (x_ite.min.js:1:1357910)
    at vl.createX3DFromURLAsync (x_ite.min.js:1:659644)
    at vl.loadDocumentError (x_ite.min.js:1:661255)
    at x_ite.min.js:1:380746
create3000 commented 1 year ago

Please consider using the X3D .x3dv format, as VRML only supports a limited set of X3D nodes.

splace commented 1 year ago

this world must have been passed though Titania, at some point, i wasn't aware/wanted the additions, it had been just working. i will revert to the original file.

this kind of stuff was why i had previously used a fixed version of x-ite, but that broke #120 for some worlds for me, so i switched to latest, which presumable resulted in this. should i fix on a major versions? or something? ideally a major version that also used the latest, bug fixed version, from that 'release' line

create3000 commented 1 year ago

Even better than .x3dv is .x3d format, because the file can be loaded even if there are some errors like 'node not found' or errors with routes, and others. This is because .x3d is an XML format. The file is then loaded as good as possible, which can in some cases fine, for instance if a Metadata* node is not found.