Oh, I think I see. I'll start with a change like this: https://gitea.wildfiregames.com/0ad/0ad/commit/2d43ca6462940e9c3aad82309e41febb53892654?files=binaries%2fdata%2fmods%2fpublic%2fmaps%2frandom%2ffrontier.js
@phositWhen I uncomment the line `Engine.LoadLibrary("rmgen2");` I get the error:
ERROR: JavaScript error: maps/random/rmgen2/gaia.js line 1
import declarations may only appear at top level of a module
@maps/random/cliffs_of_carnage.js:7:8
ERROR: CMapGenerationCallbacks::LoadScripts: Failed to load script 'maps/random/rmgen2/gaia.js'
ERROR: An unhandled promise got rejected:
ReferenceError: e_p is not defined
@maps/random/cliffs_of_carnage.js:386:1
@Stan`What's the link to the porting guide?