Open jog1t opened 5 years ago
Looks like creating simple.gdns
from Godot's interface works fine.
[gd_resource type="NativeScript" load_steps=2 format=2]
[sub_resource type="GDNativeLibrary" id=1]
config_file = Object(ConfigFile,"script":null)
entry/Windows.64 = "res://path/to/simple.dll"
dependency/Windows.64 = [ ]
[resource]
class_name = "SIMPLE"
library = SubResource( 1 )
script_class_name = "SIMPLE"
But this solution does not fix weird logs. Should I create new issue for that?
even the binding generator dies at some error. Its the previous issue to this one. So yeah, i think its broken.. I could fix it, but i don't have much free time.
I started a new godot-go project here (https://github.com/godot-go/godot-go) because this project has gone dormant. my project properly integrates into the editor. custom nativescript properties will register and can be modified on the editor panel.
Description
I've used example from https://github.com/ShadowApex/godot-go/tree/master/examples/gdnative/SimpleDemo but this seems to not work. Ouput from console when running game looks like:
I suppose, last two lines are from main.go.
gdnative.Log.Println("Creating new SimpleClass...")
andgdnative.Log.Println("Destroying SimpleClass with ID:", userData, "...")
. If I changegdnative.Log.Println
togdnative.Log.Warning
this logs seems to be working but editor still crashes.Details