Hey @4ian If I make modifications to GDCore how do I bring them to GDJS then to newIDE? Thanks!
-
Do your modifications in C++ source code of GDCore.
-
If you added a new class or method, add it to GDevelop/Bindings.idl at master · 4ian/GDevelop · GitHub (and Wrapper.cpp if it’s a new C++ file). If you just made some changes in an existing function, you don’t need to change them.
-
Compile GDevelop.js: GDevelop/GDevelop.js at master · 4ian/GDevelop · GitHub (follow the README, then later you just have to do
npm run build
) -
Done, now in the IDE, you can use your method (or your class, it’s in the
gd
object).
Hmmm, my lbGD.js seems not correct. The newIDE Crashes when loading it and it doesn’t resemble the one here. For example, the beginning of mine is like this: Emscripten result libGD.js beginning of file - Pastebin.com
Does someone knows how to fix this? There wasn’t any errors while compiling GDevelop.js.
(Oh, and Cmake won’t run two times I have to reinstall it each time I want to rebuild it)
I think my compiler is broken. I reinstalled everything but it still doesn’t work. I sthere a specific version of emscripten needed? Could someone try to build it to see if it is my modifications or my compiler? github.com/arthuro555/gdevelop
Hard to tell without any error message or information. Paste here all the logs from the terminal. Be sure to follow exactly the information indicated in the README.
Oh, the error probably comes from my version of emscripten. Anyways, solved it by lettiung circle ci build it and upload it as artifact.