ositools icon indicating copy to clipboard operation
ositools copied to clipboard

[Bug]: syscalls/sysqueries do not work from lua

Open PinewoodPip opened this issue 3 years ago • 1 comments

Operating System

  • [X] Windows
  • [ ] Linux

Extender Version

v56 (untested on v55)

Game Version

v3.6.117.3755

Bug Summary

The syscall and sysquery osiris calls/queries do not work in lua:

No function named 'SysCompleteGoal' exists that can be called with 1 parameters.

Links

No response

PinewoodPip avatar Jan 02 '22 19:01 PinewoodPip

These haven't ever been supported in Lua (since they're different than regular calls/queries under the hood), but a workaround has been to define a proc or query that calls the related Sys function and use that in Lua:

PROC
LeaderLib_CompleteGoal((STRING)_GoalTitle)
THEN
SysCompleteGoal(_GoalTitle);

LaughingLeader avatar Jan 03 '22 19:01 LaughingLeader