Closed heyhey123-git closed 3 months ago
使用native api里NativeFunction原生函数的hook方法后,当原函数被调用,服务端就会崩溃
如下例,当玩家与村民等实体交互时,即原函数被调用时,服务端崩溃
let func = NativeFunction.fromSymbol("?interact@Player@@QEAA_NAEAVActor@@AEBVVec3@@@Z"); func.hook((pl, act, pos) => { let res = func.call(pl, act, pos); return res; });
不崩溃
No response
win10
1.20.62
0.9.2
0.4.3
minidump_2024-03-10_11-08-04.dmp
trace_2024-03-10_11-08-04.log
据我所知ll3下的LSE没有native api了吧😂
Describe the bug
使用native api里NativeFunction原生函数的hook方法后,当原函数被调用,服务端就会崩溃
To Reproduce
如下例,当玩家与村民等实体交互时,即原函数被调用时,服务端崩溃
Expected behavior
不崩溃
Screenshots
No response
Platform
win10
BDS Version
1.20.62
LeviLamina Version
0.9.2
LegacyScriptEngine Version
0.4.3
Additional context
minidump_2024-03-10_11-08-04.dmp
trace_2024-03-10_11-08-04.log