I’m working on a project that targets a specific engine version, so we use the debug view with the use_local_engine parameter. It seems that it is no longer working for engine versions < 1.55.0. Is this a known change in compatibility of the editor? Or a bug?
In the console I see the following, which makes me suspect that the editor was updated in a way that it is not compatible with older engine versions, regarding the scenario described.
editor:loadModules (editor.method error)
sentry.js:79 TypeError: Cannot read properties of undefined (reading 'setConfig')
at modules.js:15:31
at Array.forEach (<anonymous>)
at modules.js:14:21
at e.call (editor.js:29:42)
at e.<anonymous> (viewport.js:229:12)
at e.<anonymous> (index.mjs:61:10)
at e.emit (index.mjs:78:21)
at HTMLDocument.<anonymous> (first-load.js:23:16)
The Editor only officially supports up to the last minor Engine release (in this case 1.59.X), and not any older versions. If they work, it’s because no API has changed.
Last week, the Editor started to use some API from the engine introduced about 9 months ago in 1.55, and the impact here is that engine versions older than that no longer work, as they do not support that API.
Our suggestion is to update your project to the latest versions as they get released to avoid this.
If you must need to use 1.54.1 or below for the short term (e.g you have a release upcoming etc) you can patch the engine to add the necessary WASM module
Thanks for this info. I noticed that the downloaded build is now causing the same error that I pasted above, from the editor. I found a different solution. I found that __modules__.js is changed, in the newer project download, and the change in that file is where the error comes from. Because that change seems meant for newer engine versions, and our project is still on an older engine version, I found that using the previously downloaded __modules__.js file resolves the issue.