openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

unbound function issue with exporting functions returning const arrays of consts #453

Open XertroV opened 5 months ago

XertroV commented 5 months ago

I have a bunch of exported functions like image 1,2. I also have some test code in another plugin to test running the functions: image 3.

When the functions were import const array<const BlockSpec@>@ ThisFrameBlocksDeleted() from "Editor"; (etc, in both locations) I would get an unbound function error. The function signatures were exactly the same and I could call the functions locally from E++. Just the exports didn't work. It didn't matter the order I called the ThisFrame functions in, they all failed.

Can't really think of a reason why this would be the case besides an angelscript bug? (If it looks like an AS bug I'll try and reproduce and post to gamedev forum)

  1. image

  2. image

  3. image