Uncaught TypeError: Cannot read property '0' of null at Function.com_watabou_toytown2_elements3d_buildings_GableRoof.add (ToyTown2.js:28511) at com_watabou_toytown2_elements3d_View.reset (ToyTown2.js:27988) at com_watabou_toytown2_scenes_TownScene.load (ToyTown2.js:28828) at FileReader.reader.onload (ToyTown2.js:27408)
Send me your email address and I will. Also, I dont think its a file issue at all. I believe that it is a browser permissions issue. Look at the response I posted on the dev page.
I missed that message of yours. "The devicemotion events are blocked..." shouldn't be a problem, it's just a warning and it doesn't prevent the rest of the code from working.
I've uploaded a small update, which at least helps with Tazshelby2016's file. In that case it was invalid geometry in JSON.
So it still doesn't work for you? I'm out of ideas, your file is loaded normally for me. Maybe you should try another browser, maybe something is wrong with your browser's settings/permissions (as you said). But in this case there should be messages in the console, not just that "devicemotion" one.
← Return to viewer
Comments
Log in with itch.io to leave a comment.
just press the tilde key (`).
Yeah, tilde is a more obvious name for that key :)
Thank you for adding gabled roofs!
Dropping a JSON file on to the viewer does not seem to work.
Uncaught TypeError: Cannot read property '0' of null
at Function.com_watabou_toytown2_elements3d_buildings_GableRoof.add (ToyTown2.js:28511)
at com_watabou_toytown2_elements3d_View.reset (ToyTown2.js:27988)
at com_watabou_toytown2_scenes_TownScene.load (ToyTown2.js:28828)
at FileReader.reader.onload (ToyTown2.js:27408)
Charotat Fort at https://sites.google.com/site/tazshelbysmainsite/home/bug-page
Thanks! Yes, some bad data in the JSON caused this issue. To be exact, it was a building polygon consisting of two vertices. It is fixed now.
Could you send me the file you are trying to import?
Send me your email address and I will. Also, I dont think its a file issue at all. I believe that it is a browser permissions issue. Look at the response I posted on the dev page.
I missed that message of yours. "The devicemotion events are blocked..." shouldn't be a problem, it's just a warning and it doesn't prevent the rest of the code from working.
I've uploaded a small update, which at least helps with Tazshelby2016's file. In that case it was invalid geometry in JSON.
https://www.dropbox.com/s/93lzdlmd8ph42me/Bright%20Dale.json?dl=0
So it still doesn't work for you? I'm out of ideas, your file is loaded normally for me. Maybe you should try another browser, maybe something is wrong with your browser's settings/permissions (as you said). But in this case there should be messages in the console, not just that "devicemotion" one.
Really good addition to MFCG which I'm a fan of. If you're still working on this it might be fun to have an option for building height
Thanks! Yeah, this app needs a Settings window.
OMG! This is amazing!
This is amazing wow!
This is so cool. So many things you can do with it!