This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Translating code between Lua and JS
#3
I've translated whole code and now it produces correct string frame, but I've found some ~bug/~lack in log() function which could be produced by such code:

Code:
S01_up = string.char(0x7F,0xF2,0xFA,0xFF,0x00,0x00,0x8E,0x5E,0xFA,0xFE,0xFE,0x07,0x4C)
S01_up_new = lmcore.hextostr('7FF2FAFF00008E5EFAFEFE074C', true)

log(S01_up, S01_up_new, 'end')


And this is from log():

Code:
* arg: 1
 * string: ���


So it looks that log() doesn't notice the end of first variable.
Done is better than perfect
Reply


Messages In This Thread
RE: Translating code between Lua and JS - by buuuudzik - 07.09.2018, 07:32

Forum Jump: