HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

Errors on startup #51

Closed zauberparacelsus closed 1 year ago

zauberparacelsus commented 1 year ago

I am getting some errors when opening the sample project.

First is this one:

core/variant/variant_setget.cpp:836 - Index index = 4 is out of bounds (3 = 3).

And then this set of errors:

  godot/macros/VariantMacros.hx:259 - Cannot cast GDString to int
  Called from example.HxExample.__bindCall (godot/macros/Macros.hx line 679)
  Called from example.HxExample.set_hx_ImportantFloat (example/HxExample.hx line 82)
  Called from HxGodot.main (HxGodot.hx line 63) (User)
dazKind commented 1 year ago

Hi there, yes, these errors are for demonstration purposes. It should be clear when you check the code. See https://github.com/HxGodot/hxgodot/blob/main/tools/template/src/example/HxExample.hx#L61 and https://github.com/HxGodot/hxgodot/blob/main/tools/template/src/example/HxExample.hx#L82

dazKind commented 1 year ago

Ups, accidently closed. Lemme know if you have further questions