Is Edit.js no more working?


#1

the script made by ctraltstudio http://ctrlaltstudio.com/hifi/edit, seems no more working with latest HIFI distributions, giving Script cannot be loaded, please reload it or something similar and presenting only an incomplete and non functional interface when pressing ctrl-E.

Is there something simple I can do to make it work again?

Is there a version of this script not baked and opensource so that maybe somebody can fix it if needed?
Standard HiFi entity editor is very slow and quite heavy to use :frowning:


#2

@claudio.pacchiega I can confirm that my edit.js has stopped working with RC62. This must be due to a JavaScript API change. In my program log:

[DEBUG] [qml] [BaseWebView.qml] Web Window JS message:  463 Uncaught TypeError: Cannot read property 'connect' of undefined

I’ll see if I can get it working again this weekend.


#3

Thanks a lot, David. Your scripts are indeed very valuable assets, they allow me to teach High Fidelity to newbie people without the heaviness of current user interface… I also count to learn hifi javascript programming so to be able myself to fix some of these problems. I was just wondering if there exist some unbaked version of edit.js or other your scripts that I can use as good starting and effective points to learn javascript.


#4

I’ve updated my edit.js script so that it works again, on RC62. Note, though, that I haven’t updated it to include the entity properties added since the last significant update.

Script: http://ctrlaltstudio.com/downloads/hifi/scripts/edit.js
Info: http://ctrlaltstudio.com/hifi/edit

If it doesn’t work for you, you probably need to clear your disk cache: Developer > Network > Clear Disk Cache and restart Interface. Version 0.4.3-81 should be reported in the program log and you should not get a warning dialog saying, “Entities Editor window not loaded properly”.

UPDATE: It seems that Developer > Network > Clear Disk Cache doesn’t properly clear things. I had to manually delete my cache files: C:\Users\David\AppData\Local\High Fidelity\Interface\ directories \cache, \data8, \ktx_cache, \prepared.