Skip to content

call lua function failed: attempt to call a table value #39

Description

@zhang-bin

When i call lua function with use_self=True, i got this error: call to lua function attempt to call a table value failed

php code example:
$lua = new Lua();
$lua->include('battleEntryServer/BattleEntry.lua');
$lua->call(array('G_BattleChecker', 'RunOneBattle'), [], true))

lua code example:
battleEntryServer/BattleEntry.lua:
G_BattleChecker = require('battleEntryServer.BattleChecker').new()

battleEntryServer/BattleChecker.lua:
local BattleChecker = class('BattleChecker')
function BattleChecker:RunOneBattle(){

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions