pragmagic / godot-nim

Nim bindings for Godot Engine
https://pragmagic.github.io/godot-nim/
Other
497 stars 27 forks source link

Godot crashes after building godot-nim in existing project #85

Closed DarthvaderBn closed 3 years ago

DarthvaderBn commented 3 years ago

Windows 10

at the beginning of starting project in godot everything goes well, but after 25 seconds godot starts crashing.

zetashift commented 3 years ago

Do you see any error in the console? I think I had this too and it has to do with how Godot handles dll's.

DarthvaderBn commented 3 years ago

Do you see any error in the console? I think I had this too and it has to do with how Godot handles dll's.

Unfortunately, nothing

zetashift commented 3 years ago

Can you try compiling with GCC instead of VCC?

Change the vcc in this line: https://github.com/pragmagic/godot-nim-stub/blob/master/src/config.nims#L41 to gcc

DarthvaderBn commented 3 years ago

ok i will try

DarthvaderBn commented 3 years ago

still crashing

zetashift commented 3 years ago

I'm not sure how to diagnose this. I'm also not on Windows anymore, so that doesn't help. Also this might be how Godot handles DLL, I asked this in the discord and it was a hard issue to solve.

You can try to get this: https://github.com/geekrelief/gdnim running, geekrelief runs Windows at well so it's better tested. The setup takes a bit longer since you have to compile from source, but you get a lot of goodies for it!

DarthvaderBn commented 3 years ago

Thanks! I will try it

DarthvaderBn commented 3 years ago

after some project tests, i find out what Godot-nim scripts negatively react to GDscript scripts

so that because godot starts crashing