Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem passing multiple parameters to "RegisterMethod" registered method #48

Open
chiguireitor opened this issue Jun 14, 2019 · 1 comment · May be fixed by #50
Open

Problem passing multiple parameters to "RegisterMethod" registered method #48

chiguireitor opened this issue Jun 14, 2019 · 1 comment · May be fixed by #50

Comments

@chiguireitor
Copy link

chiguireitor commented Jun 14, 2019

Currently i'm implementing a library in Go which needs to get multiple parameters on a method call:

https://github.com/chiguireitor/godot-gobtcsuite/blob/154bc8fec32c87dc9a8c8f7dba0a67c3850f5605/src/gobtcsuite.go#L280

That call is getting the first parameter right, but the rest of the Variants in the args array come with weird values. For example, calling with 3 ints i do:

fmt.Sprintf("%d %d %d", args[0].GetType(), args[1].GetType(), args[2].GetType()) 

and get

2 81748992 81748992

as result

Edit: It should be noted that the expected result should be 2 2 2 seems like the args array is only getting initialized on the first value, i've been trying to debug this but can't find where's my method getting called to change it on godot's or godot-go's code.

@kohlten kohlten linked a pull request Sep 13, 2019 that will close this issue
@1800alex
Copy link

I'm seeing the same issue here - any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants