Skip to content

Although the example you provided last time can be debugged. But I still can't debug it myself. #10

Description

@brinkqiang

Case address: https://github.com/brinkqiang/dmlua

This example is more complicated and should be able to cover many usage conditions. If this example can be debugged, many examples will be debugged.

More special points.

  1. Directory problem, the debug directory structure is as follows.
    path

The compiled exe is in the Debug directory, and the script is loaded as the upper-level directory of the exe.

  1. Calling method
    The calling method in C++ is as follows.
    CRole* poRole = CRoleMgr::Instance()->CreateRole();
    poRole->SetName("andy");
    poRole->SetHp(9999);
    poRole->SetMp(9999);
    unsigned int dwTaskID = 100;
    LResultINT oResult(-1);
    oDMLuaEngine.Call("script.task.task.AcceptTask", poRole, dwTaskID, &oResult);

  2. seeall
    The seeall attribute is set in the script. I don't know if it will affect it.

module (..., package.seeall)

dmlua_debug

Your help is very much needed.

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions