gdnlib vs gdn vs tres vs gdns

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By snwflk
:warning: Old Version Published before Godot 3 was released.

I’m trying to find the most straightforward and simple way to use a dll I made, in Godot.
I’ve read 2 GDNative tutorials each taking a different route:

  1. One says create a GDNativeLibrary and save it as a .tres file and then make a native script in Godot, of type .gdn.
  2. The other one says manually create a .gdnlib file to contain the same options (platform, “load once”, etc.). Then create a .gdns (which I’m assuming is a native script) based on that .gdnlib.
    Where do these differences come from? Are some of the types identical but only different by extension? What is each one? Which way to go?
:bust_in_silhouette: Reply From: Zylann

GDNative has changed over time because the engine is still in beta. I would say the second way is the most recent one.
It’s only a matter of time until GDNative gets an official documentation.

Thanks. I hoped for the second one as it’s more straightforward. So the first one is (hopefully) deprecated.

snwflk | 2017-12-17 15:59