求个ce4字节类型搜索数值自动*2+1的lua脚本....
lua吧
全部回复
仅看楼主
level 1
--Note: keep the function base name unique.
typename="Custom LUA type 4" --shown as the typename in ce
bytecount=4 --number of bytes of this type
functionbasename="customvaluetype4"
function customvaluetype4_bytestovalue(b1,b2,b3,b4,address)
--Add extra byte parameters as required
return 123
end
function customvaluetype4_valuetobytes(i,address)
--return the bytes to write (usually only used when you change the value)
return 0,0,0,0
end
return typename,bytecount,functionbasename
示例不太懂
2016年03月29日 13点03分 1
1