在CE自动汇编里调用lua函数

CE自动汇编模板里有一个是调用lua函数,但是关于如何使用的资料很少,结果问AI也是各种错误回答,还各种误导...

下面是32位游戏的例子:

cpp 复制代码
loadlibrary(luaclient-i386.dll)
luacall(openLuaServer('CELUASERVER'))

CELUA_ServerName:
db 'CELUASERVER',0

{$lua}
function myfunction(param)
  showMessage("param:"..param)
end

{$asm}
alloc(myluascript,256)
myluascript:
db 'myfunction(parameter)',0

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:
//place your code here
pushad
push 0x00D9F000 //param
push myluascript
call CELUA_ExecuteFunction
popad

originalcode:
call _Launcher.exe+68FBA0

exit:
jmp returnhere

"_Launcher.exe"+68E1C0:
jmp newmem
returnhere:

参考资料:

https://forum.cheatengine.org/viewtopic.php?t=605733

https://forum.cheatengine.org/viewtopic.php?t=615359

相关推荐
普通人61 天前
Postman安装与缓存清理完全指南
缓存·lua·postman
开开心心就好2 天前
游戏安装报错缺环境?运行库整合包补上
java·mysql·游戏·pdf·ocr·音视频·lua
学逆向的3 天前
C++多态 汇编分析
开发语言·汇编·c++·网络安全
水饺编程3 天前
第1章,本专栏新增的可自由修改的 Linux 0.12 内核
linux·c语言·汇编
Milky.Way3 天前
单片机——基础介绍(汇编入门)
汇编
liulilittle7 天前
认识麻将 —— 流水及对账
算法·游戏·lua·对账·流水·资金·玩法
开开心心就好9 天前
电脑禁止自动休眠工具,还能按负载定时
算法·智能手机·pdf·电脑·word·音视频·lua
Flynn Liang13 天前
Agent 生产级可靠性与风控:Lua 原子性、Token 预算与持久化边界
人工智能·redis·lua·agent·token·ai agent