yvt / openspades

Compatible client of Ace of Spades 0.75
http://openspades.yvt.jp/
GNU General Public License v3.0
1.14k stars 218 forks source link

AngelScript registering AudioChuck fails with AS_MAX_PORTABILITY set(Risc-V hardware) #1093

Open Vixea opened 1 year ago

Vixea commented 1 year ago

The important bit of the log

2023/11/02 04:15:50 [ScriptManager.cpp:44]  (0, 0) : ERR  : Failed in call to function 'RegisterObjectBehaviour' with 'AudioChunk' and 'void f()' (Code: asNOT_SUPPORTED, -7)

2023/11/02 04:15:50 [Main.cpp:676] [!] Terminating due to the fatal error: Not supported
at /home/sipeed/Documents/projects/openspades/Sources/ScriptBindings/ScriptManager.cpp:190
static void spades::ScriptManager::CheckError(int) at ScriptManager.cpp:189
spades::ScriptManager::ScriptManager() at ScriptManager.cpp:77
int main(int, char**) at Main.cpp:341

Not sure if that's actually the reason behind it anyway. It might be able to confirm if I could build it on Arch says it can't find glew even though I do have it. Pretty simple to reproduce.

  1. Have a Risc-V SBC
  2. build openspades with 1038(it won't build otherwise)
  3. try and run it

If there's anything else you'll need from me I'm more than happy to help ;D

Vixea commented 1 year ago

This can be fixed by using the autowrapper add-on btw, found this out after talking with the AS dev(which also needs 1038)