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.

rewrite Python code to Lua
#2
It's not that simple. You need a library for the OSC protocol: https://github.com/davidgranstrom/losc/

Run this script once to install the library (make sure that LM has valid gateway and DNS settings):
Code:
if not io.exists('/usr/share/lua/losc/') then
  os.execute('wget -O /tmp/losc.tar.gz http://dl.openrb.com/misc/losc.tar.gz && ' ..
    'tar -xzf /tmp/losc.tar.gz -C /')
end

A slight difference from the examples is that the main library should be loaded like this:
Code:
-- instead of local losc = require'losc'
local losc = require'losc.init'
Reply


Messages In This Thread
rewrite Python code to Lua - by Hadeel - 30.04.2023, 17:19
RE: rewrite Python code to Lua - by admin - 02.05.2023, 07:30
RE: rewrite Python code to Lua - by Hadeel - 03.05.2023, 11:00
RE: rewrite Python code to Lua - by admin - 03.05.2023, 11:17
RE: rewrite Python code to Lua - by Hadeel - 03.05.2023, 12:41

Forum Jump: